]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgo/configure
* go.test/go-test.exp (go-set-goarch): New proc.
[thirdparty/gcc.git] / libgo / configure
CommitLineData
e440a328 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
f555a9df 608PTHREAD_LIBS
609PTHREAD_CFLAGS
7d17fab3 610MATH_LIBS
e440a328 611USING_SPLIT_STACK_FALSE
612USING_SPLIT_STACK_TRUE
613SPLIT_STACK
614LIBGO_IS_ARM_FALSE
615LIBGO_IS_ARM_TRUE
616LIBGO_IS_X86_64_FALSE
617LIBGO_IS_X86_64_TRUE
618LIBGO_IS_386_FALSE
619LIBGO_IS_386_TRUE
620LIBGO_IS_RTEMS_FALSE
621LIBGO_IS_RTEMS_TRUE
622LIBGO_IS_LINUX_FALSE
623LIBGO_IS_LINUX_TRUE
624LIBGO_IS_FREEBSD_FALSE
625LIBGO_IS_FREEBSD_TRUE
626LIBGO_IS_DARWIN_FALSE
627LIBGO_IS_DARWIN_TRUE
628LIBFFIINCS
629LIBFFI
630glibgo_toolexeclibdir
631glibgo_toolexecdir
632glibgo_prefixdir
633WERROR
634WARN_FLAGS
635enable_static
636enable_shared
637CPP
638OTOOL64
639OTOOL
640LIPO
641NMEDIT
642DSYMUTIL
643AR
644OBJDUMP
645LN_S
646NM
647ac_ct_DUMPBIN
648DUMPBIN
649LIBTOOL
650OBJCOPY
651RANLIB
652LD
653FGREP
654EGREP
655GREP
656SED
657MAINT
658MAINTAINER_MODE_FALSE
659MAINTAINER_MODE_TRUE
660GOCFLAGS
661GOC
662am__fastdepCC_FALSE
663am__fastdepCC_TRUE
664CCDEPMODE
665AMDEPBACKSLASH
666AMDEP_FALSE
667AMDEP_TRUE
668am__quote
669am__include
670DEPDIR
671OBJEXT
672EXEEXT
673ac_ct_CC
674CPPFLAGS
675LDFLAGS
676CFLAGS
677CC
678am__untar
679am__tar
680AMTAR
681am__leading_dot
682SET_MAKE
683AWK
684mkdir_p
685MKDIR_P
686INSTALL_STRIP_PROGRAM
687STRIP
688install_sh
689MAKEINFO
690AUTOHEADER
691AUTOMAKE
692AUTOCONF
693ACLOCAL
694VERSION
695PACKAGE
696CYGPATH_W
697am__isrc
698INSTALL_DATA
699INSTALL_SCRIPT
700INSTALL_PROGRAM
701target_os
702target_vendor
703target_cpu
704target
705host_os
706host_vendor
707host_cpu
708host
709build_os
710build_vendor
711build_cpu
712build
713multi_basedir
714libtool_VERSION
715target_alias
716host_alias
717build_alias
718LIBS
719ECHO_T
720ECHO_N
721ECHO_C
722DEFS
723mandir
724localedir
725libdir
726psdir
727pdfdir
728dvidir
729htmldir
730infodir
731docdir
732oldincludedir
733includedir
734localstatedir
735sharedstatedir
736sysconfdir
737datadir
738datarootdir
739libexecdir
740sbindir
741bindir
742program_transform_name
743prefix
744exec_prefix
745PACKAGE_URL
746PACKAGE_BUGREPORT
747PACKAGE_STRING
748PACKAGE_VERSION
749PACKAGE_TARNAME
750PACKAGE_NAME
751PATH_SEPARATOR
752SHELL'
753ac_subst_files=''
754ac_user_opts='
755enable_option_checking
756enable_multilib
757enable_dependency_tracking
758enable_maintainer_mode
759with_gnu_ld
760enable_shared
761enable_static
762with_pic
763enable_fast_install
764enable_libtool_lock
765enable_version_specific_runtime_libs
766with_libffi
767with_system_libunwind
768'
769 ac_precious_vars='build_alias
770host_alias
771target_alias
772CPP
773CPPFLAGS'
774
775
776# Initialize some variables set by options.
777ac_init_help=
778ac_init_version=false
779ac_unrecognized_opts=
780ac_unrecognized_sep=
781# The variables have the same names as the options, with
782# dashes changed to underlines.
783cache_file=/dev/null
784exec_prefix=NONE
785no_create=
786no_recursion=
787prefix=NONE
788program_prefix=NONE
789program_suffix=NONE
790program_transform_name=s,x,x,
791silent=
792site=
793srcdir=
794verbose=
795x_includes=NONE
796x_libraries=NONE
797
798# Installation directory options.
799# These are left unexpanded so users can "make install exec_prefix=/foo"
800# and all the variables that are supposed to be based on exec_prefix
801# by default will actually change.
802# Use braces instead of parens because sh, perl, etc. also accept them.
803# (The list follows the same order as the GNU Coding Standards.)
804bindir='${exec_prefix}/bin'
805sbindir='${exec_prefix}/sbin'
806libexecdir='${exec_prefix}/libexec'
807datarootdir='${prefix}/share'
808datadir='${datarootdir}'
809sysconfdir='${prefix}/etc'
810sharedstatedir='${prefix}/com'
811localstatedir='${prefix}/var'
812includedir='${prefix}/include'
813oldincludedir='/usr/include'
814docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
815infodir='${datarootdir}/info'
816htmldir='${docdir}'
817dvidir='${docdir}'
818pdfdir='${docdir}'
819psdir='${docdir}'
820libdir='${exec_prefix}/lib'
821localedir='${datarootdir}/locale'
822mandir='${datarootdir}/man'
823
824ac_prev=
825ac_dashdash=
826for ac_option
827do
828 # If the previous option needs an argument, assign it.
829 if test -n "$ac_prev"; then
830 eval $ac_prev=\$ac_option
831 ac_prev=
832 continue
833 fi
834
835 case $ac_option in
836 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
837 *) ac_optarg=yes ;;
838 esac
839
840 # Accept the important Cygnus configure options, so we can diagnose typos.
841
842 case $ac_dashdash$ac_option in
843 --)
844 ac_dashdash=yes ;;
845
846 -bindir | --bindir | --bindi | --bind | --bin | --bi)
847 ac_prev=bindir ;;
848 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
849 bindir=$ac_optarg ;;
850
851 -build | --build | --buil | --bui | --bu)
852 ac_prev=build_alias ;;
853 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
854 build_alias=$ac_optarg ;;
855
856 -cache-file | --cache-file | --cache-fil | --cache-fi \
857 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
858 ac_prev=cache_file ;;
859 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
860 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
861 cache_file=$ac_optarg ;;
862
863 --config-cache | -C)
864 cache_file=config.cache ;;
865
866 -datadir | --datadir | --datadi | --datad)
867 ac_prev=datadir ;;
868 -datadir=* | --datadir=* | --datadi=* | --datad=*)
869 datadir=$ac_optarg ;;
870
871 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
872 | --dataroo | --dataro | --datar)
873 ac_prev=datarootdir ;;
874 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
875 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
876 datarootdir=$ac_optarg ;;
877
878 -disable-* | --disable-*)
879 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
880 # Reject names that are not valid shell variable names.
881 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
882 as_fn_error "invalid feature name: $ac_useropt"
883 ac_useropt_orig=$ac_useropt
884 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
885 case $ac_user_opts in
886 *"
887"enable_$ac_useropt"
888"*) ;;
889 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
890 ac_unrecognized_sep=', ';;
891 esac
892 eval enable_$ac_useropt=no ;;
893
894 -docdir | --docdir | --docdi | --doc | --do)
895 ac_prev=docdir ;;
896 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
897 docdir=$ac_optarg ;;
898
899 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
900 ac_prev=dvidir ;;
901 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
902 dvidir=$ac_optarg ;;
903
904 -enable-* | --enable-*)
905 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
906 # Reject names that are not valid shell variable names.
907 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
908 as_fn_error "invalid feature name: $ac_useropt"
909 ac_useropt_orig=$ac_useropt
910 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
911 case $ac_user_opts in
912 *"
913"enable_$ac_useropt"
914"*) ;;
915 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
916 ac_unrecognized_sep=', ';;
917 esac
918 eval enable_$ac_useropt=\$ac_optarg ;;
919
920 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
921 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
922 | --exec | --exe | --ex)
923 ac_prev=exec_prefix ;;
924 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
925 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
926 | --exec=* | --exe=* | --ex=*)
927 exec_prefix=$ac_optarg ;;
928
929 -gas | --gas | --ga | --g)
930 # Obsolete; use --with-gas.
931 with_gas=yes ;;
932
933 -help | --help | --hel | --he | -h)
934 ac_init_help=long ;;
935 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
936 ac_init_help=recursive ;;
937 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
938 ac_init_help=short ;;
939
940 -host | --host | --hos | --ho)
941 ac_prev=host_alias ;;
942 -host=* | --host=* | --hos=* | --ho=*)
943 host_alias=$ac_optarg ;;
944
945 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
946 ac_prev=htmldir ;;
947 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
948 | --ht=*)
949 htmldir=$ac_optarg ;;
950
951 -includedir | --includedir | --includedi | --included | --include \
952 | --includ | --inclu | --incl | --inc)
953 ac_prev=includedir ;;
954 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
955 | --includ=* | --inclu=* | --incl=* | --inc=*)
956 includedir=$ac_optarg ;;
957
958 -infodir | --infodir | --infodi | --infod | --info | --inf)
959 ac_prev=infodir ;;
960 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
961 infodir=$ac_optarg ;;
962
963 -libdir | --libdir | --libdi | --libd)
964 ac_prev=libdir ;;
965 -libdir=* | --libdir=* | --libdi=* | --libd=*)
966 libdir=$ac_optarg ;;
967
968 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
969 | --libexe | --libex | --libe)
970 ac_prev=libexecdir ;;
971 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
972 | --libexe=* | --libex=* | --libe=*)
973 libexecdir=$ac_optarg ;;
974
975 -localedir | --localedir | --localedi | --localed | --locale)
976 ac_prev=localedir ;;
977 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
978 localedir=$ac_optarg ;;
979
980 -localstatedir | --localstatedir | --localstatedi | --localstated \
981 | --localstate | --localstat | --localsta | --localst | --locals)
982 ac_prev=localstatedir ;;
983 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
984 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
985 localstatedir=$ac_optarg ;;
986
987 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
988 ac_prev=mandir ;;
989 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
990 mandir=$ac_optarg ;;
991
992 -nfp | --nfp | --nf)
993 # Obsolete; use --without-fp.
994 with_fp=no ;;
995
996 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
997 | --no-cr | --no-c | -n)
998 no_create=yes ;;
999
1000 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1001 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1002 no_recursion=yes ;;
1003
1004 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1005 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1006 | --oldin | --oldi | --old | --ol | --o)
1007 ac_prev=oldincludedir ;;
1008 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1009 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1010 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1011 oldincludedir=$ac_optarg ;;
1012
1013 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1014 ac_prev=prefix ;;
1015 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1016 prefix=$ac_optarg ;;
1017
1018 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1019 | --program-pre | --program-pr | --program-p)
1020 ac_prev=program_prefix ;;
1021 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1022 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1023 program_prefix=$ac_optarg ;;
1024
1025 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1026 | --program-suf | --program-su | --program-s)
1027 ac_prev=program_suffix ;;
1028 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1029 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1030 program_suffix=$ac_optarg ;;
1031
1032 -program-transform-name | --program-transform-name \
1033 | --program-transform-nam | --program-transform-na \
1034 | --program-transform-n | --program-transform- \
1035 | --program-transform | --program-transfor \
1036 | --program-transfo | --program-transf \
1037 | --program-trans | --program-tran \
1038 | --progr-tra | --program-tr | --program-t)
1039 ac_prev=program_transform_name ;;
1040 -program-transform-name=* | --program-transform-name=* \
1041 | --program-transform-nam=* | --program-transform-na=* \
1042 | --program-transform-n=* | --program-transform-=* \
1043 | --program-transform=* | --program-transfor=* \
1044 | --program-transfo=* | --program-transf=* \
1045 | --program-trans=* | --program-tran=* \
1046 | --progr-tra=* | --program-tr=* | --program-t=*)
1047 program_transform_name=$ac_optarg ;;
1048
1049 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1050 ac_prev=pdfdir ;;
1051 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1052 pdfdir=$ac_optarg ;;
1053
1054 -psdir | --psdir | --psdi | --psd | --ps)
1055 ac_prev=psdir ;;
1056 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1057 psdir=$ac_optarg ;;
1058
1059 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1060 | -silent | --silent | --silen | --sile | --sil)
1061 silent=yes ;;
1062
1063 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1064 ac_prev=sbindir ;;
1065 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1066 | --sbi=* | --sb=*)
1067 sbindir=$ac_optarg ;;
1068
1069 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1070 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1071 | --sharedst | --shareds | --shared | --share | --shar \
1072 | --sha | --sh)
1073 ac_prev=sharedstatedir ;;
1074 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1075 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1076 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1077 | --sha=* | --sh=*)
1078 sharedstatedir=$ac_optarg ;;
1079
1080 -site | --site | --sit)
1081 ac_prev=site ;;
1082 -site=* | --site=* | --sit=*)
1083 site=$ac_optarg ;;
1084
1085 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1086 ac_prev=srcdir ;;
1087 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1088 srcdir=$ac_optarg ;;
1089
1090 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1091 | --syscon | --sysco | --sysc | --sys | --sy)
1092 ac_prev=sysconfdir ;;
1093 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1094 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1095 sysconfdir=$ac_optarg ;;
1096
1097 -target | --target | --targe | --targ | --tar | --ta | --t)
1098 ac_prev=target_alias ;;
1099 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1100 target_alias=$ac_optarg ;;
1101
1102 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1103 verbose=yes ;;
1104
1105 -version | --version | --versio | --versi | --vers | -V)
1106 ac_init_version=: ;;
1107
1108 -with-* | --with-*)
1109 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1112 as_fn_error "invalid package name: $ac_useropt"
1113 ac_useropt_orig=$ac_useropt
1114 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115 case $ac_user_opts in
1116 *"
1117"with_$ac_useropt"
1118"*) ;;
1119 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1120 ac_unrecognized_sep=', ';;
1121 esac
1122 eval with_$ac_useropt=\$ac_optarg ;;
1123
1124 -without-* | --without-*)
1125 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1126 # Reject names that are not valid shell variable names.
1127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1128 as_fn_error "invalid package name: $ac_useropt"
1129 ac_useropt_orig=$ac_useropt
1130 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1131 case $ac_user_opts in
1132 *"
1133"with_$ac_useropt"
1134"*) ;;
1135 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1136 ac_unrecognized_sep=', ';;
1137 esac
1138 eval with_$ac_useropt=no ;;
1139
1140 --x)
1141 # Obsolete; use --with-x.
1142 with_x=yes ;;
1143
1144 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1145 | --x-incl | --x-inc | --x-in | --x-i)
1146 ac_prev=x_includes ;;
1147 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1148 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1149 x_includes=$ac_optarg ;;
1150
1151 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1152 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1153 ac_prev=x_libraries ;;
1154 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1155 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1156 x_libraries=$ac_optarg ;;
1157
1158 -*) as_fn_error "unrecognized option: \`$ac_option'
1159Try \`$0 --help' for more information."
1160 ;;
1161
1162 *=*)
1163 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1164 # Reject names that are not valid shell variable names.
1165 case $ac_envvar in #(
1166 '' | [0-9]* | *[!_$as_cr_alnum]* )
1167 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1168 esac
1169 eval $ac_envvar=\$ac_optarg
1170 export $ac_envvar ;;
1171
1172 *)
1173 # FIXME: should be removed in autoconf 3.0.
1174 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1175 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1176 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1177 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1178 ;;
1179
1180 esac
1181done
1182
1183if test -n "$ac_prev"; then
1184 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1185 as_fn_error "missing argument to $ac_option"
1186fi
1187
1188if test -n "$ac_unrecognized_opts"; then
1189 case $enable_option_checking in
1190 no) ;;
1191 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1192 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1193 esac
1194fi
1195
1196# Check all directory arguments for consistency.
1197for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1198 datadir sysconfdir sharedstatedir localstatedir includedir \
1199 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1200 libdir localedir mandir
1201do
1202 eval ac_val=\$$ac_var
1203 # Remove trailing slashes.
1204 case $ac_val in
1205 */ )
1206 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1207 eval $ac_var=\$ac_val;;
1208 esac
1209 # Be sure to have absolute directory names.
1210 case $ac_val in
1211 [\\/$]* | ?:[\\/]* ) continue;;
1212 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1213 esac
1214 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1215done
1216
1217# There might be people who depend on the old broken behavior: `$host'
1218# used to hold the argument of --host etc.
1219# FIXME: To remove some day.
1220build=$build_alias
1221host=$host_alias
1222target=$target_alias
1223
1224# FIXME: To remove some day.
1225if test "x$host_alias" != x; then
1226 if test "x$build_alias" = x; then
1227 cross_compiling=maybe
1228 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1229 If a cross compiler is detected then cross compile mode will be used." >&2
1230 elif test "x$build_alias" != "x$host_alias"; then
1231 cross_compiling=yes
1232 fi
1233fi
1234
1235ac_tool_prefix=
1236test -n "$host_alias" && ac_tool_prefix=$host_alias-
1237
1238test "$silent" = yes && exec 6>/dev/null
1239
1240
1241ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242ac_ls_di=`ls -di .` &&
1243ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1244 as_fn_error "working directory cannot be determined"
1245test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1246 as_fn_error "pwd does not report name of working directory"
1247
1248
1249# Find the source files, if location was not specified.
1250if test -z "$srcdir"; then
1251 ac_srcdir_defaulted=yes
1252 # Try the directory containing this script, then the parent directory.
1253 ac_confdir=`$as_dirname -- "$as_myself" ||
1254$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1255 X"$as_myself" : 'X\(//\)[^/]' \| \
1256 X"$as_myself" : 'X\(//\)$' \| \
1257 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1258$as_echo X"$as_myself" |
1259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1260 s//\1/
1261 q
1262 }
1263 /^X\(\/\/\)[^/].*/{
1264 s//\1/
1265 q
1266 }
1267 /^X\(\/\/\)$/{
1268 s//\1/
1269 q
1270 }
1271 /^X\(\/\).*/{
1272 s//\1/
1273 q
1274 }
1275 s/.*/./; q'`
1276 srcdir=$ac_confdir
1277 if test ! -r "$srcdir/$ac_unique_file"; then
1278 srcdir=..
1279 fi
1280else
1281 ac_srcdir_defaulted=no
1282fi
1283if test ! -r "$srcdir/$ac_unique_file"; then
1284 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1285 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1286fi
1287ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1288ac_abs_confdir=`(
1289 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1290 pwd)`
1291# When building in place, set srcdir=.
1292if test "$ac_abs_confdir" = "$ac_pwd"; then
1293 srcdir=.
1294fi
1295# Remove unnecessary trailing slashes from srcdir.
1296# Double slashes in file names in object file debugging info
1297# mess up M-x gdb in Emacs.
1298case $srcdir in
1299*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1300esac
1301for ac_var in $ac_precious_vars; do
1302 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1303 eval ac_env_${ac_var}_value=\$${ac_var}
1304 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1305 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1306done
1307
1308#
1309# Report the --help message.
1310#
1311if test "$ac_init_help" = "long"; then
1312 # Omit some internal or obsolete options to make the list less imposing.
1313 # This message is too long to be a string in the A/UX 3.1 sh.
1314 cat <<_ACEOF
1315\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1316
1317Usage: $0 [OPTION]... [VAR=VALUE]...
1318
1319To assign environment variables (e.g., CC, CFLAGS...), specify them as
1320VAR=VALUE. See below for descriptions of some of the useful variables.
1321
1322Defaults for the options are specified in brackets.
1323
1324Configuration:
1325 -h, --help display this help and exit
1326 --help=short display options specific to this package
1327 --help=recursive display the short help of all the included packages
1328 -V, --version display version information and exit
1329 -q, --quiet, --silent do not print \`checking...' messages
1330 --cache-file=FILE cache test results in FILE [disabled]
1331 -C, --config-cache alias for \`--cache-file=config.cache'
1332 -n, --no-create do not create output files
1333 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1334
1335Installation directories:
1336 --prefix=PREFIX install architecture-independent files in PREFIX
1337 [$ac_default_prefix]
1338 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1339 [PREFIX]
1340
1341By default, \`make install' will install all the files in
1342\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1343an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1344for instance \`--prefix=\$HOME'.
1345
1346For better control, use the options below.
1347
1348Fine tuning of the installation directories:
1349 --bindir=DIR user executables [EPREFIX/bin]
1350 --sbindir=DIR system admin executables [EPREFIX/sbin]
1351 --libexecdir=DIR program executables [EPREFIX/libexec]
1352 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1353 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1354 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1355 --libdir=DIR object code libraries [EPREFIX/lib]
1356 --includedir=DIR C header files [PREFIX/include]
1357 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1358 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1359 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1360 --infodir=DIR info documentation [DATAROOTDIR/info]
1361 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1362 --mandir=DIR man documentation [DATAROOTDIR/man]
1363 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1364 --htmldir=DIR html documentation [DOCDIR]
1365 --dvidir=DIR dvi documentation [DOCDIR]
1366 --pdfdir=DIR pdf documentation [DOCDIR]
1367 --psdir=DIR ps documentation [DOCDIR]
1368_ACEOF
1369
1370 cat <<\_ACEOF
1371
1372Program names:
1373 --program-prefix=PREFIX prepend PREFIX to installed program names
1374 --program-suffix=SUFFIX append SUFFIX to installed program names
1375 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1376
1377System types:
1378 --build=BUILD configure for building on BUILD [guessed]
1379 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1380 --target=TARGET configure for building compilers for TARGET [HOST]
1381_ACEOF
1382fi
1383
1384if test -n "$ac_init_help"; then
1385 case $ac_init_help in
1386 short | recursive ) echo "Configuration of package-unused version-unused:";;
1387 esac
1388 cat <<\_ACEOF
1389
1390Optional Features:
1391 --disable-option-checking ignore unrecognized --enable/--with options
1392 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1393 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1394 --enable-multilib build many library versions (default)
1395 --disable-dependency-tracking speeds up one-time build
1396 --enable-dependency-tracking do not reject slow dependency extractors
1397 --enable-maintainer-mode enable make rules and dependencies not useful
1398 (and sometimes confusing) to the casual installer
1399 --enable-shared[=PKGS] build shared libraries [default=yes]
1400 --enable-static[=PKGS] build static libraries [default=yes]
1401 --enable-fast-install[=PKGS]
1402 optimize for fast installation [default=yes]
1403 --disable-libtool-lock avoid locking (might break parallel builds)
1404 --enable-version-specific-runtime-libs
1405 Specify that runtime libraries should be installed
1406 in a compiler-specific directory
1407
1408Optional Packages:
1409 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1410 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1411 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1412 --with-pic try to use only PIC/non-PIC objects [default=use
1413 both]
1414 --without-libffi don't use libffi
1415 --with-system-libunwind use installed libunwind
1416
1417Some influential environment variables:
1418 CC C compiler command
1419 CFLAGS C compiler flags
1420 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1421 nonstandard directory <lib dir>
1422 LIBS libraries to pass to the linker, e.g. -l<library>
1423 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1424 you have headers in a nonstandard directory <include dir>
1425 GOC Go compiler command
1426 GOCFLAGS Go compiler flags
1427 CPP C preprocessor
1428
1429Use these variables to override the choices made by `configure' or to help
1430it to find libraries and programs with nonstandard names/locations.
1431
1432Report bugs to the package provider.
1433_ACEOF
1434ac_status=$?
1435fi
1436
1437if test "$ac_init_help" = "recursive"; then
1438 # If there are subdirs, report their specific --help.
1439 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1440 test -d "$ac_dir" ||
1441 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1442 continue
1443 ac_builddir=.
1444
1445case "$ac_dir" in
1446.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1447*)
1448 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1449 # A ".." for each directory in $ac_dir_suffix.
1450 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1451 case $ac_top_builddir_sub in
1452 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1454 esac ;;
1455esac
1456ac_abs_top_builddir=$ac_pwd
1457ac_abs_builddir=$ac_pwd$ac_dir_suffix
1458# for backward compatibility:
1459ac_top_builddir=$ac_top_build_prefix
1460
1461case $srcdir in
1462 .) # We are building in place.
1463 ac_srcdir=.
1464 ac_top_srcdir=$ac_top_builddir_sub
1465 ac_abs_top_srcdir=$ac_pwd ;;
1466 [\\/]* | ?:[\\/]* ) # Absolute name.
1467 ac_srcdir=$srcdir$ac_dir_suffix;
1468 ac_top_srcdir=$srcdir
1469 ac_abs_top_srcdir=$srcdir ;;
1470 *) # Relative name.
1471 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1472 ac_top_srcdir=$ac_top_build_prefix$srcdir
1473 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1474esac
1475ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1476
1477 cd "$ac_dir" || { ac_status=$?; continue; }
1478 # Check for guested configure.
1479 if test -f "$ac_srcdir/configure.gnu"; then
1480 echo &&
1481 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1482 elif test -f "$ac_srcdir/configure"; then
1483 echo &&
1484 $SHELL "$ac_srcdir/configure" --help=recursive
1485 else
1486 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1487 fi || ac_status=$?
1488 cd "$ac_pwd" || { ac_status=$?; break; }
1489 done
1490fi
1491
1492test -n "$ac_init_help" && exit $ac_status
1493if $ac_init_version; then
1494 cat <<\_ACEOF
1495package-unused configure version-unused
1496generated by GNU Autoconf 2.64
1497
1498Copyright (C) 2009 Free Software Foundation, Inc.
1499This configure script is free software; the Free Software Foundation
1500gives unlimited permission to copy, distribute and modify it.
1501_ACEOF
1502 exit
1503fi
1504
1505## ------------------------ ##
1506## Autoconf initialization. ##
1507## ------------------------ ##
1508
1509# ac_fn_c_try_compile LINENO
1510# --------------------------
1511# Try to compile conftest.$ac_ext, and return whether this succeeded.
1512ac_fn_c_try_compile ()
1513{
1514 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1515 rm -f conftest.$ac_objext
1516 if { { ac_try="$ac_compile"
1517case "(($ac_try" in
1518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1519 *) ac_try_echo=$ac_try;;
1520esac
1521eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1522$as_echo "$ac_try_echo"; } >&5
1523 (eval "$ac_compile") 2>conftest.err
1524 ac_status=$?
1525 if test -s conftest.err; then
1526 grep -v '^ *+' conftest.err >conftest.er1
1527 cat conftest.er1 >&5
1528 mv -f conftest.er1 conftest.err
1529 fi
1530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1531 test $ac_status = 0; } && {
1532 test -z "$ac_c_werror_flag" ||
1533 test ! -s conftest.err
1534 } && test -s conftest.$ac_objext; then :
1535 ac_retval=0
1536else
1537 $as_echo "$as_me: failed program was:" >&5
1538sed 's/^/| /' conftest.$ac_ext >&5
1539
1540 ac_retval=1
1541fi
1542 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1543 return $ac_retval
1544
1545} # ac_fn_c_try_compile
1546
1547# ac_fn_c_try_link LINENO
1548# -----------------------
1549# Try to link conftest.$ac_ext, and return whether this succeeded.
1550ac_fn_c_try_link ()
1551{
1552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1553 rm -f conftest.$ac_objext conftest$ac_exeext
1554 if { { ac_try="$ac_link"
1555case "(($ac_try" in
1556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1557 *) ac_try_echo=$ac_try;;
1558esac
1559eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1560$as_echo "$ac_try_echo"; } >&5
1561 (eval "$ac_link") 2>conftest.err
1562 ac_status=$?
1563 if test -s conftest.err; then
1564 grep -v '^ *+' conftest.err >conftest.er1
1565 cat conftest.er1 >&5
1566 mv -f conftest.er1 conftest.err
1567 fi
1568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1569 test $ac_status = 0; } && {
1570 test -z "$ac_c_werror_flag" ||
1571 test ! -s conftest.err
1572 } && test -s conftest$ac_exeext && {
1573 test "$cross_compiling" = yes ||
1574 $as_test_x conftest$ac_exeext
1575 }; then :
1576 ac_retval=0
1577else
1578 $as_echo "$as_me: failed program was:" >&5
1579sed 's/^/| /' conftest.$ac_ext >&5
1580
1581 ac_retval=1
1582fi
1583 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1584 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1585 # interfere with the next link command; also delete a directory that is
1586 # left behind by Apple's compiler. We do this before executing the actions.
1587 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1588 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1589 return $ac_retval
1590
1591} # ac_fn_c_try_link
1592
1593# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1594# -------------------------------------------------------
1595# Tests whether HEADER exists and can be compiled using the include files in
1596# INCLUDES, setting the cache variable VAR accordingly.
1597ac_fn_c_check_header_compile ()
1598{
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1601$as_echo_n "checking for $2... " >&6; }
1602if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1603 $as_echo_n "(cached) " >&6
1604else
1605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1606/* end confdefs.h. */
1607$4
1608#include <$2>
1609_ACEOF
1610if ac_fn_c_try_compile "$LINENO"; then :
1611 eval "$3=yes"
1612else
1613 eval "$3=no"
1614fi
1615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1616fi
1617eval ac_res=\$$3
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1619$as_echo "$ac_res" >&6; }
1620 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1621
1622} # ac_fn_c_check_header_compile
1623
1624# ac_fn_c_try_cpp LINENO
1625# ----------------------
1626# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1627ac_fn_c_try_cpp ()
1628{
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 if { { ac_try="$ac_cpp conftest.$ac_ext"
1631case "(($ac_try" in
1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633 *) ac_try_echo=$ac_try;;
1634esac
1635eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636$as_echo "$ac_try_echo"; } >&5
1637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1638 ac_status=$?
1639 if test -s conftest.err; then
1640 grep -v '^ *+' conftest.err >conftest.er1
1641 cat conftest.er1 >&5
1642 mv -f conftest.er1 conftest.err
1643 fi
1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645 test $ac_status = 0; } >/dev/null && {
1646 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1647 test ! -s conftest.err
1648 }; then :
1649 ac_retval=0
1650else
1651 $as_echo "$as_me: failed program was:" >&5
1652sed 's/^/| /' conftest.$ac_ext >&5
1653
1654 ac_retval=1
1655fi
1656 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1657 return $ac_retval
1658
1659} # ac_fn_c_try_cpp
1660
1661# ac_fn_c_try_run LINENO
1662# ----------------------
1663# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1664# that executables *can* be run.
1665ac_fn_c_try_run ()
1666{
1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668 if { { ac_try="$ac_link"
1669case "(($ac_try" in
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1672esac
1673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674$as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_link") 2>&5
1676 ac_status=$?
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1679 { { case "(($ac_try" in
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1682esac
1683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684$as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_try") 2>&5
1686 ac_status=$?
1687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688 test $ac_status = 0; }; }; then :
1689 ac_retval=0
1690else
1691 $as_echo "$as_me: program exited with status $ac_status" >&5
1692 $as_echo "$as_me: failed program was:" >&5
1693sed 's/^/| /' conftest.$ac_ext >&5
1694
1695 ac_retval=$ac_status
1696fi
1697 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1698 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1699 return $ac_retval
1700
1701} # ac_fn_c_try_run
1702
1703# ac_fn_c_check_func LINENO FUNC VAR
1704# ----------------------------------
1705# Tests whether FUNC exists, setting the cache variable VAR accordingly
1706ac_fn_c_check_func ()
1707{
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1710$as_echo_n "checking for $2... " >&6; }
1711if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1712 $as_echo_n "(cached) " >&6
1713else
1714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1715/* end confdefs.h. */
1716/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1718#define $2 innocuous_$2
1719
1720/* System header to define __stub macros and hopefully few prototypes,
1721 which can conflict with char $2 (); below.
1722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1723 <limits.h> exists even on freestanding compilers. */
1724
1725#ifdef __STDC__
1726# include <limits.h>
1727#else
1728# include <assert.h>
1729#endif
1730
1731#undef $2
1732
1733/* Override any GCC internal prototype to avoid an error.
1734 Use char because int might match the return type of a GCC
1735 builtin and then its argument prototype would still apply. */
1736#ifdef __cplusplus
1737extern "C"
1738#endif
1739char $2 ();
1740/* The GNU C library defines this for functions which it implements
1741 to always fail with ENOSYS. Some functions are actually named
1742 something starting with __ and the normal name is an alias. */
1743#if defined __stub_$2 || defined __stub___$2
1744choke me
1745#endif
1746
1747int
1748main ()
1749{
1750return $2 ();
1751 ;
1752 return 0;
1753}
1754_ACEOF
1755if ac_fn_c_try_link "$LINENO"; then :
1756 eval "$3=yes"
1757else
1758 eval "$3=no"
1759fi
1760rm -f core conftest.err conftest.$ac_objext \
1761 conftest$ac_exeext conftest.$ac_ext
1762fi
1763eval ac_res=\$$3
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1765$as_echo "$ac_res" >&6; }
1766 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1767
1768} # ac_fn_c_check_func
1769
1770# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1771# -------------------------------------------------------
1772# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1773# the include files in INCLUDES and setting the cache variable VAR
1774# accordingly.
1775ac_fn_c_check_header_mongrel ()
1776{
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780$as_echo_n "checking for $2... " >&6; }
1781if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1782 $as_echo_n "(cached) " >&6
1783fi
1784eval ac_res=\$$3
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786$as_echo "$ac_res" >&6; }
1787else
1788 # Is the header compilable?
1789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1790$as_echo_n "checking $2 usability... " >&6; }
1791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792/* end confdefs.h. */
1793$4
1794#include <$2>
1795_ACEOF
1796if ac_fn_c_try_compile "$LINENO"; then :
1797 ac_header_compiler=yes
1798else
1799 ac_header_compiler=no
1800fi
1801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1803$as_echo "$ac_header_compiler" >&6; }
1804
1805# Is the header present?
1806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1807$as_echo_n "checking $2 presence... " >&6; }
1808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809/* end confdefs.h. */
1810#include <$2>
1811_ACEOF
1812if ac_fn_c_try_cpp "$LINENO"; then :
1813 ac_header_preproc=yes
1814else
1815 ac_header_preproc=no
1816fi
1817rm -f conftest.err conftest.$ac_ext
1818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1819$as_echo "$ac_header_preproc" >&6; }
1820
1821# So? What about this header?
1822case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1823 yes:no: )
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1825$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1827$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1828 ;;
1829 no:yes:* )
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1831$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1833$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1835$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1837$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1839$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1840 ;;
1841esac
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1843$as_echo_n "checking for $2... " >&6; }
1844if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1845 $as_echo_n "(cached) " >&6
1846else
1847 eval "$3=\$ac_header_compiler"
1848fi
1849eval ac_res=\$$3
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1851$as_echo "$ac_res" >&6; }
1852fi
1853 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1854
1855} # ac_fn_c_check_header_mongrel
1856
1857# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1858# -------------------------------------------
1859# Tests whether TYPE exists after having included INCLUDES, setting cache
1860# variable VAR accordingly.
1861ac_fn_c_check_type ()
1862{
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1865$as_echo_n "checking for $2... " >&6; }
1866if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1867 $as_echo_n "(cached) " >&6
1868else
1869 eval "$3=no"
1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871/* end confdefs.h. */
1872$4
1873int
1874main ()
1875{
1876if (sizeof ($2))
1877 return 0;
1878 ;
1879 return 0;
1880}
1881_ACEOF
1882if ac_fn_c_try_compile "$LINENO"; then :
1883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884/* end confdefs.h. */
1885$4
1886int
1887main ()
1888{
1889if (sizeof (($2)))
1890 return 0;
1891 ;
1892 return 0;
1893}
1894_ACEOF
1895if ac_fn_c_try_compile "$LINENO"; then :
1896
1897else
1898 eval "$3=yes"
1899fi
1900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1901fi
1902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1903fi
1904eval ac_res=\$$3
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1906$as_echo "$ac_res" >&6; }
1907 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1908
1909} # ac_fn_c_check_type
1910cat >config.log <<_ACEOF
1911This file contains any messages produced by compilers while
1912running configure, to aid debugging if configure makes a mistake.
1913
1914It was created by package-unused $as_me version-unused, which was
1915generated by GNU Autoconf 2.64. Invocation command line was
1916
1917 $ $0 $@
1918
1919_ACEOF
1920exec 5>>config.log
1921{
1922cat <<_ASUNAME
1923## --------- ##
1924## Platform. ##
1925## --------- ##
1926
1927hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1928uname -m = `(uname -m) 2>/dev/null || echo unknown`
1929uname -r = `(uname -r) 2>/dev/null || echo unknown`
1930uname -s = `(uname -s) 2>/dev/null || echo unknown`
1931uname -v = `(uname -v) 2>/dev/null || echo unknown`
1932
1933/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1934/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1935
1936/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1937/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1938/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1939/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1940/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1941/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1942/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1943
1944_ASUNAME
1945
1946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1947for as_dir in $PATH
1948do
1949 IFS=$as_save_IFS
1950 test -z "$as_dir" && as_dir=.
1951 $as_echo "PATH: $as_dir"
1952 done
1953IFS=$as_save_IFS
1954
1955} >&5
1956
1957cat >&5 <<_ACEOF
1958
1959
1960## ----------- ##
1961## Core tests. ##
1962## ----------- ##
1963
1964_ACEOF
1965
1966
1967# Keep a trace of the command line.
1968# Strip out --no-create and --no-recursion so they do not pile up.
1969# Strip out --silent because we don't want to record it for future runs.
1970# Also quote any args containing shell meta-characters.
1971# Make two passes to allow for proper duplicate-argument suppression.
1972ac_configure_args=
1973ac_configure_args0=
1974ac_configure_args1=
1975ac_must_keep_next=false
1976for ac_pass in 1 2
1977do
1978 for ac_arg
1979 do
1980 case $ac_arg in
1981 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1982 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1983 | -silent | --silent | --silen | --sile | --sil)
1984 continue ;;
1985 *\'*)
1986 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1987 esac
1988 case $ac_pass in
1989 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1990 2)
1991 as_fn_append ac_configure_args1 " '$ac_arg'"
1992 if test $ac_must_keep_next = true; then
1993 ac_must_keep_next=false # Got value, back to normal.
1994 else
1995 case $ac_arg in
1996 *=* | --config-cache | -C | -disable-* | --disable-* \
1997 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1998 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1999 | -with-* | --with-* | -without-* | --without-* | --x)
2000 case "$ac_configure_args0 " in
2001 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2002 esac
2003 ;;
2004 -* ) ac_must_keep_next=true ;;
2005 esac
2006 fi
2007 as_fn_append ac_configure_args " '$ac_arg'"
2008 ;;
2009 esac
2010 done
2011done
2012{ ac_configure_args0=; unset ac_configure_args0;}
2013{ ac_configure_args1=; unset ac_configure_args1;}
2014
2015# When interrupted or exit'd, cleanup temporary files, and complete
2016# config.log. We remove comments because anyway the quotes in there
2017# would cause problems or look ugly.
2018# WARNING: Use '\'' to represent an apostrophe within the trap.
2019# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2020trap 'exit_status=$?
2021 # Save into config.log some information that might help in debugging.
2022 {
2023 echo
2024
2025 cat <<\_ASBOX
2026## ---------------- ##
2027## Cache variables. ##
2028## ---------------- ##
2029_ASBOX
2030 echo
2031 # The following way of writing the cache mishandles newlines in values,
2032(
2033 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2034 eval ac_val=\$$ac_var
2035 case $ac_val in #(
2036 *${as_nl}*)
2037 case $ac_var in #(
2038 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2039$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2040 esac
2041 case $ac_var in #(
2042 _ | IFS | as_nl) ;; #(
2043 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2044 *) { eval $ac_var=; unset $ac_var;} ;;
2045 esac ;;
2046 esac
2047 done
2048 (set) 2>&1 |
2049 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2050 *${as_nl}ac_space=\ *)
2051 sed -n \
2052 "s/'\''/'\''\\\\'\'''\''/g;
2053 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2054 ;; #(
2055 *)
2056 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2057 ;;
2058 esac |
2059 sort
2060)
2061 echo
2062
2063 cat <<\_ASBOX
2064## ----------------- ##
2065## Output variables. ##
2066## ----------------- ##
2067_ASBOX
2068 echo
2069 for ac_var in $ac_subst_vars
2070 do
2071 eval ac_val=\$$ac_var
2072 case $ac_val in
2073 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2074 esac
2075 $as_echo "$ac_var='\''$ac_val'\''"
2076 done | sort
2077 echo
2078
2079 if test -n "$ac_subst_files"; then
2080 cat <<\_ASBOX
2081## ------------------- ##
2082## File substitutions. ##
2083## ------------------- ##
2084_ASBOX
2085 echo
2086 for ac_var in $ac_subst_files
2087 do
2088 eval ac_val=\$$ac_var
2089 case $ac_val in
2090 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2091 esac
2092 $as_echo "$ac_var='\''$ac_val'\''"
2093 done | sort
2094 echo
2095 fi
2096
2097 if test -s confdefs.h; then
2098 cat <<\_ASBOX
2099## ----------- ##
2100## confdefs.h. ##
2101## ----------- ##
2102_ASBOX
2103 echo
2104 cat confdefs.h
2105 echo
2106 fi
2107 test "$ac_signal" != 0 &&
2108 $as_echo "$as_me: caught signal $ac_signal"
2109 $as_echo "$as_me: exit $exit_status"
2110 } >&5
2111 rm -f core *.core core.conftest.* &&
2112 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2113 exit $exit_status
2114' 0
2115for ac_signal in 1 2 13 15; do
2116 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2117done
2118ac_signal=0
2119
2120# confdefs.h avoids OS command line length limits that DEFS can exceed.
2121rm -f -r conftest* confdefs.h
2122
2123$as_echo "/* confdefs.h */" > confdefs.h
2124
2125# Predefined preprocessor variables.
2126
2127cat >>confdefs.h <<_ACEOF
2128#define PACKAGE_NAME "$PACKAGE_NAME"
2129_ACEOF
2130
2131cat >>confdefs.h <<_ACEOF
2132#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2133_ACEOF
2134
2135cat >>confdefs.h <<_ACEOF
2136#define PACKAGE_VERSION "$PACKAGE_VERSION"
2137_ACEOF
2138
2139cat >>confdefs.h <<_ACEOF
2140#define PACKAGE_STRING "$PACKAGE_STRING"
2141_ACEOF
2142
2143cat >>confdefs.h <<_ACEOF
2144#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2145_ACEOF
2146
2147cat >>confdefs.h <<_ACEOF
2148#define PACKAGE_URL "$PACKAGE_URL"
2149_ACEOF
2150
2151
2152# Let the site file select an alternate cache file if it wants to.
2153# Prefer an explicitly selected file to automatically selected ones.
2154ac_site_file1=NONE
2155ac_site_file2=NONE
2156if test -n "$CONFIG_SITE"; then
2157 ac_site_file1=$CONFIG_SITE
2158elif test "x$prefix" != xNONE; then
2159 ac_site_file1=$prefix/share/config.site
2160 ac_site_file2=$prefix/etc/config.site
2161else
2162 ac_site_file1=$ac_default_prefix/share/config.site
2163 ac_site_file2=$ac_default_prefix/etc/config.site
2164fi
2165for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2166do
2167 test "x$ac_site_file" = xNONE && continue
2168 if test -r "$ac_site_file"; then
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2170$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2171 sed 's/^/| /' "$ac_site_file" >&5
2172 . "$ac_site_file"
2173 fi
2174done
2175
2176if test -r "$cache_file"; then
2177 # Some versions of bash will fail to source /dev/null (special
2178 # files actually), so we avoid doing that.
2179 if test -f "$cache_file"; then
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2181$as_echo "$as_me: loading cache $cache_file" >&6;}
2182 case $cache_file in
2183 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2184 *) . "./$cache_file";;
2185 esac
2186 fi
2187else
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2189$as_echo "$as_me: creating cache $cache_file" >&6;}
2190 >$cache_file
2191fi
2192
2193# Check that the precious variables saved in the cache have kept the same
2194# value.
2195ac_cache_corrupted=false
2196for ac_var in $ac_precious_vars; do
2197 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2198 eval ac_new_set=\$ac_env_${ac_var}_set
2199 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2200 eval ac_new_val=\$ac_env_${ac_var}_value
2201 case $ac_old_set,$ac_new_set in
2202 set,)
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2204$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2205 ac_cache_corrupted=: ;;
2206 ,set)
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2208$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2209 ac_cache_corrupted=: ;;
2210 ,);;
2211 *)
2212 if test "x$ac_old_val" != "x$ac_new_val"; then
2213 # differences in whitespace do not lead to failure.
2214 ac_old_val_w=`echo x $ac_old_val`
2215 ac_new_val_w=`echo x $ac_new_val`
2216 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2218$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2219 ac_cache_corrupted=:
2220 else
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2222$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2223 eval $ac_var=\$ac_old_val
2224 fi
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2226$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2228$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2229 fi;;
2230 esac
2231 # Pass precious variables to config.status.
2232 if test "$ac_new_set" = set; then
2233 case $ac_new_val in
2234 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2235 *) ac_arg=$ac_var=$ac_new_val ;;
2236 esac
2237 case " $ac_configure_args " in
2238 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2239 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2240 esac
2241 fi
2242done
2243if $ac_cache_corrupted; then
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2245$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2247$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2248 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2249fi
2250## -------------------- ##
2251## Main body of script. ##
2252## -------------------- ##
2253
2254ac_ext=c
2255ac_cpp='$CPP $CPPFLAGS'
2256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2258ac_compiler_gnu=$ac_cv_c_compiler_gnu
2259
2260
2261
2262
2263
2264
2265ac_config_headers="$ac_config_headers config.h"
2266
2267
2268libtool_VERSION=1:0:0
2269
2270
2271# Default to --enable-multilib
2272# Check whether --enable-multilib was given.
2273if test "${enable_multilib+set}" = set; then :
2274 enableval=$enable_multilib; case "$enableval" in
2275 yes) multilib=yes ;;
2276 no) multilib=no ;;
2277 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2278 esac
2279else
2280 multilib=yes
2281fi
2282
2283
2284# We may get other options which we leave undocumented:
2285# --with-target-subdir, --with-multisrctop, --with-multisubdir
2286# See config-ml.in if you want the gory details.
2287
2288if test "$srcdir" = "."; then
2289 if test "$with_target_subdir" != "."; then
2290 multi_basedir="$srcdir/$with_multisrctop../.."
2291 else
2292 multi_basedir="$srcdir/$with_multisrctop.."
2293 fi
2294else
2295 multi_basedir="$srcdir/.."
2296fi
2297
2298
2299# Even if the default multilib is not a cross compilation,
2300# it may be that some of the other multilibs are.
2301if test $cross_compiling = no && test $multilib = yes \
2302 && test "x${with_multisubdir}" != x ; then
2303 cross_compiling=maybe
2304fi
2305
2306ac_config_commands="$ac_config_commands default-1"
2307
2308
2309ac_aux_dir=
2310for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2311 for ac_t in install-sh install.sh shtool; do
2312 if test -f "$ac_dir/$ac_t"; then
2313 ac_aux_dir=$ac_dir
2314 ac_install_sh="$ac_aux_dir/$ac_t -c"
2315 break 2
2316 fi
2317 done
2318done
2319if test -z "$ac_aux_dir"; then
2320 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2321fi
2322
2323# These three variables are undocumented and unsupported,
2324# and are intended to be withdrawn in a future Autoconf release.
2325# They can cause serious problems if a builder's source tree is in a directory
2326# whose full name contains unusual characters.
2327ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2328ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2329ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2330
2331
2332# Make sure we can run config.sub.
2333$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2334 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2335
2336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2337$as_echo_n "checking build system type... " >&6; }
2338if test "${ac_cv_build+set}" = set; then :
2339 $as_echo_n "(cached) " >&6
2340else
2341 ac_build_alias=$build_alias
2342test "x$ac_build_alias" = x &&
2343 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2344test "x$ac_build_alias" = x &&
2345 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2346ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2347 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2348
2349fi
2350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2351$as_echo "$ac_cv_build" >&6; }
2352case $ac_cv_build in
2353*-*-*) ;;
2354*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2355esac
2356build=$ac_cv_build
2357ac_save_IFS=$IFS; IFS='-'
2358set x $ac_cv_build
2359shift
2360build_cpu=$1
2361build_vendor=$2
2362shift; shift
2363# Remember, the first character of IFS is used to create $*,
2364# except with old shells:
2365build_os=$*
2366IFS=$ac_save_IFS
2367case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2368
2369
2370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2371$as_echo_n "checking host system type... " >&6; }
2372if test "${ac_cv_host+set}" = set; then :
2373 $as_echo_n "(cached) " >&6
2374else
2375 if test "x$host_alias" = x; then
2376 ac_cv_host=$ac_cv_build
2377else
2378 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2379 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2380fi
2381
2382fi
2383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2384$as_echo "$ac_cv_host" >&6; }
2385case $ac_cv_host in
2386*-*-*) ;;
2387*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2388esac
2389host=$ac_cv_host
2390ac_save_IFS=$IFS; IFS='-'
2391set x $ac_cv_host
2392shift
2393host_cpu=$1
2394host_vendor=$2
2395shift; shift
2396# Remember, the first character of IFS is used to create $*,
2397# except with old shells:
2398host_os=$*
2399IFS=$ac_save_IFS
2400case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2401
2402
2403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2404$as_echo_n "checking target system type... " >&6; }
2405if test "${ac_cv_target+set}" = set; then :
2406 $as_echo_n "(cached) " >&6
2407else
2408 if test "x$target_alias" = x; then
2409 ac_cv_target=$ac_cv_host
2410else
2411 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2412 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2413fi
2414
2415fi
2416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2417$as_echo "$ac_cv_target" >&6; }
2418case $ac_cv_target in
2419*-*-*) ;;
2420*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2421esac
2422target=$ac_cv_target
2423ac_save_IFS=$IFS; IFS='-'
2424set x $ac_cv_target
2425shift
2426target_cpu=$1
2427target_vendor=$2
2428shift; shift
2429# Remember, the first character of IFS is used to create $*,
2430# except with old shells:
2431target_os=$*
2432IFS=$ac_save_IFS
2433case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2434
2435
2436# The aliases save the names the user supplied, while $host etc.
2437# will get canonicalized.
2438test -n "$target_alias" &&
2439 test "$program_prefix$program_suffix$program_transform_name" = \
2440 NONENONEs,x,x, &&
2441 program_prefix=${target_alias}-
2442
2443target_alias=${target_alias-$host_alias}
2444
2445am__api_version='1.11'
2446
2447# Find a good install program. We prefer a C program (faster),
2448# so one script is as good as another. But avoid the broken or
2449# incompatible versions:
2450# SysV /etc/install, /usr/sbin/install
2451# SunOS /usr/etc/install
2452# IRIX /sbin/install
2453# AIX /bin/install
2454# AmigaOS /C/install, which installs bootblocks on floppy discs
2455# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2456# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2457# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2458# OS/2's system install, which has a completely different semantic
2459# ./install, which can be erroneously created by make from ./install.sh.
2460# Reject install programs that cannot install multiple files.
2461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2462$as_echo_n "checking for a BSD-compatible install... " >&6; }
2463if test -z "$INSTALL"; then
2464if test "${ac_cv_path_install+set}" = set; then :
2465 $as_echo_n "(cached) " >&6
2466else
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468for as_dir in $PATH
2469do
2470 IFS=$as_save_IFS
2471 test -z "$as_dir" && as_dir=.
2472 # Account for people who put trailing slashes in PATH elements.
2473case $as_dir/ in #((
2474 ./ | .// | /[cC]/* | \
2475 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2476 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2477 /usr/ucb/* ) ;;
2478 *)
2479 # OSF1 and SCO ODT 3.0 have their own names for install.
2480 # Don't use installbsd from OSF since it installs stuff as root
2481 # by default.
2482 for ac_prog in ginstall scoinst install; do
2483 for ac_exec_ext in '' $ac_executable_extensions; do
2484 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2485 if test $ac_prog = install &&
2486 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2487 # AIX install. It has an incompatible calling convention.
2488 :
2489 elif test $ac_prog = install &&
2490 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2491 # program-specific install script used by HP pwplus--don't use.
2492 :
2493 else
2494 rm -rf conftest.one conftest.two conftest.dir
2495 echo one > conftest.one
2496 echo two > conftest.two
2497 mkdir conftest.dir
2498 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2499 test -s conftest.one && test -s conftest.two &&
2500 test -s conftest.dir/conftest.one &&
2501 test -s conftest.dir/conftest.two
2502 then
2503 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2504 break 3
2505 fi
2506 fi
2507 fi
2508 done
2509 done
2510 ;;
2511esac
2512
2513 done
2514IFS=$as_save_IFS
2515
2516rm -rf conftest.one conftest.two conftest.dir
2517
2518fi
2519 if test "${ac_cv_path_install+set}" = set; then
2520 INSTALL=$ac_cv_path_install
2521 else
2522 # As a last resort, use the slow shell script. Don't cache a
2523 # value for INSTALL within a source directory, because that will
2524 # break other packages using the cache if that directory is
2525 # removed, or if the value is a relative name.
2526 INSTALL=$ac_install_sh
2527 fi
2528fi
2529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2530$as_echo "$INSTALL" >&6; }
2531
2532# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2533# It thinks the first close brace ends the variable substitution.
2534test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2535
2536test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2537
2538test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2539
2540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2541$as_echo_n "checking whether build environment is sane... " >&6; }
2542# Just in case
2543sleep 1
2544echo timestamp > conftest.file
2545# Reject unsafe characters in $srcdir or the absolute working directory
2546# name. Accept space and tab only in the latter.
2547am_lf='
2548'
2549case `pwd` in
2550 *[\\\"\#\$\&\'\`$am_lf]*)
2551 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2552esac
2553case $srcdir in
2554 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2555 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2556esac
2557
2558# Do `set' in a subshell so we don't clobber the current shell's
2559# arguments. Must try -L first in case configure is actually a
2560# symlink; some systems play weird games with the mod time of symlinks
2561# (eg FreeBSD returns the mod time of the symlink's containing
2562# directory).
2563if (
2564 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2565 if test "$*" = "X"; then
2566 # -L didn't work.
2567 set X `ls -t "$srcdir/configure" conftest.file`
2568 fi
2569 rm -f conftest.file
2570 if test "$*" != "X $srcdir/configure conftest.file" \
2571 && test "$*" != "X conftest.file $srcdir/configure"; then
2572
2573 # If neither matched, then we have a broken ls. This can happen
2574 # if, for instance, CONFIG_SHELL is bash and it inherits a
2575 # broken ls alias from the environment. This has actually
2576 # happened. Such a system could not be considered "sane".
2577 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2578alias in your environment" "$LINENO" 5
2579 fi
2580
2581 test "$2" = conftest.file
2582 )
2583then
2584 # Ok.
2585 :
2586else
2587 as_fn_error "newly created file is older than distributed files!
2588Check your system clock" "$LINENO" 5
2589fi
2590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2591$as_echo "yes" >&6; }
2592test "$program_prefix" != NONE &&
2593 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2594# Use a double $ so make ignores it.
2595test "$program_suffix" != NONE &&
2596 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2597# Double any \ or $.
2598# By default was `s,x,x', remove it if useless.
2599ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2600program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2601
2602# expand $ac_aux_dir to an absolute path
2603am_aux_dir=`cd $ac_aux_dir && pwd`
2604
2605if test x"${MISSING+set}" != xset; then
2606 case $am_aux_dir in
2607 *\ * | *\ *)
2608 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2609 *)
2610 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2611 esac
2612fi
2613# Use eval to expand $SHELL
2614if eval "$MISSING --run true"; then
2615 am_missing_run="$MISSING --run "
2616else
2617 am_missing_run=
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2619$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2620fi
2621
2622if test x"${install_sh}" != xset; then
2623 case $am_aux_dir in
2624 *\ * | *\ *)
2625 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2626 *)
2627 install_sh="\${SHELL} $am_aux_dir/install-sh"
2628 esac
2629fi
2630
2631# Installed binaries are usually stripped using `strip' when the user
2632# run `make install-strip'. However `strip' might not be the right
2633# tool to use in cross-compilation environments, therefore Automake
2634# will honor the `STRIP' environment variable to overrule this program.
2635if test "$cross_compiling" != no; then
2636 if test -n "$ac_tool_prefix"; then
2637 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2638set dummy ${ac_tool_prefix}strip; ac_word=$2
2639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2640$as_echo_n "checking for $ac_word... " >&6; }
2641if test "${ac_cv_prog_STRIP+set}" = set; then :
2642 $as_echo_n "(cached) " >&6
2643else
2644 if test -n "$STRIP"; then
2645 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2646else
2647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648for as_dir in $PATH
2649do
2650 IFS=$as_save_IFS
2651 test -z "$as_dir" && as_dir=.
2652 for ac_exec_ext in '' $ac_executable_extensions; do
2653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2654 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2656 break 2
2657 fi
2658done
2659 done
2660IFS=$as_save_IFS
2661
2662fi
2663fi
2664STRIP=$ac_cv_prog_STRIP
2665if test -n "$STRIP"; then
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2667$as_echo "$STRIP" >&6; }
2668else
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2670$as_echo "no" >&6; }
2671fi
2672
2673
2674fi
2675if test -z "$ac_cv_prog_STRIP"; then
2676 ac_ct_STRIP=$STRIP
2677 # Extract the first word of "strip", so it can be a program name with args.
2678set dummy strip; ac_word=$2
2679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2680$as_echo_n "checking for $ac_word... " >&6; }
2681if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2682 $as_echo_n "(cached) " >&6
2683else
2684 if test -n "$ac_ct_STRIP"; then
2685 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2686else
2687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688for as_dir in $PATH
2689do
2690 IFS=$as_save_IFS
2691 test -z "$as_dir" && as_dir=.
2692 for ac_exec_ext in '' $ac_executable_extensions; do
2693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2694 ac_cv_prog_ac_ct_STRIP="strip"
2695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2696 break 2
2697 fi
2698done
2699 done
2700IFS=$as_save_IFS
2701
2702fi
2703fi
2704ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2705if test -n "$ac_ct_STRIP"; then
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2707$as_echo "$ac_ct_STRIP" >&6; }
2708else
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2710$as_echo "no" >&6; }
2711fi
2712
2713 if test "x$ac_ct_STRIP" = x; then
2714 STRIP=":"
2715 else
2716 case $cross_compiling:$ac_tool_warned in
2717yes:)
2718{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2719$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2720ac_tool_warned=yes ;;
2721esac
2722 STRIP=$ac_ct_STRIP
2723 fi
2724else
2725 STRIP="$ac_cv_prog_STRIP"
2726fi
2727
2728fi
2729INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2730
2731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2732$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2733if test -z "$MKDIR_P"; then
2734 if test "${ac_cv_path_mkdir+set}" = set; then :
2735 $as_echo_n "(cached) " >&6
2736else
2737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2739do
2740 IFS=$as_save_IFS
2741 test -z "$as_dir" && as_dir=.
2742 for ac_prog in mkdir gmkdir; do
2743 for ac_exec_ext in '' $ac_executable_extensions; do
2744 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2745 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2746 'mkdir (GNU coreutils) '* | \
2747 'mkdir (coreutils) '* | \
2748 'mkdir (fileutils) '4.1*)
2749 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2750 break 3;;
2751 esac
2752 done
2753 done
2754 done
2755IFS=$as_save_IFS
2756
2757fi
2758
2759 if test "${ac_cv_path_mkdir+set}" = set; then
2760 MKDIR_P="$ac_cv_path_mkdir -p"
2761 else
2762 # As a last resort, use the slow shell script. Don't cache a
2763 # value for MKDIR_P within a source directory, because that will
2764 # break other packages using the cache if that directory is
2765 # removed, or if the value is a relative name.
2766 test -d ./--version && rmdir ./--version
2767 MKDIR_P="$ac_install_sh -d"
2768 fi
2769fi
2770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2771$as_echo "$MKDIR_P" >&6; }
2772
2773mkdir_p="$MKDIR_P"
2774case $mkdir_p in
2775 [\\/$]* | ?:[\\/]*) ;;
2776 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2777esac
2778
2779for ac_prog in gawk mawk nawk awk
2780do
2781 # Extract the first word of "$ac_prog", so it can be a program name with args.
2782set dummy $ac_prog; ac_word=$2
2783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2784$as_echo_n "checking for $ac_word... " >&6; }
2785if test "${ac_cv_prog_AWK+set}" = set; then :
2786 $as_echo_n "(cached) " >&6
2787else
2788 if test -n "$AWK"; then
2789 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2790else
2791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792for as_dir in $PATH
2793do
2794 IFS=$as_save_IFS
2795 test -z "$as_dir" && as_dir=.
2796 for ac_exec_ext in '' $ac_executable_extensions; do
2797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2798 ac_cv_prog_AWK="$ac_prog"
2799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2800 break 2
2801 fi
2802done
2803 done
2804IFS=$as_save_IFS
2805
2806fi
2807fi
2808AWK=$ac_cv_prog_AWK
2809if test -n "$AWK"; then
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2811$as_echo "$AWK" >&6; }
2812else
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2814$as_echo "no" >&6; }
2815fi
2816
2817
2818 test -n "$AWK" && break
2819done
2820
2821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2822$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2823set x ${MAKE-make}
2824ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2825if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2826 $as_echo_n "(cached) " >&6
2827else
2828 cat >conftest.make <<\_ACEOF
2829SHELL = /bin/sh
2830all:
2831 @echo '@@@%%%=$(MAKE)=@@@%%%'
2832_ACEOF
2833# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2834case `${MAKE-make} -f conftest.make 2>/dev/null` in
2835 *@@@%%%=?*=@@@%%%*)
2836 eval ac_cv_prog_make_${ac_make}_set=yes;;
2837 *)
2838 eval ac_cv_prog_make_${ac_make}_set=no;;
2839esac
2840rm -f conftest.make
2841fi
2842if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2844$as_echo "yes" >&6; }
2845 SET_MAKE=
2846else
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2848$as_echo "no" >&6; }
2849 SET_MAKE="MAKE=${MAKE-make}"
2850fi
2851
2852rm -rf .tst 2>/dev/null
2853mkdir .tst 2>/dev/null
2854if test -d .tst; then
2855 am__leading_dot=.
2856else
2857 am__leading_dot=_
2858fi
2859rmdir .tst 2>/dev/null
2860
2861if test "`cd $srcdir && pwd`" != "`pwd`"; then
2862 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2863 # is not polluted with repeated "-I."
2864 am__isrc=' -I$(srcdir)'
2865 # test to see if srcdir already configured
2866 if test -f $srcdir/config.status; then
2867 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2868 fi
2869fi
2870
2871# test whether we have cygpath
2872if test -z "$CYGPATH_W"; then
2873 if (cygpath --version) >/dev/null 2>/dev/null; then
2874 CYGPATH_W='cygpath -w'
2875 else
2876 CYGPATH_W=echo
2877 fi
2878fi
2879
2880
2881# Define the identity of the package.
2882 PACKAGE='libgo'
2883 VERSION='version-unused'
2884
2885
2886# Some tools Automake needs.
2887
2888ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2889
2890
2891AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2892
2893
2894AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2895
2896
2897AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2898
2899
2900MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2901
2902# We need awk for the "check" target. The system "awk" is bad on
2903# some platforms.
2904# Always define AMTAR for backward compatibility.
2905
2906AMTAR=${AMTAR-"${am_missing_run}tar"}
2907
2908am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919ac_ext=c
2920ac_cpp='$CPP $CPPFLAGS'
2921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2923ac_compiler_gnu=$ac_cv_c_compiler_gnu
2924if test -n "$ac_tool_prefix"; then
2925 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2926set dummy ${ac_tool_prefix}gcc; ac_word=$2
2927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2928$as_echo_n "checking for $ac_word... " >&6; }
2929if test "${ac_cv_prog_CC+set}" = set; then :
2930 $as_echo_n "(cached) " >&6
2931else
2932 if test -n "$CC"; then
2933 ac_cv_prog_CC="$CC" # Let the user override the test.
2934else
2935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936for as_dir in $PATH
2937do
2938 IFS=$as_save_IFS
2939 test -z "$as_dir" && as_dir=.
2940 for ac_exec_ext in '' $ac_executable_extensions; do
2941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2942 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2944 break 2
2945 fi
2946done
2947 done
2948IFS=$as_save_IFS
2949
2950fi
2951fi
2952CC=$ac_cv_prog_CC
2953if test -n "$CC"; then
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2955$as_echo "$CC" >&6; }
2956else
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2958$as_echo "no" >&6; }
2959fi
2960
2961
2962fi
2963if test -z "$ac_cv_prog_CC"; then
2964 ac_ct_CC=$CC
2965 # Extract the first word of "gcc", so it can be a program name with args.
2966set dummy gcc; ac_word=$2
2967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2968$as_echo_n "checking for $ac_word... " >&6; }
2969if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2970 $as_echo_n "(cached) " >&6
2971else
2972 if test -n "$ac_ct_CC"; then
2973 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2974else
2975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976for as_dir in $PATH
2977do
2978 IFS=$as_save_IFS
2979 test -z "$as_dir" && as_dir=.
2980 for ac_exec_ext in '' $ac_executable_extensions; do
2981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2982 ac_cv_prog_ac_ct_CC="gcc"
2983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2984 break 2
2985 fi
2986done
2987 done
2988IFS=$as_save_IFS
2989
2990fi
2991fi
2992ac_ct_CC=$ac_cv_prog_ac_ct_CC
2993if test -n "$ac_ct_CC"; then
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2995$as_echo "$ac_ct_CC" >&6; }
2996else
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2998$as_echo "no" >&6; }
2999fi
3000
3001 if test "x$ac_ct_CC" = x; then
3002 CC=""
3003 else
3004 case $cross_compiling:$ac_tool_warned in
3005yes:)
3006{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3007$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3008ac_tool_warned=yes ;;
3009esac
3010 CC=$ac_ct_CC
3011 fi
3012else
3013 CC="$ac_cv_prog_CC"
3014fi
3015
3016if test -z "$CC"; then
3017 if test -n "$ac_tool_prefix"; then
3018 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3019set dummy ${ac_tool_prefix}cc; ac_word=$2
3020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3021$as_echo_n "checking for $ac_word... " >&6; }
3022if test "${ac_cv_prog_CC+set}" = set; then :
3023 $as_echo_n "(cached) " >&6
3024else
3025 if test -n "$CC"; then
3026 ac_cv_prog_CC="$CC" # Let the user override the test.
3027else
3028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029for as_dir in $PATH
3030do
3031 IFS=$as_save_IFS
3032 test -z "$as_dir" && as_dir=.
3033 for ac_exec_ext in '' $ac_executable_extensions; do
3034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3035 ac_cv_prog_CC="${ac_tool_prefix}cc"
3036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3037 break 2
3038 fi
3039done
3040 done
3041IFS=$as_save_IFS
3042
3043fi
3044fi
3045CC=$ac_cv_prog_CC
3046if test -n "$CC"; then
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3048$as_echo "$CC" >&6; }
3049else
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3051$as_echo "no" >&6; }
3052fi
3053
3054
3055 fi
3056fi
3057if test -z "$CC"; then
3058 # Extract the first word of "cc", so it can be a program name with args.
3059set dummy cc; ac_word=$2
3060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3061$as_echo_n "checking for $ac_word... " >&6; }
3062if test "${ac_cv_prog_CC+set}" = set; then :
3063 $as_echo_n "(cached) " >&6
3064else
3065 if test -n "$CC"; then
3066 ac_cv_prog_CC="$CC" # Let the user override the test.
3067else
3068 ac_prog_rejected=no
3069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070for as_dir in $PATH
3071do
3072 IFS=$as_save_IFS
3073 test -z "$as_dir" && as_dir=.
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3076 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3077 ac_prog_rejected=yes
3078 continue
3079 fi
3080 ac_cv_prog_CC="cc"
3081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3082 break 2
3083 fi
3084done
3085 done
3086IFS=$as_save_IFS
3087
3088if test $ac_prog_rejected = yes; then
3089 # We found a bogon in the path, so make sure we never use it.
3090 set dummy $ac_cv_prog_CC
3091 shift
3092 if test $# != 0; then
3093 # We chose a different compiler from the bogus one.
3094 # However, it has the same basename, so the bogon will be chosen
3095 # first if we set CC to just the basename; use the full file name.
3096 shift
3097 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3098 fi
3099fi
3100fi
3101fi
3102CC=$ac_cv_prog_CC
3103if test -n "$CC"; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3105$as_echo "$CC" >&6; }
3106else
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108$as_echo "no" >&6; }
3109fi
3110
3111
3112fi
3113if test -z "$CC"; then
3114 if test -n "$ac_tool_prefix"; then
3115 for ac_prog in cl.exe
3116 do
3117 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3118set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3120$as_echo_n "checking for $ac_word... " >&6; }
3121if test "${ac_cv_prog_CC+set}" = set; then :
3122 $as_echo_n "(cached) " >&6
3123else
3124 if test -n "$CC"; then
3125 ac_cv_prog_CC="$CC" # Let the user override the test.
3126else
3127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128for as_dir in $PATH
3129do
3130 IFS=$as_save_IFS
3131 test -z "$as_dir" && as_dir=.
3132 for ac_exec_ext in '' $ac_executable_extensions; do
3133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3134 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3136 break 2
3137 fi
3138done
3139 done
3140IFS=$as_save_IFS
3141
3142fi
3143fi
3144CC=$ac_cv_prog_CC
3145if test -n "$CC"; then
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3147$as_echo "$CC" >&6; }
3148else
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150$as_echo "no" >&6; }
3151fi
3152
3153
3154 test -n "$CC" && break
3155 done
3156fi
3157if test -z "$CC"; then
3158 ac_ct_CC=$CC
3159 for ac_prog in cl.exe
3160do
3161 # Extract the first word of "$ac_prog", so it can be a program name with args.
3162set dummy $ac_prog; ac_word=$2
3163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3164$as_echo_n "checking for $ac_word... " >&6; }
3165if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3166 $as_echo_n "(cached) " >&6
3167else
3168 if test -n "$ac_ct_CC"; then
3169 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3170else
3171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172for as_dir in $PATH
3173do
3174 IFS=$as_save_IFS
3175 test -z "$as_dir" && as_dir=.
3176 for ac_exec_ext in '' $ac_executable_extensions; do
3177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3178 ac_cv_prog_ac_ct_CC="$ac_prog"
3179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3180 break 2
3181 fi
3182done
3183 done
3184IFS=$as_save_IFS
3185
3186fi
3187fi
3188ac_ct_CC=$ac_cv_prog_ac_ct_CC
3189if test -n "$ac_ct_CC"; then
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3191$as_echo "$ac_ct_CC" >&6; }
3192else
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3194$as_echo "no" >&6; }
3195fi
3196
3197
3198 test -n "$ac_ct_CC" && break
3199done
3200
3201 if test "x$ac_ct_CC" = x; then
3202 CC=""
3203 else
3204 case $cross_compiling:$ac_tool_warned in
3205yes:)
3206{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3207$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3208ac_tool_warned=yes ;;
3209esac
3210 CC=$ac_ct_CC
3211 fi
3212fi
3213
3214fi
3215
3216
3217test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3218$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3219as_fn_error "no acceptable C compiler found in \$PATH
3220See \`config.log' for more details." "$LINENO" 5; }
3221
3222# Provide some information about the compiler.
3223$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3224set X $ac_compile
3225ac_compiler=$2
3226for ac_option in --version -v -V -qversion; do
3227 { { ac_try="$ac_compiler $ac_option >&5"
3228case "(($ac_try" in
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3231esac
3232eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3233$as_echo "$ac_try_echo"; } >&5
3234 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3235 ac_status=$?
3236 if test -s conftest.err; then
3237 sed '10a\
3238... rest of stderr output deleted ...
3239 10q' conftest.err >conftest.er1
3240 cat conftest.er1 >&5
3241 rm -f conftest.er1 conftest.err
3242 fi
3243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3244 test $ac_status = 0; }
3245done
3246
3247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3248/* end confdefs.h. */
3249
3250int
3251main ()
3252{
3253
3254 ;
3255 return 0;
3256}
3257_ACEOF
3258ac_clean_files_save=$ac_clean_files
3259ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3260# Try to create an executable without -o first, disregard a.out.
3261# It will help us diagnose broken compilers, and finding out an intuition
3262# of exeext.
3263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3264$as_echo_n "checking for C compiler default output file name... " >&6; }
3265ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3266
3267# The possible output files:
3268ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3269
3270ac_rmfiles=
3271for ac_file in $ac_files
3272do
3273 case $ac_file in
3274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3275 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3276 esac
3277done
3278rm -f $ac_rmfiles
3279
3280if { { ac_try="$ac_link_default"
3281case "(($ac_try" in
3282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283 *) ac_try_echo=$ac_try;;
3284esac
3285eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3286$as_echo "$ac_try_echo"; } >&5
3287 (eval "$ac_link_default") 2>&5
3288 ac_status=$?
3289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3290 test $ac_status = 0; }; then :
3291 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3292# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3293# in a Makefile. We should not override ac_cv_exeext if it was cached,
3294# so that the user can short-circuit this test for compilers unknown to
3295# Autoconf.
3296for ac_file in $ac_files ''
3297do
3298 test -f "$ac_file" || continue
3299 case $ac_file in
3300 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3301 ;;
3302 [ab].out )
3303 # We found the default executable, but exeext='' is most
3304 # certainly right.
3305 break;;
3306 *.* )
3307 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3308 then :; else
3309 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3310 fi
3311 # We set ac_cv_exeext here because the later test for it is not
3312 # safe: cross compilers may not add the suffix if given an `-o'
3313 # argument, so we may need to know it at that point already.
3314 # Even if this section looks crufty: it has the advantage of
3315 # actually working.
3316 break;;
3317 * )
3318 break;;
3319 esac
3320done
3321test "$ac_cv_exeext" = no && ac_cv_exeext=
3322
3323else
3324 ac_file=''
3325fi
3326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3327$as_echo "$ac_file" >&6; }
3328if test -z "$ac_file"; then :
3329 $as_echo "$as_me: failed program was:" >&5
3330sed 's/^/| /' conftest.$ac_ext >&5
3331
3332{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3333$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3334{ as_fn_set_status 77
3335as_fn_error "C compiler cannot create executables
3336See \`config.log' for more details." "$LINENO" 5; }; }
3337fi
3338ac_exeext=$ac_cv_exeext
3339
3340# Check that the compiler produces executables we can run. If not, either
3341# the compiler is broken, or we cross compile.
3342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3343$as_echo_n "checking whether the C compiler works... " >&6; }
3344# If not cross compiling, check that we can run a simple program.
3345if test "$cross_compiling" != yes; then
3346 if { ac_try='./$ac_file'
3347 { { case "(($ac_try" in
3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3350esac
3351eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3352$as_echo "$ac_try_echo"; } >&5
3353 (eval "$ac_try") 2>&5
3354 ac_status=$?
3355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3356 test $ac_status = 0; }; }; then
3357 cross_compiling=no
3358 else
3359 if test "$cross_compiling" = maybe; then
3360 cross_compiling=yes
3361 else
3362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3363$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3364as_fn_error "cannot run C compiled programs.
3365If you meant to cross compile, use \`--host'.
3366See \`config.log' for more details." "$LINENO" 5; }
3367 fi
3368 fi
3369fi
3370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3371$as_echo "yes" >&6; }
3372
3373rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3374ac_clean_files=$ac_clean_files_save
3375# Check that the compiler produces executables we can run. If not, either
3376# the compiler is broken, or we cross compile.
3377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3378$as_echo_n "checking whether we are cross compiling... " >&6; }
3379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3380$as_echo "$cross_compiling" >&6; }
3381
3382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3383$as_echo_n "checking for suffix of executables... " >&6; }
3384if { { ac_try="$ac_link"
3385case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3388esac
3389eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3390$as_echo "$ac_try_echo"; } >&5
3391 (eval "$ac_link") 2>&5
3392 ac_status=$?
3393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3394 test $ac_status = 0; }; then :
3395 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3396# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3397# work properly (i.e., refer to `conftest.exe'), while it won't with
3398# `rm'.
3399for ac_file in conftest.exe conftest conftest.*; do
3400 test -f "$ac_file" || continue
3401 case $ac_file in
3402 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3403 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3404 break;;
3405 * ) break;;
3406 esac
3407done
3408else
3409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3410$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3411as_fn_error "cannot compute suffix of executables: cannot compile and link
3412See \`config.log' for more details." "$LINENO" 5; }
3413fi
3414rm -f conftest$ac_cv_exeext
3415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3416$as_echo "$ac_cv_exeext" >&6; }
3417
3418rm -f conftest.$ac_ext
3419EXEEXT=$ac_cv_exeext
3420ac_exeext=$EXEEXT
3421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3422$as_echo_n "checking for suffix of object files... " >&6; }
3423if test "${ac_cv_objext+set}" = set; then :
3424 $as_echo_n "(cached) " >&6
3425else
3426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427/* end confdefs.h. */
3428
3429int
3430main ()
3431{
3432
3433 ;
3434 return 0;
3435}
3436_ACEOF
3437rm -f conftest.o conftest.obj
3438if { { ac_try="$ac_compile"
3439case "(($ac_try" in
3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441 *) ac_try_echo=$ac_try;;
3442esac
3443eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3444$as_echo "$ac_try_echo"; } >&5
3445 (eval "$ac_compile") 2>&5
3446 ac_status=$?
3447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3448 test $ac_status = 0; }; then :
3449 for ac_file in conftest.o conftest.obj conftest.*; do
3450 test -f "$ac_file" || continue;
3451 case $ac_file in
3452 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3453 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3454 break;;
3455 esac
3456done
3457else
3458 $as_echo "$as_me: failed program was:" >&5
3459sed 's/^/| /' conftest.$ac_ext >&5
3460
3461{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3462$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3463as_fn_error "cannot compute suffix of object files: cannot compile
3464See \`config.log' for more details." "$LINENO" 5; }
3465fi
3466rm -f conftest.$ac_cv_objext conftest.$ac_ext
3467fi
3468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3469$as_echo "$ac_cv_objext" >&6; }
3470OBJEXT=$ac_cv_objext
3471ac_objext=$OBJEXT
3472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3473$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3474if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3475 $as_echo_n "(cached) " >&6
3476else
3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478/* end confdefs.h. */
3479
3480int
3481main ()
3482{
3483#ifndef __GNUC__
3484 choke me
3485#endif
3486
3487 ;
3488 return 0;
3489}
3490_ACEOF
3491if ac_fn_c_try_compile "$LINENO"; then :
3492 ac_compiler_gnu=yes
3493else
3494 ac_compiler_gnu=no
3495fi
3496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3497ac_cv_c_compiler_gnu=$ac_compiler_gnu
3498
3499fi
3500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3501$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3502if test $ac_compiler_gnu = yes; then
3503 GCC=yes
3504else
3505 GCC=
3506fi
3507ac_test_CFLAGS=${CFLAGS+set}
3508ac_save_CFLAGS=$CFLAGS
3509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3510$as_echo_n "checking whether $CC accepts -g... " >&6; }
3511if test "${ac_cv_prog_cc_g+set}" = set; then :
3512 $as_echo_n "(cached) " >&6
3513else
3514 ac_save_c_werror_flag=$ac_c_werror_flag
3515 ac_c_werror_flag=yes
3516 ac_cv_prog_cc_g=no
3517 CFLAGS="-g"
3518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519/* end confdefs.h. */
3520
3521int
3522main ()
3523{
3524
3525 ;
3526 return 0;
3527}
3528_ACEOF
3529if ac_fn_c_try_compile "$LINENO"; then :
3530 ac_cv_prog_cc_g=yes
3531else
3532 CFLAGS=""
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534/* end confdefs.h. */
3535
3536int
3537main ()
3538{
3539
3540 ;
3541 return 0;
3542}
3543_ACEOF
3544if ac_fn_c_try_compile "$LINENO"; then :
3545
3546else
3547 ac_c_werror_flag=$ac_save_c_werror_flag
3548 CFLAGS="-g"
3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550/* end confdefs.h. */
3551
3552int
3553main ()
3554{
3555
3556 ;
3557 return 0;
3558}
3559_ACEOF
3560if ac_fn_c_try_compile "$LINENO"; then :
3561 ac_cv_prog_cc_g=yes
3562fi
3563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3564fi
3565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3566fi
3567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568 ac_c_werror_flag=$ac_save_c_werror_flag
3569fi
3570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3571$as_echo "$ac_cv_prog_cc_g" >&6; }
3572if test "$ac_test_CFLAGS" = set; then
3573 CFLAGS=$ac_save_CFLAGS
3574elif test $ac_cv_prog_cc_g = yes; then
3575 if test "$GCC" = yes; then
3576 CFLAGS="-g -O2"
3577 else
3578 CFLAGS="-g"
3579 fi
3580else
3581 if test "$GCC" = yes; then
3582 CFLAGS="-O2"
3583 else
3584 CFLAGS=
3585 fi
3586fi
3587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3588$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3589if test "${ac_cv_prog_cc_c89+set}" = set; then :
3590 $as_echo_n "(cached) " >&6
3591else
3592 ac_cv_prog_cc_c89=no
3593ac_save_CC=$CC
3594cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595/* end confdefs.h. */
3596#include <stdarg.h>
3597#include <stdio.h>
3598#include <sys/types.h>
3599#include <sys/stat.h>
3600/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3601struct buf { int x; };
3602FILE * (*rcsopen) (struct buf *, struct stat *, int);
3603static char *e (p, i)
3604 char **p;
3605 int i;
3606{
3607 return p[i];
3608}
3609static char *f (char * (*g) (char **, int), char **p, ...)
3610{
3611 char *s;
3612 va_list v;
3613 va_start (v,p);
3614 s = g (p, va_arg (v,int));
3615 va_end (v);
3616 return s;
3617}
3618
3619/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3620 function prototypes and stuff, but not '\xHH' hex character constants.
3621 These don't provoke an error unfortunately, instead are silently treated
3622 as 'x'. The following induces an error, until -std is added to get
3623 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3624 array size at least. It's necessary to write '\x00'==0 to get something
3625 that's true only with -std. */
3626int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3627
3628/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3629 inside strings and character constants. */
3630#define FOO(x) 'x'
3631int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3632
3633int test (int i, double x);
3634struct s1 {int (*f) (int a);};
3635struct s2 {int (*f) (double a);};
3636int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3637int argc;
3638char **argv;
3639int
3640main ()
3641{
3642return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3643 ;
3644 return 0;
3645}
3646_ACEOF
3647for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3648 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3649do
3650 CC="$ac_save_CC $ac_arg"
3651 if ac_fn_c_try_compile "$LINENO"; then :
3652 ac_cv_prog_cc_c89=$ac_arg
3653fi
3654rm -f core conftest.err conftest.$ac_objext
3655 test "x$ac_cv_prog_cc_c89" != "xno" && break
3656done
3657rm -f conftest.$ac_ext
3658CC=$ac_save_CC
3659
3660fi
3661# AC_CACHE_VAL
3662case "x$ac_cv_prog_cc_c89" in
3663 x)
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3665$as_echo "none needed" >&6; } ;;
3666 xno)
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3668$as_echo "unsupported" >&6; } ;;
3669 *)
3670 CC="$CC $ac_cv_prog_cc_c89"
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3672$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3673esac
3674if test "x$ac_cv_prog_cc_c89" != xno; then :
3675
3676fi
3677
3678ac_ext=c
3679ac_cpp='$CPP $CPPFLAGS'
3680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3682ac_compiler_gnu=$ac_cv_c_compiler_gnu
3683DEPDIR="${am__leading_dot}deps"
3684
3685ac_config_commands="$ac_config_commands depfiles"
3686
3687
3688am_make=${MAKE-make}
3689cat > confinc << 'END'
3690am__doit:
3691 @echo this is the am__doit target
3692.PHONY: am__doit
3693END
3694# If we don't find an include directive, just comment out the code.
3695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3696$as_echo_n "checking for style of include used by $am_make... " >&6; }
3697am__include="#"
3698am__quote=
3699_am_result=none
3700# First try GNU make style include.
3701echo "include confinc" > confmf
3702# Ignore all kinds of additional output from `make'.
3703case `$am_make -s -f confmf 2> /dev/null` in #(
3704*the\ am__doit\ target*)
3705 am__include=include
3706 am__quote=
3707 _am_result=GNU
3708 ;;
3709esac
3710# Now try BSD make style include.
3711if test "$am__include" = "#"; then
3712 echo '.include "confinc"' > confmf
3713 case `$am_make -s -f confmf 2> /dev/null` in #(
3714 *the\ am__doit\ target*)
3715 am__include=.include
3716 am__quote="\""
3717 _am_result=BSD
3718 ;;
3719 esac
3720fi
3721
3722
3723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3724$as_echo "$_am_result" >&6; }
3725rm -f confinc confmf
3726
3727# Check whether --enable-dependency-tracking was given.
3728if test "${enable_dependency_tracking+set}" = set; then :
3729 enableval=$enable_dependency_tracking;
3730fi
3731
3732if test "x$enable_dependency_tracking" != xno; then
3733 am_depcomp="$ac_aux_dir/depcomp"
3734 AMDEPBACKSLASH='\'
3735fi
3736 if test "x$enable_dependency_tracking" != xno; then
3737 AMDEP_TRUE=
3738 AMDEP_FALSE='#'
3739else
3740 AMDEP_TRUE='#'
3741 AMDEP_FALSE=
3742fi
3743
3744
3745
3746depcc="$CC" am_compiler_list=
3747
3748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3749$as_echo_n "checking dependency style of $depcc... " >&6; }
3750if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3751 $as_echo_n "(cached) " >&6
3752else
3753 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3754 # We make a subdir and do the tests there. Otherwise we can end up
3755 # making bogus files that we don't know about and never remove. For
3756 # instance it was reported that on HP-UX the gcc test will end up
3757 # making a dummy file named `D' -- because `-MD' means `put the output
3758 # in D'.
3759 mkdir conftest.dir
3760 # Copy depcomp to subdir because otherwise we won't find it if we're
3761 # using a relative directory.
3762 cp "$am_depcomp" conftest.dir
3763 cd conftest.dir
3764 # We will build objects and dependencies in a subdirectory because
3765 # it helps to detect inapplicable dependency modes. For instance
3766 # both Tru64's cc and ICC support -MD to output dependencies as a
3767 # side effect of compilation, but ICC will put the dependencies in
3768 # the current directory while Tru64 will put them in the object
3769 # directory.
3770 mkdir sub
3771
3772 am_cv_CC_dependencies_compiler_type=none
3773 if test "$am_compiler_list" = ""; then
3774 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3775 fi
3776 am__universal=false
3777 case " $depcc " in #(
3778 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3779 esac
3780
3781 for depmode in $am_compiler_list; do
3782 # Setup a source with many dependencies, because some compilers
3783 # like to wrap large dependency lists on column 80 (with \), and
3784 # we should not choose a depcomp mode which is confused by this.
3785 #
3786 # We need to recreate these files for each test, as the compiler may
3787 # overwrite some of them when testing with obscure command lines.
3788 # This happens at least with the AIX C compiler.
3789 : > sub/conftest.c
3790 for i in 1 2 3 4 5 6; do
3791 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3792 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3793 # Solaris 8's {/usr,}/bin/sh.
3794 touch sub/conftst$i.h
3795 done
3796 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3797
3798 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3799 # mode. It turns out that the SunPro C++ compiler does not properly
3800 # handle `-M -o', and we need to detect this. Also, some Intel
3801 # versions had trouble with output in subdirs
3802 am__obj=sub/conftest.${OBJEXT-o}
3803 am__minus_obj="-o $am__obj"
3804 case $depmode in
3805 gcc)
3806 # This depmode causes a compiler race in universal mode.
3807 test "$am__universal" = false || continue
3808 ;;
3809 nosideeffect)
3810 # after this tag, mechanisms are not by side-effect, so they'll
3811 # only be used when explicitly requested
3812 if test "x$enable_dependency_tracking" = xyes; then
3813 continue
3814 else
3815 break
3816 fi
3817 ;;
3818 msvisualcpp | msvcmsys)
3819 # This compiler won't grok `-c -o', but also, the minuso test has
3820 # not run yet. These depmodes are late enough in the game, and
3821 # so weak that their functioning should not be impacted.
3822 am__obj=conftest.${OBJEXT-o}
3823 am__minus_obj=
3824 ;;
3825 none) break ;;
3826 esac
3827 if depmode=$depmode \
3828 source=sub/conftest.c object=$am__obj \
3829 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3830 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3831 >/dev/null 2>conftest.err &&
3832 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3833 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3834 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3835 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3836 # icc doesn't choke on unknown options, it will just issue warnings
3837 # or remarks (even with -Werror). So we grep stderr for any message
3838 # that says an option was ignored or not supported.
3839 # When given -MP, icc 7.0 and 7.1 complain thusly:
3840 # icc: Command line warning: ignoring option '-M'; no argument required
3841 # The diagnosis changed in icc 8.0:
3842 # icc: Command line remark: option '-MP' not supported
3843 if (grep 'ignoring option' conftest.err ||
3844 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3845 am_cv_CC_dependencies_compiler_type=$depmode
3846 break
3847 fi
3848 fi
3849 done
3850
3851 cd ..
3852 rm -rf conftest.dir
3853else
3854 am_cv_CC_dependencies_compiler_type=none
3855fi
3856
3857fi
3858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3859$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3860CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3861
3862 if
3863 test "x$enable_dependency_tracking" != xno \
3864 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3865 am__fastdepCC_TRUE=
3866 am__fastdepCC_FALSE='#'
3867else
3868 am__fastdepCC_TRUE='#'
3869 am__fastdepCC_FALSE=
3870fi
3871
3872
3873ac_ext=go
3874ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
3875ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3876ac_compile_gnu=yes
3877if test -n "$ac_tool_prefix"; then
3878 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
3879set dummy ${ac_tool_prefix}gccgo; ac_word=$2
3880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3881$as_echo_n "checking for $ac_word... " >&6; }
3882if test "${ac_cv_prog_GOC+set}" = set; then :
3883 $as_echo_n "(cached) " >&6
3884else
3885 if test -n "$GOC"; then
3886 ac_cv_prog_GOC="$GOC" # Let the user override the test.
3887else
3888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889for as_dir in $PATH
3890do
3891 IFS=$as_save_IFS
3892 test -z "$as_dir" && as_dir=.
3893 for ac_exec_ext in '' $ac_executable_extensions; do
3894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3895 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
3896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3897 break 2
3898 fi
3899done
3900 done
3901IFS=$as_save_IFS
3902
3903fi
3904fi
3905GOC=$ac_cv_prog_GOC
3906if test -n "$GOC"; then
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
3908$as_echo "$GOC" >&6; }
3909else
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3911$as_echo "no" >&6; }
3912fi
3913
3914
3915fi
3916if test -z "$ac_cv_prog_GOC"; then
3917 ac_ct_GOC=$GOC
3918 # Extract the first word of "gccgo", so it can be a program name with args.
3919set dummy gccgo; ac_word=$2
3920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3921$as_echo_n "checking for $ac_word... " >&6; }
3922if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
3923 $as_echo_n "(cached) " >&6
3924else
3925 if test -n "$ac_ct_GOC"; then
3926 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
3927else
3928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929for as_dir in $PATH
3930do
3931 IFS=$as_save_IFS
3932 test -z "$as_dir" && as_dir=.
3933 for ac_exec_ext in '' $ac_executable_extensions; do
3934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3935 ac_cv_prog_ac_ct_GOC="gccgo"
3936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3937 break 2
3938 fi
3939done
3940 done
3941IFS=$as_save_IFS
3942
3943fi
3944fi
3945ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
3946if test -n "$ac_ct_GOC"; then
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
3948$as_echo "$ac_ct_GOC" >&6; }
3949else
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3951$as_echo "no" >&6; }
3952fi
3953
3954 if test "x$ac_ct_GOC" = x; then
3955 GOC=""
3956 else
3957 case $cross_compiling:$ac_tool_warned in
3958yes:)
3959{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3960$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3961ac_tool_warned=yes ;;
3962esac
3963 GOC=$ac_ct_GOC
3964 fi
3965else
3966 GOC="$ac_cv_prog_GOC"
3967fi
3968
3969if test -z "$GOC"; then
3970 if test -n "$ac_tool_prefix"; then
3971 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
3972set dummy ${ac_tool_prefix}gccgo; ac_word=$2
3973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3974$as_echo_n "checking for $ac_word... " >&6; }
3975if test "${ac_cv_prog_GOC+set}" = set; then :
3976 $as_echo_n "(cached) " >&6
3977else
3978 if test -n "$GOC"; then
3979 ac_cv_prog_GOC="$GOC" # Let the user override the test.
3980else
3981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982for as_dir in $PATH
3983do
3984 IFS=$as_save_IFS
3985 test -z "$as_dir" && as_dir=.
3986 for ac_exec_ext in '' $ac_executable_extensions; do
3987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3988 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
3989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3990 break 2
3991 fi
3992done
3993 done
3994IFS=$as_save_IFS
3995
3996fi
3997fi
3998GOC=$ac_cv_prog_GOC
3999if test -n "$GOC"; then
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4001$as_echo "$GOC" >&6; }
4002else
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4004$as_echo "no" >&6; }
4005fi
4006
4007
4008 fi
4009fi
4010if test -z "$GOC"; then
4011 # Extract the first word of "gccgo", so it can be a program name with args.
4012set dummy gccgo; ac_word=$2
4013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4014$as_echo_n "checking for $ac_word... " >&6; }
4015if test "${ac_cv_prog_GOC+set}" = set; then :
4016 $as_echo_n "(cached) " >&6
4017else
4018 if test -n "$GOC"; then
4019 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4020else
4021 ac_prog_rejected=no
4022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023for as_dir in $PATH
4024do
4025 IFS=$as_save_IFS
4026 test -z "$as_dir" && as_dir=.
4027 for ac_exec_ext in '' $ac_executable_extensions; do
4028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4029 if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4030 ac_prog_rejected=yes
4031 continue
4032 fi
4033 ac_cv_prog_GOC="gccgo"
4034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4035 break 2
4036 fi
4037done
4038 done
4039IFS=$as_save_IFS
4040
4041if test $ac_prog_rejected = yes; then
4042 # We found a bogon in the path, so make sure we never use it.
4043 set dummy $ac_cv_prog_GOC
4044 shift
4045 if test $# != 0; then
4046 # We chose a different compiler from the bogus one.
4047 # However, it has the same basename, so the bogon will be chosen
4048 # first if we set GOC to just the basename; use the full file name.
4049 shift
4050 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4051 fi
4052fi
4053fi
4054fi
4055GOC=$ac_cv_prog_GOC
4056if test -n "$GOC"; then
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4058$as_echo "$GOC" >&6; }
4059else
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4061$as_echo "no" >&6; }
4062fi
4063
4064
4065fi
4066
4067
4068# Provide some information about the compiler.
4069$as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4070set X $ac_compile
4071ac_compiler=$2
4072{ { ac_try="$ac_compiler --version >&5"
4073case "(($ac_try" in
4074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075 *) ac_try_echo=$ac_try;;
4076esac
4077eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4078$as_echo "$ac_try_echo"; } >&5
4079 (eval "$ac_compiler --version >&5") 2>conftest.err
4080 ac_status=$?
4081 if test -s conftest.err; then
4082 sed '10a\
4083... rest of stderr output deleted ...
4084 10q' conftest.err >conftest.er1
4085 cat conftest.er1 >&5
4086 rm -f conftest.er1 conftest.err
4087 fi
4088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4089 test $ac_status = 0; }
4090GOCFLAGS="-g -O2"
4091ac_ext=c
4092ac_cpp='$CPP $CPPFLAGS'
4093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4095ac_compiler_gnu=$ac_cv_c_compiler_gnu
4096
4097
4098
4099
4100
4101
4102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4103$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4104 # Check whether --enable-maintainer-mode was given.
4105if test "${enable_maintainer_mode+set}" = set; then :
4106 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4107else
4108 USE_MAINTAINER_MODE=no
4109fi
4110
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4112$as_echo "$USE_MAINTAINER_MODE" >&6; }
4113 if test $USE_MAINTAINER_MODE = yes; then
4114 MAINTAINER_MODE_TRUE=
4115 MAINTAINER_MODE_FALSE='#'
4116else
4117 MAINTAINER_MODE_TRUE='#'
4118 MAINTAINER_MODE_FALSE=
4119fi
4120
4121 MAINT=$MAINTAINER_MODE_TRUE
4122
4123
4124
4125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4126$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4127if test "${ac_cv_path_SED+set}" = set; then :
4128 $as_echo_n "(cached) " >&6
4129else
4130 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4131 for ac_i in 1 2 3 4 5 6 7; do
4132 ac_script="$ac_script$as_nl$ac_script"
4133 done
4134 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4135 { ac_script=; unset ac_script;}
4136 if test -z "$SED"; then
4137 ac_path_SED_found=false
4138 # Loop through the user's path and test for each of PROGNAME-LIST
4139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140for as_dir in $PATH
4141do
4142 IFS=$as_save_IFS
4143 test -z "$as_dir" && as_dir=.
4144 for ac_prog in sed gsed; do
4145 for ac_exec_ext in '' $ac_executable_extensions; do
4146 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4147 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4148# Check for GNU ac_path_SED and select it if it is found.
4149 # Check for GNU $ac_path_SED
4150case `"$ac_path_SED" --version 2>&1` in
4151*GNU*)
4152 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4153*)
4154 ac_count=0
4155 $as_echo_n 0123456789 >"conftest.in"
4156 while :
4157 do
4158 cat "conftest.in" "conftest.in" >"conftest.tmp"
4159 mv "conftest.tmp" "conftest.in"
4160 cp "conftest.in" "conftest.nl"
4161 $as_echo '' >> "conftest.nl"
4162 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4163 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4164 as_fn_arith $ac_count + 1 && ac_count=$as_val
4165 if test $ac_count -gt ${ac_path_SED_max-0}; then
4166 # Best one so far, save it but keep looking for a better one
4167 ac_cv_path_SED="$ac_path_SED"
4168 ac_path_SED_max=$ac_count
4169 fi
4170 # 10*(2^10) chars as input seems more than enough
4171 test $ac_count -gt 10 && break
4172 done
4173 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4174esac
4175
4176 $ac_path_SED_found && break 3
4177 done
4178 done
4179 done
4180IFS=$as_save_IFS
4181 if test -z "$ac_cv_path_SED"; then
4182 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4183 fi
4184else
4185 ac_cv_path_SED=$SED
4186fi
4187
4188fi
4189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4190$as_echo "$ac_cv_path_SED" >&6; }
4191 SED="$ac_cv_path_SED"
4192 rm -f conftest.sed
4193
4194test -z "$SED" && SED=sed
4195Xsed="$SED -e 1s/^X//"
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4208$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4209if test "${ac_cv_path_GREP+set}" = set; then :
4210 $as_echo_n "(cached) " >&6
4211else
4212 if test -z "$GREP"; then
4213 ac_path_GREP_found=false
4214 # Loop through the user's path and test for each of PROGNAME-LIST
4215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4217do
4218 IFS=$as_save_IFS
4219 test -z "$as_dir" && as_dir=.
4220 for ac_prog in grep ggrep; do
4221 for ac_exec_ext in '' $ac_executable_extensions; do
4222 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4223 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4224# Check for GNU ac_path_GREP and select it if it is found.
4225 # Check for GNU $ac_path_GREP
4226case `"$ac_path_GREP" --version 2>&1` in
4227*GNU*)
4228 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4229*)
4230 ac_count=0
4231 $as_echo_n 0123456789 >"conftest.in"
4232 while :
4233 do
4234 cat "conftest.in" "conftest.in" >"conftest.tmp"
4235 mv "conftest.tmp" "conftest.in"
4236 cp "conftest.in" "conftest.nl"
4237 $as_echo 'GREP' >> "conftest.nl"
4238 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4239 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4240 as_fn_arith $ac_count + 1 && ac_count=$as_val
4241 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4242 # Best one so far, save it but keep looking for a better one
4243 ac_cv_path_GREP="$ac_path_GREP"
4244 ac_path_GREP_max=$ac_count
4245 fi
4246 # 10*(2^10) chars as input seems more than enough
4247 test $ac_count -gt 10 && break
4248 done
4249 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4250esac
4251
4252 $ac_path_GREP_found && break 3
4253 done
4254 done
4255 done
4256IFS=$as_save_IFS
4257 if test -z "$ac_cv_path_GREP"; then
4258 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4259 fi
4260else
4261 ac_cv_path_GREP=$GREP
4262fi
4263
4264fi
4265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4266$as_echo "$ac_cv_path_GREP" >&6; }
4267 GREP="$ac_cv_path_GREP"
4268
4269
4270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4271$as_echo_n "checking for egrep... " >&6; }
4272if test "${ac_cv_path_EGREP+set}" = set; then :
4273 $as_echo_n "(cached) " >&6
4274else
4275 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4276 then ac_cv_path_EGREP="$GREP -E"
4277 else
4278 if test -z "$EGREP"; then
4279 ac_path_EGREP_found=false
4280 # Loop through the user's path and test for each of PROGNAME-LIST
4281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4283do
4284 IFS=$as_save_IFS
4285 test -z "$as_dir" && as_dir=.
4286 for ac_prog in egrep; do
4287 for ac_exec_ext in '' $ac_executable_extensions; do
4288 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4289 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4290# Check for GNU ac_path_EGREP and select it if it is found.
4291 # Check for GNU $ac_path_EGREP
4292case `"$ac_path_EGREP" --version 2>&1` in
4293*GNU*)
4294 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4295*)
4296 ac_count=0
4297 $as_echo_n 0123456789 >"conftest.in"
4298 while :
4299 do
4300 cat "conftest.in" "conftest.in" >"conftest.tmp"
4301 mv "conftest.tmp" "conftest.in"
4302 cp "conftest.in" "conftest.nl"
4303 $as_echo 'EGREP' >> "conftest.nl"
4304 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4305 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4306 as_fn_arith $ac_count + 1 && ac_count=$as_val
4307 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4308 # Best one so far, save it but keep looking for a better one
4309 ac_cv_path_EGREP="$ac_path_EGREP"
4310 ac_path_EGREP_max=$ac_count
4311 fi
4312 # 10*(2^10) chars as input seems more than enough
4313 test $ac_count -gt 10 && break
4314 done
4315 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4316esac
4317
4318 $ac_path_EGREP_found && break 3
4319 done
4320 done
4321 done
4322IFS=$as_save_IFS
4323 if test -z "$ac_cv_path_EGREP"; then
4324 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4325 fi
4326else
4327 ac_cv_path_EGREP=$EGREP
4328fi
4329
4330 fi
4331fi
4332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4333$as_echo "$ac_cv_path_EGREP" >&6; }
4334 EGREP="$ac_cv_path_EGREP"
4335
4336
4337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4338$as_echo_n "checking for fgrep... " >&6; }
4339if test "${ac_cv_path_FGREP+set}" = set; then :
4340 $as_echo_n "(cached) " >&6
4341else
4342 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4343 then ac_cv_path_FGREP="$GREP -F"
4344 else
4345 if test -z "$FGREP"; then
4346 ac_path_FGREP_found=false
4347 # Loop through the user's path and test for each of PROGNAME-LIST
4348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4350do
4351 IFS=$as_save_IFS
4352 test -z "$as_dir" && as_dir=.
4353 for ac_prog in fgrep; do
4354 for ac_exec_ext in '' $ac_executable_extensions; do
4355 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4356 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4357# Check for GNU ac_path_FGREP and select it if it is found.
4358 # Check for GNU $ac_path_FGREP
4359case `"$ac_path_FGREP" --version 2>&1` in
4360*GNU*)
4361 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4362*)
4363 ac_count=0
4364 $as_echo_n 0123456789 >"conftest.in"
4365 while :
4366 do
4367 cat "conftest.in" "conftest.in" >"conftest.tmp"
4368 mv "conftest.tmp" "conftest.in"
4369 cp "conftest.in" "conftest.nl"
4370 $as_echo 'FGREP' >> "conftest.nl"
4371 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4372 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4373 as_fn_arith $ac_count + 1 && ac_count=$as_val
4374 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4375 # Best one so far, save it but keep looking for a better one
4376 ac_cv_path_FGREP="$ac_path_FGREP"
4377 ac_path_FGREP_max=$ac_count
4378 fi
4379 # 10*(2^10) chars as input seems more than enough
4380 test $ac_count -gt 10 && break
4381 done
4382 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4383esac
4384
4385 $ac_path_FGREP_found && break 3
4386 done
4387 done
4388 done
4389IFS=$as_save_IFS
4390 if test -z "$ac_cv_path_FGREP"; then
4391 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4392 fi
4393else
4394 ac_cv_path_FGREP=$FGREP
4395fi
4396
4397 fi
4398fi
4399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4400$as_echo "$ac_cv_path_FGREP" >&6; }
4401 FGREP="$ac_cv_path_FGREP"
4402
4403
4404test -z "$GREP" && GREP=grep
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4423ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4424ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4425
4426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4427$as_echo_n "checking how to print strings... " >&6; }
4428# Test print first, because it will be a builtin if present.
4429if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4430 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4431 ECHO='print -r --'
4432elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4433 ECHO='printf %s\n'
4434else
4435 # Use this function as a fallback that always works.
4436 func_fallback_echo ()
4437 {
4438 eval 'cat <<_LTECHO_EOF
4439$1
4440_LTECHO_EOF'
4441 }
4442 ECHO='func_fallback_echo'
4443fi
4444
4445# func_echo_all arg...
4446# Invoke $ECHO with all args, space-separated.
4447func_echo_all ()
4448{
4449 $ECHO ""
4450}
4451
4452case "$ECHO" in
4453 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4454$as_echo "printf" >&6; } ;;
4455 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4456$as_echo "print -r" >&6; } ;;
4457 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4458$as_echo "cat" >&6; } ;;
4459esac
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476# Check whether --with-gnu-ld was given.
4477if test "${with_gnu_ld+set}" = set; then :
4478 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4479else
4480 with_gnu_ld=no
4481fi
4482
4483ac_prog=ld
4484if test "$GCC" = yes; then
4485 # Check if gcc -print-prog-name=ld gives a path.
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4487$as_echo_n "checking for ld used by $CC... " >&6; }
4488 case $host in
4489 *-*-mingw*)
4490 # gcc leaves a trailing carriage return which upsets mingw
4491 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4492 *)
4493 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4494 esac
4495 case $ac_prog in
4496 # Accept absolute paths.
4497 [\\/]* | ?:[\\/]*)
4498 re_direlt='/[^/][^/]*/\.\./'
4499 # Canonicalize the pathname of ld
4500 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4501 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4502 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4503 done
4504 test -z "$LD" && LD="$ac_prog"
4505 ;;
4506 "")
4507 # If it fails, then pretend we aren't using GCC.
4508 ac_prog=ld
4509 ;;
4510 *)
4511 # If it is relative, then search for the first ld in PATH.
4512 with_gnu_ld=unknown
4513 ;;
4514 esac
4515elif test "$with_gnu_ld" = yes; then
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4517$as_echo_n "checking for GNU ld... " >&6; }
4518else
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4520$as_echo_n "checking for non-GNU ld... " >&6; }
4521fi
4522if test "${lt_cv_path_LD+set}" = set; then :
4523 $as_echo_n "(cached) " >&6
4524else
4525 if test -z "$LD"; then
4526 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4527 for ac_dir in $PATH; do
4528 IFS="$lt_save_ifs"
4529 test -z "$ac_dir" && ac_dir=.
4530 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4531 lt_cv_path_LD="$ac_dir/$ac_prog"
4532 # Check to see if the program is GNU ld. I'd rather use --version,
4533 # but apparently some variants of GNU ld only accept -v.
4534 # Break only if it was the GNU/non-GNU ld that we prefer.
4535 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4536 *GNU* | *'with BFD'*)
4537 test "$with_gnu_ld" != no && break
4538 ;;
4539 *)
4540 test "$with_gnu_ld" != yes && break
4541 ;;
4542 esac
4543 fi
4544 done
4545 IFS="$lt_save_ifs"
4546else
4547 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4548fi
4549fi
4550
4551LD="$lt_cv_path_LD"
4552if test -n "$LD"; then
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4554$as_echo "$LD" >&6; }
4555else
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4557$as_echo "no" >&6; }
4558fi
4559test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4561$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4562if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4563 $as_echo_n "(cached) " >&6
4564else
4565 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4566case `$LD -v 2>&1 </dev/null` in
4567*GNU* | *'with BFD'*)
4568 lt_cv_prog_gnu_ld=yes
4569 ;;
4570*)
4571 lt_cv_prog_gnu_ld=no
4572 ;;
4573esac
4574fi
4575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4576$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4577with_gnu_ld=$lt_cv_prog_gnu_ld
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587if test -n "$ac_tool_prefix"; then
4588 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4589set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4591$as_echo_n "checking for $ac_word... " >&6; }
4592if test "${ac_cv_prog_RANLIB+set}" = set; then :
4593 $as_echo_n "(cached) " >&6
4594else
4595 if test -n "$RANLIB"; then
4596 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4597else
4598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599for as_dir in $PATH
4600do
4601 IFS=$as_save_IFS
4602 test -z "$as_dir" && as_dir=.
4603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4605 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4607 break 2
4608 fi
4609done
4610 done
4611IFS=$as_save_IFS
4612
4613fi
4614fi
4615RANLIB=$ac_cv_prog_RANLIB
4616if test -n "$RANLIB"; then
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4618$as_echo "$RANLIB" >&6; }
4619else
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4621$as_echo "no" >&6; }
4622fi
4623
4624
4625fi
4626if test -z "$ac_cv_prog_RANLIB"; then
4627 ac_ct_RANLIB=$RANLIB
4628 # Extract the first word of "ranlib", so it can be a program name with args.
4629set dummy ranlib; ac_word=$2
4630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4631$as_echo_n "checking for $ac_word... " >&6; }
4632if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4633 $as_echo_n "(cached) " >&6
4634else
4635 if test -n "$ac_ct_RANLIB"; then
4636 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4637else
4638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639for as_dir in $PATH
4640do
4641 IFS=$as_save_IFS
4642 test -z "$as_dir" && as_dir=.
4643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4645 ac_cv_prog_ac_ct_RANLIB="ranlib"
4646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4647 break 2
4648 fi
4649done
4650 done
4651IFS=$as_save_IFS
4652
4653fi
4654fi
4655ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4656if test -n "$ac_ct_RANLIB"; then
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4658$as_echo "$ac_ct_RANLIB" >&6; }
4659else
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4661$as_echo "no" >&6; }
4662fi
4663
4664 if test "x$ac_ct_RANLIB" = x; then
4665 RANLIB=":"
4666 else
4667 case $cross_compiling:$ac_tool_warned in
4668yes:)
4669{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4670$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4671ac_tool_warned=yes ;;
4672esac
4673 RANLIB=$ac_ct_RANLIB
4674 fi
4675else
4676 RANLIB="$ac_cv_prog_RANLIB"
4677fi
4678
4679if test -n "$ac_tool_prefix"; then
4680 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4681set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4683$as_echo_n "checking for $ac_word... " >&6; }
4684if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4685 $as_echo_n "(cached) " >&6
4686else
4687 if test -n "$OBJCOPY"; then
4688 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4689else
4690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691for as_dir in $PATH
4692do
4693 IFS=$as_save_IFS
4694 test -z "$as_dir" && as_dir=.
4695 for ac_exec_ext in '' $ac_executable_extensions; do
4696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4697 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4699 break 2
4700 fi
4701done
4702 done
4703IFS=$as_save_IFS
4704
4705fi
4706fi
4707OBJCOPY=$ac_cv_prog_OBJCOPY
4708if test -n "$OBJCOPY"; then
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4710$as_echo "$OBJCOPY" >&6; }
4711else
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4713$as_echo "no" >&6; }
4714fi
4715
4716
4717fi
4718if test -z "$ac_cv_prog_OBJCOPY"; then
4719 ac_ct_OBJCOPY=$OBJCOPY
4720 # Extract the first word of "objcopy", so it can be a program name with args.
4721set dummy objcopy; ac_word=$2
4722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4723$as_echo_n "checking for $ac_word... " >&6; }
4724if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4725 $as_echo_n "(cached) " >&6
4726else
4727 if test -n "$ac_ct_OBJCOPY"; then
4728 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4729else
4730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731for as_dir in $PATH
4732do
4733 IFS=$as_save_IFS
4734 test -z "$as_dir" && as_dir=.
4735 for ac_exec_ext in '' $ac_executable_extensions; do
4736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4737 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4739 break 2
4740 fi
4741done
4742 done
4743IFS=$as_save_IFS
4744
4745fi
4746fi
4747ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4748if test -n "$ac_ct_OBJCOPY"; then
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4750$as_echo "$ac_ct_OBJCOPY" >&6; }
4751else
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4753$as_echo "no" >&6; }
4754fi
4755
4756 if test "x$ac_ct_OBJCOPY" = x; then
4757 OBJCOPY="missing-objcopy"
4758 else
4759 case $cross_compiling:$ac_tool_warned in
4760yes:)
4761{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4762$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4763ac_tool_warned=yes ;;
4764esac
4765 OBJCOPY=$ac_ct_OBJCOPY
4766 fi
4767else
4768 OBJCOPY="$ac_cv_prog_OBJCOPY"
4769fi
4770
4771
4772enable_dlopen=yes
4773
4774
4775
4776case `pwd` in
4777 *\ * | *\ *)
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4779$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4780esac
4781
4782
4783
4784macro_version='2.2.7a'
4785macro_revision='1.3134'
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799ltmain="$ac_aux_dir/ltmain.sh"
4800
4801# Backslashify metacharacters that are still active within
4802# double-quoted strings.
4803sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4804
4805# Same as above, but do not quote variable references.
4806double_quote_subst='s/\(["`\\]\)/\\\1/g'
4807
4808# Sed substitution to delay expansion of an escaped shell variable in a
4809# double_quote_subst'ed string.
4810delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4811
4812# Sed substitution to delay expansion of an escaped single quote.
4813delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4814
4815# Sed substitution to avoid accidental globbing in evaled expressions
4816no_glob_subst='s/\*/\\\*/g'
4817
4818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4819$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4820if test "${lt_cv_path_NM+set}" = set; then :
4821 $as_echo_n "(cached) " >&6
4822else
4823 if test -n "$NM"; then
4824 # Let the user override the test.
4825 lt_cv_path_NM="$NM"
4826else
4827 lt_nm_to_check="${ac_tool_prefix}nm"
4828 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4829 lt_nm_to_check="$lt_nm_to_check nm"
4830 fi
4831 for lt_tmp_nm in $lt_nm_to_check; do
4832 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4833 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4834 IFS="$lt_save_ifs"
4835 test -z "$ac_dir" && ac_dir=.
4836 tmp_nm="$ac_dir/$lt_tmp_nm"
4837 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4838 # Check to see if the nm accepts a BSD-compat flag.
4839 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4840 # nm: unknown option "B" ignored
4841 # Tru64's nm complains that /dev/null is an invalid object file
4842 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4843 */dev/null* | *'Invalid file or object type'*)
4844 lt_cv_path_NM="$tmp_nm -B"
4845 break
4846 ;;
4847 *)
4848 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4849 */dev/null*)
4850 lt_cv_path_NM="$tmp_nm -p"
4851 break
4852 ;;
4853 *)
4854 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4855 continue # so that we can try to find one that supports BSD flags
4856 ;;
4857 esac
4858 ;;
4859 esac
4860 fi
4861 done
4862 IFS="$lt_save_ifs"
4863 done
4864 : ${lt_cv_path_NM=no}
4865fi
4866fi
4867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4868$as_echo "$lt_cv_path_NM" >&6; }
4869if test "$lt_cv_path_NM" != "no"; then
4870 NM="$lt_cv_path_NM"
4871else
4872 # Didn't find any BSD compatible name lister, look for dumpbin.
4873 if test -n "$DUMPBIN"; then :
4874 # Let the user override the test.
4875 else
4876 if test -n "$ac_tool_prefix"; then
4877 for ac_prog in dumpbin "link -dump"
4878 do
4879 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4880set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4882$as_echo_n "checking for $ac_word... " >&6; }
4883if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4884 $as_echo_n "(cached) " >&6
4885else
4886 if test -n "$DUMPBIN"; then
4887 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4888else
4889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890for as_dir in $PATH
4891do
4892 IFS=$as_save_IFS
4893 test -z "$as_dir" && as_dir=.
4894 for ac_exec_ext in '' $ac_executable_extensions; do
4895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4896 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4898 break 2
4899 fi
4900done
4901 done
4902IFS=$as_save_IFS
4903
4904fi
4905fi
4906DUMPBIN=$ac_cv_prog_DUMPBIN
4907if test -n "$DUMPBIN"; then
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4909$as_echo "$DUMPBIN" >&6; }
4910else
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4912$as_echo "no" >&6; }
4913fi
4914
4915
4916 test -n "$DUMPBIN" && break
4917 done
4918fi
4919if test -z "$DUMPBIN"; then
4920 ac_ct_DUMPBIN=$DUMPBIN
4921 for ac_prog in dumpbin "link -dump"
4922do
4923 # Extract the first word of "$ac_prog", so it can be a program name with args.
4924set dummy $ac_prog; ac_word=$2
4925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4926$as_echo_n "checking for $ac_word... " >&6; }
4927if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4928 $as_echo_n "(cached) " >&6
4929else
4930 if test -n "$ac_ct_DUMPBIN"; then
4931 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4932else
4933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934for as_dir in $PATH
4935do
4936 IFS=$as_save_IFS
4937 test -z "$as_dir" && as_dir=.
4938 for ac_exec_ext in '' $ac_executable_extensions; do
4939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4940 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4942 break 2
4943 fi
4944done
4945 done
4946IFS=$as_save_IFS
4947
4948fi
4949fi
4950ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4951if test -n "$ac_ct_DUMPBIN"; then
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4953$as_echo "$ac_ct_DUMPBIN" >&6; }
4954else
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4956$as_echo "no" >&6; }
4957fi
4958
4959
4960 test -n "$ac_ct_DUMPBIN" && break
4961done
4962
4963 if test "x$ac_ct_DUMPBIN" = x; then
4964 DUMPBIN=":"
4965 else
4966 case $cross_compiling:$ac_tool_warned in
4967yes:)
4968{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4969$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4970ac_tool_warned=yes ;;
4971esac
4972 DUMPBIN=$ac_ct_DUMPBIN
4973 fi
4974fi
4975
4976 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4977 *COFF*)
4978 DUMPBIN="$DUMPBIN -symbols"
4979 ;;
4980 *)
4981 DUMPBIN=:
4982 ;;
4983 esac
4984 fi
4985
4986 if test "$DUMPBIN" != ":"; then
4987 NM="$DUMPBIN"
4988 fi
4989fi
4990test -z "$NM" && NM=nm
4991
4992
4993
4994
4995
4996
4997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4998$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4999if test "${lt_cv_nm_interface+set}" = set; then :
5000 $as_echo_n "(cached) " >&6
5001else
5002 lt_cv_nm_interface="BSD nm"
5003 echo "int some_variable = 0;" > conftest.$ac_ext
5004 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5005 (eval "$ac_compile" 2>conftest.err)
5006 cat conftest.err >&5
5007 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5008 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5009 cat conftest.err >&5
5010 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5011 cat conftest.out >&5
5012 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5013 lt_cv_nm_interface="MS dumpbin"
5014 fi
5015 rm -f conftest*
5016fi
5017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5018$as_echo "$lt_cv_nm_interface" >&6; }
5019
5020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5021$as_echo_n "checking whether ln -s works... " >&6; }
5022LN_S=$as_ln_s
5023if test "$LN_S" = "ln -s"; then
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5025$as_echo "yes" >&6; }
5026else
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5028$as_echo "no, using $LN_S" >&6; }
5029fi
5030
5031# find the maximum length of command line arguments
5032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5033$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5034if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5035 $as_echo_n "(cached) " >&6
5036else
5037 i=0
5038 teststring="ABCD"
5039
5040 case $build_os in
5041 msdosdjgpp*)
5042 # On DJGPP, this test can blow up pretty badly due to problems in libc
5043 # (any single argument exceeding 2000 bytes causes a buffer overrun
5044 # during glob expansion). Even if it were fixed, the result of this
5045 # check would be larger than it should be.
5046 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5047 ;;
5048
5049 gnu*)
5050 # Under GNU Hurd, this test is not required because there is
5051 # no limit to the length of command line arguments.
5052 # Libtool will interpret -1 as no limit whatsoever
5053 lt_cv_sys_max_cmd_len=-1;
5054 ;;
5055
5056 cygwin* | mingw* | cegcc*)
5057 # On Win9x/ME, this test blows up -- it succeeds, but takes
5058 # about 5 minutes as the teststring grows exponentially.
5059 # Worse, since 9x/ME are not pre-emptively multitasking,
5060 # you end up with a "frozen" computer, even though with patience
5061 # the test eventually succeeds (with a max line length of 256k).
5062 # Instead, let's just punt: use the minimum linelength reported by
5063 # all of the supported platforms: 8192 (on NT/2K/XP).
5064 lt_cv_sys_max_cmd_len=8192;
5065 ;;
5066
5067 mint*)
5068 # On MiNT this can take a long time and run out of memory.
5069 lt_cv_sys_max_cmd_len=8192;
5070 ;;
5071
5072 amigaos*)
5073 # On AmigaOS with pdksh, this test takes hours, literally.
5074 # So we just punt and use a minimum line length of 8192.
5075 lt_cv_sys_max_cmd_len=8192;
5076 ;;
5077
5078 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5079 # This has been around since 386BSD, at least. Likely further.
5080 if test -x /sbin/sysctl; then
5081 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5082 elif test -x /usr/sbin/sysctl; then
5083 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5084 else
5085 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5086 fi
5087 # And add a safety zone
5088 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5089 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5090 ;;
5091
5092 interix*)
5093 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5094 lt_cv_sys_max_cmd_len=196608
5095 ;;
5096
5097 osf*)
5098 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5099 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5100 # nice to cause kernel panics so lets avoid the loop below.
5101 # First set a reasonable default.
5102 lt_cv_sys_max_cmd_len=16384
5103 #
5104 if test -x /sbin/sysconfig; then
5105 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5106 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5107 esac
5108 fi
5109 ;;
5110 sco3.2v5*)
5111 lt_cv_sys_max_cmd_len=102400
5112 ;;
5113 sysv5* | sco5v6* | sysv4.2uw2*)
5114 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5115 if test -n "$kargmax"; then
5116 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5117 else
5118 lt_cv_sys_max_cmd_len=32768
5119 fi
5120 ;;
5121 *)
5122 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5123 if test -n "$lt_cv_sys_max_cmd_len"; then
5124 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5125 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5126 else
5127 # Make teststring a little bigger before we do anything with it.
5128 # a 1K string should be a reasonable start.
5129 for i in 1 2 3 4 5 6 7 8 ; do
5130 teststring=$teststring$teststring
5131 done
5132 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5133 # If test is not a shell built-in, we'll probably end up computing a
5134 # maximum length that is only half of the actual maximum length, but
5135 # we can't tell.
5136 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5137 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5138 test $i != 17 # 1/2 MB should be enough
5139 do
5140 i=`expr $i + 1`
5141 teststring=$teststring$teststring
5142 done
5143 # Only check the string length outside the loop.
5144 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5145 teststring=
5146 # Add a significant safety factor because C++ compilers can tack on
5147 # massive amounts of additional arguments before passing them to the
5148 # linker. It appears as though 1/2 is a usable value.
5149 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5150 fi
5151 ;;
5152 esac
5153
5154fi
5155
5156if test -n $lt_cv_sys_max_cmd_len ; then
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5158$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5159else
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5161$as_echo "none" >&6; }
5162fi
5163max_cmd_len=$lt_cv_sys_max_cmd_len
5164
5165
5166
5167
5168
5169
5170: ${CP="cp -f"}
5171: ${MV="mv -f"}
5172: ${RM="rm -f"}
5173
5174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5175$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5176# Try some XSI features
5177xsi_shell=no
5178( _lt_dummy="a/b/c"
5179 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5180 = c,a/b,, \
5181 && eval 'test $(( 1 + 1 )) -eq 2 \
5182 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5183 && xsi_shell=yes
5184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5185$as_echo "$xsi_shell" >&6; }
5186
5187
5188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5189$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5190lt_shell_append=no
5191( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5192 >/dev/null 2>&1 \
5193 && lt_shell_append=yes
5194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5195$as_echo "$lt_shell_append" >&6; }
5196
5197
5198if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5199 lt_unset=unset
5200else
5201 lt_unset=false
5202fi
5203
5204
5205
5206
5207
5208# test EBCDIC or ASCII
5209case `echo X|tr X '\101'` in
5210 A) # ASCII based system
5211 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5212 lt_SP2NL='tr \040 \012'
5213 lt_NL2SP='tr \015\012 \040\040'
5214 ;;
5215 *) # EBCDIC based system
5216 lt_SP2NL='tr \100 \n'
5217 lt_NL2SP='tr \r\n \100\100'
5218 ;;
5219esac
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5230$as_echo_n "checking for $LD option to reload object files... " >&6; }
5231if test "${lt_cv_ld_reload_flag+set}" = set; then :
5232 $as_echo_n "(cached) " >&6
5233else
5234 lt_cv_ld_reload_flag='-r'
5235fi
5236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5237$as_echo "$lt_cv_ld_reload_flag" >&6; }
5238reload_flag=$lt_cv_ld_reload_flag
5239case $reload_flag in
5240"" | " "*) ;;
5241*) reload_flag=" $reload_flag" ;;
5242esac
5243reload_cmds='$LD$reload_flag -o $output$reload_objs'
5244case $host_os in
5245 darwin*)
5246 if test "$GCC" = yes; then
5247 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5248 else
5249 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5250 fi
5251 ;;
5252esac
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262if test -n "$ac_tool_prefix"; then
5263 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5264set dummy ${ac_tool_prefix}objdump; ac_word=$2
5265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5266$as_echo_n "checking for $ac_word... " >&6; }
5267if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5268 $as_echo_n "(cached) " >&6
5269else
5270 if test -n "$OBJDUMP"; then
5271 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5272else
5273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274for as_dir in $PATH
5275do
5276 IFS=$as_save_IFS
5277 test -z "$as_dir" && as_dir=.
5278 for ac_exec_ext in '' $ac_executable_extensions; do
5279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5280 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5282 break 2
5283 fi
5284done
5285 done
5286IFS=$as_save_IFS
5287
5288fi
5289fi
5290OBJDUMP=$ac_cv_prog_OBJDUMP
5291if test -n "$OBJDUMP"; then
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5293$as_echo "$OBJDUMP" >&6; }
5294else
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5296$as_echo "no" >&6; }
5297fi
5298
5299
5300fi
5301if test -z "$ac_cv_prog_OBJDUMP"; then
5302 ac_ct_OBJDUMP=$OBJDUMP
5303 # Extract the first word of "objdump", so it can be a program name with args.
5304set dummy objdump; ac_word=$2
5305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5306$as_echo_n "checking for $ac_word... " >&6; }
5307if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5308 $as_echo_n "(cached) " >&6
5309else
5310 if test -n "$ac_ct_OBJDUMP"; then
5311 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5312else
5313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314for as_dir in $PATH
5315do
5316 IFS=$as_save_IFS
5317 test -z "$as_dir" && as_dir=.
5318 for ac_exec_ext in '' $ac_executable_extensions; do
5319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5320 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5322 break 2
5323 fi
5324done
5325 done
5326IFS=$as_save_IFS
5327
5328fi
5329fi
5330ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5331if test -n "$ac_ct_OBJDUMP"; then
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5333$as_echo "$ac_ct_OBJDUMP" >&6; }
5334else
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5336$as_echo "no" >&6; }
5337fi
5338
5339 if test "x$ac_ct_OBJDUMP" = x; then
5340 OBJDUMP="false"
5341 else
5342 case $cross_compiling:$ac_tool_warned in
5343yes:)
5344{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5345$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5346ac_tool_warned=yes ;;
5347esac
5348 OBJDUMP=$ac_ct_OBJDUMP
5349 fi
5350else
5351 OBJDUMP="$ac_cv_prog_OBJDUMP"
5352fi
5353
5354test -z "$OBJDUMP" && OBJDUMP=objdump
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5365$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5366if test "${lt_cv_deplibs_check_method+set}" = set; then :
5367 $as_echo_n "(cached) " >&6
5368else
5369 lt_cv_file_magic_cmd='$MAGIC_CMD'
5370lt_cv_file_magic_test_file=
5371lt_cv_deplibs_check_method='unknown'
5372# Need to set the preceding variable on all platforms that support
5373# interlibrary dependencies.
5374# 'none' -- dependencies not supported.
5375# `unknown' -- same as none, but documents that we really don't know.
5376# 'pass_all' -- all dependencies passed with no checks.
5377# 'test_compile' -- check by making test program.
5378# 'file_magic [[regex]]' -- check by looking for files in library path
5379# which responds to the $file_magic_cmd with a given extended regex.
5380# If you have `file' or equivalent on your system and you're not sure
5381# whether `pass_all' will *always* work, you probably want this one.
5382
5383case $host_os in
5384aix[4-9]*)
5385 lt_cv_deplibs_check_method=pass_all
5386 ;;
5387
5388beos*)
5389 lt_cv_deplibs_check_method=pass_all
5390 ;;
5391
5392bsdi[45]*)
5393 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5394 lt_cv_file_magic_cmd='/usr/bin/file -L'
5395 lt_cv_file_magic_test_file=/shlib/libc.so
5396 ;;
5397
5398cygwin*)
5399 # func_win32_libid is a shell function defined in ltmain.sh
5400 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5401 lt_cv_file_magic_cmd='func_win32_libid'
5402 ;;
5403
5404mingw* | pw32*)
5405 # Base MSYS/MinGW do not provide the 'file' command needed by
5406 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5407 # unless we find 'file', for example because we are cross-compiling.
5408 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5409 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5410 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5411 lt_cv_file_magic_cmd='func_win32_libid'
5412 else
5413 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5414 lt_cv_file_magic_cmd='$OBJDUMP -f'
5415 fi
5416 ;;
5417
5418cegcc*)
5419 # use the weaker test based on 'objdump'. See mingw*.
5420 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5421 lt_cv_file_magic_cmd='$OBJDUMP -f'
5422 ;;
5423
5424darwin* | rhapsody*)
5425 lt_cv_deplibs_check_method=pass_all
5426 ;;
5427
5428freebsd* | dragonfly*)
5429 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5430 case $host_cpu in
5431 i*86 )
5432 # Not sure whether the presence of OpenBSD here was a mistake.
5433 # Let's accept both of them until this is cleared up.
5434 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5435 lt_cv_file_magic_cmd=/usr/bin/file
5436 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5437 ;;
5438 esac
5439 else
5440 lt_cv_deplibs_check_method=pass_all
5441 fi
5442 ;;
5443
5444gnu*)
5445 lt_cv_deplibs_check_method=pass_all
5446 ;;
5447
5448haiku*)
5449 lt_cv_deplibs_check_method=pass_all
5450 ;;
5451
5452hpux10.20* | hpux11*)
5453 lt_cv_file_magic_cmd=/usr/bin/file
5454 case $host_cpu in
5455 ia64*)
5456 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5457 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5458 ;;
5459 hppa*64*)
5460 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5461 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5462 ;;
5463 *)
5464 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5465 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5466 ;;
5467 esac
5468 ;;
5469
5470interix[3-9]*)
5471 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5472 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5473 ;;
5474
5475irix5* | irix6* | nonstopux*)
5476 case $LD in
5477 *-32|*"-32 ") libmagic=32-bit;;
5478 *-n32|*"-n32 ") libmagic=N32;;
5479 *-64|*"-64 ") libmagic=64-bit;;
5480 *) libmagic=never-match;;
5481 esac
5482 lt_cv_deplibs_check_method=pass_all
5483 ;;
5484
5485# This must be Linux ELF.
5486linux* | k*bsd*-gnu | kopensolaris*-gnu)
5487 lt_cv_deplibs_check_method=pass_all
5488 ;;
5489
5490netbsd*)
5491 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5492 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5493 else
5494 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5495 fi
5496 ;;
5497
5498newos6*)
5499 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5500 lt_cv_file_magic_cmd=/usr/bin/file
5501 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5502 ;;
5503
5504*nto* | *qnx*)
5505 lt_cv_deplibs_check_method=pass_all
5506 ;;
5507
5508openbsd*)
5509 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5510 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5511 else
5512 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5513 fi
5514 ;;
5515
5516osf3* | osf4* | osf5*)
5517 lt_cv_deplibs_check_method=pass_all
5518 ;;
5519
5520rdos*)
5521 lt_cv_deplibs_check_method=pass_all
5522 ;;
5523
5524solaris*)
5525 lt_cv_deplibs_check_method=pass_all
5526 ;;
5527
5528sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5529 lt_cv_deplibs_check_method=pass_all
5530 ;;
5531
5532sysv4 | sysv4.3*)
5533 case $host_vendor in
5534 motorola)
5535 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5536 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5537 ;;
5538 ncr)
5539 lt_cv_deplibs_check_method=pass_all
5540 ;;
5541 sequent)
5542 lt_cv_file_magic_cmd='/bin/file'
5543 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5544 ;;
5545 sni)
5546 lt_cv_file_magic_cmd='/bin/file'
5547 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5548 lt_cv_file_magic_test_file=/lib/libc.so
5549 ;;
5550 siemens)
5551 lt_cv_deplibs_check_method=pass_all
5552 ;;
5553 pc)
5554 lt_cv_deplibs_check_method=pass_all
5555 ;;
5556 esac
5557 ;;
5558
5559tpf*)
5560 lt_cv_deplibs_check_method=pass_all
5561 ;;
5562esac
5563
5564fi
5565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5566$as_echo "$lt_cv_deplibs_check_method" >&6; }
5567file_magic_cmd=$lt_cv_file_magic_cmd
5568deplibs_check_method=$lt_cv_deplibs_check_method
5569test -z "$deplibs_check_method" && deplibs_check_method=unknown
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582if test -n "$ac_tool_prefix"; then
5583 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5584set dummy ${ac_tool_prefix}ar; ac_word=$2
5585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5586$as_echo_n "checking for $ac_word... " >&6; }
5587if test "${ac_cv_prog_AR+set}" = set; then :
5588 $as_echo_n "(cached) " >&6
5589else
5590 if test -n "$AR"; then
5591 ac_cv_prog_AR="$AR" # Let the user override the test.
5592else
5593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594for as_dir in $PATH
5595do
5596 IFS=$as_save_IFS
5597 test -z "$as_dir" && as_dir=.
5598 for ac_exec_ext in '' $ac_executable_extensions; do
5599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5600 ac_cv_prog_AR="${ac_tool_prefix}ar"
5601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5602 break 2
5603 fi
5604done
5605 done
5606IFS=$as_save_IFS
5607
5608fi
5609fi
5610AR=$ac_cv_prog_AR
5611if test -n "$AR"; then
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5613$as_echo "$AR" >&6; }
5614else
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5616$as_echo "no" >&6; }
5617fi
5618
5619
5620fi
5621if test -z "$ac_cv_prog_AR"; then
5622 ac_ct_AR=$AR
5623 # Extract the first word of "ar", so it can be a program name with args.
5624set dummy ar; ac_word=$2
5625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5626$as_echo_n "checking for $ac_word... " >&6; }
5627if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5628 $as_echo_n "(cached) " >&6
5629else
5630 if test -n "$ac_ct_AR"; then
5631 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5632else
5633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634for as_dir in $PATH
5635do
5636 IFS=$as_save_IFS
5637 test -z "$as_dir" && as_dir=.
5638 for ac_exec_ext in '' $ac_executable_extensions; do
5639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5640 ac_cv_prog_ac_ct_AR="ar"
5641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5642 break 2
5643 fi
5644done
5645 done
5646IFS=$as_save_IFS
5647
5648fi
5649fi
5650ac_ct_AR=$ac_cv_prog_ac_ct_AR
5651if test -n "$ac_ct_AR"; then
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5653$as_echo "$ac_ct_AR" >&6; }
5654else
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656$as_echo "no" >&6; }
5657fi
5658
5659 if test "x$ac_ct_AR" = x; then
5660 AR="false"
5661 else
5662 case $cross_compiling:$ac_tool_warned in
5663yes:)
5664{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5665$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5666ac_tool_warned=yes ;;
5667esac
5668 AR=$ac_ct_AR
5669 fi
5670else
5671 AR="$ac_cv_prog_AR"
5672fi
5673
5674test -z "$AR" && AR=ar
5675test -z "$AR_FLAGS" && AR_FLAGS=cru
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687if test -n "$ac_tool_prefix"; then
5688 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5689set dummy ${ac_tool_prefix}strip; ac_word=$2
5690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5691$as_echo_n "checking for $ac_word... " >&6; }
5692if test "${ac_cv_prog_STRIP+set}" = set; then :
5693 $as_echo_n "(cached) " >&6
5694else
5695 if test -n "$STRIP"; then
5696 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5697else
5698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699for as_dir in $PATH
5700do
5701 IFS=$as_save_IFS
5702 test -z "$as_dir" && as_dir=.
5703 for ac_exec_ext in '' $ac_executable_extensions; do
5704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5705 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5707 break 2
5708 fi
5709done
5710 done
5711IFS=$as_save_IFS
5712
5713fi
5714fi
5715STRIP=$ac_cv_prog_STRIP
5716if test -n "$STRIP"; then
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5718$as_echo "$STRIP" >&6; }
5719else
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5721$as_echo "no" >&6; }
5722fi
5723
5724
5725fi
5726if test -z "$ac_cv_prog_STRIP"; then
5727 ac_ct_STRIP=$STRIP
5728 # Extract the first word of "strip", so it can be a program name with args.
5729set dummy strip; ac_word=$2
5730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5731$as_echo_n "checking for $ac_word... " >&6; }
5732if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5733 $as_echo_n "(cached) " >&6
5734else
5735 if test -n "$ac_ct_STRIP"; then
5736 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5737else
5738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739for as_dir in $PATH
5740do
5741 IFS=$as_save_IFS
5742 test -z "$as_dir" && as_dir=.
5743 for ac_exec_ext in '' $ac_executable_extensions; do
5744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5745 ac_cv_prog_ac_ct_STRIP="strip"
5746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5747 break 2
5748 fi
5749done
5750 done
5751IFS=$as_save_IFS
5752
5753fi
5754fi
5755ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5756if test -n "$ac_ct_STRIP"; then
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5758$as_echo "$ac_ct_STRIP" >&6; }
5759else
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5761$as_echo "no" >&6; }
5762fi
5763
5764 if test "x$ac_ct_STRIP" = x; then
5765 STRIP=":"
5766 else
5767 case $cross_compiling:$ac_tool_warned in
5768yes:)
5769{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5770$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5771ac_tool_warned=yes ;;
5772esac
5773 STRIP=$ac_ct_STRIP
5774 fi
5775else
5776 STRIP="$ac_cv_prog_STRIP"
5777fi
5778
5779test -z "$STRIP" && STRIP=:
5780
5781
5782
5783
5784
5785
5786if test -n "$ac_tool_prefix"; then
5787 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5788set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5790$as_echo_n "checking for $ac_word... " >&6; }
5791if test "${ac_cv_prog_RANLIB+set}" = set; then :
5792 $as_echo_n "(cached) " >&6
5793else
5794 if test -n "$RANLIB"; then
5795 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5796else
5797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798for as_dir in $PATH
5799do
5800 IFS=$as_save_IFS
5801 test -z "$as_dir" && as_dir=.
5802 for ac_exec_ext in '' $ac_executable_extensions; do
5803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5804 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5806 break 2
5807 fi
5808done
5809 done
5810IFS=$as_save_IFS
5811
5812fi
5813fi
5814RANLIB=$ac_cv_prog_RANLIB
5815if test -n "$RANLIB"; then
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5817$as_echo "$RANLIB" >&6; }
5818else
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5820$as_echo "no" >&6; }
5821fi
5822
5823
5824fi
5825if test -z "$ac_cv_prog_RANLIB"; then
5826 ac_ct_RANLIB=$RANLIB
5827 # Extract the first word of "ranlib", so it can be a program name with args.
5828set dummy ranlib; ac_word=$2
5829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5830$as_echo_n "checking for $ac_word... " >&6; }
5831if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5832 $as_echo_n "(cached) " >&6
5833else
5834 if test -n "$ac_ct_RANLIB"; then
5835 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5836else
5837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5838for as_dir in $PATH
5839do
5840 IFS=$as_save_IFS
5841 test -z "$as_dir" && as_dir=.
5842 for ac_exec_ext in '' $ac_executable_extensions; do
5843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5844 ac_cv_prog_ac_ct_RANLIB="ranlib"
5845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5846 break 2
5847 fi
5848done
5849 done
5850IFS=$as_save_IFS
5851
5852fi
5853fi
5854ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5855if test -n "$ac_ct_RANLIB"; then
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5857$as_echo "$ac_ct_RANLIB" >&6; }
5858else
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5860$as_echo "no" >&6; }
5861fi
5862
5863 if test "x$ac_ct_RANLIB" = x; then
5864 RANLIB=":"
5865 else
5866 case $cross_compiling:$ac_tool_warned in
5867yes:)
5868{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5869$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5870ac_tool_warned=yes ;;
5871esac
5872 RANLIB=$ac_ct_RANLIB
5873 fi
5874else
5875 RANLIB="$ac_cv_prog_RANLIB"
5876fi
5877
5878test -z "$RANLIB" && RANLIB=:
5879
5880
5881
5882
5883
5884
5885# Determine commands to create old-style static archives.
5886old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5887old_postinstall_cmds='chmod 644 $oldlib'
5888old_postuninstall_cmds=
5889
5890if test -n "$RANLIB"; then
5891 case $host_os in
5892 openbsd*)
5893 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5894 ;;
5895 *)
5896 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5897 ;;
5898 esac
5899 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5900fi
5901
5902case $host_os in
5903 darwin*)
5904 lock_old_archive_extraction=yes ;;
5905 *)
5906 lock_old_archive_extraction=no ;;
5907esac
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
5945
5946
5947# If no C compiler was specified, use CC.
5948LTCC=${LTCC-"$CC"}
5949
5950# If no C compiler flags were specified, use CFLAGS.
5951LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5952
5953# Allow CC to be a program name with arguments.
5954compiler=$CC
5955
5956
5957# Check for command to grab the raw symbol name followed by C symbol from nm.
5958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5959$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5960if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5961 $as_echo_n "(cached) " >&6
5962else
5963
5964# These are sane defaults that work on at least a few old systems.
5965# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5966
5967# Character class describing NM global symbol codes.
5968symcode='[BCDEGRST]'
5969
5970# Regexp to match symbols that can be accessed directly from C.
5971sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5972
5973# Define system-specific variables.
5974case $host_os in
5975aix*)
5976 symcode='[BCDT]'
5977 ;;
5978cygwin* | mingw* | pw32* | cegcc*)
5979 symcode='[ABCDGISTW]'
5980 ;;
5981hpux*)
5982 if test "$host_cpu" = ia64; then
5983 symcode='[ABCDEGRST]'
5984 fi
5985 ;;
5986irix* | nonstopux*)
5987 symcode='[BCDEGRST]'
5988 ;;
5989osf*)
5990 symcode='[BCDEGQRST]'
5991 ;;
5992solaris*)
5993 symcode='[BDRT]'
5994 ;;
5995sco3.2v5*)
5996 symcode='[DT]'
5997 ;;
5998sysv4.2uw2*)
5999 symcode='[DT]'
6000 ;;
6001sysv5* | sco5v6* | unixware* | OpenUNIX*)
6002 symcode='[ABDT]'
6003 ;;
6004sysv4)
6005 symcode='[DFNSTU]'
6006 ;;
6007esac
6008
6009# If we're using GNU nm, then use its standard symbol codes.
6010case `$NM -V 2>&1` in
6011*GNU* | *'with BFD'*)
6012 symcode='[ABCDGIRSTW]' ;;
6013esac
6014
6015# Transform an extracted symbol line into a proper C declaration.
6016# Some systems (esp. on ia64) link data and code symbols differently,
6017# so use this general approach.
6018lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6019
6020# Transform an extracted symbol line into symbol name and symbol address
6021lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6022lt_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'"
6023
6024# Handle CRLF in mingw tool chain
6025opt_cr=
6026case $build_os in
6027mingw*)
6028 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6029 ;;
6030esac
6031
6032# Try without a prefix underscore, then with it.
6033for ac_symprfx in "" "_"; do
6034
6035 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6036 symxfrm="\\1 $ac_symprfx\\2 \\2"
6037
6038 # Write the raw and C identifiers.
6039 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6040 # Fake it for dumpbin and say T for any non-static function
6041 # and D for any global variable.
6042 # Also find C++ and __fastcall symbols from MSVC++,
6043 # which start with @ or ?.
6044 lt_cv_sys_global_symbol_pipe="$AWK '"\
6045" {last_section=section; section=\$ 3};"\
6046" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6047" \$ 0!~/External *\|/{next};"\
6048" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6049" {if(hide[section]) next};"\
6050" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6051" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6052" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6053" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6054" ' prfx=^$ac_symprfx"
6055 else
6056 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6057 fi
6058
6059 # Check to see that the pipe works correctly.
6060 pipe_works=no
6061
6062 rm -f conftest*
6063 cat > conftest.$ac_ext <<_LT_EOF
6064#ifdef __cplusplus
6065extern "C" {
6066#endif
6067char nm_test_var;
6068void nm_test_func(void);
6069void nm_test_func(void){}
6070#ifdef __cplusplus
6071}
6072#endif
6073int main(){nm_test_var='a';nm_test_func();return(0);}
6074_LT_EOF
6075
6076 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6077 (eval $ac_compile) 2>&5
6078 ac_status=$?
6079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6080 test $ac_status = 0; }; then
6081 # Now try to grab the symbols.
6082 nlist=conftest.nm
6083 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6084 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6085 ac_status=$?
6086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6087 test $ac_status = 0; } && test -s "$nlist"; then
6088 # Try sorting and uniquifying the output.
6089 if sort "$nlist" | uniq > "$nlist"T; then
6090 mv -f "$nlist"T "$nlist"
6091 else
6092 rm -f "$nlist"T
6093 fi
6094
6095 # Make sure that we snagged all the symbols we need.
6096 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6097 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6098 cat <<_LT_EOF > conftest.$ac_ext
6099#ifdef __cplusplus
6100extern "C" {
6101#endif
6102
6103_LT_EOF
6104 # Now generate the symbol file.
6105 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6106
6107 cat <<_LT_EOF >> conftest.$ac_ext
6108
6109/* The mapping between symbol names and symbols. */
6110const struct {
6111 const char *name;
6112 void *address;
6113}
6114lt__PROGRAM__LTX_preloaded_symbols[] =
6115{
6116 { "@PROGRAM@", (void *) 0 },
6117_LT_EOF
6118 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6119 cat <<\_LT_EOF >> conftest.$ac_ext
6120 {0, (void *) 0}
6121};
6122
6123/* This works around a problem in FreeBSD linker */
6124#ifdef FREEBSD_WORKAROUND
6125static const void *lt_preloaded_setup() {
6126 return lt__PROGRAM__LTX_preloaded_symbols;
6127}
6128#endif
6129
6130#ifdef __cplusplus
6131}
6132#endif
6133_LT_EOF
6134 # Now try linking the two files.
6135 mv conftest.$ac_objext conftstm.$ac_objext
6136 lt_save_LIBS="$LIBS"
6137 lt_save_CFLAGS="$CFLAGS"
6138 LIBS="conftstm.$ac_objext"
6139 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6140 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6141 (eval $ac_link) 2>&5
6142 ac_status=$?
6143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6144 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6145 pipe_works=yes
6146 fi
6147 LIBS="$lt_save_LIBS"
6148 CFLAGS="$lt_save_CFLAGS"
6149 else
6150 echo "cannot find nm_test_func in $nlist" >&5
6151 fi
6152 else
6153 echo "cannot find nm_test_var in $nlist" >&5
6154 fi
6155 else
6156 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6157 fi
6158 else
6159 echo "$progname: failed program was:" >&5
6160 cat conftest.$ac_ext >&5
6161 fi
6162 rm -rf conftest* conftst*
6163
6164 # Do not use the global_symbol_pipe unless it works.
6165 if test "$pipe_works" = yes; then
6166 break
6167 else
6168 lt_cv_sys_global_symbol_pipe=
6169 fi
6170done
6171
6172fi
6173
6174if test -z "$lt_cv_sys_global_symbol_pipe"; then
6175 lt_cv_sys_global_symbol_to_cdecl=
6176fi
6177if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6179$as_echo "failed" >&6; }
6180else
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6182$as_echo "ok" >&6; }
6183fi
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207# Check whether --enable-libtool-lock was given.
6208if test "${enable_libtool_lock+set}" = set; then :
6209 enableval=$enable_libtool_lock;
6210fi
6211
6212test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6213
6214# Some flags need to be propagated to the compiler or linker for good
6215# libtool support.
6216case $host in
6217ia64-*-hpux*)
6218 # Find out which ABI we are using.
6219 echo 'int i;' > conftest.$ac_ext
6220 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6221 (eval $ac_compile) 2>&5
6222 ac_status=$?
6223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6224 test $ac_status = 0; }; then
6225 case `/usr/bin/file conftest.$ac_objext` in
6226 *ELF-32*)
6227 HPUX_IA64_MODE="32"
6228 ;;
6229 *ELF-64*)
6230 HPUX_IA64_MODE="64"
6231 ;;
6232 esac
6233 fi
6234 rm -rf conftest*
6235 ;;
6236*-*-irix6*)
6237 # Find out which ABI we are using.
6238 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6240 (eval $ac_compile) 2>&5
6241 ac_status=$?
6242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6243 test $ac_status = 0; }; then
6244 if test "$lt_cv_prog_gnu_ld" = yes; then
6245 case `/usr/bin/file conftest.$ac_objext` in
6246 *32-bit*)
6247 LD="${LD-ld} -melf32bsmip"
6248 ;;
6249 *N32*)
6250 LD="${LD-ld} -melf32bmipn32"
6251 ;;
6252 *64-bit*)
6253 LD="${LD-ld} -melf64bmip"
6254 ;;
6255 esac
6256 else
6257 case `/usr/bin/file conftest.$ac_objext` in
6258 *32-bit*)
6259 LD="${LD-ld} -32"
6260 ;;
6261 *N32*)
6262 LD="${LD-ld} -n32"
6263 ;;
6264 *64-bit*)
6265 LD="${LD-ld} -64"
6266 ;;
6267 esac
6268 fi
6269 fi
6270 rm -rf conftest*
6271 ;;
6272
6273x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6274s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6275 # Find out which ABI we are using.
6276 echo 'int i;' > conftest.$ac_ext
6277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6278 (eval $ac_compile) 2>&5
6279 ac_status=$?
6280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6281 test $ac_status = 0; }; then
6282 case `/usr/bin/file conftest.o` in
6283 *32-bit*)
6284 case $host in
6285 x86_64-*kfreebsd*-gnu)
6286 LD="${LD-ld} -m elf_i386_fbsd"
6287 ;;
6288 x86_64-*linux*)
6289 LD="${LD-ld} -m elf_i386"
6290 ;;
6291 ppc64-*linux*|powerpc64-*linux*)
6292 LD="${LD-ld} -m elf32ppclinux"
6293 ;;
6294 s390x-*linux*)
6295 LD="${LD-ld} -m elf_s390"
6296 ;;
6297 sparc64-*linux*)
6298 LD="${LD-ld} -m elf32_sparc"
6299 ;;
6300 esac
6301 ;;
6302 *64-bit*)
6303 case $host in
6304 x86_64-*kfreebsd*-gnu)
6305 LD="${LD-ld} -m elf_x86_64_fbsd"
6306 ;;
6307 x86_64-*linux*)
6308 LD="${LD-ld} -m elf_x86_64"
6309 ;;
6310 ppc*-*linux*|powerpc*-*linux*)
6311 LD="${LD-ld} -m elf64ppc"
6312 ;;
6313 s390*-*linux*|s390*-*tpf*)
6314 LD="${LD-ld} -m elf64_s390"
6315 ;;
6316 sparc*-*linux*)
6317 LD="${LD-ld} -m elf64_sparc"
6318 ;;
6319 esac
6320 ;;
6321 esac
6322 fi
6323 rm -rf conftest*
6324 ;;
6325
6326*-*-sco3.2v5*)
6327 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6328 SAVE_CFLAGS="$CFLAGS"
6329 CFLAGS="$CFLAGS -belf"
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6331$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6332if test "${lt_cv_cc_needs_belf+set}" = set; then :
6333 $as_echo_n "(cached) " >&6
6334else
6335 ac_ext=c
6336ac_cpp='$CPP $CPPFLAGS'
6337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6339ac_compiler_gnu=$ac_cv_c_compiler_gnu
6340
6341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6342/* end confdefs.h. */
6343
6344int
6345main ()
6346{
6347
6348 ;
6349 return 0;
6350}
6351_ACEOF
6352if ac_fn_c_try_link "$LINENO"; then :
6353 lt_cv_cc_needs_belf=yes
6354else
6355 lt_cv_cc_needs_belf=no
6356fi
6357rm -f core conftest.err conftest.$ac_objext \
6358 conftest$ac_exeext conftest.$ac_ext
6359 ac_ext=c
6360ac_cpp='$CPP $CPPFLAGS'
6361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6363ac_compiler_gnu=$ac_cv_c_compiler_gnu
6364
6365fi
6366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6367$as_echo "$lt_cv_cc_needs_belf" >&6; }
6368 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6369 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6370 CFLAGS="$SAVE_CFLAGS"
6371 fi
6372 ;;
6373sparc*-*solaris*)
6374 # Find out which ABI we are using.
6375 echo 'int i;' > conftest.$ac_ext
6376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6377 (eval $ac_compile) 2>&5
6378 ac_status=$?
6379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6380 test $ac_status = 0; }; then
6381 case `/usr/bin/file conftest.o` in
6382 *64-bit*)
6383 case $lt_cv_prog_gnu_ld in
6384 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6385 *)
6386 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6387 LD="${LD-ld} -64"
6388 fi
6389 ;;
6390 esac
6391 ;;
6392 esac
6393 fi
6394 rm -rf conftest*
6395 ;;
6396esac
6397
6398need_locks="$enable_libtool_lock"
6399
6400
6401 case $host_os in
6402 rhapsody* | darwin*)
6403 if test -n "$ac_tool_prefix"; then
6404 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6405set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6407$as_echo_n "checking for $ac_word... " >&6; }
6408if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6409 $as_echo_n "(cached) " >&6
6410else
6411 if test -n "$DSYMUTIL"; then
6412 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6413else
6414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415for as_dir in $PATH
6416do
6417 IFS=$as_save_IFS
6418 test -z "$as_dir" && as_dir=.
6419 for ac_exec_ext in '' $ac_executable_extensions; do
6420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6421 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6423 break 2
6424 fi
6425done
6426 done
6427IFS=$as_save_IFS
6428
6429fi
6430fi
6431DSYMUTIL=$ac_cv_prog_DSYMUTIL
6432if test -n "$DSYMUTIL"; then
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6434$as_echo "$DSYMUTIL" >&6; }
6435else
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6437$as_echo "no" >&6; }
6438fi
6439
6440
6441fi
6442if test -z "$ac_cv_prog_DSYMUTIL"; then
6443 ac_ct_DSYMUTIL=$DSYMUTIL
6444 # Extract the first word of "dsymutil", so it can be a program name with args.
6445set dummy dsymutil; ac_word=$2
6446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6447$as_echo_n "checking for $ac_word... " >&6; }
6448if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6449 $as_echo_n "(cached) " >&6
6450else
6451 if test -n "$ac_ct_DSYMUTIL"; then
6452 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6453else
6454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455for as_dir in $PATH
6456do
6457 IFS=$as_save_IFS
6458 test -z "$as_dir" && as_dir=.
6459 for ac_exec_ext in '' $ac_executable_extensions; do
6460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6461 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6463 break 2
6464 fi
6465done
6466 done
6467IFS=$as_save_IFS
6468
6469fi
6470fi
6471ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6472if test -n "$ac_ct_DSYMUTIL"; then
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6474$as_echo "$ac_ct_DSYMUTIL" >&6; }
6475else
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6477$as_echo "no" >&6; }
6478fi
6479
6480 if test "x$ac_ct_DSYMUTIL" = x; then
6481 DSYMUTIL=":"
6482 else
6483 case $cross_compiling:$ac_tool_warned in
6484yes:)
6485{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6486$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6487ac_tool_warned=yes ;;
6488esac
6489 DSYMUTIL=$ac_ct_DSYMUTIL
6490 fi
6491else
6492 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6493fi
6494
6495 if test -n "$ac_tool_prefix"; then
6496 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6497set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6499$as_echo_n "checking for $ac_word... " >&6; }
6500if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6501 $as_echo_n "(cached) " >&6
6502else
6503 if test -n "$NMEDIT"; then
6504 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6505else
6506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6507for as_dir in $PATH
6508do
6509 IFS=$as_save_IFS
6510 test -z "$as_dir" && as_dir=.
6511 for ac_exec_ext in '' $ac_executable_extensions; do
6512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6513 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6515 break 2
6516 fi
6517done
6518 done
6519IFS=$as_save_IFS
6520
6521fi
6522fi
6523NMEDIT=$ac_cv_prog_NMEDIT
6524if test -n "$NMEDIT"; then
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6526$as_echo "$NMEDIT" >&6; }
6527else
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6529$as_echo "no" >&6; }
6530fi
6531
6532
6533fi
6534if test -z "$ac_cv_prog_NMEDIT"; then
6535 ac_ct_NMEDIT=$NMEDIT
6536 # Extract the first word of "nmedit", so it can be a program name with args.
6537set dummy nmedit; ac_word=$2
6538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6539$as_echo_n "checking for $ac_word... " >&6; }
6540if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6541 $as_echo_n "(cached) " >&6
6542else
6543 if test -n "$ac_ct_NMEDIT"; then
6544 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6545else
6546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547for as_dir in $PATH
6548do
6549 IFS=$as_save_IFS
6550 test -z "$as_dir" && as_dir=.
6551 for ac_exec_ext in '' $ac_executable_extensions; do
6552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6553 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6555 break 2
6556 fi
6557done
6558 done
6559IFS=$as_save_IFS
6560
6561fi
6562fi
6563ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6564if test -n "$ac_ct_NMEDIT"; then
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6566$as_echo "$ac_ct_NMEDIT" >&6; }
6567else
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6569$as_echo "no" >&6; }
6570fi
6571
6572 if test "x$ac_ct_NMEDIT" = x; then
6573 NMEDIT=":"
6574 else
6575 case $cross_compiling:$ac_tool_warned in
6576yes:)
6577{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6578$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6579ac_tool_warned=yes ;;
6580esac
6581 NMEDIT=$ac_ct_NMEDIT
6582 fi
6583else
6584 NMEDIT="$ac_cv_prog_NMEDIT"
6585fi
6586
6587 if test -n "$ac_tool_prefix"; then
6588 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6589set dummy ${ac_tool_prefix}lipo; ac_word=$2
6590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6591$as_echo_n "checking for $ac_word... " >&6; }
6592if test "${ac_cv_prog_LIPO+set}" = set; then :
6593 $as_echo_n "(cached) " >&6
6594else
6595 if test -n "$LIPO"; then
6596 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6597else
6598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599for as_dir in $PATH
6600do
6601 IFS=$as_save_IFS
6602 test -z "$as_dir" && as_dir=.
6603 for ac_exec_ext in '' $ac_executable_extensions; do
6604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6605 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6607 break 2
6608 fi
6609done
6610 done
6611IFS=$as_save_IFS
6612
6613fi
6614fi
6615LIPO=$ac_cv_prog_LIPO
6616if test -n "$LIPO"; then
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6618$as_echo "$LIPO" >&6; }
6619else
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6621$as_echo "no" >&6; }
6622fi
6623
6624
6625fi
6626if test -z "$ac_cv_prog_LIPO"; then
6627 ac_ct_LIPO=$LIPO
6628 # Extract the first word of "lipo", so it can be a program name with args.
6629set dummy lipo; ac_word=$2
6630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6631$as_echo_n "checking for $ac_word... " >&6; }
6632if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6633 $as_echo_n "(cached) " >&6
6634else
6635 if test -n "$ac_ct_LIPO"; then
6636 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6637else
6638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639for as_dir in $PATH
6640do
6641 IFS=$as_save_IFS
6642 test -z "$as_dir" && as_dir=.
6643 for ac_exec_ext in '' $ac_executable_extensions; do
6644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6645 ac_cv_prog_ac_ct_LIPO="lipo"
6646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6647 break 2
6648 fi
6649done
6650 done
6651IFS=$as_save_IFS
6652
6653fi
6654fi
6655ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6656if test -n "$ac_ct_LIPO"; then
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6658$as_echo "$ac_ct_LIPO" >&6; }
6659else
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6661$as_echo "no" >&6; }
6662fi
6663
6664 if test "x$ac_ct_LIPO" = x; then
6665 LIPO=":"
6666 else
6667 case $cross_compiling:$ac_tool_warned in
6668yes:)
6669{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6670$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6671ac_tool_warned=yes ;;
6672esac
6673 LIPO=$ac_ct_LIPO
6674 fi
6675else
6676 LIPO="$ac_cv_prog_LIPO"
6677fi
6678
6679 if test -n "$ac_tool_prefix"; then
6680 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6681set dummy ${ac_tool_prefix}otool; ac_word=$2
6682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6683$as_echo_n "checking for $ac_word... " >&6; }
6684if test "${ac_cv_prog_OTOOL+set}" = set; then :
6685 $as_echo_n "(cached) " >&6
6686else
6687 if test -n "$OTOOL"; then
6688 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6689else
6690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691for as_dir in $PATH
6692do
6693 IFS=$as_save_IFS
6694 test -z "$as_dir" && as_dir=.
6695 for ac_exec_ext in '' $ac_executable_extensions; do
6696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6697 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6699 break 2
6700 fi
6701done
6702 done
6703IFS=$as_save_IFS
6704
6705fi
6706fi
6707OTOOL=$ac_cv_prog_OTOOL
6708if test -n "$OTOOL"; then
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6710$as_echo "$OTOOL" >&6; }
6711else
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6713$as_echo "no" >&6; }
6714fi
6715
6716
6717fi
6718if test -z "$ac_cv_prog_OTOOL"; then
6719 ac_ct_OTOOL=$OTOOL
6720 # Extract the first word of "otool", so it can be a program name with args.
6721set dummy otool; ac_word=$2
6722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6723$as_echo_n "checking for $ac_word... " >&6; }
6724if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6725 $as_echo_n "(cached) " >&6
6726else
6727 if test -n "$ac_ct_OTOOL"; then
6728 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6729else
6730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731for as_dir in $PATH
6732do
6733 IFS=$as_save_IFS
6734 test -z "$as_dir" && as_dir=.
6735 for ac_exec_ext in '' $ac_executable_extensions; do
6736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6737 ac_cv_prog_ac_ct_OTOOL="otool"
6738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6739 break 2
6740 fi
6741done
6742 done
6743IFS=$as_save_IFS
6744
6745fi
6746fi
6747ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6748if test -n "$ac_ct_OTOOL"; then
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6750$as_echo "$ac_ct_OTOOL" >&6; }
6751else
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6753$as_echo "no" >&6; }
6754fi
6755
6756 if test "x$ac_ct_OTOOL" = x; then
6757 OTOOL=":"
6758 else
6759 case $cross_compiling:$ac_tool_warned in
6760yes:)
6761{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6762$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6763ac_tool_warned=yes ;;
6764esac
6765 OTOOL=$ac_ct_OTOOL
6766 fi
6767else
6768 OTOOL="$ac_cv_prog_OTOOL"
6769fi
6770
6771 if test -n "$ac_tool_prefix"; then
6772 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6773set dummy ${ac_tool_prefix}otool64; ac_word=$2
6774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6775$as_echo_n "checking for $ac_word... " >&6; }
6776if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6777 $as_echo_n "(cached) " >&6
6778else
6779 if test -n "$OTOOL64"; then
6780 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6781else
6782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783for as_dir in $PATH
6784do
6785 IFS=$as_save_IFS
6786 test -z "$as_dir" && as_dir=.
6787 for ac_exec_ext in '' $ac_executable_extensions; do
6788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6789 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6791 break 2
6792 fi
6793done
6794 done
6795IFS=$as_save_IFS
6796
6797fi
6798fi
6799OTOOL64=$ac_cv_prog_OTOOL64
6800if test -n "$OTOOL64"; then
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6802$as_echo "$OTOOL64" >&6; }
6803else
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6805$as_echo "no" >&6; }
6806fi
6807
6808
6809fi
6810if test -z "$ac_cv_prog_OTOOL64"; then
6811 ac_ct_OTOOL64=$OTOOL64
6812 # Extract the first word of "otool64", so it can be a program name with args.
6813set dummy otool64; ac_word=$2
6814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6815$as_echo_n "checking for $ac_word... " >&6; }
6816if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6817 $as_echo_n "(cached) " >&6
6818else
6819 if test -n "$ac_ct_OTOOL64"; then
6820 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6821else
6822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823for as_dir in $PATH
6824do
6825 IFS=$as_save_IFS
6826 test -z "$as_dir" && as_dir=.
6827 for ac_exec_ext in '' $ac_executable_extensions; do
6828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6829 ac_cv_prog_ac_ct_OTOOL64="otool64"
6830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6831 break 2
6832 fi
6833done
6834 done
6835IFS=$as_save_IFS
6836
6837fi
6838fi
6839ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6840if test -n "$ac_ct_OTOOL64"; then
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6842$as_echo "$ac_ct_OTOOL64" >&6; }
6843else
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6845$as_echo "no" >&6; }
6846fi
6847
6848 if test "x$ac_ct_OTOOL64" = x; then
6849 OTOOL64=":"
6850 else
6851 case $cross_compiling:$ac_tool_warned in
6852yes:)
6853{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6854$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6855ac_tool_warned=yes ;;
6856esac
6857 OTOOL64=$ac_ct_OTOOL64
6858 fi
6859else
6860 OTOOL64="$ac_cv_prog_OTOOL64"
6861fi
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
6887
6888
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6890$as_echo_n "checking for -single_module linker flag... " >&6; }
6891if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6892 $as_echo_n "(cached) " >&6
6893else
6894 lt_cv_apple_cc_single_mod=no
6895 if test -z "${LT_MULTI_MODULE}"; then
6896 # By default we will add the -single_module flag. You can override
6897 # by either setting the environment variable LT_MULTI_MODULE
6898 # non-empty at configure time, or by adding -multi_module to the
6899 # link flags.
6900 rm -rf libconftest.dylib*
6901 echo "int foo(void){return 1;}" > conftest.c
6902 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6903-dynamiclib -Wl,-single_module conftest.c" >&5
6904 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6905 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6906 _lt_result=$?
6907 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6908 lt_cv_apple_cc_single_mod=yes
6909 else
6910 cat conftest.err >&5
6911 fi
6912 rm -rf libconftest.dylib*
6913 rm -f conftest.*
6914 fi
6915fi
6916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6917$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6919$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6920if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6921 $as_echo_n "(cached) " >&6
6922else
6923 lt_cv_ld_exported_symbols_list=no
6924 save_LDFLAGS=$LDFLAGS
6925 echo "_main" > conftest.sym
6926 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6928/* end confdefs.h. */
6929
6930int
6931main ()
6932{
6933
6934 ;
6935 return 0;
6936}
6937_ACEOF
6938if ac_fn_c_try_link "$LINENO"; then :
6939 lt_cv_ld_exported_symbols_list=yes
6940else
6941 lt_cv_ld_exported_symbols_list=no
6942fi
6943rm -f core conftest.err conftest.$ac_objext \
6944 conftest$ac_exeext conftest.$ac_ext
6945 LDFLAGS="$save_LDFLAGS"
6946
6947fi
6948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6949$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6951$as_echo_n "checking for -force_load linker flag... " >&6; }
6952if test "${lt_cv_ld_force_load+set}" = set; then :
6953 $as_echo_n "(cached) " >&6
6954else
6955 lt_cv_ld_force_load=no
6956 cat > conftest.c << _LT_EOF
6957int forced_loaded() { return 2;}
6958_LT_EOF
6959 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6960 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6961 echo "$AR cru libconftest.a conftest.o" >&5
6962 $AR cru libconftest.a conftest.o 2>&5
6963 cat > conftest.c << _LT_EOF
6964int main() { return 0;}
6965_LT_EOF
6966 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6967 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6968 _lt_result=$?
6969 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6970 lt_cv_ld_force_load=yes
6971 else
6972 cat conftest.err >&5
6973 fi
6974 rm -f conftest.err libconftest.a conftest conftest.c
6975 rm -rf conftest.dSYM
6976
6977fi
6978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6979$as_echo "$lt_cv_ld_force_load" >&6; }
6980 case $host_os in
6981 rhapsody* | darwin1.[012])
6982 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6983 darwin1.*)
6984 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6985 darwin*) # darwin 5.x on
6986 # if running on 10.5 or later, the deployment target defaults
6987 # to the OS version, if on x86, and 10.4, the deployment
6988 # target defaults to 10.4. Don't you love it?
6989 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6990 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6991 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6992 10.[012]*)
6993 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6994 10.*)
6995 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6996 esac
6997 ;;
6998 esac
6999 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7000 _lt_dar_single_mod='$single_module'
7001 fi
7002 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7003 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7004 else
7005 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7006 fi
7007 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7008 _lt_dsymutil='~$DSYMUTIL $lib || :'
7009 else
7010 _lt_dsymutil=
7011 fi
7012 ;;
7013 esac
7014
7015ac_ext=c
7016ac_cpp='$CPP $CPPFLAGS'
7017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7019ac_compiler_gnu=$ac_cv_c_compiler_gnu
7020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7021$as_echo_n "checking how to run the C preprocessor... " >&6; }
7022# On Suns, sometimes $CPP names a directory.
7023if test -n "$CPP" && test -d "$CPP"; then
7024 CPP=
7025fi
7026if test -z "$CPP"; then
7027 if test "${ac_cv_prog_CPP+set}" = set; then :
7028 $as_echo_n "(cached) " >&6
7029else
7030 # Double quotes because CPP needs to be expanded
7031 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7032 do
7033 ac_preproc_ok=false
7034for ac_c_preproc_warn_flag in '' yes
7035do
7036 # Use a header file that comes with gcc, so configuring glibc
7037 # with a fresh cross-compiler works.
7038 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7039 # <limits.h> exists even on freestanding compilers.
7040 # On the NeXT, cc -E runs the code through the compiler's parser,
7041 # not just through cpp. "Syntax error" is here to catch this case.
7042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7043/* end confdefs.h. */
7044#ifdef __STDC__
7045# include <limits.h>
7046#else
7047# include <assert.h>
7048#endif
7049 Syntax error
7050_ACEOF
7051if ac_fn_c_try_cpp "$LINENO"; then :
7052
7053else
7054 # Broken: fails on valid input.
7055continue
7056fi
7057rm -f conftest.err conftest.$ac_ext
7058
7059 # OK, works on sane cases. Now check whether nonexistent headers
7060 # can be detected and how.
7061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7062/* end confdefs.h. */
7063#include <ac_nonexistent.h>
7064_ACEOF
7065if ac_fn_c_try_cpp "$LINENO"; then :
7066 # Broken: success on invalid input.
7067continue
7068else
7069 # Passes both tests.
7070ac_preproc_ok=:
7071break
7072fi
7073rm -f conftest.err conftest.$ac_ext
7074
7075done
7076# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7077rm -f conftest.err conftest.$ac_ext
7078if $ac_preproc_ok; then :
7079 break
7080fi
7081
7082 done
7083 ac_cv_prog_CPP=$CPP
7084
7085fi
7086 CPP=$ac_cv_prog_CPP
7087else
7088 ac_cv_prog_CPP=$CPP
7089fi
7090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7091$as_echo "$CPP" >&6; }
7092ac_preproc_ok=false
7093for ac_c_preproc_warn_flag in '' yes
7094do
7095 # Use a header file that comes with gcc, so configuring glibc
7096 # with a fresh cross-compiler works.
7097 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7098 # <limits.h> exists even on freestanding compilers.
7099 # On the NeXT, cc -E runs the code through the compiler's parser,
7100 # not just through cpp. "Syntax error" is here to catch this case.
7101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7102/* end confdefs.h. */
7103#ifdef __STDC__
7104# include <limits.h>
7105#else
7106# include <assert.h>
7107#endif
7108 Syntax error
7109_ACEOF
7110if ac_fn_c_try_cpp "$LINENO"; then :
7111
7112else
7113 # Broken: fails on valid input.
7114continue
7115fi
7116rm -f conftest.err conftest.$ac_ext
7117
7118 # OK, works on sane cases. Now check whether nonexistent headers
7119 # can be detected and how.
7120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7121/* end confdefs.h. */
7122#include <ac_nonexistent.h>
7123_ACEOF
7124if ac_fn_c_try_cpp "$LINENO"; then :
7125 # Broken: success on invalid input.
7126continue
7127else
7128 # Passes both tests.
7129ac_preproc_ok=:
7130break
7131fi
7132rm -f conftest.err conftest.$ac_ext
7133
7134done
7135# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7136rm -f conftest.err conftest.$ac_ext
7137if $ac_preproc_ok; then :
7138
7139else
7140 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7141$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7142as_fn_error "C preprocessor \"$CPP\" fails sanity check
7143See \`config.log' for more details." "$LINENO" 5; }
7144fi
7145
7146ac_ext=c
7147ac_cpp='$CPP $CPPFLAGS'
7148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7150ac_compiler_gnu=$ac_cv_c_compiler_gnu
7151
7152
7153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7154$as_echo_n "checking for ANSI C header files... " >&6; }
7155if test "${ac_cv_header_stdc+set}" = set; then :
7156 $as_echo_n "(cached) " >&6
7157else
7158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7159/* end confdefs.h. */
7160#include <stdlib.h>
7161#include <stdarg.h>
7162#include <string.h>
7163#include <float.h>
7164
7165int
7166main ()
7167{
7168
7169 ;
7170 return 0;
7171}
7172_ACEOF
7173if ac_fn_c_try_compile "$LINENO"; then :
7174 ac_cv_header_stdc=yes
7175else
7176 ac_cv_header_stdc=no
7177fi
7178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7179
7180if test $ac_cv_header_stdc = yes; then
7181 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7183/* end confdefs.h. */
7184#include <string.h>
7185
7186_ACEOF
7187if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7188 $EGREP "memchr" >/dev/null 2>&1; then :
7189
7190else
7191 ac_cv_header_stdc=no
7192fi
7193rm -f conftest*
7194
7195fi
7196
7197if test $ac_cv_header_stdc = yes; then
7198 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7200/* end confdefs.h. */
7201#include <stdlib.h>
7202
7203_ACEOF
7204if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7205 $EGREP "free" >/dev/null 2>&1; then :
7206
7207else
7208 ac_cv_header_stdc=no
7209fi
7210rm -f conftest*
7211
7212fi
7213
7214if test $ac_cv_header_stdc = yes; then
7215 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7216 if test "$cross_compiling" = yes; then :
7217 :
7218else
7219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7220/* end confdefs.h. */
7221#include <ctype.h>
7222#include <stdlib.h>
7223#if ((' ' & 0x0FF) == 0x020)
7224# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7225# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7226#else
7227# define ISLOWER(c) \
7228 (('a' <= (c) && (c) <= 'i') \
7229 || ('j' <= (c) && (c) <= 'r') \
7230 || ('s' <= (c) && (c) <= 'z'))
7231# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7232#endif
7233
7234#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7235int
7236main ()
7237{
7238 int i;
7239 for (i = 0; i < 256; i++)
7240 if (XOR (islower (i), ISLOWER (i))
7241 || toupper (i) != TOUPPER (i))
7242 return 2;
7243 return 0;
7244}
7245_ACEOF
7246if ac_fn_c_try_run "$LINENO"; then :
7247
7248else
7249 ac_cv_header_stdc=no
7250fi
7251rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7252 conftest.$ac_objext conftest.beam conftest.$ac_ext
7253fi
7254
7255fi
7256fi
7257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7258$as_echo "$ac_cv_header_stdc" >&6; }
7259if test $ac_cv_header_stdc = yes; then
7260
7261$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7262
7263fi
7264
7265# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7266for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7267 inttypes.h stdint.h unistd.h
7268do :
7269 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7270ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7271"
7272eval as_val=\$$as_ac_Header
7273 if test "x$as_val" = x""yes; then :
7274 cat >>confdefs.h <<_ACEOF
7275#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7276_ACEOF
7277
7278fi
7279
7280done
7281
7282
7283for ac_header in dlfcn.h
7284do :
7285 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7286"
7287if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7288 cat >>confdefs.h <<_ACEOF
7289#define HAVE_DLFCN_H 1
7290_ACEOF
7291
7292fi
7293
7294done
7295
7296if test -n "$ac_tool_prefix"; then
7297 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7298set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7300$as_echo_n "checking for $ac_word... " >&6; }
7301if test "${ac_cv_prog_GOC+set}" = set; then :
7302 $as_echo_n "(cached) " >&6
7303else
7304 if test -n "$GOC"; then
7305 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7306else
7307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308for as_dir in $PATH
7309do
7310 IFS=$as_save_IFS
7311 test -z "$as_dir" && as_dir=.
7312 for ac_exec_ext in '' $ac_executable_extensions; do
7313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7314 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7316 break 2
7317 fi
7318done
7319 done
7320IFS=$as_save_IFS
7321
7322fi
7323fi
7324GOC=$ac_cv_prog_GOC
7325if test -n "$GOC"; then
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7327$as_echo "$GOC" >&6; }
7328else
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7330$as_echo "no" >&6; }
7331fi
7332
7333
7334fi
7335if test -z "$ac_cv_prog_GOC"; then
7336 ac_ct_GOC=$GOC
7337 # Extract the first word of "gccgo", so it can be a program name with args.
7338set dummy gccgo; ac_word=$2
7339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7340$as_echo_n "checking for $ac_word... " >&6; }
7341if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7342 $as_echo_n "(cached) " >&6
7343else
7344 if test -n "$ac_ct_GOC"; then
7345 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7346else
7347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348for as_dir in $PATH
7349do
7350 IFS=$as_save_IFS
7351 test -z "$as_dir" && as_dir=.
7352 for ac_exec_ext in '' $ac_executable_extensions; do
7353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7354 ac_cv_prog_ac_ct_GOC="gccgo"
7355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7356 break 2
7357 fi
7358done
7359 done
7360IFS=$as_save_IFS
7361
7362fi
7363fi
7364ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7365if test -n "$ac_ct_GOC"; then
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7367$as_echo "$ac_ct_GOC" >&6; }
7368else
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7370$as_echo "no" >&6; }
7371fi
7372
7373 if test "x$ac_ct_GOC" = x; then
7374 GOC=""
7375 else
7376 case $cross_compiling:$ac_tool_warned in
7377yes:)
7378{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7379$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7380ac_tool_warned=yes ;;
7381esac
7382 GOC=$ac_ct_GOC
7383 fi
7384else
7385 GOC="$ac_cv_prog_GOC"
7386fi
7387
7388
7389
7390
7391
7392
7393# Set options
7394
7395
7396
7397
7398 enable_win32_dll=no
7399
7400
7401 # Check whether --enable-shared was given.
7402if test "${enable_shared+set}" = set; then :
7403 enableval=$enable_shared; p=${PACKAGE-default}
7404 case $enableval in
7405 yes) enable_shared=yes ;;
7406 no) enable_shared=no ;;
7407 *)
7408 enable_shared=no
7409 # Look at the argument we got. We use all the common list separators.
7410 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7411 for pkg in $enableval; do
7412 IFS="$lt_save_ifs"
7413 if test "X$pkg" = "X$p"; then
7414 enable_shared=yes
7415 fi
7416 done
7417 IFS="$lt_save_ifs"
7418 ;;
7419 esac
7420else
7421 enable_shared=yes
7422fi
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432 # Check whether --enable-static was given.
7433if test "${enable_static+set}" = set; then :
7434 enableval=$enable_static; p=${PACKAGE-default}
7435 case $enableval in
7436 yes) enable_static=yes ;;
7437 no) enable_static=no ;;
7438 *)
7439 enable_static=no
7440 # Look at the argument we got. We use all the common list separators.
7441 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7442 for pkg in $enableval; do
7443 IFS="$lt_save_ifs"
7444 if test "X$pkg" = "X$p"; then
7445 enable_static=yes
7446 fi
7447 done
7448 IFS="$lt_save_ifs"
7449 ;;
7450 esac
7451else
7452 enable_static=yes
7453fi
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464# Check whether --with-pic was given.
7465if test "${with_pic+set}" = set; then :
7466 withval=$with_pic; pic_mode="$withval"
7467else
7468 pic_mode=default
7469fi
7470
7471
7472test -z "$pic_mode" && pic_mode=default
7473
7474
7475
7476
7477
7478
7479
7480 # Check whether --enable-fast-install was given.
7481if test "${enable_fast_install+set}" = set; then :
7482 enableval=$enable_fast_install; p=${PACKAGE-default}
7483 case $enableval in
7484 yes) enable_fast_install=yes ;;
7485 no) enable_fast_install=no ;;
7486 *)
7487 enable_fast_install=no
7488 # Look at the argument we got. We use all the common list separators.
7489 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7490 for pkg in $enableval; do
7491 IFS="$lt_save_ifs"
7492 if test "X$pkg" = "X$p"; then
7493 enable_fast_install=yes
7494 fi
7495 done
7496 IFS="$lt_save_ifs"
7497 ;;
7498 esac
7499else
7500 enable_fast_install=yes
7501fi
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513# This can be used to rebuild libtool when needed
7514LIBTOOL_DEPS="$ltmain"
7515
7516# Always use our own libtool.
7517LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544test -z "$LN_S" && LN_S="ln -s"
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559if test -n "${ZSH_VERSION+set}" ; then
7560 setopt NO_GLOB_SUBST
7561fi
7562
7563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7564$as_echo_n "checking for objdir... " >&6; }
7565if test "${lt_cv_objdir+set}" = set; then :
7566 $as_echo_n "(cached) " >&6
7567else
7568 rm -f .libs 2>/dev/null
7569mkdir .libs 2>/dev/null
7570if test -d .libs; then
7571 lt_cv_objdir=.libs
7572else
7573 # MS-DOS does not allow filenames that begin with a dot.
7574 lt_cv_objdir=_libs
7575fi
7576rmdir .libs 2>/dev/null
7577fi
7578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7579$as_echo "$lt_cv_objdir" >&6; }
7580objdir=$lt_cv_objdir
7581
7582
7583
7584
7585
7586cat >>confdefs.h <<_ACEOF
7587#define LT_OBJDIR "$lt_cv_objdir/"
7588_ACEOF
7589
7590
7591
7592
7593case $host_os in
7594aix3*)
7595 # AIX sometimes has problems with the GCC collect2 program. For some
7596 # reason, if we set the COLLECT_NAMES environment variable, the problems
7597 # vanish in a puff of smoke.
7598 if test "X${COLLECT_NAMES+set}" != Xset; then
7599 COLLECT_NAMES=
7600 export COLLECT_NAMES
7601 fi
7602 ;;
7603esac
7604
7605# Global variables:
7606ofile=libtool
7607can_build_shared=yes
7608
7609# All known linkers require a `.a' archive for static linking (except MSVC,
7610# which needs '.lib').
7611libext=a
7612
7613with_gnu_ld="$lt_cv_prog_gnu_ld"
7614
7615old_CC="$CC"
7616old_CFLAGS="$CFLAGS"
7617
7618# Set sane defaults for various variables
7619test -z "$CC" && CC=cc
7620test -z "$LTCC" && LTCC=$CC
7621test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7622test -z "$LD" && LD=ld
7623test -z "$ac_objext" && ac_objext=o
7624
7625for cc_temp in $compiler""; do
7626 case $cc_temp in
7627 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7628 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7629 \-*) ;;
7630 *) break;;
7631 esac
7632done
7633cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7634
7635
7636# Only perform the check for file, if the check method requires it
7637test -z "$MAGIC_CMD" && MAGIC_CMD=file
7638case $deplibs_check_method in
7639file_magic*)
7640 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7642$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7643if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7644 $as_echo_n "(cached) " >&6
7645else
7646 case $MAGIC_CMD in
7647[\\/*] | ?:[\\/]*)
7648 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7649 ;;
7650*)
7651 lt_save_MAGIC_CMD="$MAGIC_CMD"
7652 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7653 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7654 for ac_dir in $ac_dummy; do
7655 IFS="$lt_save_ifs"
7656 test -z "$ac_dir" && ac_dir=.
7657 if test -f $ac_dir/${ac_tool_prefix}file; then
7658 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7659 if test -n "$file_magic_test_file"; then
7660 case $deplibs_check_method in
7661 "file_magic "*)
7662 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7663 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7664 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7665 $EGREP "$file_magic_regex" > /dev/null; then
7666 :
7667 else
7668 cat <<_LT_EOF 1>&2
7669
7670*** Warning: the command libtool uses to detect shared libraries,
7671*** $file_magic_cmd, produces output that libtool cannot recognize.
7672*** The result is that libtool may fail to recognize shared libraries
7673*** as such. This will affect the creation of libtool libraries that
7674*** depend on shared libraries, but programs linked with such libtool
7675*** libraries will work regardless of this problem. Nevertheless, you
7676*** may want to report the problem to your system manager and/or to
7677*** bug-libtool@gnu.org
7678
7679_LT_EOF
7680 fi ;;
7681 esac
7682 fi
7683 break
7684 fi
7685 done
7686 IFS="$lt_save_ifs"
7687 MAGIC_CMD="$lt_save_MAGIC_CMD"
7688 ;;
7689esac
7690fi
7691
7692MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7693if test -n "$MAGIC_CMD"; then
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7695$as_echo "$MAGIC_CMD" >&6; }
7696else
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7698$as_echo "no" >&6; }
7699fi
7700
7701
7702
7703
7704
7705if test -z "$lt_cv_path_MAGIC_CMD"; then
7706 if test -n "$ac_tool_prefix"; then
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7708$as_echo_n "checking for file... " >&6; }
7709if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7710 $as_echo_n "(cached) " >&6
7711else
7712 case $MAGIC_CMD in
7713[\\/*] | ?:[\\/]*)
7714 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7715 ;;
7716*)
7717 lt_save_MAGIC_CMD="$MAGIC_CMD"
7718 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7719 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7720 for ac_dir in $ac_dummy; do
7721 IFS="$lt_save_ifs"
7722 test -z "$ac_dir" && ac_dir=.
7723 if test -f $ac_dir/file; then
7724 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7725 if test -n "$file_magic_test_file"; then
7726 case $deplibs_check_method in
7727 "file_magic "*)
7728 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7729 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7730 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7731 $EGREP "$file_magic_regex" > /dev/null; then
7732 :
7733 else
7734 cat <<_LT_EOF 1>&2
7735
7736*** Warning: the command libtool uses to detect shared libraries,
7737*** $file_magic_cmd, produces output that libtool cannot recognize.
7738*** The result is that libtool may fail to recognize shared libraries
7739*** as such. This will affect the creation of libtool libraries that
7740*** depend on shared libraries, but programs linked with such libtool
7741*** libraries will work regardless of this problem. Nevertheless, you
7742*** may want to report the problem to your system manager and/or to
7743*** bug-libtool@gnu.org
7744
7745_LT_EOF
7746 fi ;;
7747 esac
7748 fi
7749 break
7750 fi
7751 done
7752 IFS="$lt_save_ifs"
7753 MAGIC_CMD="$lt_save_MAGIC_CMD"
7754 ;;
7755esac
7756fi
7757
7758MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7759if test -n "$MAGIC_CMD"; then
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7761$as_echo "$MAGIC_CMD" >&6; }
7762else
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7764$as_echo "no" >&6; }
7765fi
7766
7767
7768 else
7769 MAGIC_CMD=:
7770 fi
7771fi
7772
7773 fi
7774 ;;
7775esac
7776
7777# Use C for the default configuration in the libtool script
7778
7779lt_save_CC="$CC"
7780ac_ext=c
7781ac_cpp='$CPP $CPPFLAGS'
7782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7784ac_compiler_gnu=$ac_cv_c_compiler_gnu
7785
7786
7787# Source file extension for C test sources.
7788ac_ext=c
7789
7790# Object file extension for compiled C test sources.
7791objext=o
7792objext=$objext
7793
7794# Code to be used in simple compile tests
7795lt_simple_compile_test_code="int some_variable = 0;"
7796
7797# Code to be used in simple link tests
7798lt_simple_link_test_code='int main(){return(0);}'
7799
7800
7801
7802
7803
7804
7805
7806# If no C compiler was specified, use CC.
7807LTCC=${LTCC-"$CC"}
7808
7809# If no C compiler flags were specified, use CFLAGS.
7810LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7811
7812# Allow CC to be a program name with arguments.
7813compiler=$CC
7814
7815# Save the default compiler, since it gets overwritten when the other
7816# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7817compiler_DEFAULT=$CC
7818
7819# save warnings/boilerplate of simple test code
7820ac_outfile=conftest.$ac_objext
7821echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7822eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7823_lt_compiler_boilerplate=`cat conftest.err`
7824$RM conftest*
7825
7826ac_outfile=conftest.$ac_objext
7827echo "$lt_simple_link_test_code" >conftest.$ac_ext
7828eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7829_lt_linker_boilerplate=`cat conftest.err`
7830$RM -r conftest*
7831
7832
7833## CAVEAT EMPTOR:
7834## There is no encapsulation within the following macros, do not change
7835## the running order or otherwise move them around unless you know exactly
7836## what you are doing...
7837if test -n "$compiler"; then
7838
7839lt_prog_compiler_no_builtin_flag=
7840
7841if test "$GCC" = yes; then
7842 case $cc_basename in
7843 nvcc*)
7844 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7845 *)
7846 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7847 esac
7848
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7850$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7851if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7852 $as_echo_n "(cached) " >&6
7853else
7854 lt_cv_prog_compiler_rtti_exceptions=no
7855 ac_outfile=conftest.$ac_objext
7856 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7857 lt_compiler_flag="-fno-rtti -fno-exceptions"
7858 # Insert the option either (1) after the last *FLAGS variable, or
7859 # (2) before a word containing "conftest.", or (3) at the end.
7860 # Note that $ac_compile itself does not contain backslashes and begins
7861 # with a dollar sign (not a hyphen), so the echo should work correctly.
7862 # The option is referenced via a variable to avoid confusing sed.
7863 lt_compile=`echo "$ac_compile" | $SED \
7864 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7865 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7866 -e 's:$: $lt_compiler_flag:'`
7867 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7868 (eval "$lt_compile" 2>conftest.err)
7869 ac_status=$?
7870 cat conftest.err >&5
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 if (exit $ac_status) && test -s "$ac_outfile"; then
7873 # The compiler can only warn and ignore the option if not recognized
7874 # So say no if there are warnings other than the usual output.
7875 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7876 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7877 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7878 lt_cv_prog_compiler_rtti_exceptions=yes
7879 fi
7880 fi
7881 $RM conftest*
7882
7883fi
7884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7885$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7886
7887if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7888 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7889else
7890 :
7891fi
7892
7893fi
7894
7895
7896
7897
7898
7899
7900 lt_prog_compiler_wl=
7901lt_prog_compiler_pic=
7902lt_prog_compiler_static=
7903
7904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7905$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7906
7907 if test "$GCC" = yes; then
7908 lt_prog_compiler_wl='-Wl,'
7909 lt_prog_compiler_static='-static'
7910
7911 case $host_os in
7912 aix*)
7913 # All AIX code is PIC.
7914 if test "$host_cpu" = ia64; then
7915 # AIX 5 now supports IA64 processor
7916 lt_prog_compiler_static='-Bstatic'
7917 fi
7918 ;;
7919
7920 amigaos*)
7921 case $host_cpu in
7922 powerpc)
7923 # see comment about AmigaOS4 .so support
7924 lt_prog_compiler_pic='-fPIC'
7925 ;;
7926 m68k)
7927 # FIXME: we need at least 68020 code to build shared libraries, but
7928 # adding the `-m68020' flag to GCC prevents building anything better,
7929 # like `-m68040'.
7930 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7931 ;;
7932 esac
7933 ;;
7934
7935 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7936 # PIC is the default for these OSes.
7937 ;;
7938
7939 mingw* | cygwin* | pw32* | os2* | cegcc*)
7940 # This hack is so that the source file can tell whether it is being
7941 # built for inclusion in a dll (and should export symbols for example).
7942 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7943 # (--disable-auto-import) libraries
7944 lt_prog_compiler_pic='-DDLL_EXPORT'
7945 ;;
7946
7947 darwin* | rhapsody*)
7948 # PIC is the default on this platform
7949 # Common symbols not allowed in MH_DYLIB files
7950 lt_prog_compiler_pic='-fno-common'
7951 ;;
7952
7953 haiku*)
7954 # PIC is the default for Haiku.
7955 # The "-static" flag exists, but is broken.
7956 lt_prog_compiler_static=
7957 ;;
7958
7959 hpux*)
7960 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7961 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7962 # sets the default TLS model and affects inlining.
7963 case $host_cpu in
7964 hppa*64*)
7965 # +Z the default
7966 ;;
7967 *)
7968 lt_prog_compiler_pic='-fPIC'
7969 ;;
7970 esac
7971 ;;
7972
7973 interix[3-9]*)
7974 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7975 # Instead, we relocate shared libraries at runtime.
7976 ;;
7977
7978 msdosdjgpp*)
7979 # Just because we use GCC doesn't mean we suddenly get shared libraries
7980 # on systems that don't support them.
7981 lt_prog_compiler_can_build_shared=no
7982 enable_shared=no
7983 ;;
7984
7985 *nto* | *qnx*)
7986 # QNX uses GNU C++, but need to define -shared option too, otherwise
7987 # it will coredump.
7988 lt_prog_compiler_pic='-fPIC -shared'
7989 ;;
7990
7991 sysv4*MP*)
7992 if test -d /usr/nec; then
7993 lt_prog_compiler_pic=-Kconform_pic
7994 fi
7995 ;;
7996
7997 *)
7998 lt_prog_compiler_pic='-fPIC'
7999 ;;
8000 esac
8001
8002 case $cc_basename in
8003 nvcc*) # Cuda Compiler Driver 2.2
8004 lt_prog_compiler_wl='-Xlinker '
8005 lt_prog_compiler_pic='-Xcompiler -fPIC'
8006 ;;
8007 esac
8008 else
8009 # PORTME Check for flag to pass linker flags through the system compiler.
8010 case $host_os in
8011 aix*)
8012 lt_prog_compiler_wl='-Wl,'
8013 if test "$host_cpu" = ia64; then
8014 # AIX 5 now supports IA64 processor
8015 lt_prog_compiler_static='-Bstatic'
8016 else
8017 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8018 fi
8019 ;;
8020
8021 mingw* | cygwin* | pw32* | os2* | cegcc*)
8022 # This hack is so that the source file can tell whether it is being
8023 # built for inclusion in a dll (and should export symbols for example).
8024 lt_prog_compiler_pic='-DDLL_EXPORT'
8025 ;;
8026
8027 hpux9* | hpux10* | hpux11*)
8028 lt_prog_compiler_wl='-Wl,'
8029 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8030 # not for PA HP-UX.
8031 case $host_cpu in
8032 hppa*64*|ia64*)
8033 # +Z the default
8034 ;;
8035 *)
8036 lt_prog_compiler_pic='+Z'
8037 ;;
8038 esac
8039 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8040 lt_prog_compiler_static='${wl}-a ${wl}archive'
8041 ;;
8042
8043 irix5* | irix6* | nonstopux*)
8044 lt_prog_compiler_wl='-Wl,'
8045 # PIC (with -KPIC) is the default.
8046 lt_prog_compiler_static='-non_shared'
8047 ;;
8048
8049 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8050 case $cc_basename in
8051 # old Intel for x86_64 which still supported -KPIC.
8052 ecc*)
8053 lt_prog_compiler_wl='-Wl,'
8054 lt_prog_compiler_pic='-KPIC'
8055 lt_prog_compiler_static='-static'
8056 ;;
8057 # icc used to be incompatible with GCC.
8058 # ICC 10 doesn't accept -KPIC any more.
8059 icc* | ifort*)
8060 lt_prog_compiler_wl='-Wl,'
8061 lt_prog_compiler_pic='-fPIC'
8062 lt_prog_compiler_static='-static'
8063 ;;
8064 # Lahey Fortran 8.1.
8065 lf95*)
8066 lt_prog_compiler_wl='-Wl,'
8067 lt_prog_compiler_pic='--shared'
8068 lt_prog_compiler_static='--static'
8069 ;;
8070 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8071 # Portland Group compilers (*not* the Pentium gcc compiler,
8072 # which looks to be a dead project)
8073 lt_prog_compiler_wl='-Wl,'
8074 lt_prog_compiler_pic='-fpic'
8075 lt_prog_compiler_static='-Bstatic'
8076 ;;
8077 ccc*)
8078 lt_prog_compiler_wl='-Wl,'
8079 # All Alpha code is PIC.
8080 lt_prog_compiler_static='-non_shared'
8081 ;;
8082 xl* | bgxl* | bgf* | mpixl*)
8083 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8084 lt_prog_compiler_wl='-Wl,'
8085 lt_prog_compiler_pic='-qpic'
8086 lt_prog_compiler_static='-qstaticlink'
8087 ;;
8088 *)
8089 case `$CC -V 2>&1 | sed 5q` in
8090 *Sun\ F* | *Sun*Fortran*)
8091 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8092 lt_prog_compiler_pic='-KPIC'
8093 lt_prog_compiler_static='-Bstatic'
8094 lt_prog_compiler_wl=''
8095 ;;
8096 *Sun\ C*)
8097 # Sun C 5.9
8098 lt_prog_compiler_pic='-KPIC'
8099 lt_prog_compiler_static='-Bstatic'
8100 lt_prog_compiler_wl='-Wl,'
8101 ;;
8102 esac
8103 ;;
8104 esac
8105 ;;
8106
8107 newsos6)
8108 lt_prog_compiler_pic='-KPIC'
8109 lt_prog_compiler_static='-Bstatic'
8110 ;;
8111
8112 *nto* | *qnx*)
8113 # QNX uses GNU C++, but need to define -shared option too, otherwise
8114 # it will coredump.
8115 lt_prog_compiler_pic='-fPIC -shared'
8116 ;;
8117
8118 osf3* | osf4* | osf5*)
8119 lt_prog_compiler_wl='-Wl,'
8120 # All OSF/1 code is PIC.
8121 lt_prog_compiler_static='-non_shared'
8122 ;;
8123
8124 rdos*)
8125 lt_prog_compiler_static='-non_shared'
8126 ;;
8127
8128 solaris*)
8129 lt_prog_compiler_pic='-KPIC'
8130 lt_prog_compiler_static='-Bstatic'
8131 case $cc_basename in
8132 f77* | f90* | f95*)
8133 lt_prog_compiler_wl='-Qoption ld ';;
8134 *)
8135 lt_prog_compiler_wl='-Wl,';;
8136 esac
8137 ;;
8138
8139 sunos4*)
8140 lt_prog_compiler_wl='-Qoption ld '
8141 lt_prog_compiler_pic='-PIC'
8142 lt_prog_compiler_static='-Bstatic'
8143 ;;
8144
8145 sysv4 | sysv4.2uw2* | sysv4.3*)
8146 lt_prog_compiler_wl='-Wl,'
8147 lt_prog_compiler_pic='-KPIC'
8148 lt_prog_compiler_static='-Bstatic'
8149 ;;
8150
8151 sysv4*MP*)
8152 if test -d /usr/nec ;then
8153 lt_prog_compiler_pic='-Kconform_pic'
8154 lt_prog_compiler_static='-Bstatic'
8155 fi
8156 ;;
8157
8158 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8159 lt_prog_compiler_wl='-Wl,'
8160 lt_prog_compiler_pic='-KPIC'
8161 lt_prog_compiler_static='-Bstatic'
8162 ;;
8163
8164 unicos*)
8165 lt_prog_compiler_wl='-Wl,'
8166 lt_prog_compiler_can_build_shared=no
8167 ;;
8168
8169 uts4*)
8170 lt_prog_compiler_pic='-pic'
8171 lt_prog_compiler_static='-Bstatic'
8172 ;;
8173
8174 *)
8175 lt_prog_compiler_can_build_shared=no
8176 ;;
8177 esac
8178 fi
8179
8180case $host_os in
8181 # For platforms which do not support PIC, -DPIC is meaningless:
8182 *djgpp*)
8183 lt_prog_compiler_pic=
8184 ;;
8185 *)
8186 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8187 ;;
8188esac
8189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8190$as_echo "$lt_prog_compiler_pic" >&6; }
8191
8192
8193
8194
8195
8196
8197#
8198# Check to make sure the PIC flag actually works.
8199#
8200if test -n "$lt_prog_compiler_pic"; then
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8202$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8203if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8204 $as_echo_n "(cached) " >&6
8205else
8206 lt_cv_prog_compiler_pic_works=no
8207 ac_outfile=conftest.$ac_objext
8208 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8209 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8210 # Insert the option either (1) after the last *FLAGS variable, or
8211 # (2) before a word containing "conftest.", or (3) at the end.
8212 # Note that $ac_compile itself does not contain backslashes and begins
8213 # with a dollar sign (not a hyphen), so the echo should work correctly.
8214 # The option is referenced via a variable to avoid confusing sed.
8215 lt_compile=`echo "$ac_compile" | $SED \
8216 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8217 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8218 -e 's:$: $lt_compiler_flag:'`
8219 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8220 (eval "$lt_compile" 2>conftest.err)
8221 ac_status=$?
8222 cat conftest.err >&5
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 if (exit $ac_status) && test -s "$ac_outfile"; then
8225 # The compiler can only warn and ignore the option if not recognized
8226 # So say no if there are warnings other than the usual output.
8227 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8228 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8229 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8230 lt_cv_prog_compiler_pic_works=yes
8231 fi
8232 fi
8233 $RM conftest*
8234
8235fi
8236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8237$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8238
8239if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8240 case $lt_prog_compiler_pic in
8241 "" | " "*) ;;
8242 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8243 esac
8244else
8245 lt_prog_compiler_pic=
8246 lt_prog_compiler_can_build_shared=no
8247fi
8248
8249fi
8250
8251
8252
8253
8254
8255
8256#
8257# Check to make sure the static flag actually works.
8258#
8259wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8261$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8262if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8263 $as_echo_n "(cached) " >&6
8264else
8265 lt_cv_prog_compiler_static_works=no
8266 save_LDFLAGS="$LDFLAGS"
8267 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8268 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8269 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8270 # The linker can only warn and ignore the option if not recognized
8271 # So say no if there are warnings
8272 if test -s conftest.err; then
8273 # Append any errors to the config.log.
8274 cat conftest.err 1>&5
8275 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8276 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8277 if diff conftest.exp conftest.er2 >/dev/null; then
8278 lt_cv_prog_compiler_static_works=yes
8279 fi
8280 else
8281 lt_cv_prog_compiler_static_works=yes
8282 fi
8283 fi
8284 $RM -r conftest*
8285 LDFLAGS="$save_LDFLAGS"
8286
8287fi
8288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8289$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8290
8291if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8292 :
8293else
8294 lt_prog_compiler_static=
8295fi
8296
8297
8298
8299
8300
8301
8302
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8304$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8305if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8306 $as_echo_n "(cached) " >&6
8307else
8308 lt_cv_prog_compiler_c_o=no
8309 $RM -r conftest 2>/dev/null
8310 mkdir conftest
8311 cd conftest
8312 mkdir out
8313 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8314
8315 lt_compiler_flag="-o out/conftest2.$ac_objext"
8316 # Insert the option either (1) after the last *FLAGS variable, or
8317 # (2) before a word containing "conftest.", or (3) at the end.
8318 # Note that $ac_compile itself does not contain backslashes and begins
8319 # with a dollar sign (not a hyphen), so the echo should work correctly.
8320 lt_compile=`echo "$ac_compile" | $SED \
8321 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8322 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8323 -e 's:$: $lt_compiler_flag:'`
8324 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8325 (eval "$lt_compile" 2>out/conftest.err)
8326 ac_status=$?
8327 cat out/conftest.err >&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8330 then
8331 # The compiler can only warn and ignore the option if not recognized
8332 # So say no if there are warnings
8333 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8334 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8335 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8336 lt_cv_prog_compiler_c_o=yes
8337 fi
8338 fi
8339 chmod u+w . 2>&5
8340 $RM conftest*
8341 # SGI C++ compiler will create directory out/ii_files/ for
8342 # template instantiation
8343 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8344 $RM out/* && rmdir out
8345 cd ..
8346 $RM -r conftest
8347 $RM conftest*
8348
8349fi
8350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8351$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8352
8353
8354
8355
8356
8357
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8359$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8360if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8361 $as_echo_n "(cached) " >&6
8362else
8363 lt_cv_prog_compiler_c_o=no
8364 $RM -r conftest 2>/dev/null
8365 mkdir conftest
8366 cd conftest
8367 mkdir out
8368 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8369
8370 lt_compiler_flag="-o out/conftest2.$ac_objext"
8371 # Insert the option either (1) after the last *FLAGS variable, or
8372 # (2) before a word containing "conftest.", or (3) at the end.
8373 # Note that $ac_compile itself does not contain backslashes and begins
8374 # with a dollar sign (not a hyphen), so the echo should work correctly.
8375 lt_compile=`echo "$ac_compile" | $SED \
8376 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8377 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8378 -e 's:$: $lt_compiler_flag:'`
8379 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8380 (eval "$lt_compile" 2>out/conftest.err)
8381 ac_status=$?
8382 cat out/conftest.err >&5
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8385 then
8386 # The compiler can only warn and ignore the option if not recognized
8387 # So say no if there are warnings
8388 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8389 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8390 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8391 lt_cv_prog_compiler_c_o=yes
8392 fi
8393 fi
8394 chmod u+w . 2>&5
8395 $RM conftest*
8396 # SGI C++ compiler will create directory out/ii_files/ for
8397 # template instantiation
8398 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8399 $RM out/* && rmdir out
8400 cd ..
8401 $RM -r conftest
8402 $RM conftest*
8403
8404fi
8405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8406$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8407
8408
8409
8410
8411hard_links="nottested"
8412if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8413 # do not overwrite the value of need_locks provided by the user
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8415$as_echo_n "checking if we can lock with hard links... " >&6; }
8416 hard_links=yes
8417 $RM conftest*
8418 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8419 touch conftest.a
8420 ln conftest.a conftest.b 2>&5 || hard_links=no
8421 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8423$as_echo "$hard_links" >&6; }
8424 if test "$hard_links" = no; then
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8426$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8427 need_locks=warn
8428 fi
8429else
8430 need_locks=no
8431fi
8432
8433
8434
8435
8436
8437
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8439$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8440
8441 runpath_var=
8442 allow_undefined_flag=
8443 always_export_symbols=no
8444 archive_cmds=
8445 archive_expsym_cmds=
8446 compiler_needs_object=no
8447 enable_shared_with_static_runtimes=no
8448 export_dynamic_flag_spec=
8449 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8450 hardcode_automatic=no
8451 hardcode_direct=no
8452 hardcode_direct_absolute=no
8453 hardcode_libdir_flag_spec=
8454 hardcode_libdir_flag_spec_ld=
8455 hardcode_libdir_separator=
8456 hardcode_minus_L=no
8457 hardcode_shlibpath_var=unsupported
8458 inherit_rpath=no
8459 link_all_deplibs=unknown
8460 module_cmds=
8461 module_expsym_cmds=
8462 old_archive_from_new_cmds=
8463 old_archive_from_expsyms_cmds=
8464 thread_safe_flag_spec=
8465 whole_archive_flag_spec=
8466 # include_expsyms should be a list of space-separated symbols to be *always*
8467 # included in the symbol list
8468 include_expsyms=
8469 # exclude_expsyms can be an extended regexp of symbols to exclude
8470 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8471 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8472 # as well as any symbol that contains `d'.
8473 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8474 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8475 # platforms (ab)use it in PIC code, but their linkers get confused if
8476 # the symbol is explicitly referenced. Since portable code cannot
8477 # rely on this symbol name, it's probably fine to never include it in
8478 # preloaded symbol tables.
8479 # Exclude shared library initialization/finalization symbols.
8480 extract_expsyms_cmds=
8481
8482 case $host_os in
8483 cygwin* | mingw* | pw32* | cegcc*)
8484 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8485 # When not using gcc, we currently assume that we are using
8486 # Microsoft Visual C++.
8487 if test "$GCC" != yes; then
8488 with_gnu_ld=no
8489 fi
8490 ;;
8491 interix*)
8492 # we just hope/assume this is gcc and not c89 (= MSVC++)
8493 with_gnu_ld=yes
8494 ;;
8495 openbsd*)
8496 with_gnu_ld=no
8497 ;;
8498 esac
8499
8500 ld_shlibs=yes
8501
8502 # On some targets, GNU ld is compatible enough with the native linker
8503 # that we're better off using the native interface for both.
8504 lt_use_gnu_ld_interface=no
8505 if test "$with_gnu_ld" = yes; then
8506 case $host_os in
8507 aix*)
8508 # The AIX port of GNU ld has always aspired to compatibility
8509 # with the native linker. However, as the warning in the GNU ld
8510 # block says, versions before 2.19.5* couldn't really create working
8511 # shared libraries, regardless of the interface used.
8512 case `$LD -v 2>&1` in
8513 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8514 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8515 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8516 *)
8517 lt_use_gnu_ld_interface=yes
8518 ;;
8519 esac
8520 ;;
8521 *)
8522 lt_use_gnu_ld_interface=yes
8523 ;;
8524 esac
8525 fi
8526
8527 if test "$lt_use_gnu_ld_interface" = yes; then
8528 # If archive_cmds runs LD, not CC, wlarc should be empty
8529 wlarc='${wl}'
8530
8531 # Set some defaults for GNU ld with shared library support. These
8532 # are reset later if shared libraries are not supported. Putting them
8533 # here allows them to be overridden if necessary.
8534 runpath_var=LD_RUN_PATH
8535 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8536 export_dynamic_flag_spec='${wl}--export-dynamic'
8537 # ancient GNU ld didn't support --whole-archive et. al.
8538 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8539 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8540 else
8541 whole_archive_flag_spec=
8542 fi
8543 supports_anon_versioning=no
8544 case `$LD -v 2>&1` in
8545 *GNU\ gold*) supports_anon_versioning=yes ;;
8546 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8547 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8548 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8549 *\ 2.11.*) ;; # other 2.11 versions
8550 *) supports_anon_versioning=yes ;;
8551 esac
8552
8553 # See if GNU ld supports shared libraries.
8554 case $host_os in
8555 aix[3-9]*)
8556 # On AIX/PPC, the GNU linker is very broken
8557 if test "$host_cpu" != ia64; then
8558 ld_shlibs=no
8559 cat <<_LT_EOF 1>&2
8560
8561*** Warning: the GNU linker, at least up to release 2.19, is reported
8562*** to be unable to reliably create shared libraries on AIX.
8563*** Therefore, libtool is disabling shared libraries support. If you
8564*** really care for shared libraries, you may want to install binutils
8565*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8566*** You will then need to restart the configuration process.
8567
8568_LT_EOF
8569 fi
8570 ;;
8571
8572 amigaos*)
8573 case $host_cpu in
8574 powerpc)
8575 # see comment about AmigaOS4 .so support
8576 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8577 archive_expsym_cmds=''
8578 ;;
8579 m68k)
8580 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8581 hardcode_libdir_flag_spec='-L$libdir'
8582 hardcode_minus_L=yes
8583 ;;
8584 esac
8585 ;;
8586
8587 beos*)
8588 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8589 allow_undefined_flag=unsupported
8590 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8591 # support --undefined. This deserves some investigation. FIXME
8592 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8593 else
8594 ld_shlibs=no
8595 fi
8596 ;;
8597
8598 cygwin* | mingw* | pw32* | cegcc*)
8599 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8600 # as there is no search path for DLLs.
8601 hardcode_libdir_flag_spec='-L$libdir'
8602 export_dynamic_flag_spec='${wl}--export-all-symbols'
8603 allow_undefined_flag=unsupported
8604 always_export_symbols=no
8605 enable_shared_with_static_runtimes=yes
8606 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8607
8608 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8609 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8610 # If the export-symbols file already is a .def file (1st line
8611 # is EXPORTS), use it as is; otherwise, prepend...
8612 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8613 cp $export_symbols $output_objdir/$soname.def;
8614 else
8615 echo EXPORTS > $output_objdir/$soname.def;
8616 cat $export_symbols >> $output_objdir/$soname.def;
8617 fi~
8618 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8619 else
8620 ld_shlibs=no
8621 fi
8622 ;;
8623
8624 haiku*)
8625 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8626 link_all_deplibs=yes
8627 ;;
8628
8629 interix[3-9]*)
8630 hardcode_direct=no
8631 hardcode_shlibpath_var=no
8632 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8633 export_dynamic_flag_spec='${wl}-E'
8634 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8635 # Instead, shared libraries are loaded at an image base (0x10000000 by
8636 # default) and relocated if they conflict, which is a slow very memory
8637 # consuming and fragmenting process. To avoid this, we pick a random,
8638 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8639 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8640 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8641 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8642 ;;
8643
8644 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8645 tmp_diet=no
8646 if test "$host_os" = linux-dietlibc; then
8647 case $cc_basename in
8648 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8649 esac
8650 fi
8651 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8652 && test "$tmp_diet" = no
8653 then
8654 tmp_addflag=
8655 tmp_sharedflag='-shared'
8656 case $cc_basename,$host_cpu in
8657 pgcc*) # Portland Group C compiler
8658 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8659 tmp_addflag=' $pic_flag'
8660 ;;
8661 pgf77* | pgf90* | pgf95* | pgfortran*)
8662 # Portland Group f77 and f90 compilers
8663 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8664 tmp_addflag=' $pic_flag -Mnomain' ;;
8665 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8666 tmp_addflag=' -i_dynamic' ;;
8667 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8668 tmp_addflag=' -i_dynamic -nofor_main' ;;
8669 ifc* | ifort*) # Intel Fortran compiler
8670 tmp_addflag=' -nofor_main' ;;
8671 lf95*) # Lahey Fortran 8.1
8672 whole_archive_flag_spec=
8673 tmp_sharedflag='--shared' ;;
8674 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8675 tmp_sharedflag='-qmkshrobj'
8676 tmp_addflag= ;;
8677 nvcc*) # Cuda Compiler Driver 2.2
8678 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8679 compiler_needs_object=yes
8680 ;;
8681 esac
8682 case `$CC -V 2>&1 | sed 5q` in
8683 *Sun\ C*) # Sun C 5.9
8684 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8685 compiler_needs_object=yes
8686 tmp_sharedflag='-G' ;;
8687 *Sun\ F*) # Sun Fortran 8.3
8688 tmp_sharedflag='-G' ;;
8689 esac
8690 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8691
8692 if test "x$supports_anon_versioning" = xyes; then
8693 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8694 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8695 echo "local: *; };" >> $output_objdir/$libname.ver~
8696 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8697 fi
8698
8699 case $cc_basename in
8700 xlf* | bgf* | bgxlf* | mpixlf*)
8701 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8702 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8703 hardcode_libdir_flag_spec=
8704 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8705 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8706 if test "x$supports_anon_versioning" = xyes; then
8707 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8708 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8709 echo "local: *; };" >> $output_objdir/$libname.ver~
8710 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8711 fi
8712 ;;
8713 esac
8714 else
8715 ld_shlibs=no
8716 fi
8717 ;;
8718
8719 netbsd*)
8720 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8721 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8722 wlarc=
8723 else
8724 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8725 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8726 fi
8727 ;;
8728
8729 solaris*)
8730 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8731 ld_shlibs=no
8732 cat <<_LT_EOF 1>&2
8733
8734*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8735*** create shared libraries on Solaris systems. Therefore, libtool
8736*** is disabling shared libraries support. We urge you to upgrade GNU
8737*** binutils to release 2.9.1 or newer. Another option is to modify
8738*** your PATH or compiler configuration so that the native linker is
8739*** used, and then restart.
8740
8741_LT_EOF
8742 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8743 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8744 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8745 else
8746 ld_shlibs=no
8747 fi
8748 ;;
8749
8750 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8751 case `$LD -v 2>&1` in
8752 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8753 ld_shlibs=no
8754 cat <<_LT_EOF 1>&2
8755
8756*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8757*** reliably create shared libraries on SCO systems. Therefore, libtool
8758*** is disabling shared libraries support. We urge you to upgrade GNU
8759*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8760*** your PATH or compiler configuration so that the native linker is
8761*** used, and then restart.
8762
8763_LT_EOF
8764 ;;
8765 *)
8766 # For security reasons, it is highly recommended that you always
8767 # use absolute paths for naming shared libraries, and exclude the
8768 # DT_RUNPATH tag from executables and libraries. But doing so
8769 # requires that you compile everything twice, which is a pain.
8770 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8771 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8772 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8773 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8774 else
8775 ld_shlibs=no
8776 fi
8777 ;;
8778 esac
8779 ;;
8780
8781 sunos4*)
8782 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8783 wlarc=
8784 hardcode_direct=yes
8785 hardcode_shlibpath_var=no
8786 ;;
8787
8788 *)
8789 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8790 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8791 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8792 else
8793 ld_shlibs=no
8794 fi
8795 ;;
8796 esac
8797
8798 if test "$ld_shlibs" = no; then
8799 runpath_var=
8800 hardcode_libdir_flag_spec=
8801 export_dynamic_flag_spec=
8802 whole_archive_flag_spec=
8803 fi
8804 else
8805 # PORTME fill in a description of your system's linker (not GNU ld)
8806 case $host_os in
8807 aix3*)
8808 allow_undefined_flag=unsupported
8809 always_export_symbols=yes
8810 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8811 # Note: this linker hardcodes the directories in LIBPATH if there
8812 # are no directories specified by -L.
8813 hardcode_minus_L=yes
8814 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8815 # Neither direct hardcoding nor static linking is supported with a
8816 # broken collect2.
8817 hardcode_direct=unsupported
8818 fi
8819 ;;
8820
8821 aix[4-9]*)
8822 if test "$host_cpu" = ia64; then
8823 # On IA64, the linker does run time linking by default, so we don't
8824 # have to do anything special.
8825 aix_use_runtimelinking=no
8826 exp_sym_flag='-Bexport'
8827 no_entry_flag=""
8828 else
8829 # If we're using GNU nm, then we don't want the "-C" option.
8830 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8831 # Also, AIX nm treats weak defined symbols like other global
8832 # defined symbols, whereas GNU nm marks them as "W".
8833 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8834 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8835 else
8836 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8837 fi
8838 aix_use_runtimelinking=no
8839
8840 # Test if we are trying to use run time linking or normal
8841 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8842 # need to do runtime linking.
8843 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8844 for ld_flag in $LDFLAGS; do
8845 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8846 aix_use_runtimelinking=yes
8847 break
8848 fi
8849 done
8850 ;;
8851 esac
8852
8853 exp_sym_flag='-bexport'
8854 no_entry_flag='-bnoentry'
8855 fi
8856
8857 # When large executables or shared objects are built, AIX ld can
8858 # have problems creating the table of contents. If linking a library
8859 # or program results in "error TOC overflow" add -mminimal-toc to
8860 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8861 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8862
8863 archive_cmds=''
8864 hardcode_direct=yes
8865 hardcode_direct_absolute=yes
8866 hardcode_libdir_separator=':'
8867 link_all_deplibs=yes
8868 file_list_spec='${wl}-f,'
8869
8870 if test "$GCC" = yes; then
8871 case $host_os in aix4.[012]|aix4.[012].*)
8872 # We only want to do this on AIX 4.2 and lower, the check
8873 # below for broken collect2 doesn't work under 4.3+
8874 collect2name=`${CC} -print-prog-name=collect2`
8875 if test -f "$collect2name" &&
8876 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8877 then
8878 # We have reworked collect2
8879 :
8880 else
8881 # We have old collect2
8882 hardcode_direct=unsupported
8883 # It fails to find uninstalled libraries when the uninstalled
8884 # path is not listed in the libpath. Setting hardcode_minus_L
8885 # to unsupported forces relinking
8886 hardcode_minus_L=yes
8887 hardcode_libdir_flag_spec='-L$libdir'
8888 hardcode_libdir_separator=
8889 fi
8890 ;;
8891 esac
8892 shared_flag='-shared'
8893 if test "$aix_use_runtimelinking" = yes; then
8894 shared_flag="$shared_flag "'${wl}-G'
8895 fi
8896 else
8897 # not using gcc
8898 if test "$host_cpu" = ia64; then
8899 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8900 # chokes on -Wl,-G. The following line is correct:
8901 shared_flag='-G'
8902 else
8903 if test "$aix_use_runtimelinking" = yes; then
8904 shared_flag='${wl}-G'
8905 else
8906 shared_flag='${wl}-bM:SRE'
8907 fi
8908 fi
8909 fi
8910
8911 export_dynamic_flag_spec='${wl}-bexpall'
8912 # It seems that -bexpall does not export symbols beginning with
8913 # underscore (_), so it is better to generate a list of symbols to export.
8914 always_export_symbols=yes
8915 if test "$aix_use_runtimelinking" = yes; then
8916 # Warning - without using the other runtime loading flags (-brtl),
8917 # -berok will link without error, but may produce a broken library.
8918 allow_undefined_flag='-berok'
8919 # Determine the default libpath from the value encoded in an
8920 # empty executable.
8921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8922/* end confdefs.h. */
8923
8924int
8925main ()
8926{
8927
8928 ;
8929 return 0;
8930}
8931_ACEOF
8932if ac_fn_c_try_link "$LINENO"; then :
8933
8934lt_aix_libpath_sed='
8935 /Import File Strings/,/^$/ {
8936 /^0/ {
8937 s/^0 *\(.*\)$/\1/
8938 p
8939 }
8940 }'
8941aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8942# Check for a 64-bit object if we didn't find anything.
8943if test -z "$aix_libpath"; then
8944 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8945fi
8946fi
8947rm -f core conftest.err conftest.$ac_objext \
8948 conftest$ac_exeext conftest.$ac_ext
8949if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8950
8951 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8952 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8953 else
8954 if test "$host_cpu" = ia64; then
8955 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8956 allow_undefined_flag="-z nodefs"
8957 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8958 else
8959 # Determine the default libpath from the value encoded in an
8960 # empty executable.
8961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8962/* end confdefs.h. */
8963
8964int
8965main ()
8966{
8967
8968 ;
8969 return 0;
8970}
8971_ACEOF
8972if ac_fn_c_try_link "$LINENO"; then :
8973
8974lt_aix_libpath_sed='
8975 /Import File Strings/,/^$/ {
8976 /^0/ {
8977 s/^0 *\(.*\)$/\1/
8978 p
8979 }
8980 }'
8981aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8982# Check for a 64-bit object if we didn't find anything.
8983if test -z "$aix_libpath"; then
8984 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8985fi
8986fi
8987rm -f core conftest.err conftest.$ac_objext \
8988 conftest$ac_exeext conftest.$ac_ext
8989if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8990
8991 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8992 # Warning - without using the other run time loading flags,
8993 # -berok will link without error, but may produce a broken library.
8994 no_undefined_flag=' ${wl}-bernotok'
8995 allow_undefined_flag=' ${wl}-berok'
8996 if test "$with_gnu_ld" = yes; then
8997 # We only use this code for GNU lds that support --whole-archive.
8998 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8999 else
9000 # Exported symbols can be pulled into shared objects from archives
9001 whole_archive_flag_spec='$convenience'
9002 fi
9003 archive_cmds_need_lc=yes
9004 # This is similar to how AIX traditionally builds its shared libraries.
9005 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9006 fi
9007 fi
9008 ;;
9009
9010 amigaos*)
9011 case $host_cpu in
9012 powerpc)
9013 # see comment about AmigaOS4 .so support
9014 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9015 archive_expsym_cmds=''
9016 ;;
9017 m68k)
9018 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9019 hardcode_libdir_flag_spec='-L$libdir'
9020 hardcode_minus_L=yes
9021 ;;
9022 esac
9023 ;;
9024
9025 bsdi[45]*)
9026 export_dynamic_flag_spec=-rdynamic
9027 ;;
9028
9029 cygwin* | mingw* | pw32* | cegcc*)
9030 # When not using gcc, we currently assume that we are using
9031 # Microsoft Visual C++.
9032 # hardcode_libdir_flag_spec is actually meaningless, as there is
9033 # no search path for DLLs.
9034 hardcode_libdir_flag_spec=' '
9035 allow_undefined_flag=unsupported
9036 # Tell ltmain to make .lib files, not .a files.
9037 libext=lib
9038 # Tell ltmain to make .dll files, not .so files.
9039 shrext_cmds=".dll"
9040 # FIXME: Setting linknames here is a bad hack.
9041 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9042 # The linker will automatically build a .lib file if we build a DLL.
9043 old_archive_from_new_cmds='true'
9044 # FIXME: Should let the user specify the lib program.
9045 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9046 fix_srcfile_path='`cygpath -w "$srcfile"`'
9047 enable_shared_with_static_runtimes=yes
9048 ;;
9049
9050 darwin* | rhapsody*)
9051
9052
9053 archive_cmds_need_lc=no
9054 hardcode_direct=no
9055 hardcode_automatic=yes
9056 hardcode_shlibpath_var=unsupported
9057 if test "$lt_cv_ld_force_load" = "yes"; then
9058 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9059 else
9060 whole_archive_flag_spec=''
9061 fi
9062 link_all_deplibs=yes
9063 allow_undefined_flag="$_lt_dar_allow_undefined"
9064 case $cc_basename in
9065 ifort*) _lt_dar_can_shared=yes ;;
9066 *) _lt_dar_can_shared=$GCC ;;
9067 esac
9068 if test "$_lt_dar_can_shared" = "yes"; then
9069 output_verbose_link_cmd=func_echo_all
9070 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9071 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9072 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9073 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9074
9075 else
9076 ld_shlibs=no
9077 fi
9078
9079 ;;
9080
9081 dgux*)
9082 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9083 hardcode_libdir_flag_spec='-L$libdir'
9084 hardcode_shlibpath_var=no
9085 ;;
9086
9087 freebsd1*)
9088 ld_shlibs=no
9089 ;;
9090
9091 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9092 # support. Future versions do this automatically, but an explicit c++rt0.o
9093 # does not break anything, and helps significantly (at the cost of a little
9094 # extra space).
9095 freebsd2.2*)
9096 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9097 hardcode_libdir_flag_spec='-R$libdir'
9098 hardcode_direct=yes
9099 hardcode_shlibpath_var=no
9100 ;;
9101
9102 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9103 freebsd2*)
9104 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9105 hardcode_direct=yes
9106 hardcode_minus_L=yes
9107 hardcode_shlibpath_var=no
9108 ;;
9109
9110 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9111 freebsd* | dragonfly*)
9112 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9113 hardcode_libdir_flag_spec='-R$libdir'
9114 hardcode_direct=yes
9115 hardcode_shlibpath_var=no
9116 ;;
9117
9118 hpux9*)
9119 if test "$GCC" = yes; then
9120 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9121 else
9122 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9123 fi
9124 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9125 hardcode_libdir_separator=:
9126 hardcode_direct=yes
9127
9128 # hardcode_minus_L: Not really in the search PATH,
9129 # but as the default location of the library.
9130 hardcode_minus_L=yes
9131 export_dynamic_flag_spec='${wl}-E'
9132 ;;
9133
9134 hpux10*)
9135 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9136 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9137 else
9138 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9139 fi
9140 if test "$with_gnu_ld" = no; then
9141 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9142 hardcode_libdir_flag_spec_ld='+b $libdir'
9143 hardcode_libdir_separator=:
9144 hardcode_direct=yes
9145 hardcode_direct_absolute=yes
9146 export_dynamic_flag_spec='${wl}-E'
9147 # hardcode_minus_L: Not really in the search PATH,
9148 # but as the default location of the library.
9149 hardcode_minus_L=yes
9150 fi
9151 ;;
9152
9153 hpux11*)
9154 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9155 case $host_cpu in
9156 hppa*64*)
9157 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9158 ;;
9159 ia64*)
9160 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9161 ;;
9162 *)
9163 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9164 ;;
9165 esac
9166 else
9167 case $host_cpu in
9168 hppa*64*)
9169 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9170 ;;
9171 ia64*)
9172 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9173 ;;
9174 *)
9175
9176 # Older versions of the 11.00 compiler do not understand -b yet
9177 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9179$as_echo_n "checking if $CC understands -b... " >&6; }
9180if test "${lt_cv_prog_compiler__b+set}" = set; then :
9181 $as_echo_n "(cached) " >&6
9182else
9183 lt_cv_prog_compiler__b=no
9184 save_LDFLAGS="$LDFLAGS"
9185 LDFLAGS="$LDFLAGS -b"
9186 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9187 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9188 # The linker can only warn and ignore the option if not recognized
9189 # So say no if there are warnings
9190 if test -s conftest.err; then
9191 # Append any errors to the config.log.
9192 cat conftest.err 1>&5
9193 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9194 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9195 if diff conftest.exp conftest.er2 >/dev/null; then
9196 lt_cv_prog_compiler__b=yes
9197 fi
9198 else
9199 lt_cv_prog_compiler__b=yes
9200 fi
9201 fi
9202 $RM -r conftest*
9203 LDFLAGS="$save_LDFLAGS"
9204
9205fi
9206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9207$as_echo "$lt_cv_prog_compiler__b" >&6; }
9208
9209if test x"$lt_cv_prog_compiler__b" = xyes; then
9210 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9211else
9212 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9213fi
9214
9215 ;;
9216 esac
9217 fi
9218 if test "$with_gnu_ld" = no; then
9219 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9220 hardcode_libdir_separator=:
9221
9222 case $host_cpu in
9223 hppa*64*|ia64*)
9224 hardcode_direct=no
9225 hardcode_shlibpath_var=no
9226 ;;
9227 *)
9228 hardcode_direct=yes
9229 hardcode_direct_absolute=yes
9230 export_dynamic_flag_spec='${wl}-E'
9231
9232 # hardcode_minus_L: Not really in the search PATH,
9233 # but as the default location of the library.
9234 hardcode_minus_L=yes
9235 ;;
9236 esac
9237 fi
9238 ;;
9239
9240 irix5* | irix6* | nonstopux*)
9241 if test "$GCC" = yes; then
9242 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9243 # Try to use the -exported_symbol ld option, if it does not
9244 # work, assume that -exports_file does not work either and
9245 # implicitly export all symbols.
9246 save_LDFLAGS="$LDFLAGS"
9247 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9249/* end confdefs.h. */
9250int foo(void) {}
9251_ACEOF
9252if ac_fn_c_try_link "$LINENO"; then :
9253 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9254
9255fi
9256rm -f core conftest.err conftest.$ac_objext \
9257 conftest$ac_exeext conftest.$ac_ext
9258 LDFLAGS="$save_LDFLAGS"
9259 else
9260 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9261 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9262 fi
9263 archive_cmds_need_lc='no'
9264 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9265 hardcode_libdir_separator=:
9266 inherit_rpath=yes
9267 link_all_deplibs=yes
9268 ;;
9269
9270 netbsd*)
9271 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9272 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9273 else
9274 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9275 fi
9276 hardcode_libdir_flag_spec='-R$libdir'
9277 hardcode_direct=yes
9278 hardcode_shlibpath_var=no
9279 ;;
9280
9281 newsos6)
9282 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9283 hardcode_direct=yes
9284 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9285 hardcode_libdir_separator=:
9286 hardcode_shlibpath_var=no
9287 ;;
9288
9289 *nto* | *qnx*)
9290 ;;
9291
9292 openbsd*)
9293 if test -f /usr/libexec/ld.so; then
9294 hardcode_direct=yes
9295 hardcode_shlibpath_var=no
9296 hardcode_direct_absolute=yes
9297 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9298 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9299 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9300 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9301 export_dynamic_flag_spec='${wl}-E'
9302 else
9303 case $host_os in
9304 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9305 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9306 hardcode_libdir_flag_spec='-R$libdir'
9307 ;;
9308 *)
9309 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9310 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9311 ;;
9312 esac
9313 fi
9314 else
9315 ld_shlibs=no
9316 fi
9317 ;;
9318
9319 os2*)
9320 hardcode_libdir_flag_spec='-L$libdir'
9321 hardcode_minus_L=yes
9322 allow_undefined_flag=unsupported
9323 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9324 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9325 ;;
9326
9327 osf3*)
9328 if test "$GCC" = yes; then
9329 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9330 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9331 else
9332 allow_undefined_flag=' -expect_unresolved \*'
9333 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9334 fi
9335 archive_cmds_need_lc='no'
9336 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9337 hardcode_libdir_separator=:
9338 ;;
9339
9340 osf4* | osf5*) # as osf3* with the addition of -msym flag
9341 if test "$GCC" = yes; then
9342 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9343 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9344 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9345 else
9346 allow_undefined_flag=' -expect_unresolved \*'
9347 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9348 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9349 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9350
9351 # Both c and cxx compiler support -rpath directly
9352 hardcode_libdir_flag_spec='-rpath $libdir'
9353 fi
9354 archive_cmds_need_lc='no'
9355 hardcode_libdir_separator=:
9356 ;;
9357
9358 solaris*)
9359 no_undefined_flag=' -z defs'
9360 if test "$GCC" = yes; then
9361 wlarc='${wl}'
9362 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9363 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9364 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9365 else
9366 case `$CC -V 2>&1` in
9367 *"Compilers 5.0"*)
9368 wlarc=''
9369 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9370 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9371 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9372 ;;
9373 *)
9374 wlarc='${wl}'
9375 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9376 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9377 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9378 ;;
9379 esac
9380 fi
9381 hardcode_libdir_flag_spec='-R$libdir'
9382 hardcode_shlibpath_var=no
9383 case $host_os in
9384 solaris2.[0-5] | solaris2.[0-5].*) ;;
9385 *)
9386 # The compiler driver will combine and reorder linker options,
9387 # but understands `-z linker_flag'. GCC discards it without `$wl',
9388 # but is careful enough not to reorder.
9389 # Supported since Solaris 2.6 (maybe 2.5.1?)
9390 if test "$GCC" = yes; then
9391 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9392 else
9393 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9394 fi
9395 ;;
9396 esac
9397 link_all_deplibs=yes
9398 ;;
9399
9400 sunos4*)
9401 if test "x$host_vendor" = xsequent; then
9402 # Use $CC to link under sequent, because it throws in some extra .o
9403 # files that make .init and .fini sections work.
9404 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9405 else
9406 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9407 fi
9408 hardcode_libdir_flag_spec='-L$libdir'
9409 hardcode_direct=yes
9410 hardcode_minus_L=yes
9411 hardcode_shlibpath_var=no
9412 ;;
9413
9414 sysv4)
9415 case $host_vendor in
9416 sni)
9417 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9418 hardcode_direct=yes # is this really true???
9419 ;;
9420 siemens)
9421 ## LD is ld it makes a PLAMLIB
9422 ## CC just makes a GrossModule.
9423 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9424 reload_cmds='$CC -r -o $output$reload_objs'
9425 hardcode_direct=no
9426 ;;
9427 motorola)
9428 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9429 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9430 ;;
9431 esac
9432 runpath_var='LD_RUN_PATH'
9433 hardcode_shlibpath_var=no
9434 ;;
9435
9436 sysv4.3*)
9437 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9438 hardcode_shlibpath_var=no
9439 export_dynamic_flag_spec='-Bexport'
9440 ;;
9441
9442 sysv4*MP*)
9443 if test -d /usr/nec; then
9444 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9445 hardcode_shlibpath_var=no
9446 runpath_var=LD_RUN_PATH
9447 hardcode_runpath_var=yes
9448 ld_shlibs=yes
9449 fi
9450 ;;
9451
9452 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9453 no_undefined_flag='${wl}-z,text'
9454 archive_cmds_need_lc=no
9455 hardcode_shlibpath_var=no
9456 runpath_var='LD_RUN_PATH'
9457
9458 if test "$GCC" = yes; then
9459 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9460 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9461 else
9462 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9463 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9464 fi
9465 ;;
9466
9467 sysv5* | sco3.2v5* | sco5v6*)
9468 # Note: We can NOT use -z defs as we might desire, because we do not
9469 # link with -lc, and that would cause any symbols used from libc to
9470 # always be unresolved, which means just about no library would
9471 # ever link correctly. If we're not using GNU ld we use -z text
9472 # though, which does catch some bad symbols but isn't as heavy-handed
9473 # as -z defs.
9474 no_undefined_flag='${wl}-z,text'
9475 allow_undefined_flag='${wl}-z,nodefs'
9476 archive_cmds_need_lc=no
9477 hardcode_shlibpath_var=no
9478 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9479 hardcode_libdir_separator=':'
9480 link_all_deplibs=yes
9481 export_dynamic_flag_spec='${wl}-Bexport'
9482 runpath_var='LD_RUN_PATH'
9483
9484 if test "$GCC" = yes; then
9485 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9486 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9487 else
9488 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9489 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9490 fi
9491 ;;
9492
9493 uts4*)
9494 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9495 hardcode_libdir_flag_spec='-L$libdir'
9496 hardcode_shlibpath_var=no
9497 ;;
9498
9499 *)
9500 ld_shlibs=no
9501 ;;
9502 esac
9503
9504 if test x$host_vendor = xsni; then
9505 case $host in
9506 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9507 export_dynamic_flag_spec='${wl}-Blargedynsym'
9508 ;;
9509 esac
9510 fi
9511 fi
9512
9513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9514$as_echo "$ld_shlibs" >&6; }
9515test "$ld_shlibs" = no && can_build_shared=no
9516
9517with_gnu_ld=$with_gnu_ld
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533#
9534# Do we need to explicitly link libc?
9535#
9536case "x$archive_cmds_need_lc" in
9537x|xyes)
9538 # Assume -lc should be added
9539 archive_cmds_need_lc=yes
9540
9541 if test "$enable_shared" = yes && test "$GCC" = yes; then
9542 case $archive_cmds in
9543 *'~'*)
9544 # FIXME: we may have to deal with multi-command sequences.
9545 ;;
9546 '$CC '*)
9547 # Test whether the compiler implicitly links with -lc since on some
9548 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9549 # to ld, don't add -lc before -lgcc.
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9551$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9552if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9553 $as_echo_n "(cached) " >&6
9554else
9555 $RM conftest*
9556 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9557
9558 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9559 (eval $ac_compile) 2>&5
9560 ac_status=$?
9561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9562 test $ac_status = 0; } 2>conftest.err; then
9563 soname=conftest
9564 lib=conftest
9565 libobjs=conftest.$ac_objext
9566 deplibs=
9567 wl=$lt_prog_compiler_wl
9568 pic_flag=$lt_prog_compiler_pic
9569 compiler_flags=-v
9570 linker_flags=-v
9571 verstring=
9572 output_objdir=.
9573 libname=conftest
9574 lt_save_allow_undefined_flag=$allow_undefined_flag
9575 allow_undefined_flag=
9576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9577 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9578 ac_status=$?
9579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9580 test $ac_status = 0; }
9581 then
9582 lt_cv_archive_cmds_need_lc=no
9583 else
9584 lt_cv_archive_cmds_need_lc=yes
9585 fi
9586 allow_undefined_flag=$lt_save_allow_undefined_flag
9587 else
9588 cat conftest.err 1>&5
9589 fi
9590 $RM conftest*
9591
9592fi
9593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9594$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9595 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9596 ;;
9597 esac
9598 fi
9599 ;;
9600esac
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
9756
9757
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9759$as_echo_n "checking dynamic linker characteristics... " >&6; }
9760
9761if test "$GCC" = yes; then
9762 case $host_os in
9763 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9764 *) lt_awk_arg="/^libraries:/" ;;
9765 esac
9766 case $host_os in
9767 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9768 *) lt_sed_strip_eq="s,=/,/,g" ;;
9769 esac
9770 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9771 case $lt_search_path_spec in
9772 *\;*)
9773 # if the path contains ";" then we assume it to be the separator
9774 # otherwise default to the standard path separator (i.e. ":") - it is
9775 # assumed that no part of a normal pathname contains ";" but that should
9776 # okay in the real world where ";" in dirpaths is itself problematic.
9777 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9778 ;;
9779 *)
9780 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9781 ;;
9782 esac
9783 # Ok, now we have the path, separated by spaces, we can step through it
9784 # and add multilib dir if necessary.
9785 lt_tmp_lt_search_path_spec=
9786 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9787 for lt_sys_path in $lt_search_path_spec; do
9788 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9789 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9790 else
9791 test -d "$lt_sys_path" && \
9792 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9793 fi
9794 done
9795 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9796BEGIN {RS=" "; FS="/|\n";} {
9797 lt_foo="";
9798 lt_count=0;
9799 for (lt_i = NF; lt_i > 0; lt_i--) {
9800 if ($lt_i != "" && $lt_i != ".") {
9801 if ($lt_i == "..") {
9802 lt_count++;
9803 } else {
9804 if (lt_count == 0) {
9805 lt_foo="/" $lt_i lt_foo;
9806 } else {
9807 lt_count--;
9808 }
9809 }
9810 }
9811 }
9812 if (lt_foo != "") { lt_freq[lt_foo]++; }
9813 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9814}'`
9815 # AWK program above erroneously prepends '/' to C:/dos/paths
9816 # for these hosts.
9817 case $host_os in
9818 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9819 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9820 esac
9821 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9822else
9823 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9824fi
9825library_names_spec=
9826libname_spec='lib$name'
9827soname_spec=
9828shrext_cmds=".so"
9829postinstall_cmds=
9830postuninstall_cmds=
9831finish_cmds=
9832finish_eval=
9833shlibpath_var=
9834shlibpath_overrides_runpath=unknown
9835version_type=none
9836dynamic_linker="$host_os ld.so"
9837sys_lib_dlsearch_path_spec="/lib /usr/lib"
9838need_lib_prefix=unknown
9839hardcode_into_libs=no
9840
9841# when you set need_version to no, make sure it does not cause -set_version
9842# flags to be left without arguments
9843need_version=unknown
9844
9845case $host_os in
9846aix3*)
9847 version_type=linux
9848 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9849 shlibpath_var=LIBPATH
9850
9851 # AIX 3 has no versioning support, so we append a major version to the name.
9852 soname_spec='${libname}${release}${shared_ext}$major'
9853 ;;
9854
9855aix[4-9]*)
9856 version_type=linux
9857 need_lib_prefix=no
9858 need_version=no
9859 hardcode_into_libs=yes
9860 if test "$host_cpu" = ia64; then
9861 # AIX 5 supports IA64
9862 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9863 shlibpath_var=LD_LIBRARY_PATH
9864 else
9865 # With GCC up to 2.95.x, collect2 would create an import file
9866 # for dependence libraries. The import file would start with
9867 # the line `#! .'. This would cause the generated library to
9868 # depend on `.', always an invalid library. This was fixed in
9869 # development snapshots of GCC prior to 3.0.
9870 case $host_os in
9871 aix4 | aix4.[01] | aix4.[01].*)
9872 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9873 echo ' yes '
9874 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9875 :
9876 else
9877 can_build_shared=no
9878 fi
9879 ;;
9880 esac
9881 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9882 # soname into executable. Probably we can add versioning support to
9883 # collect2, so additional links can be useful in future.
9884 if test "$aix_use_runtimelinking" = yes; then
9885 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9886 # instead of lib<name>.a to let people know that these are not
9887 # typical AIX shared libraries.
9888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9889 else
9890 # We preserve .a as extension for shared libraries through AIX4.2
9891 # and later when we are not doing run time linking.
9892 library_names_spec='${libname}${release}.a $libname.a'
9893 soname_spec='${libname}${release}${shared_ext}$major'
9894 fi
9895 shlibpath_var=LIBPATH
9896 fi
9897 ;;
9898
9899amigaos*)
9900 case $host_cpu in
9901 powerpc)
9902 # Since July 2007 AmigaOS4 officially supports .so libraries.
9903 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9905 ;;
9906 m68k)
9907 library_names_spec='$libname.ixlibrary $libname.a'
9908 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9909 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9910 ;;
9911 esac
9912 ;;
9913
9914beos*)
9915 library_names_spec='${libname}${shared_ext}'
9916 dynamic_linker="$host_os ld.so"
9917 shlibpath_var=LIBRARY_PATH
9918 ;;
9919
9920bsdi[45]*)
9921 version_type=linux
9922 need_version=no
9923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9924 soname_spec='${libname}${release}${shared_ext}$major'
9925 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9926 shlibpath_var=LD_LIBRARY_PATH
9927 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9928 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9929 # the default ld.so.conf also contains /usr/contrib/lib and
9930 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9931 # libtool to hard-code these into programs
9932 ;;
9933
9934cygwin* | mingw* | pw32* | cegcc*)
9935 version_type=windows
9936 shrext_cmds=".dll"
9937 need_version=no
9938 need_lib_prefix=no
9939
9940 case $GCC,$host_os in
9941 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9942 library_names_spec='$libname.dll.a'
9943 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9944 postinstall_cmds='base_file=`basename \${file}`~
9945 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9946 dldir=$destdir/`dirname \$dlpath`~
9947 test -d \$dldir || mkdir -p \$dldir~
9948 $install_prog $dir/$dlname \$dldir/$dlname~
9949 chmod a+x \$dldir/$dlname~
9950 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9951 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9952 fi'
9953 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9954 dlpath=$dir/\$dldll~
9955 $RM \$dlpath'
9956 shlibpath_overrides_runpath=yes
9957
9958 case $host_os in
9959 cygwin*)
9960 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9961 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9962
9963 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9964 ;;
9965 mingw* | cegcc*)
9966 # MinGW DLLs use traditional 'lib' prefix
9967 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9968 ;;
9969 pw32*)
9970 # pw32 DLLs use 'pw' prefix rather than 'lib'
9971 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9972 ;;
9973 esac
9974 ;;
9975
9976 *)
9977 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9978 ;;
9979 esac
9980 dynamic_linker='Win32 ld.exe'
9981 # FIXME: first we should search . and the directory the executable is in
9982 shlibpath_var=PATH
9983 ;;
9984
9985darwin* | rhapsody*)
9986 dynamic_linker="$host_os dyld"
9987 version_type=darwin
9988 need_lib_prefix=no
9989 need_version=no
9990 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9991 soname_spec='${libname}${release}${major}$shared_ext'
9992 shlibpath_overrides_runpath=yes
9993 shlibpath_var=DYLD_LIBRARY_PATH
9994 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9995
9996 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9997 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9998 ;;
9999
10000dgux*)
10001 version_type=linux
10002 need_lib_prefix=no
10003 need_version=no
10004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10005 soname_spec='${libname}${release}${shared_ext}$major'
10006 shlibpath_var=LD_LIBRARY_PATH
10007 ;;
10008
10009freebsd1*)
10010 dynamic_linker=no
10011 ;;
10012
10013freebsd* | dragonfly*)
10014 # DragonFly does not have aout. When/if they implement a new
10015 # versioning mechanism, adjust this.
10016 if test -x /usr/bin/objformat; then
10017 objformat=`/usr/bin/objformat`
10018 else
10019 case $host_os in
10020 freebsd[123]*) objformat=aout ;;
10021 *) objformat=elf ;;
10022 esac
10023 fi
10024 version_type=freebsd-$objformat
10025 case $version_type in
10026 freebsd-elf*)
10027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10028 need_version=no
10029 need_lib_prefix=no
10030 ;;
10031 freebsd-*)
10032 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10033 need_version=yes
10034 ;;
10035 esac
10036 shlibpath_var=LD_LIBRARY_PATH
10037 case $host_os in
10038 freebsd2*)
10039 shlibpath_overrides_runpath=yes
10040 ;;
10041 freebsd3.[01]* | freebsdelf3.[01]*)
10042 shlibpath_overrides_runpath=yes
10043 hardcode_into_libs=yes
10044 ;;
10045 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10046 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10047 shlibpath_overrides_runpath=no
10048 hardcode_into_libs=yes
10049 ;;
10050 *) # from 4.6 on, and DragonFly
10051 shlibpath_overrides_runpath=yes
10052 hardcode_into_libs=yes
10053 ;;
10054 esac
10055 ;;
10056
10057gnu*)
10058 version_type=linux
10059 need_lib_prefix=no
10060 need_version=no
10061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10062 soname_spec='${libname}${release}${shared_ext}$major'
10063 shlibpath_var=LD_LIBRARY_PATH
10064 hardcode_into_libs=yes
10065 ;;
10066
10067haiku*)
10068 version_type=linux
10069 need_lib_prefix=no
10070 need_version=no
10071 dynamic_linker="$host_os runtime_loader"
10072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10073 soname_spec='${libname}${release}${shared_ext}$major'
10074 shlibpath_var=LIBRARY_PATH
10075 shlibpath_overrides_runpath=yes
10076 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10077 hardcode_into_libs=yes
10078 ;;
10079
10080hpux9* | hpux10* | hpux11*)
10081 # Give a soname corresponding to the major version so that dld.sl refuses to
10082 # link against other versions.
10083 version_type=sunos
10084 need_lib_prefix=no
10085 need_version=no
10086 case $host_cpu in
10087 ia64*)
10088 shrext_cmds='.so'
10089 hardcode_into_libs=yes
10090 dynamic_linker="$host_os dld.so"
10091 shlibpath_var=LD_LIBRARY_PATH
10092 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10094 soname_spec='${libname}${release}${shared_ext}$major'
10095 if test "X$HPUX_IA64_MODE" = X32; then
10096 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10097 else
10098 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10099 fi
10100 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10101 ;;
10102 hppa*64*)
10103 shrext_cmds='.sl'
10104 hardcode_into_libs=yes
10105 dynamic_linker="$host_os dld.sl"
10106 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10107 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10109 soname_spec='${libname}${release}${shared_ext}$major'
10110 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10111 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10112 ;;
10113 *)
10114 shrext_cmds='.sl'
10115 dynamic_linker="$host_os dld.sl"
10116 shlibpath_var=SHLIB_PATH
10117 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10119 soname_spec='${libname}${release}${shared_ext}$major'
10120 ;;
10121 esac
10122 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10123 postinstall_cmds='chmod 555 $lib'
10124 # or fails outright, so override atomically:
10125 install_override_mode=555
10126 ;;
10127
10128interix[3-9]*)
10129 version_type=linux
10130 need_lib_prefix=no
10131 need_version=no
10132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10133 soname_spec='${libname}${release}${shared_ext}$major'
10134 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10135 shlibpath_var=LD_LIBRARY_PATH
10136 shlibpath_overrides_runpath=no
10137 hardcode_into_libs=yes
10138 ;;
10139
10140irix5* | irix6* | nonstopux*)
10141 case $host_os in
10142 nonstopux*) version_type=nonstopux ;;
10143 *)
10144 if test "$lt_cv_prog_gnu_ld" = yes; then
10145 version_type=linux
10146 else
10147 version_type=irix
10148 fi ;;
10149 esac
10150 need_lib_prefix=no
10151 need_version=no
10152 soname_spec='${libname}${release}${shared_ext}$major'
10153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10154 case $host_os in
10155 irix5* | nonstopux*)
10156 libsuff= shlibsuff=
10157 ;;
10158 *)
10159 case $LD in # libtool.m4 will add one of these switches to LD
10160 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10161 libsuff= shlibsuff= libmagic=32-bit;;
10162 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10163 libsuff=32 shlibsuff=N32 libmagic=N32;;
10164 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10165 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10166 *) libsuff= shlibsuff= libmagic=never-match;;
10167 esac
10168 ;;
10169 esac
10170 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10171 shlibpath_overrides_runpath=no
10172 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10173 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10174 hardcode_into_libs=yes
10175 ;;
10176
10177# No shared lib support for Linux oldld, aout, or coff.
10178linux*oldld* | linux*aout* | linux*coff*)
10179 dynamic_linker=no
10180 ;;
10181
10182# This must be Linux ELF.
10183linux* | k*bsd*-gnu | kopensolaris*-gnu)
10184 version_type=linux
10185 need_lib_prefix=no
10186 need_version=no
10187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10188 soname_spec='${libname}${release}${shared_ext}$major'
10189 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10190 shlibpath_var=LD_LIBRARY_PATH
10191 shlibpath_overrides_runpath=no
10192
10193 # Some binutils ld are patched to set DT_RUNPATH
10194 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10195 $as_echo_n "(cached) " >&6
10196else
10197 lt_cv_shlibpath_overrides_runpath=no
10198 save_LDFLAGS=$LDFLAGS
10199 save_libdir=$libdir
10200 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10201 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10203/* end confdefs.h. */
10204
10205int
10206main ()
10207{
10208
10209 ;
10210 return 0;
10211}
10212_ACEOF
10213if ac_fn_c_try_link "$LINENO"; then :
10214 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10215 lt_cv_shlibpath_overrides_runpath=yes
10216fi
10217fi
10218rm -f core conftest.err conftest.$ac_objext \
10219 conftest$ac_exeext conftest.$ac_ext
10220 LDFLAGS=$save_LDFLAGS
10221 libdir=$save_libdir
10222
10223fi
10224
10225 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10226
10227 # This implies no fast_install, which is unacceptable.
10228 # Some rework will be needed to allow for fast_install
10229 # before this can be enabled.
10230 hardcode_into_libs=yes
10231
10232 # Append ld.so.conf contents to the search path
10233 if test -f /etc/ld.so.conf; then
10234 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10235 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10236 fi
10237
10238 # We used to test for /lib/ld.so.1 and disable shared libraries on
10239 # powerpc, because MkLinux only supported shared libraries with the
10240 # GNU dynamic linker. Since this was broken with cross compilers,
10241 # most powerpc-linux boxes support dynamic linking these days and
10242 # people can always --disable-shared, the test was removed, and we
10243 # assume the GNU/Linux dynamic linker is in use.
10244 dynamic_linker='GNU/Linux ld.so'
10245 ;;
10246
10247netbsd*)
10248 version_type=sunos
10249 need_lib_prefix=no
10250 need_version=no
10251 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10253 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10254 dynamic_linker='NetBSD (a.out) ld.so'
10255 else
10256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10257 soname_spec='${libname}${release}${shared_ext}$major'
10258 dynamic_linker='NetBSD ld.elf_so'
10259 fi
10260 shlibpath_var=LD_LIBRARY_PATH
10261 shlibpath_overrides_runpath=yes
10262 hardcode_into_libs=yes
10263 ;;
10264
10265newsos6)
10266 version_type=linux
10267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10268 shlibpath_var=LD_LIBRARY_PATH
10269 shlibpath_overrides_runpath=yes
10270 ;;
10271
10272*nto* | *qnx*)
10273 version_type=qnx
10274 need_lib_prefix=no
10275 need_version=no
10276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10277 soname_spec='${libname}${release}${shared_ext}$major'
10278 shlibpath_var=LD_LIBRARY_PATH
10279 shlibpath_overrides_runpath=no
10280 hardcode_into_libs=yes
10281 dynamic_linker='ldqnx.so'
10282 ;;
10283
10284openbsd*)
10285 version_type=sunos
10286 sys_lib_dlsearch_path_spec="/usr/lib"
10287 need_lib_prefix=no
10288 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10289 case $host_os in
10290 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10291 *) need_version=no ;;
10292 esac
10293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10294 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10295 shlibpath_var=LD_LIBRARY_PATH
10296 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10297 case $host_os in
10298 openbsd2.[89] | openbsd2.[89].*)
10299 shlibpath_overrides_runpath=no
10300 ;;
10301 *)
10302 shlibpath_overrides_runpath=yes
10303 ;;
10304 esac
10305 else
10306 shlibpath_overrides_runpath=yes
10307 fi
10308 ;;
10309
10310os2*)
10311 libname_spec='$name'
10312 shrext_cmds=".dll"
10313 need_lib_prefix=no
10314 library_names_spec='$libname${shared_ext} $libname.a'
10315 dynamic_linker='OS/2 ld.exe'
10316 shlibpath_var=LIBPATH
10317 ;;
10318
10319osf3* | osf4* | osf5*)
10320 version_type=osf
10321 need_lib_prefix=no
10322 need_version=no
10323 soname_spec='${libname}${release}${shared_ext}$major'
10324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10325 shlibpath_var=LD_LIBRARY_PATH
10326 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10327 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10328 ;;
10329
10330rdos*)
10331 dynamic_linker=no
10332 ;;
10333
10334solaris*)
10335 version_type=linux
10336 need_lib_prefix=no
10337 need_version=no
10338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10339 soname_spec='${libname}${release}${shared_ext}$major'
10340 shlibpath_var=LD_LIBRARY_PATH
10341 shlibpath_overrides_runpath=yes
10342 hardcode_into_libs=yes
10343 # ldd complains unless libraries are executable
10344 postinstall_cmds='chmod +x $lib'
10345 ;;
10346
10347sunos4*)
10348 version_type=sunos
10349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10350 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10351 shlibpath_var=LD_LIBRARY_PATH
10352 shlibpath_overrides_runpath=yes
10353 if test "$with_gnu_ld" = yes; then
10354 need_lib_prefix=no
10355 fi
10356 need_version=yes
10357 ;;
10358
10359sysv4 | sysv4.3*)
10360 version_type=linux
10361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10362 soname_spec='${libname}${release}${shared_ext}$major'
10363 shlibpath_var=LD_LIBRARY_PATH
10364 case $host_vendor in
10365 sni)
10366 shlibpath_overrides_runpath=no
10367 need_lib_prefix=no
10368 runpath_var=LD_RUN_PATH
10369 ;;
10370 siemens)
10371 need_lib_prefix=no
10372 ;;
10373 motorola)
10374 need_lib_prefix=no
10375 need_version=no
10376 shlibpath_overrides_runpath=no
10377 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10378 ;;
10379 esac
10380 ;;
10381
10382sysv4*MP*)
10383 if test -d /usr/nec ;then
10384 version_type=linux
10385 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10386 soname_spec='$libname${shared_ext}.$major'
10387 shlibpath_var=LD_LIBRARY_PATH
10388 fi
10389 ;;
10390
10391sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10392 version_type=freebsd-elf
10393 need_lib_prefix=no
10394 need_version=no
10395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10396 soname_spec='${libname}${release}${shared_ext}$major'
10397 shlibpath_var=LD_LIBRARY_PATH
10398 shlibpath_overrides_runpath=yes
10399 hardcode_into_libs=yes
10400 if test "$with_gnu_ld" = yes; then
10401 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10402 else
10403 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10404 case $host_os in
10405 sco3.2v5*)
10406 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10407 ;;
10408 esac
10409 fi
10410 sys_lib_dlsearch_path_spec='/usr/lib'
10411 ;;
10412
10413tpf*)
10414 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10415 version_type=linux
10416 need_lib_prefix=no
10417 need_version=no
10418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10419 shlibpath_var=LD_LIBRARY_PATH
10420 shlibpath_overrides_runpath=no
10421 hardcode_into_libs=yes
10422 ;;
10423
10424uts4*)
10425 version_type=linux
10426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10427 soname_spec='${libname}${release}${shared_ext}$major'
10428 shlibpath_var=LD_LIBRARY_PATH
10429 ;;
10430
10431*)
10432 dynamic_linker=no
10433 ;;
10434esac
10435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10436$as_echo "$dynamic_linker" >&6; }
10437test "$dynamic_linker" = no && can_build_shared=no
10438
10439variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10440if test "$GCC" = yes; then
10441 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10442fi
10443
10444if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10445 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10446fi
10447if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10448 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10449fi
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
10540
10541
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10543$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10544hardcode_action=
10545if test -n "$hardcode_libdir_flag_spec" ||
10546 test -n "$runpath_var" ||
10547 test "X$hardcode_automatic" = "Xyes" ; then
10548
10549 # We can hardcode non-existent directories.
10550 if test "$hardcode_direct" != no &&
10551 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10552 # have to relink, otherwise we might link with an installed library
10553 # when we should be linking with a yet-to-be-installed one
10554 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10555 test "$hardcode_minus_L" != no; then
10556 # Linking always hardcodes the temporary library directory.
10557 hardcode_action=relink
10558 else
10559 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10560 hardcode_action=immediate
10561 fi
10562else
10563 # We cannot hardcode anything, or else we can only hardcode existing
10564 # directories.
10565 hardcode_action=unsupported
10566fi
10567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10568$as_echo "$hardcode_action" >&6; }
10569
10570if test "$hardcode_action" = relink ||
10571 test "$inherit_rpath" = yes; then
10572 # Fast installation is not supported
10573 enable_fast_install=no
10574elif test "$shlibpath_overrides_runpath" = yes ||
10575 test "$enable_shared" = no; then
10576 # Fast installation is not necessary
10577 enable_fast_install=needless
10578fi
10579
10580
10581
10582
10583
10584
10585 if test "x$enable_dlopen" != xyes; then
10586 enable_dlopen=unknown
10587 enable_dlopen_self=unknown
10588 enable_dlopen_self_static=unknown
10589else
10590 lt_cv_dlopen=no
10591 lt_cv_dlopen_libs=
10592
10593 case $host_os in
10594 beos*)
10595 lt_cv_dlopen="load_add_on"
10596 lt_cv_dlopen_libs=
10597 lt_cv_dlopen_self=yes
10598 ;;
10599
10600 mingw* | pw32* | cegcc*)
10601 lt_cv_dlopen="LoadLibrary"
10602 lt_cv_dlopen_libs=
10603 ;;
10604
10605 cygwin*)
10606 lt_cv_dlopen="dlopen"
10607 lt_cv_dlopen_libs=
10608 ;;
10609
10610 darwin*)
10611 # if libdl is installed we need to link against it
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10613$as_echo_n "checking for dlopen in -ldl... " >&6; }
10614if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10615 $as_echo_n "(cached) " >&6
10616else
10617 ac_check_lib_save_LIBS=$LIBS
10618LIBS="-ldl $LIBS"
10619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10620/* end confdefs.h. */
10621
10622/* Override any GCC internal prototype to avoid an error.
10623 Use char because int might match the return type of a GCC
10624 builtin and then its argument prototype would still apply. */
10625#ifdef __cplusplus
10626extern "C"
10627#endif
10628char dlopen ();
10629int
10630main ()
10631{
10632return dlopen ();
10633 ;
10634 return 0;
10635}
10636_ACEOF
10637if ac_fn_c_try_link "$LINENO"; then :
10638 ac_cv_lib_dl_dlopen=yes
10639else
10640 ac_cv_lib_dl_dlopen=no
10641fi
10642rm -f core conftest.err conftest.$ac_objext \
10643 conftest$ac_exeext conftest.$ac_ext
10644LIBS=$ac_check_lib_save_LIBS
10645fi
10646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10647$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10648if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10649 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10650else
10651
10652 lt_cv_dlopen="dyld"
10653 lt_cv_dlopen_libs=
10654 lt_cv_dlopen_self=yes
10655
10656fi
10657
10658 ;;
10659
10660 *)
10661 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10662if test "x$ac_cv_func_shl_load" = x""yes; then :
10663 lt_cv_dlopen="shl_load"
10664else
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10666$as_echo_n "checking for shl_load in -ldld... " >&6; }
10667if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10668 $as_echo_n "(cached) " >&6
10669else
10670 ac_check_lib_save_LIBS=$LIBS
10671LIBS="-ldld $LIBS"
10672cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10673/* end confdefs.h. */
10674
10675/* Override any GCC internal prototype to avoid an error.
10676 Use char because int might match the return type of a GCC
10677 builtin and then its argument prototype would still apply. */
10678#ifdef __cplusplus
10679extern "C"
10680#endif
10681char shl_load ();
10682int
10683main ()
10684{
10685return shl_load ();
10686 ;
10687 return 0;
10688}
10689_ACEOF
10690if ac_fn_c_try_link "$LINENO"; then :
10691 ac_cv_lib_dld_shl_load=yes
10692else
10693 ac_cv_lib_dld_shl_load=no
10694fi
10695rm -f core conftest.err conftest.$ac_objext \
10696 conftest$ac_exeext conftest.$ac_ext
10697LIBS=$ac_check_lib_save_LIBS
10698fi
10699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10700$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10701if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10702 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10703else
10704 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10705if test "x$ac_cv_func_dlopen" = x""yes; then :
10706 lt_cv_dlopen="dlopen"
10707else
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10709$as_echo_n "checking for dlopen in -ldl... " >&6; }
10710if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10711 $as_echo_n "(cached) " >&6
10712else
10713 ac_check_lib_save_LIBS=$LIBS
10714LIBS="-ldl $LIBS"
10715cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10716/* end confdefs.h. */
10717
10718/* Override any GCC internal prototype to avoid an error.
10719 Use char because int might match the return type of a GCC
10720 builtin and then its argument prototype would still apply. */
10721#ifdef __cplusplus
10722extern "C"
10723#endif
10724char dlopen ();
10725int
10726main ()
10727{
10728return dlopen ();
10729 ;
10730 return 0;
10731}
10732_ACEOF
10733if ac_fn_c_try_link "$LINENO"; then :
10734 ac_cv_lib_dl_dlopen=yes
10735else
10736 ac_cv_lib_dl_dlopen=no
10737fi
10738rm -f core conftest.err conftest.$ac_objext \
10739 conftest$ac_exeext conftest.$ac_ext
10740LIBS=$ac_check_lib_save_LIBS
10741fi
10742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10743$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10744if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10745 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10746else
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10748$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10749if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10750 $as_echo_n "(cached) " >&6
10751else
10752 ac_check_lib_save_LIBS=$LIBS
10753LIBS="-lsvld $LIBS"
10754cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10755/* end confdefs.h. */
10756
10757/* Override any GCC internal prototype to avoid an error.
10758 Use char because int might match the return type of a GCC
10759 builtin and then its argument prototype would still apply. */
10760#ifdef __cplusplus
10761extern "C"
10762#endif
10763char dlopen ();
10764int
10765main ()
10766{
10767return dlopen ();
10768 ;
10769 return 0;
10770}
10771_ACEOF
10772if ac_fn_c_try_link "$LINENO"; then :
10773 ac_cv_lib_svld_dlopen=yes
10774else
10775 ac_cv_lib_svld_dlopen=no
10776fi
10777rm -f core conftest.err conftest.$ac_objext \
10778 conftest$ac_exeext conftest.$ac_ext
10779LIBS=$ac_check_lib_save_LIBS
10780fi
10781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10782$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10783if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10784 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10785else
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10787$as_echo_n "checking for dld_link in -ldld... " >&6; }
10788if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10789 $as_echo_n "(cached) " >&6
10790else
10791 ac_check_lib_save_LIBS=$LIBS
10792LIBS="-ldld $LIBS"
10793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10794/* end confdefs.h. */
10795
10796/* Override any GCC internal prototype to avoid an error.
10797 Use char because int might match the return type of a GCC
10798 builtin and then its argument prototype would still apply. */
10799#ifdef __cplusplus
10800extern "C"
10801#endif
10802char dld_link ();
10803int
10804main ()
10805{
10806return dld_link ();
10807 ;
10808 return 0;
10809}
10810_ACEOF
10811if ac_fn_c_try_link "$LINENO"; then :
10812 ac_cv_lib_dld_dld_link=yes
10813else
10814 ac_cv_lib_dld_dld_link=no
10815fi
10816rm -f core conftest.err conftest.$ac_objext \
10817 conftest$ac_exeext conftest.$ac_ext
10818LIBS=$ac_check_lib_save_LIBS
10819fi
10820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10821$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10822if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10823 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10824fi
10825
10826
10827fi
10828
10829
10830fi
10831
10832
10833fi
10834
10835
10836fi
10837
10838
10839fi
10840
10841 ;;
10842 esac
10843
10844 if test "x$lt_cv_dlopen" != xno; then
10845 enable_dlopen=yes
10846 else
10847 enable_dlopen=no
10848 fi
10849
10850 case $lt_cv_dlopen in
10851 dlopen)
10852 save_CPPFLAGS="$CPPFLAGS"
10853 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10854
10855 save_LDFLAGS="$LDFLAGS"
10856 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10857
10858 save_LIBS="$LIBS"
10859 LIBS="$lt_cv_dlopen_libs $LIBS"
10860
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10862$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10863if test "${lt_cv_dlopen_self+set}" = set; then :
10864 $as_echo_n "(cached) " >&6
10865else
10866 if test "$cross_compiling" = yes; then :
10867 lt_cv_dlopen_self=cross
10868else
10869 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10870 lt_status=$lt_dlunknown
10871 cat > conftest.$ac_ext <<_LT_EOF
7d17fab3 10872#line 10872 "configure"
e440a328 10873#include "confdefs.h"
10874
10875#if HAVE_DLFCN_H
10876#include <dlfcn.h>
10877#endif
10878
10879#include <stdio.h>
10880
10881#ifdef RTLD_GLOBAL
10882# define LT_DLGLOBAL RTLD_GLOBAL
10883#else
10884# ifdef DL_GLOBAL
10885# define LT_DLGLOBAL DL_GLOBAL
10886# else
10887# define LT_DLGLOBAL 0
10888# endif
10889#endif
10890
10891/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10892 find out it does not work in some platform. */
10893#ifndef LT_DLLAZY_OR_NOW
10894# ifdef RTLD_LAZY
10895# define LT_DLLAZY_OR_NOW RTLD_LAZY
10896# else
10897# ifdef DL_LAZY
10898# define LT_DLLAZY_OR_NOW DL_LAZY
10899# else
10900# ifdef RTLD_NOW
10901# define LT_DLLAZY_OR_NOW RTLD_NOW
10902# else
10903# ifdef DL_NOW
10904# define LT_DLLAZY_OR_NOW DL_NOW
10905# else
10906# define LT_DLLAZY_OR_NOW 0
10907# endif
10908# endif
10909# endif
10910# endif
10911#endif
10912
10913/* When -fvisbility=hidden is used, assume the code has been annotated
10914 correspondingly for the symbols needed. */
10915#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10916void fnord () __attribute__((visibility("default")));
10917#endif
10918
10919void fnord () { int i=42; }
10920int main ()
10921{
10922 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10923 int status = $lt_dlunknown;
10924
10925 if (self)
10926 {
10927 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10928 else
10929 {
10930 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10931 else puts (dlerror ());
10932 }
10933 /* dlclose (self); */
10934 }
10935 else
10936 puts (dlerror ());
10937
10938 return status;
10939}
10940_LT_EOF
10941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10942 (eval $ac_link) 2>&5
10943 ac_status=$?
10944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10945 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10946 (./conftest; exit; ) >&5 2>/dev/null
10947 lt_status=$?
10948 case x$lt_status in
10949 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10950 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10951 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10952 esac
10953 else :
10954 # compilation failed
10955 lt_cv_dlopen_self=no
10956 fi
10957fi
10958rm -fr conftest*
10959
10960
10961fi
10962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10963$as_echo "$lt_cv_dlopen_self" >&6; }
10964
10965 if test "x$lt_cv_dlopen_self" = xyes; then
10966 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10968$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10969if test "${lt_cv_dlopen_self_static+set}" = set; then :
10970 $as_echo_n "(cached) " >&6
10971else
10972 if test "$cross_compiling" = yes; then :
10973 lt_cv_dlopen_self_static=cross
10974else
10975 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10976 lt_status=$lt_dlunknown
10977 cat > conftest.$ac_ext <<_LT_EOF
7d17fab3 10978#line 10978 "configure"
e440a328 10979#include "confdefs.h"
10980
10981#if HAVE_DLFCN_H
10982#include <dlfcn.h>
10983#endif
10984
10985#include <stdio.h>
10986
10987#ifdef RTLD_GLOBAL
10988# define LT_DLGLOBAL RTLD_GLOBAL
10989#else
10990# ifdef DL_GLOBAL
10991# define LT_DLGLOBAL DL_GLOBAL
10992# else
10993# define LT_DLGLOBAL 0
10994# endif
10995#endif
10996
10997/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10998 find out it does not work in some platform. */
10999#ifndef LT_DLLAZY_OR_NOW
11000# ifdef RTLD_LAZY
11001# define LT_DLLAZY_OR_NOW RTLD_LAZY
11002# else
11003# ifdef DL_LAZY
11004# define LT_DLLAZY_OR_NOW DL_LAZY
11005# else
11006# ifdef RTLD_NOW
11007# define LT_DLLAZY_OR_NOW RTLD_NOW
11008# else
11009# ifdef DL_NOW
11010# define LT_DLLAZY_OR_NOW DL_NOW
11011# else
11012# define LT_DLLAZY_OR_NOW 0
11013# endif
11014# endif
11015# endif
11016# endif
11017#endif
11018
11019/* When -fvisbility=hidden is used, assume the code has been annotated
11020 correspondingly for the symbols needed. */
11021#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11022void fnord () __attribute__((visibility("default")));
11023#endif
11024
11025void fnord () { int i=42; }
11026int main ()
11027{
11028 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11029 int status = $lt_dlunknown;
11030
11031 if (self)
11032 {
11033 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11034 else
11035 {
11036 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11037 else puts (dlerror ());
11038 }
11039 /* dlclose (self); */
11040 }
11041 else
11042 puts (dlerror ());
11043
11044 return status;
11045}
11046_LT_EOF
11047 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11048 (eval $ac_link) 2>&5
11049 ac_status=$?
11050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11051 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11052 (./conftest; exit; ) >&5 2>/dev/null
11053 lt_status=$?
11054 case x$lt_status in
11055 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11056 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11057 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11058 esac
11059 else :
11060 # compilation failed
11061 lt_cv_dlopen_self_static=no
11062 fi
11063fi
11064rm -fr conftest*
11065
11066
11067fi
11068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11069$as_echo "$lt_cv_dlopen_self_static" >&6; }
11070 fi
11071
11072 CPPFLAGS="$save_CPPFLAGS"
11073 LDFLAGS="$save_LDFLAGS"
11074 LIBS="$save_LIBS"
11075 ;;
11076 esac
11077
11078 case $lt_cv_dlopen_self in
11079 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11080 *) enable_dlopen_self=unknown ;;
11081 esac
11082
11083 case $lt_cv_dlopen_self_static in
11084 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11085 *) enable_dlopen_self_static=unknown ;;
11086 esac
11087fi
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105striplib=
11106old_striplib=
11107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11108$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11109if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11110 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11111 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11113$as_echo "yes" >&6; }
11114else
11115# FIXME - insert some real tests, host_os isn't really good enough
11116 case $host_os in
11117 darwin*)
11118 if test -n "$STRIP" ; then
11119 striplib="$STRIP -x"
11120 old_striplib="$STRIP -S"
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11122$as_echo "yes" >&6; }
11123 else
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11125$as_echo "no" >&6; }
11126 fi
11127 ;;
11128 *)
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11130$as_echo "no" >&6; }
11131 ;;
11132 esac
11133fi
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146 # Report which library types will actually be built
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11148$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11150$as_echo "$can_build_shared" >&6; }
11151
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11153$as_echo_n "checking whether to build shared libraries... " >&6; }
11154 test "$can_build_shared" = "no" && enable_shared=no
11155
11156 # On AIX, shared libraries and static libraries use the same namespace, and
11157 # are all built from PIC.
11158 case $host_os in
11159 aix3*)
11160 test "$enable_shared" = yes && enable_static=no
11161 if test -n "$RANLIB"; then
11162 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11163 postinstall_cmds='$RANLIB $lib'
11164 fi
11165 ;;
11166
11167 aix[4-9]*)
11168 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11169 test "$enable_shared" = yes && enable_static=no
11170 fi
11171 ;;
11172 esac
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11174$as_echo "$enable_shared" >&6; }
11175
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11177$as_echo_n "checking whether to build static libraries... " >&6; }
11178 # Make sure either enable_shared or enable_static is yes.
11179 test "$enable_shared" = yes || enable_static=yes
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11181$as_echo "$enable_static" >&6; }
11182
11183
11184
11185
11186fi
11187ac_ext=c
11188ac_cpp='$CPP $CPPFLAGS'
11189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11191ac_compiler_gnu=$ac_cv_c_compiler_gnu
11192
11193CC="$lt_save_CC"
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207# Source file extension for Go test sources.
11208ac_ext=go
11209
11210# Object file extension for compiled Go test sources.
11211objext=o
11212objext_GO=$objext
11213
11214# Code to be used in simple compile tests
11215lt_simple_compile_test_code="package main; func main() { }"
11216
11217# Code to be used in simple link tests
11218lt_simple_link_test_code='package main; func main() { }'
11219
11220# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11221
11222
11223
11224
11225
11226
11227# If no C compiler was specified, use CC.
11228LTCC=${LTCC-"$CC"}
11229
11230# If no C compiler flags were specified, use CFLAGS.
11231LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11232
11233# Allow CC to be a program name with arguments.
11234compiler=$CC
11235
11236
11237# save warnings/boilerplate of simple test code
11238ac_outfile=conftest.$ac_objext
11239echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11240eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11241_lt_compiler_boilerplate=`cat conftest.err`
11242$RM conftest*
11243
11244ac_outfile=conftest.$ac_objext
11245echo "$lt_simple_link_test_code" >conftest.$ac_ext
11246eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11247_lt_linker_boilerplate=`cat conftest.err`
11248$RM -r conftest*
11249
11250
11251# Allow CC to be a program name with arguments.
11252lt_save_CC="$CC"
11253lt_save_GCC="$GCC"
11254GCC=yes
11255CC=${GOC-"gccgo"}
11256compiler=$CC
11257compiler_GO=$CC
11258LD_GO="$LD"
11259for cc_temp in $compiler""; do
11260 case $cc_temp in
11261 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11262 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11263 \-*) ;;
11264 *) break;;
11265 esac
11266done
11267cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11268
11269
11270# Go did not exist at the time GCC didn't implicitly link libc in.
11271archive_cmds_need_lc_GO=no
11272
11273old_archive_cmds_GO=$old_archive_cmds
11274
11275## CAVEAT EMPTOR:
11276## There is no encapsulation within the following macros, do not change
11277## the running order or otherwise move them around unless you know exactly
11278## what you are doing...
11279if test -n "$compiler"; then
11280
11281lt_prog_compiler_no_builtin_flag_GO=
11282
11283if test "$GCC" = yes; then
11284 case $cc_basename in
11285 nvcc*)
11286 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11287 *)
11288 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11289 esac
11290
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11292$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11293if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11294 $as_echo_n "(cached) " >&6
11295else
11296 lt_cv_prog_compiler_rtti_exceptions=no
11297 ac_outfile=conftest.$ac_objext
11298 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11299 lt_compiler_flag="-fno-rtti -fno-exceptions"
11300 # Insert the option either (1) after the last *FLAGS variable, or
11301 # (2) before a word containing "conftest.", or (3) at the end.
11302 # Note that $ac_compile itself does not contain backslashes and begins
11303 # with a dollar sign (not a hyphen), so the echo should work correctly.
11304 # The option is referenced via a variable to avoid confusing sed.
11305 lt_compile=`echo "$ac_compile" | $SED \
11306 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11307 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11308 -e 's:$: $lt_compiler_flag:'`
11309 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11310 (eval "$lt_compile" 2>conftest.err)
11311 ac_status=$?
11312 cat conftest.err >&5
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 if (exit $ac_status) && test -s "$ac_outfile"; then
11315 # The compiler can only warn and ignore the option if not recognized
11316 # So say no if there are warnings other than the usual output.
11317 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11318 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11319 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11320 lt_cv_prog_compiler_rtti_exceptions=yes
11321 fi
11322 fi
11323 $RM conftest*
11324
11325fi
11326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11327$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11328
11329if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11330 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11331else
11332 :
11333fi
11334
11335fi
11336
11337
11338
11339 lt_prog_compiler_wl_GO=
11340lt_prog_compiler_pic_GO=
11341lt_prog_compiler_static_GO=
11342
11343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11344$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11345
11346 if test "$GCC" = yes; then
11347 lt_prog_compiler_wl_GO='-Wl,'
11348 lt_prog_compiler_static_GO='-static'
11349
11350 case $host_os in
11351 aix*)
11352 # All AIX code is PIC.
11353 if test "$host_cpu" = ia64; then
11354 # AIX 5 now supports IA64 processor
11355 lt_prog_compiler_static_GO='-Bstatic'
11356 fi
11357 ;;
11358
11359 amigaos*)
11360 case $host_cpu in
11361 powerpc)
11362 # see comment about AmigaOS4 .so support
11363 lt_prog_compiler_pic_GO='-fPIC'
11364 ;;
11365 m68k)
11366 # FIXME: we need at least 68020 code to build shared libraries, but
11367 # adding the `-m68020' flag to GCC prevents building anything better,
11368 # like `-m68040'.
11369 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11370 ;;
11371 esac
11372 ;;
11373
11374 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11375 # PIC is the default for these OSes.
11376 ;;
11377
11378 mingw* | cygwin* | pw32* | os2* | cegcc*)
11379 # This hack is so that the source file can tell whether it is being
11380 # built for inclusion in a dll (and should export symbols for example).
11381 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11382 # (--disable-auto-import) libraries
11383 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11384 ;;
11385
11386 darwin* | rhapsody*)
11387 # PIC is the default on this platform
11388 # Common symbols not allowed in MH_DYLIB files
11389 lt_prog_compiler_pic_GO='-fno-common'
11390 ;;
11391
11392 haiku*)
11393 # PIC is the default for Haiku.
11394 # The "-static" flag exists, but is broken.
11395 lt_prog_compiler_static_GO=
11396 ;;
11397
11398 hpux*)
11399 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11400 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11401 # sets the default TLS model and affects inlining.
11402 case $host_cpu in
11403 hppa*64*)
11404 # +Z the default
11405 ;;
11406 *)
11407 lt_prog_compiler_pic_GO='-fPIC'
11408 ;;
11409 esac
11410 ;;
11411
11412 interix[3-9]*)
11413 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11414 # Instead, we relocate shared libraries at runtime.
11415 ;;
11416
11417 msdosdjgpp*)
11418 # Just because we use GCC doesn't mean we suddenly get shared libraries
11419 # on systems that don't support them.
11420 lt_prog_compiler_can_build_shared_GO=no
11421 enable_shared=no
11422 ;;
11423
11424 *nto* | *qnx*)
11425 # QNX uses GNU C++, but need to define -shared option too, otherwise
11426 # it will coredump.
11427 lt_prog_compiler_pic_GO='-fPIC -shared'
11428 ;;
11429
11430 sysv4*MP*)
11431 if test -d /usr/nec; then
11432 lt_prog_compiler_pic_GO=-Kconform_pic
11433 fi
11434 ;;
11435
11436 *)
11437 lt_prog_compiler_pic_GO='-fPIC'
11438 ;;
11439 esac
11440
11441 case $cc_basename in
11442 nvcc*) # Cuda Compiler Driver 2.2
11443 lt_prog_compiler_wl_GO='-Xlinker '
11444 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11445 ;;
11446 esac
11447 else
11448 # PORTME Check for flag to pass linker flags through the system compiler.
11449 case $host_os in
11450 aix*)
11451 lt_prog_compiler_wl_GO='-Wl,'
11452 if test "$host_cpu" = ia64; then
11453 # AIX 5 now supports IA64 processor
11454 lt_prog_compiler_static_GO='-Bstatic'
11455 else
11456 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11457 fi
11458 ;;
11459
11460 mingw* | cygwin* | pw32* | os2* | cegcc*)
11461 # This hack is so that the source file can tell whether it is being
11462 # built for inclusion in a dll (and should export symbols for example).
11463 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11464 ;;
11465
11466 hpux9* | hpux10* | hpux11*)
11467 lt_prog_compiler_wl_GO='-Wl,'
11468 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11469 # not for PA HP-UX.
11470 case $host_cpu in
11471 hppa*64*|ia64*)
11472 # +Z the default
11473 ;;
11474 *)
11475 lt_prog_compiler_pic_GO='+Z'
11476 ;;
11477 esac
11478 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11479 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11480 ;;
11481
11482 irix5* | irix6* | nonstopux*)
11483 lt_prog_compiler_wl_GO='-Wl,'
11484 # PIC (with -KPIC) is the default.
11485 lt_prog_compiler_static_GO='-non_shared'
11486 ;;
11487
11488 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11489 case $cc_basename in
11490 # old Intel for x86_64 which still supported -KPIC.
11491 ecc*)
11492 lt_prog_compiler_wl_GO='-Wl,'
11493 lt_prog_compiler_pic_GO='-KPIC'
11494 lt_prog_compiler_static_GO='-static'
11495 ;;
11496 # icc used to be incompatible with GCC.
11497 # ICC 10 doesn't accept -KPIC any more.
11498 icc* | ifort*)
11499 lt_prog_compiler_wl_GO='-Wl,'
11500 lt_prog_compiler_pic_GO='-fPIC'
11501 lt_prog_compiler_static_GO='-static'
11502 ;;
11503 # Lahey Fortran 8.1.
11504 lf95*)
11505 lt_prog_compiler_wl_GO='-Wl,'
11506 lt_prog_compiler_pic_GO='--shared'
11507 lt_prog_compiler_static_GO='--static'
11508 ;;
11509 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11510 # Portland Group compilers (*not* the Pentium gcc compiler,
11511 # which looks to be a dead project)
11512 lt_prog_compiler_wl_GO='-Wl,'
11513 lt_prog_compiler_pic_GO='-fpic'
11514 lt_prog_compiler_static_GO='-Bstatic'
11515 ;;
11516 ccc*)
11517 lt_prog_compiler_wl_GO='-Wl,'
11518 # All Alpha code is PIC.
11519 lt_prog_compiler_static_GO='-non_shared'
11520 ;;
11521 xl* | bgxl* | bgf* | mpixl*)
11522 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11523 lt_prog_compiler_wl_GO='-Wl,'
11524 lt_prog_compiler_pic_GO='-qpic'
11525 lt_prog_compiler_static_GO='-qstaticlink'
11526 ;;
11527 *)
11528 case `$CC -V 2>&1 | sed 5q` in
11529 *Sun\ F* | *Sun*Fortran*)
11530 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11531 lt_prog_compiler_pic_GO='-KPIC'
11532 lt_prog_compiler_static_GO='-Bstatic'
11533 lt_prog_compiler_wl_GO=''
11534 ;;
11535 *Sun\ C*)
11536 # Sun C 5.9
11537 lt_prog_compiler_pic_GO='-KPIC'
11538 lt_prog_compiler_static_GO='-Bstatic'
11539 lt_prog_compiler_wl_GO='-Wl,'
11540 ;;
11541 esac
11542 ;;
11543 esac
11544 ;;
11545
11546 newsos6)
11547 lt_prog_compiler_pic_GO='-KPIC'
11548 lt_prog_compiler_static_GO='-Bstatic'
11549 ;;
11550
11551 *nto* | *qnx*)
11552 # QNX uses GNU C++, but need to define -shared option too, otherwise
11553 # it will coredump.
11554 lt_prog_compiler_pic_GO='-fPIC -shared'
11555 ;;
11556
11557 osf3* | osf4* | osf5*)
11558 lt_prog_compiler_wl_GO='-Wl,'
11559 # All OSF/1 code is PIC.
11560 lt_prog_compiler_static_GO='-non_shared'
11561 ;;
11562
11563 rdos*)
11564 lt_prog_compiler_static_GO='-non_shared'
11565 ;;
11566
11567 solaris*)
11568 lt_prog_compiler_pic_GO='-KPIC'
11569 lt_prog_compiler_static_GO='-Bstatic'
11570 case $cc_basename in
11571 f77* | f90* | f95*)
11572 lt_prog_compiler_wl_GO='-Qoption ld ';;
11573 *)
11574 lt_prog_compiler_wl_GO='-Wl,';;
11575 esac
11576 ;;
11577
11578 sunos4*)
11579 lt_prog_compiler_wl_GO='-Qoption ld '
11580 lt_prog_compiler_pic_GO='-PIC'
11581 lt_prog_compiler_static_GO='-Bstatic'
11582 ;;
11583
11584 sysv4 | sysv4.2uw2* | sysv4.3*)
11585 lt_prog_compiler_wl_GO='-Wl,'
11586 lt_prog_compiler_pic_GO='-KPIC'
11587 lt_prog_compiler_static_GO='-Bstatic'
11588 ;;
11589
11590 sysv4*MP*)
11591 if test -d /usr/nec ;then
11592 lt_prog_compiler_pic_GO='-Kconform_pic'
11593 lt_prog_compiler_static_GO='-Bstatic'
11594 fi
11595 ;;
11596
11597 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11598 lt_prog_compiler_wl_GO='-Wl,'
11599 lt_prog_compiler_pic_GO='-KPIC'
11600 lt_prog_compiler_static_GO='-Bstatic'
11601 ;;
11602
11603 unicos*)
11604 lt_prog_compiler_wl_GO='-Wl,'
11605 lt_prog_compiler_can_build_shared_GO=no
11606 ;;
11607
11608 uts4*)
11609 lt_prog_compiler_pic_GO='-pic'
11610 lt_prog_compiler_static_GO='-Bstatic'
11611 ;;
11612
11613 *)
11614 lt_prog_compiler_can_build_shared_GO=no
11615 ;;
11616 esac
11617 fi
11618
11619case $host_os in
11620 # For platforms which do not support PIC, -DPIC is meaningless:
11621 *djgpp*)
11622 lt_prog_compiler_pic_GO=
11623 ;;
11624 *)
11625 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11626 ;;
11627esac
11628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11629$as_echo "$lt_prog_compiler_pic_GO" >&6; }
11630
11631
11632
11633#
11634# Check to make sure the PIC flag actually works.
11635#
11636if test -n "$lt_prog_compiler_pic_GO"; then
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11638$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11639if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11640 $as_echo_n "(cached) " >&6
11641else
11642 lt_cv_prog_compiler_pic_works_GO=no
11643 ac_outfile=conftest.$ac_objext
11644 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11645 lt_compiler_flag="$lt_prog_compiler_pic_GO"
11646 # Insert the option either (1) after the last *FLAGS variable, or
11647 # (2) before a word containing "conftest.", or (3) at the end.
11648 # Note that $ac_compile itself does not contain backslashes and begins
11649 # with a dollar sign (not a hyphen), so the echo should work correctly.
11650 # The option is referenced via a variable to avoid confusing sed.
11651 lt_compile=`echo "$ac_compile" | $SED \
11652 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11653 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11654 -e 's:$: $lt_compiler_flag:'`
11655 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11656 (eval "$lt_compile" 2>conftest.err)
11657 ac_status=$?
11658 cat conftest.err >&5
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 if (exit $ac_status) && test -s "$ac_outfile"; then
11661 # The compiler can only warn and ignore the option if not recognized
11662 # So say no if there are warnings other than the usual output.
11663 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11664 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11665 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11666 lt_cv_prog_compiler_pic_works_GO=yes
11667 fi
11668 fi
11669 $RM conftest*
11670
11671fi
11672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11673$as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11674
11675if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11676 case $lt_prog_compiler_pic_GO in
11677 "" | " "*) ;;
11678 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11679 esac
11680else
11681 lt_prog_compiler_pic_GO=
11682 lt_prog_compiler_can_build_shared_GO=no
11683fi
11684
11685fi
11686
11687
11688
11689#
11690# Check to make sure the static flag actually works.
11691#
11692wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11694$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11695if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11696 $as_echo_n "(cached) " >&6
11697else
11698 lt_cv_prog_compiler_static_works_GO=no
11699 save_LDFLAGS="$LDFLAGS"
11700 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11701 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11702 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11703 # The linker can only warn and ignore the option if not recognized
11704 # So say no if there are warnings
11705 if test -s conftest.err; then
11706 # Append any errors to the config.log.
11707 cat conftest.err 1>&5
11708 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11709 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11710 if diff conftest.exp conftest.er2 >/dev/null; then
11711 lt_cv_prog_compiler_static_works_GO=yes
11712 fi
11713 else
11714 lt_cv_prog_compiler_static_works_GO=yes
11715 fi
11716 fi
11717 $RM -r conftest*
11718 LDFLAGS="$save_LDFLAGS"
11719
11720fi
11721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11722$as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11723
11724if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11725 :
11726else
11727 lt_prog_compiler_static_GO=
11728fi
11729
11730
11731
11732
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11734$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11735if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11736 $as_echo_n "(cached) " >&6
11737else
11738 lt_cv_prog_compiler_c_o_GO=no
11739 $RM -r conftest 2>/dev/null
11740 mkdir conftest
11741 cd conftest
11742 mkdir out
11743 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11744
11745 lt_compiler_flag="-o out/conftest2.$ac_objext"
11746 # Insert the option either (1) after the last *FLAGS variable, or
11747 # (2) before a word containing "conftest.", or (3) at the end.
11748 # Note that $ac_compile itself does not contain backslashes and begins
11749 # with a dollar sign (not a hyphen), so the echo should work correctly.
11750 lt_compile=`echo "$ac_compile" | $SED \
11751 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11752 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11753 -e 's:$: $lt_compiler_flag:'`
11754 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11755 (eval "$lt_compile" 2>out/conftest.err)
11756 ac_status=$?
11757 cat out/conftest.err >&5
11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11760 then
11761 # The compiler can only warn and ignore the option if not recognized
11762 # So say no if there are warnings
11763 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11764 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11765 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11766 lt_cv_prog_compiler_c_o_GO=yes
11767 fi
11768 fi
11769 chmod u+w . 2>&5
11770 $RM conftest*
11771 # SGI C++ compiler will create directory out/ii_files/ for
11772 # template instantiation
11773 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11774 $RM out/* && rmdir out
11775 cd ..
11776 $RM -r conftest
11777 $RM conftest*
11778
11779fi
11780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
11781$as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
11782
11783
11784
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11786$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11787if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11788 $as_echo_n "(cached) " >&6
11789else
11790 lt_cv_prog_compiler_c_o_GO=no
11791 $RM -r conftest 2>/dev/null
11792 mkdir conftest
11793 cd conftest
11794 mkdir out
11795 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11796
11797 lt_compiler_flag="-o out/conftest2.$ac_objext"
11798 # Insert the option either (1) after the last *FLAGS variable, or
11799 # (2) before a word containing "conftest.", or (3) at the end.
11800 # Note that $ac_compile itself does not contain backslashes and begins
11801 # with a dollar sign (not a hyphen), so the echo should work correctly.
11802 lt_compile=`echo "$ac_compile" | $SED \
11803 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11804 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11805 -e 's:$: $lt_compiler_flag:'`
11806 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11807 (eval "$lt_compile" 2>out/conftest.err)
11808 ac_status=$?
11809 cat out/conftest.err >&5
11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11812 then
11813 # The compiler can only warn and ignore the option if not recognized
11814 # So say no if there are warnings
11815 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11816 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11817 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11818 lt_cv_prog_compiler_c_o_GO=yes
11819 fi
11820 fi
11821 chmod u+w . 2>&5
11822 $RM conftest*
11823 # SGI C++ compiler will create directory out/ii_files/ for
11824 # template instantiation
11825 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11826 $RM out/* && rmdir out
11827 cd ..
11828 $RM -r conftest
11829 $RM conftest*
11830
11831fi
11832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
11833$as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
11834
11835
11836
11837
11838hard_links="nottested"
11839if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
11840 # do not overwrite the value of need_locks provided by the user
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11842$as_echo_n "checking if we can lock with hard links... " >&6; }
11843 hard_links=yes
11844 $RM conftest*
11845 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11846 touch conftest.a
11847 ln conftest.a conftest.b 2>&5 || hard_links=no
11848 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11850$as_echo "$hard_links" >&6; }
11851 if test "$hard_links" = no; then
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11853$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11854 need_locks=warn
11855 fi
11856else
11857 need_locks=no
11858fi
11859
11860
11861
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11863$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11864
11865 runpath_var=
11866 allow_undefined_flag_GO=
11867 always_export_symbols_GO=no
11868 archive_cmds_GO=
11869 archive_expsym_cmds_GO=
11870 compiler_needs_object_GO=no
11871 enable_shared_with_static_runtimes_GO=no
11872 export_dynamic_flag_spec_GO=
11873 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11874 hardcode_automatic_GO=no
11875 hardcode_direct_GO=no
11876 hardcode_direct_absolute_GO=no
11877 hardcode_libdir_flag_spec_GO=
11878 hardcode_libdir_flag_spec_ld_GO=
11879 hardcode_libdir_separator_GO=
11880 hardcode_minus_L_GO=no
11881 hardcode_shlibpath_var_GO=unsupported
11882 inherit_rpath_GO=no
11883 link_all_deplibs_GO=unknown
11884 module_cmds_GO=
11885 module_expsym_cmds_GO=
11886 old_archive_from_new_cmds_GO=
11887 old_archive_from_expsyms_cmds_GO=
11888 thread_safe_flag_spec_GO=
11889 whole_archive_flag_spec_GO=
11890 # include_expsyms should be a list of space-separated symbols to be *always*
11891 # included in the symbol list
11892 include_expsyms_GO=
11893 # exclude_expsyms can be an extended regexp of symbols to exclude
11894 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11895 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11896 # as well as any symbol that contains `d'.
11897 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11898 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11899 # platforms (ab)use it in PIC code, but their linkers get confused if
11900 # the symbol is explicitly referenced. Since portable code cannot
11901 # rely on this symbol name, it's probably fine to never include it in
11902 # preloaded symbol tables.
11903 # Exclude shared library initialization/finalization symbols.
11904 extract_expsyms_cmds=
11905
11906 case $host_os in
11907 cygwin* | mingw* | pw32* | cegcc*)
11908 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11909 # When not using gcc, we currently assume that we are using
11910 # Microsoft Visual C++.
11911 if test "$GCC" != yes; then
11912 with_gnu_ld=no
11913 fi
11914 ;;
11915 interix*)
11916 # we just hope/assume this is gcc and not c89 (= MSVC++)
11917 with_gnu_ld=yes
11918 ;;
11919 openbsd*)
11920 with_gnu_ld=no
11921 ;;
11922 esac
11923
11924 ld_shlibs_GO=yes
11925
11926 # On some targets, GNU ld is compatible enough with the native linker
11927 # that we're better off using the native interface for both.
11928 lt_use_gnu_ld_interface=no
11929 if test "$with_gnu_ld" = yes; then
11930 case $host_os in
11931 aix*)
11932 # The AIX port of GNU ld has always aspired to compatibility
11933 # with the native linker. However, as the warning in the GNU ld
11934 # block says, versions before 2.19.5* couldn't really create working
11935 # shared libraries, regardless of the interface used.
11936 case `$LD -v 2>&1` in
11937 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11938 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11939 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11940 *)
11941 lt_use_gnu_ld_interface=yes
11942 ;;
11943 esac
11944 ;;
11945 *)
11946 lt_use_gnu_ld_interface=yes
11947 ;;
11948 esac
11949 fi
11950
11951 if test "$lt_use_gnu_ld_interface" = yes; then
11952 # If archive_cmds runs LD, not CC, wlarc should be empty
11953 wlarc='${wl}'
11954
11955 # Set some defaults for GNU ld with shared library support. These
11956 # are reset later if shared libraries are not supported. Putting them
11957 # here allows them to be overridden if necessary.
11958 runpath_var=LD_RUN_PATH
11959 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
11960 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
11961 # ancient GNU ld didn't support --whole-archive et. al.
11962 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11963 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11964 else
11965 whole_archive_flag_spec_GO=
11966 fi
11967 supports_anon_versioning=no
11968 case `$LD -v 2>&1` in
11969 *GNU\ gold*) supports_anon_versioning=yes ;;
11970 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11971 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11972 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11973 *\ 2.11.*) ;; # other 2.11 versions
11974 *) supports_anon_versioning=yes ;;
11975 esac
11976
11977 # See if GNU ld supports shared libraries.
11978 case $host_os in
11979 aix[3-9]*)
11980 # On AIX/PPC, the GNU linker is very broken
11981 if test "$host_cpu" != ia64; then
11982 ld_shlibs_GO=no
11983 cat <<_LT_EOF 1>&2
11984
11985*** Warning: the GNU linker, at least up to release 2.19, is reported
11986*** to be unable to reliably create shared libraries on AIX.
11987*** Therefore, libtool is disabling shared libraries support. If you
11988*** really care for shared libraries, you may want to install binutils
11989*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11990*** You will then need to restart the configuration process.
11991
11992_LT_EOF
11993 fi
11994 ;;
11995
11996 amigaos*)
11997 case $host_cpu in
11998 powerpc)
11999 # see comment about AmigaOS4 .so support
12000 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12001 archive_expsym_cmds_GO=''
12002 ;;
12003 m68k)
12004 archive_cmds_GO='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
12005 hardcode_libdir_flag_spec_GO='-L$libdir'
12006 hardcode_minus_L_GO=yes
12007 ;;
12008 esac
12009 ;;
12010
12011 beos*)
12012 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12013 allow_undefined_flag_GO=unsupported
12014 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12015 # support --undefined. This deserves some investigation. FIXME
12016 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12017 else
12018 ld_shlibs_GO=no
12019 fi
12020 ;;
12021
12022 cygwin* | mingw* | pw32* | cegcc*)
12023 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12024 # as there is no search path for DLLs.
12025 hardcode_libdir_flag_spec_GO='-L$libdir'
12026 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12027 allow_undefined_flag_GO=unsupported
12028 always_export_symbols_GO=no
12029 enable_shared_with_static_runtimes_GO=yes
12030 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12031
12032 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12033 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12034 # If the export-symbols file already is a .def file (1st line
12035 # is EXPORTS), use it as is; otherwise, prepend...
12036 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12037 cp $export_symbols $output_objdir/$soname.def;
12038 else
12039 echo EXPORTS > $output_objdir/$soname.def;
12040 cat $export_symbols >> $output_objdir/$soname.def;
12041 fi~
12042 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12043 else
12044 ld_shlibs_GO=no
12045 fi
12046 ;;
12047
12048 haiku*)
12049 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12050 link_all_deplibs_GO=yes
12051 ;;
12052
12053 interix[3-9]*)
12054 hardcode_direct_GO=no
12055 hardcode_shlibpath_var_GO=no
12056 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12057 export_dynamic_flag_spec_GO='${wl}-E'
12058 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12059 # Instead, shared libraries are loaded at an image base (0x10000000 by
12060 # default) and relocated if they conflict, which is a slow very memory
12061 # consuming and fragmenting process. To avoid this, we pick a random,
12062 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12063 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12064 archive_cmds_GO='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12065 archive_expsym_cmds_GO='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12066 ;;
12067
12068 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12069 tmp_diet=no
12070 if test "$host_os" = linux-dietlibc; then
12071 case $cc_basename in
12072 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12073 esac
12074 fi
12075 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12076 && test "$tmp_diet" = no
12077 then
12078 tmp_addflag=
12079 tmp_sharedflag='-shared'
12080 case $cc_basename,$host_cpu in
12081 pgcc*) # Portland Group C compiler
12082 whole_archive_flag_spec_GO='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12083 tmp_addflag=' $pic_flag'
12084 ;;
12085 pgf77* | pgf90* | pgf95* | pgfortran*)
12086 # Portland Group f77 and f90 compilers
12087 whole_archive_flag_spec_GO='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12088 tmp_addflag=' $pic_flag -Mnomain' ;;
12089 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12090 tmp_addflag=' -i_dynamic' ;;
12091 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12092 tmp_addflag=' -i_dynamic -nofor_main' ;;
12093 ifc* | ifort*) # Intel Fortran compiler
12094 tmp_addflag=' -nofor_main' ;;
12095 lf95*) # Lahey Fortran 8.1
12096 whole_archive_flag_spec_GO=
12097 tmp_sharedflag='--shared' ;;
12098 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12099 tmp_sharedflag='-qmkshrobj'
12100 tmp_addflag= ;;
12101 nvcc*) # Cuda Compiler Driver 2.2
12102 whole_archive_flag_spec_GO='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12103 compiler_needs_object_GO=yes
12104 ;;
12105 esac
12106 case `$CC -V 2>&1 | sed 5q` in
12107 *Sun\ C*) # Sun C 5.9
12108 whole_archive_flag_spec_GO='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12109 compiler_needs_object_GO=yes
12110 tmp_sharedflag='-G' ;;
12111 *Sun\ F*) # Sun Fortran 8.3
12112 tmp_sharedflag='-G' ;;
12113 esac
12114 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12115
12116 if test "x$supports_anon_versioning" = xyes; then
12117 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12118 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12119 echo "local: *; };" >> $output_objdir/$libname.ver~
12120 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12121 fi
12122
12123 case $cc_basename in
12124 xlf* | bgf* | bgxlf* | mpixlf*)
12125 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12126 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12127 hardcode_libdir_flag_spec_GO=
12128 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12129 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12130 if test "x$supports_anon_versioning" = xyes; then
12131 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12132 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12133 echo "local: *; };" >> $output_objdir/$libname.ver~
12134 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12135 fi
12136 ;;
12137 esac
12138 else
12139 ld_shlibs_GO=no
12140 fi
12141 ;;
12142
12143 netbsd*)
12144 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12145 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12146 wlarc=
12147 else
12148 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12149 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12150 fi
12151 ;;
12152
12153 solaris*)
12154 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12155 ld_shlibs_GO=no
12156 cat <<_LT_EOF 1>&2
12157
12158*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12159*** create shared libraries on Solaris systems. Therefore, libtool
12160*** is disabling shared libraries support. We urge you to upgrade GNU
12161*** binutils to release 2.9.1 or newer. Another option is to modify
12162*** your PATH or compiler configuration so that the native linker is
12163*** used, and then restart.
12164
12165_LT_EOF
12166 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12167 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12168 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12169 else
12170 ld_shlibs_GO=no
12171 fi
12172 ;;
12173
12174 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12175 case `$LD -v 2>&1` in
12176 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12177 ld_shlibs_GO=no
12178 cat <<_LT_EOF 1>&2
12179
12180*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12181*** reliably create shared libraries on SCO systems. Therefore, libtool
12182*** is disabling shared libraries support. We urge you to upgrade GNU
12183*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12184*** your PATH or compiler configuration so that the native linker is
12185*** used, and then restart.
12186
12187_LT_EOF
12188 ;;
12189 *)
12190 # For security reasons, it is highly recommended that you always
12191 # use absolute paths for naming shared libraries, and exclude the
12192 # DT_RUNPATH tag from executables and libraries. But doing so
12193 # requires that you compile everything twice, which is a pain.
12194 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12195 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12196 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12197 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12198 else
12199 ld_shlibs_GO=no
12200 fi
12201 ;;
12202 esac
12203 ;;
12204
12205 sunos4*)
12206 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12207 wlarc=
12208 hardcode_direct_GO=yes
12209 hardcode_shlibpath_var_GO=no
12210 ;;
12211
12212 *)
12213 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12214 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12215 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12216 else
12217 ld_shlibs_GO=no
12218 fi
12219 ;;
12220 esac
12221
12222 if test "$ld_shlibs_GO" = no; then
12223 runpath_var=
12224 hardcode_libdir_flag_spec_GO=
12225 export_dynamic_flag_spec_GO=
12226 whole_archive_flag_spec_GO=
12227 fi
12228 else
12229 # PORTME fill in a description of your system's linker (not GNU ld)
12230 case $host_os in
12231 aix3*)
12232 allow_undefined_flag_GO=unsupported
12233 always_export_symbols_GO=yes
12234 archive_expsym_cmds_GO='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
12235 # Note: this linker hardcodes the directories in LIBPATH if there
12236 # are no directories specified by -L.
12237 hardcode_minus_L_GO=yes
12238 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12239 # Neither direct hardcoding nor static linking is supported with a
12240 # broken collect2.
12241 hardcode_direct_GO=unsupported
12242 fi
12243 ;;
12244
12245 aix[4-9]*)
12246 if test "$host_cpu" = ia64; then
12247 # On IA64, the linker does run time linking by default, so we don't
12248 # have to do anything special.
12249 aix_use_runtimelinking=no
12250 exp_sym_flag='-Bexport'
12251 no_entry_flag=""
12252 else
12253 # If we're using GNU nm, then we don't want the "-C" option.
12254 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12255 # Also, AIX nm treats weak defined symbols like other global
12256 # defined symbols, whereas GNU nm marks them as "W".
12257 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12258 export_symbols_cmds_GO='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12259 else
12260 export_symbols_cmds_GO='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12261 fi
12262 aix_use_runtimelinking=no
12263
12264 # Test if we are trying to use run time linking or normal
12265 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12266 # need to do runtime linking.
12267 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12268 for ld_flag in $LDFLAGS; do
12269 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12270 aix_use_runtimelinking=yes
12271 break
12272 fi
12273 done
12274 ;;
12275 esac
12276
12277 exp_sym_flag='-bexport'
12278 no_entry_flag='-bnoentry'
12279 fi
12280
12281 # When large executables or shared objects are built, AIX ld can
12282 # have problems creating the table of contents. If linking a library
12283 # or program results in "error TOC overflow" add -mminimal-toc to
12284 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12285 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12286
12287 archive_cmds_GO=''
12288 hardcode_direct_GO=yes
12289 hardcode_direct_absolute_GO=yes
12290 hardcode_libdir_separator_GO=':'
12291 link_all_deplibs_GO=yes
12292 file_list_spec_GO='${wl}-f,'
12293
12294 if test "$GCC" = yes; then
12295 case $host_os in aix4.[012]|aix4.[012].*)
12296 # We only want to do this on AIX 4.2 and lower, the check
12297 # below for broken collect2 doesn't work under 4.3+
12298 collect2name=`${CC} -print-prog-name=collect2`
12299 if test -f "$collect2name" &&
12300 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12301 then
12302 # We have reworked collect2
12303 :
12304 else
12305 # We have old collect2
12306 hardcode_direct_GO=unsupported
12307 # It fails to find uninstalled libraries when the uninstalled
12308 # path is not listed in the libpath. Setting hardcode_minus_L
12309 # to unsupported forces relinking
12310 hardcode_minus_L_GO=yes
12311 hardcode_libdir_flag_spec_GO='-L$libdir'
12312 hardcode_libdir_separator_GO=
12313 fi
12314 ;;
12315 esac
12316 shared_flag='-shared'
12317 if test "$aix_use_runtimelinking" = yes; then
12318 shared_flag="$shared_flag "'${wl}-G'
12319 fi
12320 else
12321 # not using gcc
12322 if test "$host_cpu" = ia64; then
12323 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12324 # chokes on -Wl,-G. The following line is correct:
12325 shared_flag='-G'
12326 else
12327 if test "$aix_use_runtimelinking" = yes; then
12328 shared_flag='${wl}-G'
12329 else
12330 shared_flag='${wl}-bM:SRE'
12331 fi
12332 fi
12333 fi
12334
12335 export_dynamic_flag_spec_GO='${wl}-bexpall'
12336 # It seems that -bexpall does not export symbols beginning with
12337 # underscore (_), so it is better to generate a list of symbols to export.
12338 always_export_symbols_GO=yes
12339 if test "$aix_use_runtimelinking" = yes; then
12340 # Warning - without using the other runtime loading flags (-brtl),
12341 # -berok will link without error, but may produce a broken library.
12342 allow_undefined_flag_GO='-berok'
12343 # Determine the default libpath from the value encoded in an
12344 # empty executable.
12345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12346/* end confdefs.h. */
12347
12348int
12349main ()
12350{
12351
12352 ;
12353 return 0;
12354}
12355_ACEOF
12356if ac_fn_c_try_link "$LINENO"; then :
12357
12358lt_aix_libpath_sed='
12359 /Import File Strings/,/^$/ {
12360 /^0/ {
12361 s/^0 *\(.*\)$/\1/
12362 p
12363 }
12364 }'
12365aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12366# Check for a 64-bit object if we didn't find anything.
12367if test -z "$aix_libpath"; then
12368 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12369fi
12370fi
12371rm -f core conftest.err conftest.$ac_objext \
12372 conftest$ac_exeext conftest.$ac_ext
12373if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12374
12375 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12376 archive_expsym_cmds_GO='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12377 else
12378 if test "$host_cpu" = ia64; then
12379 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12380 allow_undefined_flag_GO="-z nodefs"
12381 archive_expsym_cmds_GO="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12382 else
12383 # Determine the default libpath from the value encoded in an
12384 # empty executable.
12385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12386/* end confdefs.h. */
12387
12388int
12389main ()
12390{
12391
12392 ;
12393 return 0;
12394}
12395_ACEOF
12396if ac_fn_c_try_link "$LINENO"; then :
12397
12398lt_aix_libpath_sed='
12399 /Import File Strings/,/^$/ {
12400 /^0/ {
12401 s/^0 *\(.*\)$/\1/
12402 p
12403 }
12404 }'
12405aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12406# Check for a 64-bit object if we didn't find anything.
12407if test -z "$aix_libpath"; then
12408 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12409fi
12410fi
12411rm -f core conftest.err conftest.$ac_objext \
12412 conftest$ac_exeext conftest.$ac_ext
12413if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12414
12415 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12416 # Warning - without using the other run time loading flags,
12417 # -berok will link without error, but may produce a broken library.
12418 no_undefined_flag_GO=' ${wl}-bernotok'
12419 allow_undefined_flag_GO=' ${wl}-berok'
12420 if test "$with_gnu_ld" = yes; then
12421 # We only use this code for GNU lds that support --whole-archive.
12422 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12423 else
12424 # Exported symbols can be pulled into shared objects from archives
12425 whole_archive_flag_spec_GO='$convenience'
12426 fi
12427 archive_cmds_need_lc_GO=yes
12428 # This is similar to how AIX traditionally builds its shared libraries.
12429 archive_expsym_cmds_GO="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12430 fi
12431 fi
12432 ;;
12433
12434 amigaos*)
12435 case $host_cpu in
12436 powerpc)
12437 # see comment about AmigaOS4 .so support
12438 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12439 archive_expsym_cmds_GO=''
12440 ;;
12441 m68k)
12442 archive_cmds_GO='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
12443 hardcode_libdir_flag_spec_GO='-L$libdir'
12444 hardcode_minus_L_GO=yes
12445 ;;
12446 esac
12447 ;;
12448
12449 bsdi[45]*)
12450 export_dynamic_flag_spec_GO=-rdynamic
12451 ;;
12452
12453 cygwin* | mingw* | pw32* | cegcc*)
12454 # When not using gcc, we currently assume that we are using
12455 # Microsoft Visual C++.
12456 # hardcode_libdir_flag_spec is actually meaningless, as there is
12457 # no search path for DLLs.
12458 hardcode_libdir_flag_spec_GO=' '
12459 allow_undefined_flag_GO=unsupported
12460 # Tell ltmain to make .lib files, not .a files.
12461 libext=lib
12462 # Tell ltmain to make .dll files, not .so files.
12463 shrext_cmds=".dll"
12464 # FIXME: Setting linknames here is a bad hack.
12465 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12466 # The linker will automatically build a .lib file if we build a DLL.
12467 old_archive_from_new_cmds_GO='true'
12468 # FIXME: Should let the user specify the lib program.
12469 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12470 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12471 enable_shared_with_static_runtimes_GO=yes
12472 ;;
12473
12474 darwin* | rhapsody*)
12475
12476
12477 archive_cmds_need_lc_GO=no
12478 hardcode_direct_GO=no
12479 hardcode_automatic_GO=yes
12480 hardcode_shlibpath_var_GO=unsupported
12481 if test "$lt_cv_ld_force_load" = "yes"; then
12482 whole_archive_flag_spec_GO='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12483 else
12484 whole_archive_flag_spec_GO=''
12485 fi
12486 link_all_deplibs_GO=yes
12487 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12488 case $cc_basename in
12489 ifort*) _lt_dar_can_shared=yes ;;
12490 *) _lt_dar_can_shared=$GCC ;;
12491 esac
12492 if test "$_lt_dar_can_shared" = "yes"; then
12493 output_verbose_link_cmd=func_echo_all
12494 archive_cmds_GO="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12495 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12496 archive_expsym_cmds_GO="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12497 module_expsym_cmds_GO="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12498
12499 else
12500 ld_shlibs_GO=no
12501 fi
12502
12503 ;;
12504
12505 dgux*)
12506 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12507 hardcode_libdir_flag_spec_GO='-L$libdir'
12508 hardcode_shlibpath_var_GO=no
12509 ;;
12510
12511 freebsd1*)
12512 ld_shlibs_GO=no
12513 ;;
12514
12515 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12516 # support. Future versions do this automatically, but an explicit c++rt0.o
12517 # does not break anything, and helps significantly (at the cost of a little
12518 # extra space).
12519 freebsd2.2*)
12520 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12521 hardcode_libdir_flag_spec_GO='-R$libdir'
12522 hardcode_direct_GO=yes
12523 hardcode_shlibpath_var_GO=no
12524 ;;
12525
12526 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12527 freebsd2*)
12528 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12529 hardcode_direct_GO=yes
12530 hardcode_minus_L_GO=yes
12531 hardcode_shlibpath_var_GO=no
12532 ;;
12533
12534 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12535 freebsd* | dragonfly*)
12536 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12537 hardcode_libdir_flag_spec_GO='-R$libdir'
12538 hardcode_direct_GO=yes
12539 hardcode_shlibpath_var_GO=no
12540 ;;
12541
12542 hpux9*)
12543 if test "$GCC" = yes; then
12544 archive_cmds_GO='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12545 else
12546 archive_cmds_GO='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12547 fi
12548 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12549 hardcode_libdir_separator_GO=:
12550 hardcode_direct_GO=yes
12551
12552 # hardcode_minus_L: Not really in the search PATH,
12553 # but as the default location of the library.
12554 hardcode_minus_L_GO=yes
12555 export_dynamic_flag_spec_GO='${wl}-E'
12556 ;;
12557
12558 hpux10*)
12559 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12560 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12561 else
12562 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12563 fi
12564 if test "$with_gnu_ld" = no; then
12565 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12566 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12567 hardcode_libdir_separator_GO=:
12568 hardcode_direct_GO=yes
12569 hardcode_direct_absolute_GO=yes
12570 export_dynamic_flag_spec_GO='${wl}-E'
12571 # hardcode_minus_L: Not really in the search PATH,
12572 # but as the default location of the library.
12573 hardcode_minus_L_GO=yes
12574 fi
12575 ;;
12576
12577 hpux11*)
12578 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12579 case $host_cpu in
12580 hppa*64*)
12581 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12582 ;;
12583 ia64*)
12584 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12585 ;;
12586 *)
12587 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12588 ;;
12589 esac
12590 else
12591 case $host_cpu in
12592 hppa*64*)
12593 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12594 ;;
12595 ia64*)
12596 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12597 ;;
12598 *)
12599 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12600 ;;
12601 esac
12602 fi
12603 if test "$with_gnu_ld" = no; then
12604 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12605 hardcode_libdir_separator_GO=:
12606
12607 case $host_cpu in
12608 hppa*64*|ia64*)
12609 hardcode_direct_GO=no
12610 hardcode_shlibpath_var_GO=no
12611 ;;
12612 *)
12613 hardcode_direct_GO=yes
12614 hardcode_direct_absolute_GO=yes
12615 export_dynamic_flag_spec_GO='${wl}-E'
12616
12617 # hardcode_minus_L: Not really in the search PATH,
12618 # but as the default location of the library.
12619 hardcode_minus_L_GO=yes
12620 ;;
12621 esac
12622 fi
12623 ;;
12624
12625 irix5* | irix6* | nonstopux*)
12626 if test "$GCC" = yes; then
12627 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12628 # Try to use the -exported_symbol ld option, if it does not
12629 # work, assume that -exports_file does not work either and
12630 # implicitly export all symbols.
12631 save_LDFLAGS="$LDFLAGS"
12632 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12634/* end confdefs.h. */
12635int foo(void) {}
12636_ACEOF
12637if ac_fn_c_try_link "$LINENO"; then :
12638 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
12639
12640fi
12641rm -f core conftest.err conftest.$ac_objext \
12642 conftest$ac_exeext conftest.$ac_ext
12643 LDFLAGS="$save_LDFLAGS"
12644 else
12645 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12646 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
12647 fi
12648 archive_cmds_need_lc_GO='no'
12649 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12650 hardcode_libdir_separator_GO=:
12651 inherit_rpath_GO=yes
12652 link_all_deplibs_GO=yes
12653 ;;
12654
12655 netbsd*)
12656 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12657 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12658 else
12659 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12660 fi
12661 hardcode_libdir_flag_spec_GO='-R$libdir'
12662 hardcode_direct_GO=yes
12663 hardcode_shlibpath_var_GO=no
12664 ;;
12665
12666 newsos6)
12667 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12668 hardcode_direct_GO=yes
12669 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12670 hardcode_libdir_separator_GO=:
12671 hardcode_shlibpath_var_GO=no
12672 ;;
12673
12674 *nto* | *qnx*)
12675 ;;
12676
12677 openbsd*)
12678 if test -f /usr/libexec/ld.so; then
12679 hardcode_direct_GO=yes
12680 hardcode_shlibpath_var_GO=no
12681 hardcode_direct_absolute_GO=yes
12682 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12683 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12684 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12685 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12686 export_dynamic_flag_spec_GO='${wl}-E'
12687 else
12688 case $host_os in
12689 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12690 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12691 hardcode_libdir_flag_spec_GO='-R$libdir'
12692 ;;
12693 *)
12694 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12695 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12696 ;;
12697 esac
12698 fi
12699 else
12700 ld_shlibs_GO=no
12701 fi
12702 ;;
12703
12704 os2*)
12705 hardcode_libdir_flag_spec_GO='-L$libdir'
12706 hardcode_minus_L_GO=yes
12707 allow_undefined_flag_GO=unsupported
12708 archive_cmds_GO='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
12709 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12710 ;;
12711
12712 osf3*)
12713 if test "$GCC" = yes; then
12714 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12715 archive_cmds_GO='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12716 else
12717 allow_undefined_flag_GO=' -expect_unresolved \*'
12718 archive_cmds_GO='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12719 fi
12720 archive_cmds_need_lc_GO='no'
12721 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12722 hardcode_libdir_separator_GO=:
12723 ;;
12724
12725 osf4* | osf5*) # as osf3* with the addition of -msym flag
12726 if test "$GCC" = yes; then
12727 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12728 archive_cmds_GO='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12729 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12730 else
12731 allow_undefined_flag_GO=' -expect_unresolved \*'
12732 archive_cmds_GO='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12733 archive_expsym_cmds_GO='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
12734 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
12735
12736 # Both c and cxx compiler support -rpath directly
12737 hardcode_libdir_flag_spec_GO='-rpath $libdir'
12738 fi
12739 archive_cmds_need_lc_GO='no'
12740 hardcode_libdir_separator_GO=:
12741 ;;
12742
12743 solaris*)
12744 no_undefined_flag_GO=' -z defs'
12745 if test "$GCC" = yes; then
12746 wlarc='${wl}'
12747 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12748 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12749 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12750 else
12751 case `$CC -V 2>&1` in
12752 *"Compilers 5.0"*)
12753 wlarc=''
12754 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12755 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12756 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12757 ;;
12758 *)
12759 wlarc='${wl}'
12760 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12761 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12762 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12763 ;;
12764 esac
12765 fi
12766 hardcode_libdir_flag_spec_GO='-R$libdir'
12767 hardcode_shlibpath_var_GO=no
12768 case $host_os in
12769 solaris2.[0-5] | solaris2.[0-5].*) ;;
12770 *)
12771 # The compiler driver will combine and reorder linker options,
12772 # but understands `-z linker_flag'. GCC discards it without `$wl',
12773 # but is careful enough not to reorder.
12774 # Supported since Solaris 2.6 (maybe 2.5.1?)
12775 if test "$GCC" = yes; then
12776 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12777 else
12778 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
12779 fi
12780 ;;
12781 esac
12782 link_all_deplibs_GO=yes
12783 ;;
12784
12785 sunos4*)
12786 if test "x$host_vendor" = xsequent; then
12787 # Use $CC to link under sequent, because it throws in some extra .o
12788 # files that make .init and .fini sections work.
12789 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12790 else
12791 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12792 fi
12793 hardcode_libdir_flag_spec_GO='-L$libdir'
12794 hardcode_direct_GO=yes
12795 hardcode_minus_L_GO=yes
12796 hardcode_shlibpath_var_GO=no
12797 ;;
12798
12799 sysv4)
12800 case $host_vendor in
12801 sni)
12802 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12803 hardcode_direct_GO=yes # is this really true???
12804 ;;
12805 siemens)
12806 ## LD is ld it makes a PLAMLIB
12807 ## CC just makes a GrossModule.
12808 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12809 reload_cmds_GO='$CC -r -o $output$reload_objs'
12810 hardcode_direct_GO=no
12811 ;;
12812 motorola)
12813 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12814 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
12815 ;;
12816 esac
12817 runpath_var='LD_RUN_PATH'
12818 hardcode_shlibpath_var_GO=no
12819 ;;
12820
12821 sysv4.3*)
12822 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12823 hardcode_shlibpath_var_GO=no
12824 export_dynamic_flag_spec_GO='-Bexport'
12825 ;;
12826
12827 sysv4*MP*)
12828 if test -d /usr/nec; then
12829 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12830 hardcode_shlibpath_var_GO=no
12831 runpath_var=LD_RUN_PATH
12832 hardcode_runpath_var=yes
12833 ld_shlibs_GO=yes
12834 fi
12835 ;;
12836
12837 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12838 no_undefined_flag_GO='${wl}-z,text'
12839 archive_cmds_need_lc_GO=no
12840 hardcode_shlibpath_var_GO=no
12841 runpath_var='LD_RUN_PATH'
12842
12843 if test "$GCC" = yes; then
12844 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12845 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12846 else
12847 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12848 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12849 fi
12850 ;;
12851
12852 sysv5* | sco3.2v5* | sco5v6*)
12853 # Note: We can NOT use -z defs as we might desire, because we do not
12854 # link with -lc, and that would cause any symbols used from libc to
12855 # always be unresolved, which means just about no library would
12856 # ever link correctly. If we're not using GNU ld we use -z text
12857 # though, which does catch some bad symbols but isn't as heavy-handed
12858 # as -z defs.
12859 no_undefined_flag_GO='${wl}-z,text'
12860 allow_undefined_flag_GO='${wl}-z,nodefs'
12861 archive_cmds_need_lc_GO=no
12862 hardcode_shlibpath_var_GO=no
12863 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
12864 hardcode_libdir_separator_GO=':'
12865 link_all_deplibs_GO=yes
12866 export_dynamic_flag_spec_GO='${wl}-Bexport'
12867 runpath_var='LD_RUN_PATH'
12868
12869 if test "$GCC" = yes; then
12870 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12871 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12872 else
12873 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12874 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12875 fi
12876 ;;
12877
12878 uts4*)
12879 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12880 hardcode_libdir_flag_spec_GO='-L$libdir'
12881 hardcode_shlibpath_var_GO=no
12882 ;;
12883
12884 *)
12885 ld_shlibs_GO=no
12886 ;;
12887 esac
12888
12889 if test x$host_vendor = xsni; then
12890 case $host in
12891 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12892 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
12893 ;;
12894 esac
12895 fi
12896 fi
12897
12898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
12899$as_echo "$ld_shlibs_GO" >&6; }
12900test "$ld_shlibs_GO" = no && can_build_shared=no
12901
12902with_gnu_ld_GO=$with_gnu_ld
12903
12904
12905
12906
12907
12908
12909#
12910# Do we need to explicitly link libc?
12911#
12912case "x$archive_cmds_need_lc_GO" in
12913x|xyes)
12914 # Assume -lc should be added
12915 archive_cmds_need_lc_GO=yes
12916
12917 if test "$enable_shared" = yes && test "$GCC" = yes; then
12918 case $archive_cmds_GO in
12919 *'~'*)
12920 # FIXME: we may have to deal with multi-command sequences.
12921 ;;
12922 '$CC '*)
12923 # Test whether the compiler implicitly links with -lc since on some
12924 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12925 # to ld, don't add -lc before -lgcc.
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12927$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12928if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
12929 $as_echo_n "(cached) " >&6
12930else
12931 $RM conftest*
12932 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12933
12934 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12935 (eval $ac_compile) 2>&5
12936 ac_status=$?
12937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12938 test $ac_status = 0; } 2>conftest.err; then
12939 soname=conftest
12940 lib=conftest
12941 libobjs=conftest.$ac_objext
12942 deplibs=
12943 wl=$lt_prog_compiler_wl_GO
12944 pic_flag=$lt_prog_compiler_pic_GO
12945 compiler_flags=-v
12946 linker_flags=-v
12947 verstring=
12948 output_objdir=.
12949 libname=conftest
12950 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
12951 allow_undefined_flag_GO=
12952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12953 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12954 ac_status=$?
12955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12956 test $ac_status = 0; }
12957 then
12958 lt_cv_archive_cmds_need_lc_GO=no
12959 else
12960 lt_cv_archive_cmds_need_lc_GO=yes
12961 fi
12962 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
12963 else
12964 cat conftest.err 1>&5
12965 fi
12966 $RM conftest*
12967
12968fi
12969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
12970$as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
12971 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
12972 ;;
12973 esac
12974 fi
12975 ;;
12976esac
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
13039
13040
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13042$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13043hardcode_action_GO=
13044if test -n "$hardcode_libdir_flag_spec_GO" ||
13045 test -n "$runpath_var_GO" ||
13046 test "X$hardcode_automatic_GO" = "Xyes" ; then
13047
13048 # We can hardcode non-existent directories.
13049 if test "$hardcode_direct_GO" != no &&
13050 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13051 # have to relink, otherwise we might link with an installed library
13052 # when we should be linking with a yet-to-be-installed one
13053 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13054 test "$hardcode_minus_L_GO" != no; then
13055 # Linking always hardcodes the temporary library directory.
13056 hardcode_action_GO=relink
13057 else
13058 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13059 hardcode_action_GO=immediate
13060 fi
13061else
13062 # We cannot hardcode anything, or else we can only hardcode existing
13063 # directories.
13064 hardcode_action_GO=unsupported
13065fi
13066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13067$as_echo "$hardcode_action_GO" >&6; }
13068
13069if test "$hardcode_action_GO" = relink ||
13070 test "$inherit_rpath_GO" = yes; then
13071 # Fast installation is not supported
13072 enable_fast_install=no
13073elif test "$shlibpath_overrides_runpath" = yes ||
13074 test "$enable_shared" = no; then
13075 # Fast installation is not necessary
13076 enable_fast_install=needless
13077fi
13078
13079
13080
13081
13082
13083
13084
13085fi
13086
13087ac_ext=c
13088ac_cpp='$CPP $CPPFLAGS'
13089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13091ac_compiler_gnu=$ac_cv_c_compiler_gnu
13092
13093
13094GCC=$lt_save_GCC
13095CC="$lt_save_CC"
13096
13097
13098
13099
13100 ac_config_commands="$ac_config_commands libtool"
13101
13102
13103
13104
13105# Only expand once:
13106
13107
13108
13109
13110
13111WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13112
13113
13114WERROR="-Werror"
13115
13116
13117glibgo_toolexecdir=no
13118glibgo_toolexeclibdir=no
13119glibgo_prefixdir=$prefix
13120
13121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13122$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13123# Check whether --enable-version-specific-runtime-libs was given.
13124if test "${enable_version_specific_runtime_libs+set}" = set; then :
13125 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13126 yes) version_specific_libs=yes ;;
13127 no) version_specific_libs=no ;;
13128 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13129 esac
13130else
13131 version_specific_libs=no
13132fi
13133
13134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13135$as_echo "$version_specific_libs" >&6; }
13136
13137# Version-specific runtime libs processing.
13138if test $version_specific_libs = yes; then
13139 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13140 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13141fi
13142
13143# Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13144# Install a library built with a cross compiler in tooldir, not libdir.
13145if test x"$glibgo_toolexecdir" = x"no"; then
13146 if test -n "$with_cross_host" &&
13147 test x"$with_cross_host" != x"no"; then
13148 glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13149 glibgo_toolexeclibdir='${toolexecdir}/lib'
13150 else
13151 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13152 glibgo_toolexeclibdir='${libdir}'
13153 fi
13154 multi_os_directory=`$CC -print-multi-os-directory`
13155 case $multi_os_directory in
13156 .) ;; # Avoid trailing /.
13157 *) glibgo_toolexeclibdir=$glibgo_toolexeclibdir/$multi_os_directory ;;
13158 esac
13159fi
13160
13161
13162
13163
13164
13165# See if the user wants to configure without libffi. Some
13166# architectures don't support it. FIXME: We should set a default
13167# based on the host.
13168
13169# Check whether --with-libffi was given.
13170if test "${with_libffi+set}" = set; then :
13171 withval=$with_libffi; :
13172else
13173 with_libffi=${with_libffi_default-yes}
13174fi
13175
13176
13177LIBFFI=
13178LIBFFIINCS=
13179if test "$with_libffi" != no; then
13180
13181$as_echo "#define USE_LIBFFI 1" >>confdefs.h
13182
13183 LIBFFI=../libffi/libffi_convenience.la
13184 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13185fi
13186
13187
13188
13189is_darwin=no
13190is_freebsd=no
13191is_linux=no
13192is_rtems=no
13193case ${host} in
13194 *-*-darwin*) is_darwin=yes ;;
13195 *-*-freebsd*) is_freebsd=yes ;;
13196 *-*-linux*) is_linux=yes ;;
13197 *-*-rtems*) is_rtems=yes ;;
13198esac
13199 if test $is_darwin = yes; then
13200 LIBGO_IS_DARWIN_TRUE=
13201 LIBGO_IS_DARWIN_FALSE='#'
13202else
13203 LIBGO_IS_DARWIN_TRUE='#'
13204 LIBGO_IS_DARWIN_FALSE=
13205fi
13206
13207 if test $is_freebsd = yes; then
13208 LIBGO_IS_FREEBSD_TRUE=
13209 LIBGO_IS_FREEBSD_FALSE='#'
13210else
13211 LIBGO_IS_FREEBSD_TRUE='#'
13212 LIBGO_IS_FREEBSD_FALSE=
13213fi
13214
13215 if test $is_linux = yes; then
13216 LIBGO_IS_LINUX_TRUE=
13217 LIBGO_IS_LINUX_FALSE='#'
13218else
13219 LIBGO_IS_LINUX_TRUE='#'
13220 LIBGO_IS_LINUX_FALSE=
13221fi
13222
13223 if test $is_rtems = yes; then
13224 LIBGO_IS_RTEMS_TRUE=
13225 LIBGO_IS_RTEMS_FALSE='#'
13226else
13227 LIBGO_IS_RTEMS_TRUE='#'
13228 LIBGO_IS_RTEMS_FALSE=
13229fi
13230
13231
13232is_386=no
13233is_x86_64=no
13234is_arm=no
13235case ${host} in
13236 i[34567]86-*-*)
13237 is_386=yes
13238 ;;
13239 x86_64-*-*)
13240 if test "$with_multisubdir" = "32"; then
13241 is_386=yes
13242 else
13243 is_x86_64=yes
13244 fi
13245 ;;
13246 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13247 is_arm=yes
13248 ;;
13249esac
13250 if test $is_386 = yes; then
13251 LIBGO_IS_386_TRUE=
13252 LIBGO_IS_386_FALSE='#'
13253else
13254 LIBGO_IS_386_TRUE='#'
13255 LIBGO_IS_386_FALSE=
13256fi
13257
13258 if test $is_x86_64 = yes; then
13259 LIBGO_IS_X86_64_TRUE=
13260 LIBGO_IS_X86_64_FALSE='#'
13261else
13262 LIBGO_IS_X86_64_TRUE='#'
13263 LIBGO_IS_X86_64_FALSE=
13264fi
13265
13266 if test $is_arm = yes; then
13267 LIBGO_IS_ARM_TRUE=
13268 LIBGO_IS_ARM_FALSE='#'
13269else
13270 LIBGO_IS_ARM_TRUE='#'
13271 LIBGO_IS_ARM_FALSE=
13272fi
13273
13274
13275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13276$as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13277if test "${ac_cv_libgo_split_stack_supported+set}" = set; then :
13278 $as_echo_n "(cached) " >&6
13279else
13280 CFLAGS_hold=$CFLAGS
13281CFLAGS="$CFLAGS -fsplit-stack"
13282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13283/* end confdefs.h. */
13284int i;
13285_ACEOF
13286if ac_fn_c_try_compile "$LINENO"; then :
13287 ac_cv_libgo_split_stack_supported=yes
13288else
13289 ac_cv_libgo_split_stack_supported=no
13290fi
13291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13292CFLAGS=$CFLAGS_hold
13293fi
13294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgo_split_stack_supported" >&5
13295$as_echo "$ac_cv_libgo_split_stack_supported" >&6; }
13296if test "$ac_cv_libgo_split_stack_supported" = yes; then
13297 SPLIT_STACK=-fsplit-stack
13298
13299$as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13300
13301else
13302 SPLIT_STACK=
13303fi
13304
13305 if test "$ac_cv_libgo_split_stack_supported" = yes; then
13306 USING_SPLIT_STACK_TRUE=
13307 USING_SPLIT_STACK_FALSE='#'
13308else
13309 USING_SPLIT_STACK_TRUE='#'
13310 USING_SPLIT_STACK_FALSE=
13311fi
13312
13313
13314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
13315$as_echo_n "checking whether linker supports split stack... " >&6; }
13316if test "${ac_cv_libgo_linker_supports_split_stack+set}" = set; then :
13317 $as_echo_n "(cached) " >&6
13318else
13319 ac_cv_libgo_linker_supports_split_stack=no
13320if $LD --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
13321 ac_cv_libgo_linker_supports_split_stack=yes
13322fi
13323fi
13324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgo_linker_supports_split_stack" >&5
13325$as_echo "$ac_cv_libgo_linker_supports_split_stack" >&6; }
13326if test "$ac_cv_libgo_linker_supports_split_stack" = yes; then
13327
13328$as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
13329
13330fi
13331
7d17fab3 13332MATH_LIBS=
13333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13334$as_echo_n "checking for sqrt in -lm... " >&6; }
13335if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13336 $as_echo_n "(cached) " >&6
13337else
13338 ac_check_lib_save_LIBS=$LIBS
13339LIBS="-lm $LIBS"
13340cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13341/* end confdefs.h. */
13342
13343/* Override any GCC internal prototype to avoid an error.
13344 Use char because int might match the return type of a GCC
13345 builtin and then its argument prototype would still apply. */
13346#ifdef __cplusplus
13347extern "C"
13348#endif
13349char sqrt ();
13350int
13351main ()
13352{
13353return sqrt ();
13354 ;
13355 return 0;
13356}
13357_ACEOF
13358if ac_fn_c_try_link "$LINENO"; then :
13359 ac_cv_lib_m_sqrt=yes
13360else
13361 ac_cv_lib_m_sqrt=no
13362fi
13363rm -f core conftest.err conftest.$ac_objext \
13364 conftest$ac_exeext conftest.$ac_ext
13365LIBS=$ac_check_lib_save_LIBS
13366fi
13367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13368$as_echo "$ac_cv_lib_m_sqrt" >&6; }
13369if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13370 MATH_LIBS=-lm
13371fi
13372
13373
13374
f555a9df 13375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
13376$as_echo_n "checking whether -pthread is supported... " >&6; }
13377if test "${ac_cv_libgo_pthread_supported+set}" = set; then :
13378 $as_echo_n "(cached) " >&6
13379else
13380 CFLAGS_hold=$CFLAGS
13381CFLAGS="$CFLAGS -pthread"
13382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13383/* end confdefs.h. */
13384int i;
13385_ACEOF
13386if ac_fn_c_try_compile "$LINENO"; then :
13387 ac_cv_libgo_pthread_supported=yes
13388else
13389 ac_cv_libgo_pthread_supported=no
13390fi
13391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13392CFLAGS=$CFLAGS_hold
13393fi
13394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgo_pthread_supported" >&5
13395$as_echo "$ac_cv_libgo_pthread_supported" >&6; }
13396PTHREAD_CFLAGS=
13397if test "$ac_cv_libgo_pthread_supported" = yes; then
13398 PTHREAD_CFLAGS=-pthread
13399fi
13400
13401
13402PTHREAD_LIBS=
13403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
13404$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
13405if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
13406 $as_echo_n "(cached) " >&6
13407else
13408 ac_check_lib_save_LIBS=$LIBS
13409LIBS="-lpthread $LIBS"
13410cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13411/* end confdefs.h. */
13412
13413/* Override any GCC internal prototype to avoid an error.
13414 Use char because int might match the return type of a GCC
13415 builtin and then its argument prototype would still apply. */
13416#ifdef __cplusplus
13417extern "C"
13418#endif
13419char pthread_create ();
13420int
13421main ()
13422{
13423return pthread_create ();
13424 ;
13425 return 0;
13426}
13427_ACEOF
13428if ac_fn_c_try_link "$LINENO"; then :
13429 ac_cv_lib_pthread_pthread_create=yes
13430else
13431 ac_cv_lib_pthread_pthread_create=no
13432fi
13433rm -f core conftest.err conftest.$ac_objext \
13434 conftest$ac_exeext conftest.$ac_ext
13435LIBS=$ac_check_lib_save_LIBS
13436fi
13437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
13438$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
13439if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
13440 PTHREAD_LIBS=-lpthread
13441fi
13442
13443
13444
e440a328 13445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13446$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13447if test "${ac_cv_c_bigendian+set}" = set; then :
13448 $as_echo_n "(cached) " >&6
13449else
13450 ac_cv_c_bigendian=unknown
13451 # See if we're dealing with a universal compiler.
13452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13453/* end confdefs.h. */
13454#ifndef __APPLE_CC__
13455 not a universal capable compiler
13456 #endif
13457 typedef int dummy;
13458
13459_ACEOF
13460if ac_fn_c_try_compile "$LINENO"; then :
13461
13462 # Check for potential -arch flags. It is not universal unless
13463 # there are at least two -arch flags with different values.
13464 ac_arch=
13465 ac_prev=
13466 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13467 if test -n "$ac_prev"; then
13468 case $ac_word in
13469 i?86 | x86_64 | ppc | ppc64)
13470 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13471 ac_arch=$ac_word
13472 else
13473 ac_cv_c_bigendian=universal
13474 break
13475 fi
13476 ;;
13477 esac
13478 ac_prev=
13479 elif test "x$ac_word" = "x-arch"; then
13480 ac_prev=arch
13481 fi
13482 done
13483fi
13484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13485 if test $ac_cv_c_bigendian = unknown; then
13486 # See if sys/param.h defines the BYTE_ORDER macro.
13487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13488/* end confdefs.h. */
13489#include <sys/types.h>
13490 #include <sys/param.h>
13491
13492int
13493main ()
13494{
13495#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13496 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13497 && LITTLE_ENDIAN)
13498 bogus endian macros
13499 #endif
13500
13501 ;
13502 return 0;
13503}
13504_ACEOF
13505if ac_fn_c_try_compile "$LINENO"; then :
13506 # It does; now see whether it defined to BIG_ENDIAN or not.
13507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13508/* end confdefs.h. */
13509#include <sys/types.h>
13510 #include <sys/param.h>
13511
13512int
13513main ()
13514{
13515#if BYTE_ORDER != BIG_ENDIAN
13516 not big endian
13517 #endif
13518
13519 ;
13520 return 0;
13521}
13522_ACEOF
13523if ac_fn_c_try_compile "$LINENO"; then :
13524 ac_cv_c_bigendian=yes
13525else
13526 ac_cv_c_bigendian=no
13527fi
13528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13529fi
13530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13531 fi
13532 if test $ac_cv_c_bigendian = unknown; then
13533 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13535/* end confdefs.h. */
13536#include <limits.h>
13537
13538int
13539main ()
13540{
13541#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13542 bogus endian macros
13543 #endif
13544
13545 ;
13546 return 0;
13547}
13548_ACEOF
13549if ac_fn_c_try_compile "$LINENO"; then :
13550 # It does; now see whether it defined to _BIG_ENDIAN or not.
13551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13552/* end confdefs.h. */
13553#include <limits.h>
13554
13555int
13556main ()
13557{
13558#ifndef _BIG_ENDIAN
13559 not big endian
13560 #endif
13561
13562 ;
13563 return 0;
13564}
13565_ACEOF
13566if ac_fn_c_try_compile "$LINENO"; then :
13567 ac_cv_c_bigendian=yes
13568else
13569 ac_cv_c_bigendian=no
13570fi
13571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13572fi
13573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13574 fi
13575 if test $ac_cv_c_bigendian = unknown; then
13576 # Compile a test program.
13577 if test "$cross_compiling" = yes; then :
13578 # Try to guess by grepping values from an object file.
13579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13580/* end confdefs.h. */
13581short int ascii_mm[] =
13582 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13583 short int ascii_ii[] =
13584 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13585 int use_ascii (int i) {
13586 return ascii_mm[i] + ascii_ii[i];
13587 }
13588 short int ebcdic_ii[] =
13589 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13590 short int ebcdic_mm[] =
13591 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13592 int use_ebcdic (int i) {
13593 return ebcdic_mm[i] + ebcdic_ii[i];
13594 }
13595 extern int foo;
13596
13597int
13598main ()
13599{
13600return use_ascii (foo) == use_ebcdic (foo);
13601 ;
13602 return 0;
13603}
13604_ACEOF
13605if ac_fn_c_try_compile "$LINENO"; then :
13606 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13607 ac_cv_c_bigendian=yes
13608 fi
13609 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13610 if test "$ac_cv_c_bigendian" = unknown; then
13611 ac_cv_c_bigendian=no
13612 else
13613 # finding both strings is unlikely to happen, but who knows?
13614 ac_cv_c_bigendian=unknown
13615 fi
13616 fi
13617fi
13618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13619else
13620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13621/* end confdefs.h. */
13622$ac_includes_default
13623int
13624main ()
13625{
13626
13627 /* Are we little or big endian? From Harbison&Steele. */
13628 union
13629 {
13630 long int l;
13631 char c[sizeof (long int)];
13632 } u;
13633 u.l = 1;
13634 return u.c[sizeof (long int) - 1] == 1;
13635
13636 ;
13637 return 0;
13638}
13639_ACEOF
13640if ac_fn_c_try_run "$LINENO"; then :
13641 ac_cv_c_bigendian=no
13642else
13643 ac_cv_c_bigendian=yes
13644fi
13645rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13646 conftest.$ac_objext conftest.beam conftest.$ac_ext
13647fi
13648
13649 fi
13650fi
13651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13652$as_echo "$ac_cv_c_bigendian" >&6; }
13653 case $ac_cv_c_bigendian in #(
13654 yes)
13655 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13656;; #(
13657 no)
13658 ;; #(
13659 universal)
13660
13661$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13662
13663 ;; #(
13664 *)
13665 as_fn_error "unknown endianness
13666 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13667 esac
13668
13669
13670
13671
13672# Check whether --with-system-libunwind was given.
13673if test "${with_system_libunwind+set}" = set; then :
13674 withval=$with_system_libunwind;
13675fi
13676
13677 # If system-libunwind was not specifically set, pick a default setting.
13678 if test x$with_system_libunwind = x; then
13679 case ${target} in
13680 ia64-*-hpux*) with_system_libunwind=yes ;;
13681 *) with_system_libunwind=no ;;
13682 esac
13683 fi
13684 # Based on system-libunwind and target, do we have ipinfo?
13685 if test x$with_system_libunwind = xyes; then
13686 case ${target} in
13687 ia64-*-*) have_unwind_getipinfo=no ;;
13688 *) have_unwind_getipinfo=yes ;;
13689 esac
13690 else
13691 # Darwin before version 9 does not have _Unwind_GetIPInfo.
13692
13693 case ${target} in
13694 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
13695 *) have_unwind_getipinfo=yes ;;
13696 esac
13697
13698 fi
13699
13700 if test x$have_unwind_getipinfo = xyes; then
13701
13702$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
13703
13704 fi
13705
13706
13707for ac_header in sys/mman.h syscall.h sys/epoll.h sys/ptrace.h sys/user.h sys/utsname.h
13708do :
13709 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13710ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13711eval as_val=\$$as_ac_Header
13712 if test "x$as_val" = x""yes; then :
13713 cat >>confdefs.h <<_ACEOF
13714#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13715_ACEOF
13716
13717fi
13718
13719done
13720
13721 if test "$ac_cv_header_sys_mman_h" = yes; then
13722 HAVE_SYS_MMAN_H_TRUE=
13723 HAVE_SYS_MMAN_H_FALSE='#'
13724else
13725 HAVE_SYS_MMAN_H_TRUE='#'
13726 HAVE_SYS_MMAN_H_FALSE=
13727fi
13728
13729for ac_func in srandom random strsignal
13730do :
13731 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13732ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13733eval as_val=\$$as_ac_var
13734 if test "x$as_val" = x""yes; then :
13735 cat >>confdefs.h <<_ACEOF
13736#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13737_ACEOF
13738
13739fi
13740done
13741
13742
13743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
13744$as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
13745if test "${ac_cv_libgo_compiler_supports_inline_all_stringops+set}" = set; then :
13746 $as_echo_n "(cached) " >&6
13747else
13748 CFLAGS_hold=$CFLAGS
13749CFLAGS="$CFLAGS -minline-all-stringops"
13750cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13751/* end confdefs.h. */
13752int i;
13753_ACEOF
13754if ac_fn_c_try_compile "$LINENO"; then :
13755 ac_cv_libgo_compiler_supports_inline_all_stringops=yes
13756else
13757 ac_cv_libgo_compiler_supports_inline_all_stringops=no
13758fi
13759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13760CFLAGS=$CFLAGS_hold
13761fi
13762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgo_compiler_supports_inline_all_stringops" >&5
13763$as_echo "$ac_cv_libgo_compiler_supports_inline_all_stringops" >&6; }
13764STRINGOPS_FLAG=
13765if test "$ac_cv_libgo_compiler_supports_inline_all_stringops" = yes; then
13766 STRINGOPS_FLAG=-minline-all-stringops
13767fi
13768
13769
13770CFLAGS_hold=$CFLAGS
13771CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
13772ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
13773if test "x$ac_cv_type_off64_t" = x""yes; then :
13774
13775cat >>confdefs.h <<_ACEOF
13776#define HAVE_OFF64_T 1
13777_ACEOF
13778
13779
13780fi
13781
13782CFLAGS=$CFLAGS_hold
13783
13784cat >confcache <<\_ACEOF
13785# This file is a shell script that caches the results of configure
13786# tests run on this system so they can be shared between configure
13787# scripts and configure runs, see configure's option --config-cache.
13788# It is not useful on other systems. If it contains results you don't
13789# want to keep, you may remove or edit it.
13790#
13791# config.status only pays attention to the cache file if you give it
13792# the --recheck option to rerun configure.
13793#
13794# `ac_cv_env_foo' variables (set or unset) will be overridden when
13795# loading this file, other *unset* `ac_cv_foo' will be assigned the
13796# following values.
13797
13798_ACEOF
13799
13800# The following way of writing the cache mishandles newlines in values,
13801# but we know of no workaround that is simple, portable, and efficient.
13802# So, we kill variables containing newlines.
13803# Ultrix sh set writes to stderr and can't be redirected directly,
13804# and sets the high bit in the cache file unless we assign to the vars.
13805(
13806 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13807 eval ac_val=\$$ac_var
13808 case $ac_val in #(
13809 *${as_nl}*)
13810 case $ac_var in #(
13811 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13812$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13813 esac
13814 case $ac_var in #(
13815 _ | IFS | as_nl) ;; #(
13816 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13817 *) { eval $ac_var=; unset $ac_var;} ;;
13818 esac ;;
13819 esac
13820 done
13821
13822 (set) 2>&1 |
13823 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13824 *${as_nl}ac_space=\ *)
13825 # `set' does not quote correctly, so add quotes: double-quote
13826 # substitution turns \\\\ into \\, and sed turns \\ into \.
13827 sed -n \
13828 "s/'/'\\\\''/g;
13829 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13830 ;; #(
13831 *)
13832 # `set' quotes correctly as required by POSIX, so do not add quotes.
13833 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13834 ;;
13835 esac |
13836 sort
13837) |
13838 sed '
13839 /^ac_cv_env_/b end
13840 t clear
13841 :clear
13842 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13843 t end
13844 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13845 :end' >>confcache
13846if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13847 if test -w "$cache_file"; then
13848 test "x$cache_file" != "x/dev/null" &&
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13850$as_echo "$as_me: updating cache $cache_file" >&6;}
13851 cat confcache >$cache_file
13852 else
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13854$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13855 fi
13856fi
13857rm -f confcache
13858
13859if test ${multilib} = yes; then
13860 multilib_arg="--enable-multilib"
13861else
13862 multilib_arg=
13863fi
13864
13865ac_config_files="$ac_config_files Makefile testsuite/Makefile"
13866
13867
13868ac_config_commands="$ac_config_commands default"
13869
13870
13871cat >confcache <<\_ACEOF
13872# This file is a shell script that caches the results of configure
13873# tests run on this system so they can be shared between configure
13874# scripts and configure runs, see configure's option --config-cache.
13875# It is not useful on other systems. If it contains results you don't
13876# want to keep, you may remove or edit it.
13877#
13878# config.status only pays attention to the cache file if you give it
13879# the --recheck option to rerun configure.
13880#
13881# `ac_cv_env_foo' variables (set or unset) will be overridden when
13882# loading this file, other *unset* `ac_cv_foo' will be assigned the
13883# following values.
13884
13885_ACEOF
13886
13887# The following way of writing the cache mishandles newlines in values,
13888# but we know of no workaround that is simple, portable, and efficient.
13889# So, we kill variables containing newlines.
13890# Ultrix sh set writes to stderr and can't be redirected directly,
13891# and sets the high bit in the cache file unless we assign to the vars.
13892(
13893 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13894 eval ac_val=\$$ac_var
13895 case $ac_val in #(
13896 *${as_nl}*)
13897 case $ac_var in #(
13898 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13899$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13900 esac
13901 case $ac_var in #(
13902 _ | IFS | as_nl) ;; #(
13903 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13904 *) { eval $ac_var=; unset $ac_var;} ;;
13905 esac ;;
13906 esac
13907 done
13908
13909 (set) 2>&1 |
13910 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13911 *${as_nl}ac_space=\ *)
13912 # `set' does not quote correctly, so add quotes: double-quote
13913 # substitution turns \\\\ into \\, and sed turns \\ into \.
13914 sed -n \
13915 "s/'/'\\\\''/g;
13916 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13917 ;; #(
13918 *)
13919 # `set' quotes correctly as required by POSIX, so do not add quotes.
13920 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13921 ;;
13922 esac |
13923 sort
13924) |
13925 sed '
13926 /^ac_cv_env_/b end
13927 t clear
13928 :clear
13929 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13930 t end
13931 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13932 :end' >>confcache
13933if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13934 if test -w "$cache_file"; then
13935 test "x$cache_file" != "x/dev/null" &&
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13937$as_echo "$as_me: updating cache $cache_file" >&6;}
13938 cat confcache >$cache_file
13939 else
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13941$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13942 fi
13943fi
13944rm -f confcache
13945
13946test "x$prefix" = xNONE && prefix=$ac_default_prefix
13947# Let make expand exec_prefix.
13948test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13949
13950DEFS=-DHAVE_CONFIG_H
13951
13952ac_libobjs=
13953ac_ltlibobjs=
13954for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13955 # 1. Remove the extension, and $U if already installed.
13956 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13957 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13958 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13959 # will be set to the directory where LIBOBJS objects are built.
13960 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13961 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13962done
13963LIBOBJS=$ac_libobjs
13964
13965LTLIBOBJS=$ac_ltlibobjs
13966
13967
13968 if test -n "$EXEEXT"; then
13969 am__EXEEXT_TRUE=
13970 am__EXEEXT_FALSE='#'
13971else
13972 am__EXEEXT_TRUE='#'
13973 am__EXEEXT_FALSE=
13974fi
13975
13976if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13977 as_fn_error "conditional \"AMDEP\" was never defined.
13978Usually this means the macro was only invoked conditionally." "$LINENO" 5
13979fi
13980if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13981 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13982Usually this means the macro was only invoked conditionally." "$LINENO" 5
13983fi
13984if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13985 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13986Usually this means the macro was only invoked conditionally." "$LINENO" 5
13987fi
13988if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
13989 as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
13990Usually this means the macro was only invoked conditionally." "$LINENO" 5
13991fi
13992if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
13993 as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
13994Usually this means the macro was only invoked conditionally." "$LINENO" 5
13995fi
13996if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
13997 as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
13998Usually this means the macro was only invoked conditionally." "$LINENO" 5
13999fi
14000if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
14001 as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
14002Usually this means the macro was only invoked conditionally." "$LINENO" 5
14003fi
14004if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
14005 as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
14006Usually this means the macro was only invoked conditionally." "$LINENO" 5
14007fi
14008if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
14009 as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
14010Usually this means the macro was only invoked conditionally." "$LINENO" 5
14011fi
14012if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
14013 as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
14014Usually this means the macro was only invoked conditionally." "$LINENO" 5
14015fi
14016if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
14017 as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
14018Usually this means the macro was only invoked conditionally." "$LINENO" 5
14019fi
14020
14021if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
14022 as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
14023Usually this means the macro was only invoked conditionally." "$LINENO" 5
14024fi
14025
14026: ${CONFIG_STATUS=./config.status}
14027ac_write_fail=0
14028ac_clean_files_save=$ac_clean_files
14029ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14030{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14031$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14032as_write_fail=0
14033cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14034#! $SHELL
14035# Generated by $as_me.
14036# Run this file to recreate the current configuration.
14037# Compiler output produced by configure, useful for debugging
14038# configure, is in config.log if it exists.
14039
14040debug=false
14041ac_cs_recheck=false
14042ac_cs_silent=false
14043
14044SHELL=\${CONFIG_SHELL-$SHELL}
14045export SHELL
14046_ASEOF
14047cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14048## -------------------- ##
14049## M4sh Initialization. ##
14050## -------------------- ##
14051
14052# Be more Bourne compatible
14053DUALCASE=1; export DUALCASE # for MKS sh
14054if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14055 emulate sh
14056 NULLCMD=:
14057 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14058 # is contrary to our usage. Disable this feature.
14059 alias -g '${1+"$@"}'='"$@"'
14060 setopt NO_GLOB_SUBST
14061else
14062 case `(set -o) 2>/dev/null` in #(
14063 *posix*) :
14064 set -o posix ;; #(
14065 *) :
14066 ;;
14067esac
14068fi
14069
14070
14071as_nl='
14072'
14073export as_nl
14074# Printing a long string crashes Solaris 7 /usr/bin/printf.
14075as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14076as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14077as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14078# Prefer a ksh shell builtin over an external printf program on Solaris,
14079# but without wasting forks for bash or zsh.
14080if test -z "$BASH_VERSION$ZSH_VERSION" \
14081 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14082 as_echo='print -r --'
14083 as_echo_n='print -rn --'
14084elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14085 as_echo='printf %s\n'
14086 as_echo_n='printf %s'
14087else
14088 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14089 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14090 as_echo_n='/usr/ucb/echo -n'
14091 else
14092 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14093 as_echo_n_body='eval
14094 arg=$1;
14095 case $arg in #(
14096 *"$as_nl"*)
14097 expr "X$arg" : "X\\(.*\\)$as_nl";
14098 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14099 esac;
14100 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14101 '
14102 export as_echo_n_body
14103 as_echo_n='sh -c $as_echo_n_body as_echo'
14104 fi
14105 export as_echo_body
14106 as_echo='sh -c $as_echo_body as_echo'
14107fi
14108
14109# The user is always right.
14110if test "${PATH_SEPARATOR+set}" != set; then
14111 PATH_SEPARATOR=:
14112 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14113 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14114 PATH_SEPARATOR=';'
14115 }
14116fi
14117
14118
14119# IFS
14120# We need space, tab and new line, in precisely that order. Quoting is
14121# there to prevent editors from complaining about space-tab.
14122# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14123# splitting by setting IFS to empty value.)
14124IFS=" "" $as_nl"
14125
14126# Find who we are. Look in the path if we contain no directory separator.
14127case $0 in #((
14128 *[\\/]* ) as_myself=$0 ;;
14129 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14130for as_dir in $PATH
14131do
14132 IFS=$as_save_IFS
14133 test -z "$as_dir" && as_dir=.
14134 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14135 done
14136IFS=$as_save_IFS
14137
14138 ;;
14139esac
14140# We did not find ourselves, most probably we were run as `sh COMMAND'
14141# in which case we are not to be found in the path.
14142if test "x$as_myself" = x; then
14143 as_myself=$0
14144fi
14145if test ! -f "$as_myself"; then
14146 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14147 exit 1
14148fi
14149
14150# Unset variables that we do not need and which cause bugs (e.g. in
14151# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14152# suppresses any "Segmentation fault" message there. '((' could
14153# trigger a bug in pdksh 5.2.14.
14154for as_var in BASH_ENV ENV MAIL MAILPATH
14155do eval test x\${$as_var+set} = xset \
14156 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14157done
14158PS1='$ '
14159PS2='> '
14160PS4='+ '
14161
14162# NLS nuisances.
14163LC_ALL=C
14164export LC_ALL
14165LANGUAGE=C
14166export LANGUAGE
14167
14168# CDPATH.
14169(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14170
14171
14172# as_fn_error ERROR [LINENO LOG_FD]
14173# ---------------------------------
14174# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14175# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14176# script with status $?, using 1 if that was 0.
14177as_fn_error ()
14178{
14179 as_status=$?; test $as_status -eq 0 && as_status=1
14180 if test "$3"; then
14181 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14182 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14183 fi
14184 $as_echo "$as_me: error: $1" >&2
14185 as_fn_exit $as_status
14186} # as_fn_error
14187
14188
14189# as_fn_set_status STATUS
14190# -----------------------
14191# Set $? to STATUS, without forking.
14192as_fn_set_status ()
14193{
14194 return $1
14195} # as_fn_set_status
14196
14197# as_fn_exit STATUS
14198# -----------------
14199# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14200as_fn_exit ()
14201{
14202 set +e
14203 as_fn_set_status $1
14204 exit $1
14205} # as_fn_exit
14206
14207# as_fn_unset VAR
14208# ---------------
14209# Portably unset VAR.
14210as_fn_unset ()
14211{
14212 { eval $1=; unset $1;}
14213}
14214as_unset=as_fn_unset
14215# as_fn_append VAR VALUE
14216# ----------------------
14217# Append the text in VALUE to the end of the definition contained in VAR. Take
14218# advantage of any shell optimizations that allow amortized linear growth over
14219# repeated appends, instead of the typical quadratic growth present in naive
14220# implementations.
14221if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14222 eval 'as_fn_append ()
14223 {
14224 eval $1+=\$2
14225 }'
14226else
14227 as_fn_append ()
14228 {
14229 eval $1=\$$1\$2
14230 }
14231fi # as_fn_append
14232
14233# as_fn_arith ARG...
14234# ------------------
14235# Perform arithmetic evaluation on the ARGs, and store the result in the
14236# global $as_val. Take advantage of shells that can avoid forks. The arguments
14237# must be portable across $(()) and expr.
14238if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14239 eval 'as_fn_arith ()
14240 {
14241 as_val=$(( $* ))
14242 }'
14243else
14244 as_fn_arith ()
14245 {
14246 as_val=`expr "$@" || test $? -eq 1`
14247 }
14248fi # as_fn_arith
14249
14250
14251if expr a : '\(a\)' >/dev/null 2>&1 &&
14252 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14253 as_expr=expr
14254else
14255 as_expr=false
14256fi
14257
14258if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14259 as_basename=basename
14260else
14261 as_basename=false
14262fi
14263
14264if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14265 as_dirname=dirname
14266else
14267 as_dirname=false
14268fi
14269
14270as_me=`$as_basename -- "$0" ||
14271$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14272 X"$0" : 'X\(//\)$' \| \
14273 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14274$as_echo X/"$0" |
14275 sed '/^.*\/\([^/][^/]*\)\/*$/{
14276 s//\1/
14277 q
14278 }
14279 /^X\/\(\/\/\)$/{
14280 s//\1/
14281 q
14282 }
14283 /^X\/\(\/\).*/{
14284 s//\1/
14285 q
14286 }
14287 s/.*/./; q'`
14288
14289# Avoid depending upon Character Ranges.
14290as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14291as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14292as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14293as_cr_digits='0123456789'
14294as_cr_alnum=$as_cr_Letters$as_cr_digits
14295
14296ECHO_C= ECHO_N= ECHO_T=
14297case `echo -n x` in #(((((
14298-n*)
14299 case `echo 'xy\c'` in
14300 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14301 xy) ECHO_C='\c';;
14302 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14303 ECHO_T=' ';;
14304 esac;;
14305*)
14306 ECHO_N='-n';;
14307esac
14308
14309rm -f conf$$ conf$$.exe conf$$.file
14310if test -d conf$$.dir; then
14311 rm -f conf$$.dir/conf$$.file
14312else
14313 rm -f conf$$.dir
14314 mkdir conf$$.dir 2>/dev/null
14315fi
14316if (echo >conf$$.file) 2>/dev/null; then
14317 if ln -s conf$$.file conf$$ 2>/dev/null; then
14318 as_ln_s='ln -s'
14319 # ... but there are two gotchas:
14320 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14321 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14322 # In both cases, we have to default to `cp -p'.
14323 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14324 as_ln_s='cp -p'
14325 elif ln conf$$.file conf$$ 2>/dev/null; then
14326 as_ln_s=ln
14327 else
14328 as_ln_s='cp -p'
14329 fi
14330else
14331 as_ln_s='cp -p'
14332fi
14333rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14334rmdir conf$$.dir 2>/dev/null
14335
14336
14337# as_fn_mkdir_p
14338# -------------
14339# Create "$as_dir" as a directory, including parents if necessary.
14340as_fn_mkdir_p ()
14341{
14342
14343 case $as_dir in #(
14344 -*) as_dir=./$as_dir;;
14345 esac
14346 test -d "$as_dir" || eval $as_mkdir_p || {
14347 as_dirs=
14348 while :; do
14349 case $as_dir in #(
14350 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14351 *) as_qdir=$as_dir;;
14352 esac
14353 as_dirs="'$as_qdir' $as_dirs"
14354 as_dir=`$as_dirname -- "$as_dir" ||
14355$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14356 X"$as_dir" : 'X\(//\)[^/]' \| \
14357 X"$as_dir" : 'X\(//\)$' \| \
14358 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14359$as_echo X"$as_dir" |
14360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14361 s//\1/
14362 q
14363 }
14364 /^X\(\/\/\)[^/].*/{
14365 s//\1/
14366 q
14367 }
14368 /^X\(\/\/\)$/{
14369 s//\1/
14370 q
14371 }
14372 /^X\(\/\).*/{
14373 s//\1/
14374 q
14375 }
14376 s/.*/./; q'`
14377 test -d "$as_dir" && break
14378 done
14379 test -z "$as_dirs" || eval "mkdir $as_dirs"
14380 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14381
14382
14383} # as_fn_mkdir_p
14384if mkdir -p . 2>/dev/null; then
14385 as_mkdir_p='mkdir -p "$as_dir"'
14386else
14387 test -d ./-p && rmdir ./-p
14388 as_mkdir_p=false
14389fi
14390
14391if test -x / >/dev/null 2>&1; then
14392 as_test_x='test -x'
14393else
14394 if ls -dL / >/dev/null 2>&1; then
14395 as_ls_L_option=L
14396 else
14397 as_ls_L_option=
14398 fi
14399 as_test_x='
14400 eval sh -c '\''
14401 if test -d "$1"; then
14402 test -d "$1/.";
14403 else
14404 case $1 in #(
14405 -*)set "./$1";;
14406 esac;
14407 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14408 ???[sx]*):;;*)false;;esac;fi
14409 '\'' sh
14410 '
14411fi
14412as_executable_p=$as_test_x
14413
14414# Sed expression to map a string onto a valid CPP name.
14415as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14416
14417# Sed expression to map a string onto a valid variable name.
14418as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14419
14420
14421exec 6>&1
14422## ----------------------------------- ##
14423## Main body of $CONFIG_STATUS script. ##
14424## ----------------------------------- ##
14425_ASEOF
14426test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14427
14428cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14429# Save the log message, to keep $0 and so on meaningful, and to
14430# report actual input values of CONFIG_FILES etc. instead of their
14431# values after options handling.
14432ac_log="
14433This file was extended by package-unused $as_me version-unused, which was
14434generated by GNU Autoconf 2.64. Invocation command line was
14435
14436 CONFIG_FILES = $CONFIG_FILES
14437 CONFIG_HEADERS = $CONFIG_HEADERS
14438 CONFIG_LINKS = $CONFIG_LINKS
14439 CONFIG_COMMANDS = $CONFIG_COMMANDS
14440 $ $0 $@
14441
14442on `(hostname || uname -n) 2>/dev/null | sed 1q`
14443"
14444
14445_ACEOF
14446
14447case $ac_config_files in *"
14448"*) set x $ac_config_files; shift; ac_config_files=$*;;
14449esac
14450
14451case $ac_config_headers in *"
14452"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14453esac
14454
14455
14456cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14457# Files that config.status was made for.
14458config_files="$ac_config_files"
14459config_headers="$ac_config_headers"
14460config_commands="$ac_config_commands"
14461
14462_ACEOF
14463
14464cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14465ac_cs_usage="\
14466\`$as_me' instantiates files and other configuration actions
14467from templates according to the current configuration. Unless the files
14468and actions are specified as TAGs, all are instantiated by default.
14469
14470Usage: $0 [OPTION]... [TAG]...
14471
14472 -h, --help print this help, then exit
14473 -V, --version print version number and configuration settings, then exit
14474 -q, --quiet, --silent
14475 do not print progress messages
14476 -d, --debug don't remove temporary files
14477 --recheck update $as_me by reconfiguring in the same conditions
14478 --file=FILE[:TEMPLATE]
14479 instantiate the configuration file FILE
14480 --header=FILE[:TEMPLATE]
14481 instantiate the configuration header FILE
14482
14483Configuration files:
14484$config_files
14485
14486Configuration headers:
14487$config_headers
14488
14489Configuration commands:
14490$config_commands
14491
14492Report bugs to the package provider."
14493
14494_ACEOF
14495cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14496ac_cs_version="\\
14497package-unused config.status version-unused
14498configured by $0, generated by GNU Autoconf 2.64,
14499 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14500
14501Copyright (C) 2009 Free Software Foundation, Inc.
14502This config.status script is free software; the Free Software Foundation
14503gives unlimited permission to copy, distribute and modify it."
14504
14505ac_pwd='$ac_pwd'
14506srcdir='$srcdir'
14507INSTALL='$INSTALL'
14508MKDIR_P='$MKDIR_P'
14509AWK='$AWK'
14510test -n "\$AWK" || AWK=awk
14511_ACEOF
14512
14513cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14514# The default lists apply if the user does not specify any file.
14515ac_need_defaults=:
14516while test $# != 0
14517do
14518 case $1 in
14519 --*=*)
14520 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14521 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14522 ac_shift=:
14523 ;;
14524 *)
14525 ac_option=$1
14526 ac_optarg=$2
14527 ac_shift=shift
14528 ;;
14529 esac
14530
14531 case $ac_option in
14532 # Handling of the options.
14533 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14534 ac_cs_recheck=: ;;
14535 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14536 $as_echo "$ac_cs_version"; exit ;;
14537 --debug | --debu | --deb | --de | --d | -d )
14538 debug=: ;;
14539 --file | --fil | --fi | --f )
14540 $ac_shift
14541 case $ac_optarg in
14542 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14543 esac
14544 as_fn_append CONFIG_FILES " '$ac_optarg'"
14545 ac_need_defaults=false;;
14546 --header | --heade | --head | --hea )
14547 $ac_shift
14548 case $ac_optarg in
14549 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14550 esac
14551 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14552 ac_need_defaults=false;;
14553 --he | --h)
14554 # Conflict between --help and --header
14555 as_fn_error "ambiguous option: \`$1'
14556Try \`$0 --help' for more information.";;
14557 --help | --hel | -h )
14558 $as_echo "$ac_cs_usage"; exit ;;
14559 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14560 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14561 ac_cs_silent=: ;;
14562
14563 # This is an error.
14564 -*) as_fn_error "unrecognized option: \`$1'
14565Try \`$0 --help' for more information." ;;
14566
14567 *) as_fn_append ac_config_targets " $1"
14568 ac_need_defaults=false ;;
14569
14570 esac
14571 shift
14572done
14573
14574ac_configure_extra_args=
14575
14576if $ac_cs_silent; then
14577 exec 6>/dev/null
14578 ac_configure_extra_args="$ac_configure_extra_args --silent"
14579fi
14580
14581_ACEOF
14582cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14583if \$ac_cs_recheck; then
14584 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14585 shift
14586 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14587 CONFIG_SHELL='$SHELL'
14588 export CONFIG_SHELL
14589 exec "\$@"
14590fi
14591
14592_ACEOF
14593cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14594exec 5>>config.log
14595{
14596 echo
14597 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14598## Running $as_me. ##
14599_ASBOX
14600 $as_echo "$ac_log"
14601} >&5
14602
14603_ACEOF
14604cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14605#
14606# INIT-COMMANDS
14607#
14608
14609srcdir="$srcdir"
14610host="$host"
14611target="$target"
14612with_multisubdir="$with_multisubdir"
14613with_multisrctop="$with_multisrctop"
14614with_target_subdir="$with_target_subdir"
14615ac_configure_args="${multilib_arg} ${ac_configure_args}"
14616multi_basedir="$multi_basedir"
14617CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
14618CC="$CC"
14619CXX="$CXX"
14620GFORTRAN="$GFORTRAN"
14621GCJ="$GCJ"
14622AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14623
14624
14625# The HP-UX ksh and POSIX shell print the target directory to stdout
14626# if CDPATH is set.
14627(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14628
14629sed_quote_subst='$sed_quote_subst'
14630double_quote_subst='$double_quote_subst'
14631delay_variable_subst='$delay_variable_subst'
14632SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14633Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14634GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14635EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14636FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14637SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14638ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14639LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14640macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14641macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14642enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14643enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14644pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14645enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14646host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14647host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14648host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14649build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14650build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14651build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14652NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14653LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14654max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14655ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14656exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14657lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14658lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14659lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14660reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14661reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14662OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14663deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14664file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14665AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14666AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14667STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14668RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14669old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14670old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14671old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14672lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14673CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14674CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14675compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14676GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14677lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14678lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14679lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14680lt_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"`'
14681objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14682MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14683lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14684lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14685lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14686lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14687lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14688need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14689DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14690NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14691LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14692OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14693OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14694libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14695shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14696extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14697archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14698enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14699export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14700whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14701compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14702old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14703old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14704archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14705archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14706module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14707module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14708with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14709allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14710no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14711hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14712hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14713hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14714hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14715hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14716hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14717hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14718hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14719inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14720link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14721fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14722always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14723export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14724exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14725include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14726prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14727file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14728variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14729need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14730need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14731version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14732runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14733shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14734shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14735libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14736library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14737soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14738install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14739postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14740postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14741finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14742finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14743hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14744sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14745sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14746hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14747enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14748enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14749enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14750old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14751striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14752LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
14753reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
14754reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
14755old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
14756compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
14757GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
14758lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
14759lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
14760lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
14761lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
14762lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
14763archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
14764enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
14765export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
14766whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
14767compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
14768old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
14769old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
14770archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
14771archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
14772module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
14773module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
14774with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
14775allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
14776no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
14777hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
14778hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
14779hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
14780hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
14781hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
14782hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
14783hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
14784hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
14785inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
14786link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
14787fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
14788always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
14789export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
14790exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
14791include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
14792prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
14793file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
14794hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
14795
14796LTCC='$LTCC'
14797LTCFLAGS='$LTCFLAGS'
14798compiler='$compiler_DEFAULT'
14799
14800# A function that is used when there is no print builtin or printf.
14801func_fallback_echo ()
14802{
14803 eval 'cat <<_LTECHO_EOF
14804\$1
14805_LTECHO_EOF'
14806}
14807
14808# Quote evaled strings.
14809for var in SED \
14810GREP \
14811EGREP \
14812FGREP \
14813SHELL \
14814ECHO \
14815LD \
14816NM \
14817LN_S \
14818lt_SP2NL \
14819lt_NL2SP \
14820reload_flag \
14821OBJDUMP \
14822deplibs_check_method \
14823file_magic_cmd \
14824AR \
14825AR_FLAGS \
14826STRIP \
14827RANLIB \
14828CC \
14829CFLAGS \
14830compiler \
14831lt_cv_sys_global_symbol_pipe \
14832lt_cv_sys_global_symbol_to_cdecl \
14833lt_cv_sys_global_symbol_to_c_name_address \
14834lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14835lt_prog_compiler_no_builtin_flag \
14836lt_prog_compiler_wl \
14837lt_prog_compiler_pic \
14838lt_prog_compiler_static \
14839lt_cv_prog_compiler_c_o \
14840need_locks \
14841DSYMUTIL \
14842NMEDIT \
14843LIPO \
14844OTOOL \
14845OTOOL64 \
14846shrext_cmds \
14847export_dynamic_flag_spec \
14848whole_archive_flag_spec \
14849compiler_needs_object \
14850with_gnu_ld \
14851allow_undefined_flag \
14852no_undefined_flag \
14853hardcode_libdir_flag_spec \
14854hardcode_libdir_flag_spec_ld \
14855hardcode_libdir_separator \
14856fix_srcfile_path \
14857exclude_expsyms \
14858include_expsyms \
14859file_list_spec \
14860variables_saved_for_relink \
14861libname_spec \
14862library_names_spec \
14863soname_spec \
14864install_override_mode \
14865finish_eval \
14866old_striplib \
14867striplib \
14868LD_GO \
14869reload_flag_GO \
14870compiler_GO \
14871lt_prog_compiler_no_builtin_flag_GO \
14872lt_prog_compiler_wl_GO \
14873lt_prog_compiler_pic_GO \
14874lt_prog_compiler_static_GO \
14875lt_cv_prog_compiler_c_o_GO \
14876export_dynamic_flag_spec_GO \
14877whole_archive_flag_spec_GO \
14878compiler_needs_object_GO \
14879with_gnu_ld_GO \
14880allow_undefined_flag_GO \
14881no_undefined_flag_GO \
14882hardcode_libdir_flag_spec_GO \
14883hardcode_libdir_flag_spec_ld_GO \
14884hardcode_libdir_separator_GO \
14885fix_srcfile_path_GO \
14886exclude_expsyms_GO \
14887include_expsyms_GO \
14888file_list_spec_GO; do
14889 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14890 *[\\\\\\\`\\"\\\$]*)
14891 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14892 ;;
14893 *)
14894 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14895 ;;
14896 esac
14897done
14898
14899# Double-quote double-evaled strings.
14900for var in reload_cmds \
14901old_postinstall_cmds \
14902old_postuninstall_cmds \
14903old_archive_cmds \
14904extract_expsyms_cmds \
14905old_archive_from_new_cmds \
14906old_archive_from_expsyms_cmds \
14907archive_cmds \
14908archive_expsym_cmds \
14909module_cmds \
14910module_expsym_cmds \
14911export_symbols_cmds \
14912prelink_cmds \
14913postinstall_cmds \
14914postuninstall_cmds \
14915finish_cmds \
14916sys_lib_search_path_spec \
14917sys_lib_dlsearch_path_spec \
14918reload_cmds_GO \
14919old_archive_cmds_GO \
14920old_archive_from_new_cmds_GO \
14921old_archive_from_expsyms_cmds_GO \
14922archive_cmds_GO \
14923archive_expsym_cmds_GO \
14924module_cmds_GO \
14925module_expsym_cmds_GO \
14926export_symbols_cmds_GO \
14927prelink_cmds_GO; do
14928 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14929 *[\\\\\\\`\\"\\\$]*)
14930 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14931 ;;
14932 *)
14933 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14934 ;;
14935 esac
14936done
14937
14938ac_aux_dir='$ac_aux_dir'
14939xsi_shell='$xsi_shell'
14940lt_shell_append='$lt_shell_append'
14941
14942# See if we are running on zsh, and set the options which allow our
14943# commands through without removal of \ escapes INIT.
14944if test -n "\${ZSH_VERSION+set}" ; then
14945 setopt NO_GLOB_SUBST
14946fi
14947
14948
14949 PACKAGE='$PACKAGE'
14950 VERSION='$VERSION'
14951 TIMESTAMP='$TIMESTAMP'
14952 RM='$RM'
14953 ofile='$ofile'
14954
14955
14956
14957
14958
14959
14960# Variables needed in config.status (file generation) which aren't already
14961# passed by autoconf.
14962SUBDIRS="$SUBDIRS"
14963
14964
14965_ACEOF
14966
14967cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14968
14969# Handling of arguments.
14970for ac_config_target in $ac_config_targets
14971do
14972 case $ac_config_target in
14973 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14974 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14975 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14976 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14977 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14978 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
14979 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14980
14981 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14982 esac
14983done
14984
14985
14986# If the user did not use the arguments to specify the items to instantiate,
14987# then the envvar interface is used. Set only those that are not.
14988# We use the long form for the default assignment because of an extremely
14989# bizarre bug on SunOS 4.1.3.
14990if $ac_need_defaults; then
14991 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14992 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14993 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14994fi
14995
14996# Have a temporary directory for convenience. Make it in the build tree
14997# simply because there is no reason against having it here, and in addition,
14998# creating and moving files from /tmp can sometimes cause problems.
14999# Hook for its removal unless debugging.
15000# Note that there is a small window in which the directory will not be cleaned:
15001# after its creation but before its name has been assigned to `$tmp'.
15002$debug ||
15003{
15004 tmp=
15005 trap 'exit_status=$?
15006 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15007' 0
15008 trap 'as_fn_exit 1' 1 2 13 15
15009}
15010# Create a (secure) tmp directory for tmp files.
15011
15012{
15013 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15014 test -n "$tmp" && test -d "$tmp"
15015} ||
15016{
15017 tmp=./conf$$-$RANDOM
15018 (umask 077 && mkdir "$tmp")
15019} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15020
15021# Set up the scripts for CONFIG_FILES section.
15022# No need to generate them if there are no CONFIG_FILES.
15023# This happens for instance with `./config.status config.h'.
15024if test -n "$CONFIG_FILES"; then
15025
15026
15027ac_cr=`echo X | tr X '\015'`
15028# On cygwin, bash can eat \r inside `` if the user requested igncr.
15029# But we know of no other shell where ac_cr would be empty at this
15030# point, so we can use a bashism as a fallback.
15031if test "x$ac_cr" = x; then
15032 eval ac_cr=\$\'\\r\'
15033fi
15034ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15035if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15036 ac_cs_awk_cr='\r'
15037else
15038 ac_cs_awk_cr=$ac_cr
15039fi
15040
15041echo 'BEGIN {' >"$tmp/subs1.awk" &&
15042_ACEOF
15043
15044
15045{
15046 echo "cat >conf$$subs.awk <<_ACEOF" &&
15047 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15048 echo "_ACEOF"
15049} >conf$$subs.sh ||
15050 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15051ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15052ac_delim='%!_!# '
15053for ac_last_try in false false false false false :; do
15054 . ./conf$$subs.sh ||
15055 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15056
15057 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15058 if test $ac_delim_n = $ac_delim_num; then
15059 break
15060 elif $ac_last_try; then
15061 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15062 else
15063 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15064 fi
15065done
15066rm -f conf$$subs.sh
15067
15068cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15069cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15070_ACEOF
15071sed -n '
15072h
15073s/^/S["/; s/!.*/"]=/
15074p
15075g
15076s/^[^!]*!//
15077:repl
15078t repl
15079s/'"$ac_delim"'$//
15080t delim
15081:nl
15082h
15083s/\(.\{148\}\).*/\1/
15084t more1
15085s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15086p
15087n
15088b repl
15089:more1
15090s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15091p
15092g
15093s/.\{148\}//
15094t nl
15095:delim
15096h
15097s/\(.\{148\}\).*/\1/
15098t more2
15099s/["\\]/\\&/g; s/^/"/; s/$/"/
15100p
15101b
15102:more2
15103s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15104p
15105g
15106s/.\{148\}//
15107t delim
15108' <conf$$subs.awk | sed '
15109/^[^""]/{
15110 N
15111 s/\n//
15112}
15113' >>$CONFIG_STATUS || ac_write_fail=1
15114rm -f conf$$subs.awk
15115cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15116_ACAWK
15117cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15118 for (key in S) S_is_set[key] = 1
15119 FS = "\a"
15120
15121}
15122{
15123 line = $ 0
15124 nfields = split(line, field, "@")
15125 substed = 0
15126 len = length(field[1])
15127 for (i = 2; i < nfields; i++) {
15128 key = field[i]
15129 keylen = length(key)
15130 if (S_is_set[key]) {
15131 value = S[key]
15132 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15133 len += length(value) + length(field[++i])
15134 substed = 1
15135 } else
15136 len += 1 + keylen
15137 }
15138
15139 print line
15140}
15141
15142_ACAWK
15143_ACEOF
15144cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15145if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15146 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15147else
15148 cat
15149fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15150 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15151_ACEOF
15152
15153# VPATH may cause trouble with some makes, so we remove $(srcdir),
15154# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15155# trailing colons and then remove the whole line if VPATH becomes empty
15156# (actually we leave an empty line to preserve line numbers).
15157if test "x$srcdir" = x.; then
15158 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15159s/:*\$(srcdir):*/:/
15160s/:*\${srcdir}:*/:/
15161s/:*@srcdir@:*/:/
15162s/^\([^=]*=[ ]*\):*/\1/
15163s/:*$//
15164s/^[^=]*=[ ]*$//
15165}'
15166fi
15167
15168cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15169fi # test -n "$CONFIG_FILES"
15170
15171# Set up the scripts for CONFIG_HEADERS section.
15172# No need to generate them if there are no CONFIG_HEADERS.
15173# This happens for instance with `./config.status Makefile'.
15174if test -n "$CONFIG_HEADERS"; then
15175cat >"$tmp/defines.awk" <<\_ACAWK ||
15176BEGIN {
15177_ACEOF
15178
15179# Transform confdefs.h into an awk script `defines.awk', embedded as
15180# here-document in config.status, that substitutes the proper values into
15181# config.h.in to produce config.h.
15182
15183# Create a delimiter string that does not exist in confdefs.h, to ease
15184# handling of long lines.
15185ac_delim='%!_!# '
15186for ac_last_try in false false :; do
15187 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15188 if test -z "$ac_t"; then
15189 break
15190 elif $ac_last_try; then
15191 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15192 else
15193 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15194 fi
15195done
15196
15197# For the awk script, D is an array of macro values keyed by name,
15198# likewise P contains macro parameters if any. Preserve backslash
15199# newline sequences.
15200
15201ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15202sed -n '
15203s/.\{148\}/&'"$ac_delim"'/g
15204t rset
15205:rset
15206s/^[ ]*#[ ]*define[ ][ ]*/ /
15207t def
15208d
15209:def
15210s/\\$//
15211t bsnl
15212s/["\\]/\\&/g
15213s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15214D["\1"]=" \3"/p
15215s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15216d
15217:bsnl
15218s/["\\]/\\&/g
15219s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15220D["\1"]=" \3\\\\\\n"\\/p
15221t cont
15222s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15223t cont
15224d
15225:cont
15226n
15227s/.\{148\}/&'"$ac_delim"'/g
15228t clear
15229:clear
15230s/\\$//
15231t bsnlc
15232s/["\\]/\\&/g; s/^/"/; s/$/"/p
15233d
15234:bsnlc
15235s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15236b cont
15237' <confdefs.h | sed '
15238s/'"$ac_delim"'/"\\\
15239"/g' >>$CONFIG_STATUS || ac_write_fail=1
15240
15241cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15242 for (key in D) D_is_set[key] = 1
15243 FS = "\a"
15244}
15245/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15246 line = \$ 0
15247 split(line, arg, " ")
15248 if (arg[1] == "#") {
15249 defundef = arg[2]
15250 mac1 = arg[3]
15251 } else {
15252 defundef = substr(arg[1], 2)
15253 mac1 = arg[2]
15254 }
15255 split(mac1, mac2, "(") #)
15256 macro = mac2[1]
15257 prefix = substr(line, 1, index(line, defundef) - 1)
15258 if (D_is_set[macro]) {
15259 # Preserve the white space surrounding the "#".
15260 print prefix "define", macro P[macro] D[macro]
15261 next
15262 } else {
15263 # Replace #undef with comments. This is necessary, for example,
15264 # in the case of _POSIX_SOURCE, which is predefined and required
15265 # on some systems where configure will not decide to define it.
15266 if (defundef == "undef") {
15267 print "/*", prefix defundef, macro, "*/"
15268 next
15269 }
15270 }
15271}
15272{ print }
15273_ACAWK
15274_ACEOF
15275cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15276 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15277fi # test -n "$CONFIG_HEADERS"
15278
15279
15280eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15281shift
15282for ac_tag
15283do
15284 case $ac_tag in
15285 :[FHLC]) ac_mode=$ac_tag; continue;;
15286 esac
15287 case $ac_mode$ac_tag in
15288 :[FHL]*:*);;
15289 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15290 :[FH]-) ac_tag=-:-;;
15291 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15292 esac
15293 ac_save_IFS=$IFS
15294 IFS=:
15295 set x $ac_tag
15296 IFS=$ac_save_IFS
15297 shift
15298 ac_file=$1
15299 shift
15300
15301 case $ac_mode in
15302 :L) ac_source=$1;;
15303 :[FH])
15304 ac_file_inputs=
15305 for ac_f
15306 do
15307 case $ac_f in
15308 -) ac_f="$tmp/stdin";;
15309 *) # Look for the file first in the build tree, then in the source tree
15310 # (if the path is not absolute). The absolute path cannot be DOS-style,
15311 # because $ac_f cannot contain `:'.
15312 test -f "$ac_f" ||
15313 case $ac_f in
15314 [\\/$]*) false;;
15315 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15316 esac ||
15317 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15318 esac
15319 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15320 as_fn_append ac_file_inputs " '$ac_f'"
15321 done
15322
15323 # Let's still pretend it is `configure' which instantiates (i.e., don't
15324 # use $as_me), people would be surprised to read:
15325 # /* config.h. Generated by config.status. */
15326 configure_input='Generated from '`
15327 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15328 `' by configure.'
15329 if test x"$ac_file" != x-; then
15330 configure_input="$ac_file. $configure_input"
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15332$as_echo "$as_me: creating $ac_file" >&6;}
15333 fi
15334 # Neutralize special characters interpreted by sed in replacement strings.
15335 case $configure_input in #(
15336 *\&* | *\|* | *\\* )
15337 ac_sed_conf_input=`$as_echo "$configure_input" |
15338 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15339 *) ac_sed_conf_input=$configure_input;;
15340 esac
15341
15342 case $ac_tag in
15343 *:-:* | *:-) cat >"$tmp/stdin" \
15344 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15345 esac
15346 ;;
15347 esac
15348
15349 ac_dir=`$as_dirname -- "$ac_file" ||
15350$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15351 X"$ac_file" : 'X\(//\)[^/]' \| \
15352 X"$ac_file" : 'X\(//\)$' \| \
15353 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15354$as_echo X"$ac_file" |
15355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15356 s//\1/
15357 q
15358 }
15359 /^X\(\/\/\)[^/].*/{
15360 s//\1/
15361 q
15362 }
15363 /^X\(\/\/\)$/{
15364 s//\1/
15365 q
15366 }
15367 /^X\(\/\).*/{
15368 s//\1/
15369 q
15370 }
15371 s/.*/./; q'`
15372 as_dir="$ac_dir"; as_fn_mkdir_p
15373 ac_builddir=.
15374
15375case "$ac_dir" in
15376.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15377*)
15378 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15379 # A ".." for each directory in $ac_dir_suffix.
15380 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15381 case $ac_top_builddir_sub in
15382 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15383 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15384 esac ;;
15385esac
15386ac_abs_top_builddir=$ac_pwd
15387ac_abs_builddir=$ac_pwd$ac_dir_suffix
15388# for backward compatibility:
15389ac_top_builddir=$ac_top_build_prefix
15390
15391case $srcdir in
15392 .) # We are building in place.
15393 ac_srcdir=.
15394 ac_top_srcdir=$ac_top_builddir_sub
15395 ac_abs_top_srcdir=$ac_pwd ;;
15396 [\\/]* | ?:[\\/]* ) # Absolute name.
15397 ac_srcdir=$srcdir$ac_dir_suffix;
15398 ac_top_srcdir=$srcdir
15399 ac_abs_top_srcdir=$srcdir ;;
15400 *) # Relative name.
15401 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15402 ac_top_srcdir=$ac_top_build_prefix$srcdir
15403 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15404esac
15405ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15406
15407
15408 case $ac_mode in
15409 :F)
15410 #
15411 # CONFIG_FILE
15412 #
15413
15414 case $INSTALL in
15415 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15416 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15417 esac
15418 ac_MKDIR_P=$MKDIR_P
15419 case $MKDIR_P in
15420 [\\/$]* | ?:[\\/]* ) ;;
15421 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15422 esac
15423_ACEOF
15424
15425cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15426# If the template does not know about datarootdir, expand it.
15427# FIXME: This hack should be removed a few years after 2.60.
15428ac_datarootdir_hack=; ac_datarootdir_seen=
15429ac_sed_dataroot='
15430/datarootdir/ {
15431 p
15432 q
15433}
15434/@datadir@/p
15435/@docdir@/p
15436/@infodir@/p
15437/@localedir@/p
15438/@mandir@/p'
15439case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15440*datarootdir*) ac_datarootdir_seen=yes;;
15441*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15443$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15444_ACEOF
15445cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15446 ac_datarootdir_hack='
15447 s&@datadir@&$datadir&g
15448 s&@docdir@&$docdir&g
15449 s&@infodir@&$infodir&g
15450 s&@localedir@&$localedir&g
15451 s&@mandir@&$mandir&g
15452 s&\\\${datarootdir}&$datarootdir&g' ;;
15453esac
15454_ACEOF
15455
15456# Neutralize VPATH when `$srcdir' = `.'.
15457# Shell code in configure.ac might set extrasub.
15458# FIXME: do we really want to maintain this feature?
15459cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15460ac_sed_extra="$ac_vpsub
15461$extrasub
15462_ACEOF
15463cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15464:t
15465/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15466s|@configure_input@|$ac_sed_conf_input|;t t
15467s&@top_builddir@&$ac_top_builddir_sub&;t t
15468s&@top_build_prefix@&$ac_top_build_prefix&;t t
15469s&@srcdir@&$ac_srcdir&;t t
15470s&@abs_srcdir@&$ac_abs_srcdir&;t t
15471s&@top_srcdir@&$ac_top_srcdir&;t t
15472s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15473s&@builddir@&$ac_builddir&;t t
15474s&@abs_builddir@&$ac_abs_builddir&;t t
15475s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15476s&@INSTALL@&$ac_INSTALL&;t t
15477s&@MKDIR_P@&$ac_MKDIR_P&;t t
15478$ac_datarootdir_hack
15479"
15480eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15481 || as_fn_error "could not create $ac_file" "$LINENO" 5
15482
15483test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15484 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15485 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15487which seems to be undefined. Please make sure it is defined." >&5
15488$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15489which seems to be undefined. Please make sure it is defined." >&2;}
15490
15491 rm -f "$tmp/stdin"
15492 case $ac_file in
15493 -) cat "$tmp/out" && rm -f "$tmp/out";;
15494 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15495 esac \
15496 || as_fn_error "could not create $ac_file" "$LINENO" 5
15497 ;;
15498 :H)
15499 #
15500 # CONFIG_HEADER
15501 #
15502 if test x"$ac_file" != x-; then
15503 {
15504 $as_echo "/* $configure_input */" \
15505 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15506 } >"$tmp/config.h" \
15507 || as_fn_error "could not create $ac_file" "$LINENO" 5
15508 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15510$as_echo "$as_me: $ac_file is unchanged" >&6;}
15511 else
15512 rm -f "$ac_file"
15513 mv "$tmp/config.h" "$ac_file" \
15514 || as_fn_error "could not create $ac_file" "$LINENO" 5
15515 fi
15516 else
15517 $as_echo "/* $configure_input */" \
15518 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15519 || as_fn_error "could not create -" "$LINENO" 5
15520 fi
15521# Compute "$ac_file"'s index in $config_headers.
15522_am_arg="$ac_file"
15523_am_stamp_count=1
15524for _am_header in $config_headers :; do
15525 case $_am_header in
15526 $_am_arg | $_am_arg:* )
15527 break ;;
15528 * )
15529 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15530 esac
15531done
15532echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15533$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15534 X"$_am_arg" : 'X\(//\)[^/]' \| \
15535 X"$_am_arg" : 'X\(//\)$' \| \
15536 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15537$as_echo X"$_am_arg" |
15538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15539 s//\1/
15540 q
15541 }
15542 /^X\(\/\/\)[^/].*/{
15543 s//\1/
15544 q
15545 }
15546 /^X\(\/\/\)$/{
15547 s//\1/
15548 q
15549 }
15550 /^X\(\/\).*/{
15551 s//\1/
15552 q
15553 }
15554 s/.*/./; q'`/stamp-h$_am_stamp_count
15555 ;;
15556
15557 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15558$as_echo "$as_me: executing $ac_file commands" >&6;}
15559 ;;
15560 esac
15561
15562
15563 case $ac_file$ac_mode in
15564 "default-1":C)
15565# Only add multilib support code if we just rebuilt the top-level
15566# Makefile.
15567case " $CONFIG_FILES " in
15568 *" Makefile "*)
15569 ac_file=Makefile . ${multi_basedir}/config-ml.in
15570 ;;
15571esac ;;
15572 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15573 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15574 # are listed without --file. Let's play safe and only enable the eval
15575 # if we detect the quoting.
15576 case $CONFIG_FILES in
15577 *\'*) eval set x "$CONFIG_FILES" ;;
15578 *) set x $CONFIG_FILES ;;
15579 esac
15580 shift
15581 for mf
15582 do
15583 # Strip MF so we end up with the name of the file.
15584 mf=`echo "$mf" | sed -e 's/:.*$//'`
15585 # Check whether this is an Automake generated Makefile or not.
15586 # We used to match only the files named `Makefile.in', but
15587 # some people rename them; so instead we look at the file content.
15588 # Grep'ing the first line is not enough: some people post-process
15589 # each Makefile.in and add a new line on top of each file to say so.
15590 # Grep'ing the whole file is not good either: AIX grep has a line
15591 # limit of 2048, but all sed's we know have understand at least 4000.
15592 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15593 dirpart=`$as_dirname -- "$mf" ||
15594$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15595 X"$mf" : 'X\(//\)[^/]' \| \
15596 X"$mf" : 'X\(//\)$' \| \
15597 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15598$as_echo X"$mf" |
15599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15600 s//\1/
15601 q
15602 }
15603 /^X\(\/\/\)[^/].*/{
15604 s//\1/
15605 q
15606 }
15607 /^X\(\/\/\)$/{
15608 s//\1/
15609 q
15610 }
15611 /^X\(\/\).*/{
15612 s//\1/
15613 q
15614 }
15615 s/.*/./; q'`
15616 else
15617 continue
15618 fi
15619 # Extract the definition of DEPDIR, am__include, and am__quote
15620 # from the Makefile without running `make'.
15621 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15622 test -z "$DEPDIR" && continue
15623 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15624 test -z "am__include" && continue
15625 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15626 # When using ansi2knr, U may be empty or an underscore; expand it
15627 U=`sed -n 's/^U = //p' < "$mf"`
15628 # Find all dependency output files, they are included files with
15629 # $(DEPDIR) in their names. We invoke sed twice because it is the
15630 # simplest approach to changing $(DEPDIR) to its actual value in the
15631 # expansion.
15632 for file in `sed -n "
15633 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15634 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15635 # Make sure the directory exists.
15636 test -f "$dirpart/$file" && continue
15637 fdir=`$as_dirname -- "$file" ||
15638$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15639 X"$file" : 'X\(//\)[^/]' \| \
15640 X"$file" : 'X\(//\)$' \| \
15641 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15642$as_echo X"$file" |
15643 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15644 s//\1/
15645 q
15646 }
15647 /^X\(\/\/\)[^/].*/{
15648 s//\1/
15649 q
15650 }
15651 /^X\(\/\/\)$/{
15652 s//\1/
15653 q
15654 }
15655 /^X\(\/\).*/{
15656 s//\1/
15657 q
15658 }
15659 s/.*/./; q'`
15660 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15661 # echo "creating $dirpart/$file"
15662 echo '# dummy' > "$dirpart/$file"
15663 done
15664 done
15665}
15666 ;;
15667 "libtool":C)
15668
15669 # See if we are running on zsh, and set the options which allow our
15670 # commands through without removal of \ escapes.
15671 if test -n "${ZSH_VERSION+set}" ; then
15672 setopt NO_GLOB_SUBST
15673 fi
15674
15675 cfgfile="${ofile}T"
15676 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15677 $RM "$cfgfile"
15678
15679 cat <<_LT_EOF >> "$cfgfile"
15680#! $SHELL
15681
15682# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15683# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15684# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15685# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15686#
15687# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15688# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15689# Written by Gordon Matzigkeit, 1996
15690#
15691# This file is part of GNU Libtool.
15692#
15693# GNU Libtool is free software; you can redistribute it and/or
15694# modify it under the terms of the GNU General Public License as
15695# published by the Free Software Foundation; either version 2 of
15696# the License, or (at your option) any later version.
15697#
15698# As a special exception to the GNU General Public License,
15699# if you distribute this file as part of a program or library that
15700# is built using GNU Libtool, you may include this file under the
15701# same distribution terms that you use for the rest of that program.
15702#
15703# GNU Libtool is distributed in the hope that it will be useful,
15704# but WITHOUT ANY WARRANTY; without even the implied warranty of
15705# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15706# GNU General Public License for more details.
15707#
15708# You should have received a copy of the GNU General Public License
15709# along with GNU Libtool; see the file COPYING. If not, a copy
15710# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15711# obtained by writing to the Free Software Foundation, Inc.,
15712# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15713
15714
15715# The names of the tagged configurations supported by this script.
15716available_tags="GO "
15717
15718# ### BEGIN LIBTOOL CONFIG
15719
15720# A sed program that does not truncate output.
15721SED=$lt_SED
15722
15723# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15724Xsed="\$SED -e 1s/^X//"
15725
15726# A grep program that handles long lines.
15727GREP=$lt_GREP
15728
15729# An ERE matcher.
15730EGREP=$lt_EGREP
15731
15732# A literal string matcher.
15733FGREP=$lt_FGREP
15734
15735# Shell to use when invoking shell scripts.
15736SHELL=$lt_SHELL
15737
15738# An echo program that protects backslashes.
15739ECHO=$lt_ECHO
15740
15741# Which release of libtool.m4 was used?
15742macro_version=$macro_version
15743macro_revision=$macro_revision
15744
15745# Whether or not to build shared libraries.
15746build_libtool_libs=$enable_shared
15747
15748# Whether or not to build static libraries.
15749build_old_libs=$enable_static
15750
15751# What type of objects to build.
15752pic_mode=$pic_mode
15753
15754# Whether or not to optimize for fast installation.
15755fast_install=$enable_fast_install
15756
15757# The host system.
15758host_alias=$host_alias
15759host=$host
15760host_os=$host_os
15761
15762# The build system.
15763build_alias=$build_alias
15764build=$build
15765build_os=$build_os
15766
15767# A BSD- or MS-compatible name lister.
15768NM=$lt_NM
15769
15770# Whether we need soft or hard links.
15771LN_S=$lt_LN_S
15772
15773# What is the maximum length of a command?
15774max_cmd_len=$max_cmd_len
15775
15776# Object file suffix (normally "o").
15777objext=$ac_objext
15778
15779# Executable file suffix (normally "").
15780exeext=$exeext
15781
15782# whether the shell understands "unset".
15783lt_unset=$lt_unset
15784
15785# turn spaces into newlines.
15786SP2NL=$lt_lt_SP2NL
15787
15788# turn newlines into spaces.
15789NL2SP=$lt_lt_NL2SP
15790
15791# An object symbol dumper.
15792OBJDUMP=$lt_OBJDUMP
15793
15794# Method to check whether dependent libraries are shared objects.
15795deplibs_check_method=$lt_deplibs_check_method
15796
15797# Command to use when deplibs_check_method == "file_magic".
15798file_magic_cmd=$lt_file_magic_cmd
15799
15800# The archiver.
15801AR=$lt_AR
15802AR_FLAGS=$lt_AR_FLAGS
15803
15804# A symbol stripping program.
15805STRIP=$lt_STRIP
15806
15807# Commands used to install an old-style archive.
15808RANLIB=$lt_RANLIB
15809old_postinstall_cmds=$lt_old_postinstall_cmds
15810old_postuninstall_cmds=$lt_old_postuninstall_cmds
15811
15812# Whether to use a lock for old archive extraction.
15813lock_old_archive_extraction=$lock_old_archive_extraction
15814
15815# A C compiler.
15816LTCC=$lt_CC
15817
15818# LTCC compiler flags.
15819LTCFLAGS=$lt_CFLAGS
15820
15821# Take the output of nm and produce a listing of raw symbols and C names.
15822global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15823
15824# Transform the output of nm in a proper C declaration.
15825global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15826
15827# Transform the output of nm in a C name address pair.
15828global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15829
15830# Transform the output of nm in a C name address pair when lib prefix is needed.
15831global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15832
15833# The name of the directory that contains temporary libtool files.
15834objdir=$objdir
15835
15836# Used to examine libraries when file_magic_cmd begins with "file".
15837MAGIC_CMD=$MAGIC_CMD
15838
15839# Must we lock files when doing compilation?
15840need_locks=$lt_need_locks
15841
15842# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15843DSYMUTIL=$lt_DSYMUTIL
15844
15845# Tool to change global to local symbols on Mac OS X.
15846NMEDIT=$lt_NMEDIT
15847
15848# Tool to manipulate fat objects and archives on Mac OS X.
15849LIPO=$lt_LIPO
15850
15851# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15852OTOOL=$lt_OTOOL
15853
15854# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15855OTOOL64=$lt_OTOOL64
15856
15857# Old archive suffix (normally "a").
15858libext=$libext
15859
15860# Shared library suffix (normally ".so").
15861shrext_cmds=$lt_shrext_cmds
15862
15863# The commands to extract the exported symbol list from a shared archive.
15864extract_expsyms_cmds=$lt_extract_expsyms_cmds
15865
15866# Variables whose values should be saved in libtool wrapper scripts and
15867# restored at link time.
15868variables_saved_for_relink=$lt_variables_saved_for_relink
15869
15870# Do we need the "lib" prefix for modules?
15871need_lib_prefix=$need_lib_prefix
15872
15873# Do we need a version for libraries?
15874need_version=$need_version
15875
15876# Library versioning type.
15877version_type=$version_type
15878
15879# Shared library runtime path variable.
15880runpath_var=$runpath_var
15881
15882# Shared library path variable.
15883shlibpath_var=$shlibpath_var
15884
15885# Is shlibpath searched before the hard-coded library search path?
15886shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15887
15888# Format of library name prefix.
15889libname_spec=$lt_libname_spec
15890
15891# List of archive names. First name is the real one, the rest are links.
15892# The last name is the one that the linker finds with -lNAME
15893library_names_spec=$lt_library_names_spec
15894
15895# The coded name of the library, if different from the real name.
15896soname_spec=$lt_soname_spec
15897
15898# Permission mode override for installation of shared libraries.
15899install_override_mode=$lt_install_override_mode
15900
15901# Command to use after installation of a shared archive.
15902postinstall_cmds=$lt_postinstall_cmds
15903
15904# Command to use after uninstallation of a shared archive.
15905postuninstall_cmds=$lt_postuninstall_cmds
15906
15907# Commands used to finish a libtool library installation in a directory.
15908finish_cmds=$lt_finish_cmds
15909
15910# As "finish_cmds", except a single script fragment to be evaled but
15911# not shown.
15912finish_eval=$lt_finish_eval
15913
15914# Whether we should hardcode library paths into libraries.
15915hardcode_into_libs=$hardcode_into_libs
15916
15917# Compile-time system search path for libraries.
15918sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15919
15920# Run-time system search path for libraries.
15921sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15922
15923# Whether dlopen is supported.
15924dlopen_support=$enable_dlopen
15925
15926# Whether dlopen of programs is supported.
15927dlopen_self=$enable_dlopen_self
15928
15929# Whether dlopen of statically linked programs is supported.
15930dlopen_self_static=$enable_dlopen_self_static
15931
15932# Commands to strip libraries.
15933old_striplib=$lt_old_striplib
15934striplib=$lt_striplib
15935
15936
15937# The linker used to build libraries.
15938LD=$lt_LD
15939
15940# How to create reloadable object files.
15941reload_flag=$lt_reload_flag
15942reload_cmds=$lt_reload_cmds
15943
15944# Commands used to build an old-style archive.
15945old_archive_cmds=$lt_old_archive_cmds
15946
15947# A language specific compiler.
15948CC=$lt_compiler
15949
15950# Is the compiler the GNU compiler?
15951with_gcc=$GCC
15952
15953# Compiler flag to turn off builtin functions.
15954no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15955
15956# How to pass a linker flag through the compiler.
15957wl=$lt_lt_prog_compiler_wl
15958
15959# Additional compiler flags for building library objects.
15960pic_flag=$lt_lt_prog_compiler_pic
15961
15962# Compiler flag to prevent dynamic linking.
15963link_static_flag=$lt_lt_prog_compiler_static
15964
15965# Does compiler simultaneously support -c and -o options?
15966compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15967
15968# Whether or not to add -lc for building shared libraries.
15969build_libtool_need_lc=$archive_cmds_need_lc
15970
15971# Whether or not to disallow shared libs when runtime libs are static.
15972allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15973
15974# Compiler flag to allow reflexive dlopens.
15975export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15976
15977# Compiler flag to generate shared objects directly from archives.
15978whole_archive_flag_spec=$lt_whole_archive_flag_spec
15979
15980# Whether the compiler copes with passing no objects directly.
15981compiler_needs_object=$lt_compiler_needs_object
15982
15983# Create an old-style archive from a shared archive.
15984old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15985
15986# Create a temporary old-style archive to link instead of a shared archive.
15987old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15988
15989# Commands used to build a shared archive.
15990archive_cmds=$lt_archive_cmds
15991archive_expsym_cmds=$lt_archive_expsym_cmds
15992
15993# Commands used to build a loadable module if different from building
15994# a shared archive.
15995module_cmds=$lt_module_cmds
15996module_expsym_cmds=$lt_module_expsym_cmds
15997
15998# Whether we are building with GNU ld or not.
15999with_gnu_ld=$lt_with_gnu_ld
16000
16001# Flag that allows shared libraries with undefined symbols to be built.
16002allow_undefined_flag=$lt_allow_undefined_flag
16003
16004# Flag that enforces no undefined symbols.
16005no_undefined_flag=$lt_no_undefined_flag
16006
16007# Flag to hardcode \$libdir into a binary during linking.
16008# This must work even if \$libdir does not exist
16009hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16010
16011# If ld is used when linking, flag to hardcode \$libdir into a binary
16012# during linking. This must work even if \$libdir does not exist.
16013hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16014
16015# Whether we need a single "-rpath" flag with a separated argument.
16016hardcode_libdir_separator=$lt_hardcode_libdir_separator
16017
16018# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16019# DIR into the resulting binary.
16020hardcode_direct=$hardcode_direct
16021
16022# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16023# DIR into the resulting binary and the resulting library dependency is
16024# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16025# library is relocated.
16026hardcode_direct_absolute=$hardcode_direct_absolute
16027
16028# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16029# into the resulting binary.
16030hardcode_minus_L=$hardcode_minus_L
16031
16032# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16033# into the resulting binary.
16034hardcode_shlibpath_var=$hardcode_shlibpath_var
16035
16036# Set to "yes" if building a shared library automatically hardcodes DIR
16037# into the library and all subsequent libraries and executables linked
16038# against it.
16039hardcode_automatic=$hardcode_automatic
16040
16041# Set to yes if linker adds runtime paths of dependent libraries
16042# to runtime path list.
16043inherit_rpath=$inherit_rpath
16044
16045# Whether libtool must link a program against all its dependency libraries.
16046link_all_deplibs=$link_all_deplibs
16047
16048# Fix the shell variable \$srcfile for the compiler.
16049fix_srcfile_path=$lt_fix_srcfile_path
16050
16051# Set to "yes" if exported symbols are required.
16052always_export_symbols=$always_export_symbols
16053
16054# The commands to list exported symbols.
16055export_symbols_cmds=$lt_export_symbols_cmds
16056
16057# Symbols that should not be listed in the preloaded symbols.
16058exclude_expsyms=$lt_exclude_expsyms
16059
16060# Symbols that must always be exported.
16061include_expsyms=$lt_include_expsyms
16062
16063# Commands necessary for linking programs (against libraries) with templates.
16064prelink_cmds=$lt_prelink_cmds
16065
16066# Specify filename containing input files.
16067file_list_spec=$lt_file_list_spec
16068
16069# How to hardcode a shared library path into an executable.
16070hardcode_action=$hardcode_action
16071
16072# ### END LIBTOOL CONFIG
16073
16074_LT_EOF
16075
16076 case $host_os in
16077 aix3*)
16078 cat <<\_LT_EOF >> "$cfgfile"
16079# AIX sometimes has problems with the GCC collect2 program. For some
16080# reason, if we set the COLLECT_NAMES environment variable, the problems
16081# vanish in a puff of smoke.
16082if test "X${COLLECT_NAMES+set}" != Xset; then
16083 COLLECT_NAMES=
16084 export COLLECT_NAMES
16085fi
16086_LT_EOF
16087 ;;
16088 esac
16089
16090
16091ltmain="$ac_aux_dir/ltmain.sh"
16092
16093
16094 # We use sed instead of cat because bash on DJGPP gets confused if
16095 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16096 # text mode, it properly converts lines to CR/LF. This bash problem
16097 # is reportedly fixed, but why not run on old versions too?
16098 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16099 || (rm -f "$cfgfile"; exit 1)
16100
16101 case $xsi_shell in
16102 yes)
16103 cat << \_LT_EOF >> "$cfgfile"
16104
16105# func_dirname file append nondir_replacement
16106# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16107# otherwise set result to NONDIR_REPLACEMENT.
16108func_dirname ()
16109{
16110 case ${1} in
16111 */*) func_dirname_result="${1%/*}${2}" ;;
16112 * ) func_dirname_result="${3}" ;;
16113 esac
16114}
16115
16116# func_basename file
16117func_basename ()
16118{
16119 func_basename_result="${1##*/}"
16120}
16121
16122# func_dirname_and_basename file append nondir_replacement
16123# perform func_basename and func_dirname in a single function
16124# call:
16125# dirname: Compute the dirname of FILE. If nonempty,
16126# add APPEND to the result, otherwise set result
16127# to NONDIR_REPLACEMENT.
16128# value returned in "$func_dirname_result"
16129# basename: Compute filename of FILE.
16130# value retuned in "$func_basename_result"
16131# Implementation must be kept synchronized with func_dirname
16132# and func_basename. For efficiency, we do not delegate to
16133# those functions but instead duplicate the functionality here.
16134func_dirname_and_basename ()
16135{
16136 case ${1} in
16137 */*) func_dirname_result="${1%/*}${2}" ;;
16138 * ) func_dirname_result="${3}" ;;
16139 esac
16140 func_basename_result="${1##*/}"
16141}
16142
16143# func_stripname prefix suffix name
16144# strip PREFIX and SUFFIX off of NAME.
16145# PREFIX and SUFFIX must not contain globbing or regex special
16146# characters, hashes, percent signs, but SUFFIX may contain a leading
16147# dot (in which case that matches only a dot).
16148func_stripname ()
16149{
16150 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16151 # positional parameters, so assign one to ordinary parameter first.
16152 func_stripname_result=${3}
16153 func_stripname_result=${func_stripname_result#"${1}"}
16154 func_stripname_result=${func_stripname_result%"${2}"}
16155}
16156
16157# func_opt_split
16158func_opt_split ()
16159{
16160 func_opt_split_opt=${1%%=*}
16161 func_opt_split_arg=${1#*=}
16162}
16163
16164# func_lo2o object
16165func_lo2o ()
16166{
16167 case ${1} in
16168 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16169 *) func_lo2o_result=${1} ;;
16170 esac
16171}
16172
16173# func_xform libobj-or-source
16174func_xform ()
16175{
16176 func_xform_result=${1%.*}.lo
16177}
16178
16179# func_arith arithmetic-term...
16180func_arith ()
16181{
16182 func_arith_result=$(( $* ))
16183}
16184
16185# func_len string
16186# STRING may not start with a hyphen.
16187func_len ()
16188{
16189 func_len_result=${#1}
16190}
16191
16192_LT_EOF
16193 ;;
16194 *) # Bourne compatible functions.
16195 cat << \_LT_EOF >> "$cfgfile"
16196
16197# func_dirname file append nondir_replacement
16198# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16199# otherwise set result to NONDIR_REPLACEMENT.
16200func_dirname ()
16201{
16202 # Extract subdirectory from the argument.
16203 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16204 if test "X$func_dirname_result" = "X${1}"; then
16205 func_dirname_result="${3}"
16206 else
16207 func_dirname_result="$func_dirname_result${2}"
16208 fi
16209}
16210
16211# func_basename file
16212func_basename ()
16213{
16214 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16215}
16216
16217
16218# func_stripname prefix suffix name
16219# strip PREFIX and SUFFIX off of NAME.
16220# PREFIX and SUFFIX must not contain globbing or regex special
16221# characters, hashes, percent signs, but SUFFIX may contain a leading
16222# dot (in which case that matches only a dot).
16223# func_strip_suffix prefix name
16224func_stripname ()
16225{
16226 case ${2} in
16227 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16228 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16229 esac
16230}
16231
16232# sed scripts:
16233my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16234my_sed_long_arg='1s/^-[^=]*=//'
16235
16236# func_opt_split
16237func_opt_split ()
16238{
16239 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16240 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16241}
16242
16243# func_lo2o object
16244func_lo2o ()
16245{
16246 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16247}
16248
16249# func_xform libobj-or-source
16250func_xform ()
16251{
16252 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16253}
16254
16255# func_arith arithmetic-term...
16256func_arith ()
16257{
16258 func_arith_result=`expr "$@"`
16259}
16260
16261# func_len string
16262# STRING may not start with a hyphen.
16263func_len ()
16264{
16265 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16266}
16267
16268_LT_EOF
16269esac
16270
16271case $lt_shell_append in
16272 yes)
16273 cat << \_LT_EOF >> "$cfgfile"
16274
16275# func_append var value
16276# Append VALUE to the end of shell variable VAR.
16277func_append ()
16278{
16279 eval "$1+=\$2"
16280}
16281_LT_EOF
16282 ;;
16283 *)
16284 cat << \_LT_EOF >> "$cfgfile"
16285
16286# func_append var value
16287# Append VALUE to the end of shell variable VAR.
16288func_append ()
16289{
16290 eval "$1=\$$1\$2"
16291}
16292
16293_LT_EOF
16294 ;;
16295 esac
16296
16297
16298 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16299 || (rm -f "$cfgfile"; exit 1)
16300
16301 mv -f "$cfgfile" "$ofile" ||
16302 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16303 chmod +x "$ofile"
16304
16305
16306 cat <<_LT_EOF >> "$ofile"
16307
16308# ### BEGIN LIBTOOL TAG CONFIG: GO
16309
16310# The linker used to build libraries.
16311LD=$lt_LD_GO
16312
16313# How to create reloadable object files.
16314reload_flag=$lt_reload_flag_GO
16315reload_cmds=$lt_reload_cmds_GO
16316
16317# Commands used to build an old-style archive.
16318old_archive_cmds=$lt_old_archive_cmds_GO
16319
16320# A language specific compiler.
16321CC=$lt_compiler_GO
16322
16323# Is the compiler the GNU compiler?
16324with_gcc=$GCC_GO
16325
16326# Compiler flag to turn off builtin functions.
16327no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
16328
16329# How to pass a linker flag through the compiler.
16330wl=$lt_lt_prog_compiler_wl_GO
16331
16332# Additional compiler flags for building library objects.
16333pic_flag=$lt_lt_prog_compiler_pic_GO
16334
16335# Compiler flag to prevent dynamic linking.
16336link_static_flag=$lt_lt_prog_compiler_static_GO
16337
16338# Does compiler simultaneously support -c and -o options?
16339compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
16340
16341# Whether or not to add -lc for building shared libraries.
16342build_libtool_need_lc=$archive_cmds_need_lc_GO
16343
16344# Whether or not to disallow shared libs when runtime libs are static.
16345allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
16346
16347# Compiler flag to allow reflexive dlopens.
16348export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
16349
16350# Compiler flag to generate shared objects directly from archives.
16351whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
16352
16353# Whether the compiler copes with passing no objects directly.
16354compiler_needs_object=$lt_compiler_needs_object_GO
16355
16356# Create an old-style archive from a shared archive.
16357old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
16358
16359# Create a temporary old-style archive to link instead of a shared archive.
16360old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
16361
16362# Commands used to build a shared archive.
16363archive_cmds=$lt_archive_cmds_GO
16364archive_expsym_cmds=$lt_archive_expsym_cmds_GO
16365
16366# Commands used to build a loadable module if different from building
16367# a shared archive.
16368module_cmds=$lt_module_cmds_GO
16369module_expsym_cmds=$lt_module_expsym_cmds_GO
16370
16371# Whether we are building with GNU ld or not.
16372with_gnu_ld=$lt_with_gnu_ld_GO
16373
16374# Flag that allows shared libraries with undefined symbols to be built.
16375allow_undefined_flag=$lt_allow_undefined_flag_GO
16376
16377# Flag that enforces no undefined symbols.
16378no_undefined_flag=$lt_no_undefined_flag_GO
16379
16380# Flag to hardcode \$libdir into a binary during linking.
16381# This must work even if \$libdir does not exist
16382hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
16383
16384# If ld is used when linking, flag to hardcode \$libdir into a binary
16385# during linking. This must work even if \$libdir does not exist.
16386hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
16387
16388# Whether we need a single "-rpath" flag with a separated argument.
16389hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
16390
16391# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16392# DIR into the resulting binary.
16393hardcode_direct=$hardcode_direct_GO
16394
16395# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16396# DIR into the resulting binary and the resulting library dependency is
16397# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16398# library is relocated.
16399hardcode_direct_absolute=$hardcode_direct_absolute_GO
16400
16401# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16402# into the resulting binary.
16403hardcode_minus_L=$hardcode_minus_L_GO
16404
16405# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16406# into the resulting binary.
16407hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
16408
16409# Set to "yes" if building a shared library automatically hardcodes DIR
16410# into the library and all subsequent libraries and executables linked
16411# against it.
16412hardcode_automatic=$hardcode_automatic_GO
16413
16414# Set to yes if linker adds runtime paths of dependent libraries
16415# to runtime path list.
16416inherit_rpath=$inherit_rpath_GO
16417
16418# Whether libtool must link a program against all its dependency libraries.
16419link_all_deplibs=$link_all_deplibs_GO
16420
16421# Fix the shell variable \$srcfile for the compiler.
16422fix_srcfile_path=$lt_fix_srcfile_path_GO
16423
16424# Set to "yes" if exported symbols are required.
16425always_export_symbols=$always_export_symbols_GO
16426
16427# The commands to list exported symbols.
16428export_symbols_cmds=$lt_export_symbols_cmds_GO
16429
16430# Symbols that should not be listed in the preloaded symbols.
16431exclude_expsyms=$lt_exclude_expsyms_GO
16432
16433# Symbols that must always be exported.
16434include_expsyms=$lt_include_expsyms_GO
16435
16436# Commands necessary for linking programs (against libraries) with templates.
16437prelink_cmds=$lt_prelink_cmds_GO
16438
16439# Specify filename containing input files.
16440file_list_spec=$lt_file_list_spec_GO
16441
16442# How to hardcode a shared library path into an executable.
16443hardcode_action=$hardcode_action_GO
16444
16445# ### END LIBTOOL TAG CONFIG: GO
16446_LT_EOF
16447
16448 ;;
16449 "default":C) if test -n "$CONFIG_FILES"; then
16450 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
16451 # that multilib installs will end up installed in the correct place.
16452 # The testsuite needs it for multilib-aware ABI baseline files.
16453 # To work around this not being passed down from config-ml.in ->
16454 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
16455 # append it here. Only modify Makefiles that have just been created.
16456 #
16457 # Also, get rid of this simulated-VPATH thing that automake does.
16458 cat > vpsed << \_EOF
16459s!`test -f '$<' || echo '$(srcdir)/'`!!
16460_EOF
16461 for i in $SUBDIRS; do
16462 case $CONFIG_FILES in
16463 *${i}/Makefile*)
16464 #echo "Adding MULTISUBDIR to $i/Makefile"
16465 sed -f vpsed $i/Makefile > tmp
16466 grep '^MULTISUBDIR =' Makefile >> tmp
16467 mv tmp $i/Makefile
16468 ;;
16469 esac
16470 done
16471 rm vpsed
16472 fi
16473 ;;
16474
16475 esac
16476done # for ac_tag
16477
16478
16479as_fn_exit 0
16480_ACEOF
16481ac_clean_files=$ac_clean_files_save
16482
16483test $ac_write_fail = 0 ||
16484 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16485
16486
16487# configure is writing to config.log, and then calls config.status.
16488# config.status does its own redirection, appending to config.log.
16489# Unfortunately, on DOS this fails, as config.log is still kept open
16490# by configure, so config.status won't be able to write to it; its
16491# output is simply discarded. So we exec the FD to /dev/null,
16492# effectively closing config.log, so it can be properly (re)opened and
16493# appended to by config.status. When coming back to configure, we
16494# need to make the FD available again.
16495if test "$no_create" != yes; then
16496 ac_cs_success=:
16497 ac_config_status_args=
16498 test "$silent" = yes &&
16499 ac_config_status_args="$ac_config_status_args --quiet"
16500 exec 5>/dev/null
16501 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16502 exec 5>>config.log
16503 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16504 # would make configure fail if this is the last instruction.
16505 $ac_cs_success || as_fn_exit $?
16506fi
16507if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16509$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16510fi
16511