]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgo/configure
PR target/78794
[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
8dcdfb38 605HAVE_STAT_TIMESPEC_FALSE
606HAVE_STAT_TIMESPEC_TRUE
d772e63b 607STRUCT_EPOLL_EVENT_FD_OFFSET
608SIZEOF_STRUCT_EPOLL_EVENT
68e1881d 609MATH_FLAG
e440a328 610STRINGOPS_FLAG
37d6b690 611HAVE_WAIT4_FALSE
612HAVE_WAIT4_TRUE
ccd3f476 613HAVE_STRERROR_R_FALSE
614HAVE_STRERROR_R_TRUE
e440a328 615HAVE_SYS_MMAN_H_FALSE
616HAVE_SYS_MMAN_H_TRUE
f555a9df 617PTHREAD_LIBS
618PTHREAD_CFLAGS
cea7ac49 619NET_LIBS
7d17fab3 620MATH_LIBS
b5f8bff0 621GOC_IS_LLGO_FALSE
622GOC_IS_LLGO_TRUE
242418a3 623GO_SPLIT_STACK
e440a328 624USING_SPLIT_STACK_FALSE
625USING_SPLIT_STACK_TRUE
626SPLIT_STACK
69db433d 627OSCFLAGS
d477de41 628GO_SYSCALL_OS_ARCH_FILE
629GO_SYSCALL_OS_FILE
630GO_LIBCALL_OS_ARCH_FILE
631GO_LIBCALL_OS_FILE
91d733e1 632ALLGOARCHFAMILY
633ALLGOARCH
634GOARCH_MINFRAMESIZE
635GOARCH_HUGEPAGESIZE
636GOARCH_INT64ALIGN
637GOARCH_PCQUANTUM
638GOARCH_PHYSPAGESIZE
639GOARCH_CACHELINESIZE
640GOARCH_BIGENDIAN
641GOARCH_FAMILY
7731bf71 642GOARCH
6222f4a8 643USE_DEJAGNU
91d733e1 644ALLGOOS
7731bf71 645GOOS
be239ed2 646LIBGO_IS_BSD_FALSE
647LIBGO_IS_BSD_TRUE
cea7ac49 648LIBGO_IS_SOLARIS_FALSE
649LIBGO_IS_SOLARIS_TRUE
e440a328 650LIBGO_IS_RTEMS_FALSE
651LIBGO_IS_RTEMS_TRUE
0ce10ea1 652LIBGO_IS_DRAGONFLY_FALSE
653LIBGO_IS_DRAGONFLY_TRUE
fb08d005 654LIBGO_IS_OPENBSD_FALSE
655LIBGO_IS_OPENBSD_TRUE
86240434 656LIBGO_IS_NETBSD_FALSE
657LIBGO_IS_NETBSD_TRUE
e440a328 658LIBGO_IS_LINUX_FALSE
659LIBGO_IS_LINUX_TRUE
524b52f8 660LIBGO_IS_IRIX_FALSE
661LIBGO_IS_IRIX_TRUE
e440a328 662LIBGO_IS_FREEBSD_FALSE
663LIBGO_IS_FREEBSD_TRUE
664LIBGO_IS_DARWIN_FALSE
665LIBGO_IS_DARWIN_TRUE
4180345a 666go_include
7920387d 667LIBATOMIC
63e457ad 668USE_LIBFFI_FALSE
669USE_LIBFFI_TRUE
e440a328 670LIBFFIINCS
671LIBFFI
61efdf66 672nover_glibgo_toolexeclibdir
e440a328 673glibgo_toolexeclibdir
674glibgo_toolexecdir
e440a328 675WERROR
676WARN_FLAGS
a27e1015 677CC_FOR_BUILD
e440a328 678enable_static
679enable_shared
c9c0c1d2 680CPP
e440a328 681OTOOL64
682OTOOL
683LIPO
684NMEDIT
685DSYMUTIL
686AR
687OBJDUMP
688LN_S
689NM
690ac_ct_DUMPBIN
691DUMPBIN
692LIBTOOL
693OBJCOPY
694RANLIB
695LD
696FGREP
697EGREP
698GREP
c9c0c1d2 699SED
e440a328 700MAINT
701MAINTAINER_MODE_FALSE
702MAINTAINER_MODE_TRUE
703GOCFLAGS
704GOC
705am__fastdepCC_FALSE
706am__fastdepCC_TRUE
707CCDEPMODE
e92f1942 708am__nodep
e440a328 709AMDEPBACKSLASH
710AMDEP_FALSE
711AMDEP_TRUE
712am__quote
713am__include
714DEPDIR
715OBJEXT
716EXEEXT
717ac_ct_CC
718CPPFLAGS
719LDFLAGS
720CFLAGS
721CC
722am__untar
723am__tar
724AMTAR
725am__leading_dot
726SET_MAKE
727AWK
728mkdir_p
729MKDIR_P
730INSTALL_STRIP_PROGRAM
731STRIP
732install_sh
733MAKEINFO
734AUTOHEADER
735AUTOMAKE
736AUTOCONF
737ACLOCAL
738VERSION
739PACKAGE
740CYGPATH_W
741am__isrc
742INSTALL_DATA
743INSTALL_SCRIPT
744INSTALL_PROGRAM
745target_os
746target_vendor
747target_cpu
748target
749host_os
750host_vendor
751host_cpu
752host
753build_os
754build_vendor
755build_cpu
756build
757multi_basedir
758libtool_VERSION
759target_alias
760host_alias
761build_alias
762LIBS
763ECHO_T
764ECHO_N
765ECHO_C
766DEFS
767mandir
768localedir
769libdir
770psdir
771pdfdir
772dvidir
773htmldir
774infodir
775docdir
776oldincludedir
777includedir
778localstatedir
779sharedstatedir
780sysconfdir
781datadir
782datarootdir
783libexecdir
784sbindir
785bindir
786program_transform_name
787prefix
788exec_prefix
789PACKAGE_URL
790PACKAGE_BUGREPORT
791PACKAGE_STRING
792PACKAGE_VERSION
793PACKAGE_TARNAME
794PACKAGE_NAME
795PATH_SEPARATOR
796SHELL'
797ac_subst_files=''
798ac_user_opts='
799enable_option_checking
800enable_multilib
801enable_dependency_tracking
802enable_maintainer_mode
803with_gnu_ld
804enable_shared
805enable_static
806with_pic
807enable_fast_install
808enable_libtool_lock
75935341 809enable_werror
e440a328 810enable_version_specific_runtime_libs
811with_libffi
7920387d 812with_libatomic
4a273582 813with_system_libunwind
e440a328 814'
815 ac_precious_vars='build_alias
816host_alias
817target_alias
818CPP
819CPPFLAGS'
820
821
822# Initialize some variables set by options.
823ac_init_help=
824ac_init_version=false
825ac_unrecognized_opts=
826ac_unrecognized_sep=
827# The variables have the same names as the options, with
828# dashes changed to underlines.
829cache_file=/dev/null
830exec_prefix=NONE
831no_create=
832no_recursion=
833prefix=NONE
834program_prefix=NONE
835program_suffix=NONE
836program_transform_name=s,x,x,
837silent=
838site=
839srcdir=
840verbose=
841x_includes=NONE
842x_libraries=NONE
843
844# Installation directory options.
845# These are left unexpanded so users can "make install exec_prefix=/foo"
846# and all the variables that are supposed to be based on exec_prefix
847# by default will actually change.
848# Use braces instead of parens because sh, perl, etc. also accept them.
849# (The list follows the same order as the GNU Coding Standards.)
850bindir='${exec_prefix}/bin'
851sbindir='${exec_prefix}/sbin'
852libexecdir='${exec_prefix}/libexec'
853datarootdir='${prefix}/share'
854datadir='${datarootdir}'
855sysconfdir='${prefix}/etc'
856sharedstatedir='${prefix}/com'
857localstatedir='${prefix}/var'
858includedir='${prefix}/include'
859oldincludedir='/usr/include'
860docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
861infodir='${datarootdir}/info'
862htmldir='${docdir}'
863dvidir='${docdir}'
864pdfdir='${docdir}'
865psdir='${docdir}'
866libdir='${exec_prefix}/lib'
867localedir='${datarootdir}/locale'
868mandir='${datarootdir}/man'
869
870ac_prev=
871ac_dashdash=
872for ac_option
873do
874 # If the previous option needs an argument, assign it.
875 if test -n "$ac_prev"; then
876 eval $ac_prev=\$ac_option
877 ac_prev=
878 continue
879 fi
880
881 case $ac_option in
882 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883 *) ac_optarg=yes ;;
884 esac
885
886 # Accept the important Cygnus configure options, so we can diagnose typos.
887
888 case $ac_dashdash$ac_option in
889 --)
890 ac_dashdash=yes ;;
891
892 -bindir | --bindir | --bindi | --bind | --bin | --bi)
893 ac_prev=bindir ;;
894 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895 bindir=$ac_optarg ;;
896
897 -build | --build | --buil | --bui | --bu)
898 ac_prev=build_alias ;;
899 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900 build_alias=$ac_optarg ;;
901
902 -cache-file | --cache-file | --cache-fil | --cache-fi \
903 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904 ac_prev=cache_file ;;
905 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907 cache_file=$ac_optarg ;;
908
909 --config-cache | -C)
910 cache_file=config.cache ;;
911
912 -datadir | --datadir | --datadi | --datad)
913 ac_prev=datadir ;;
914 -datadir=* | --datadir=* | --datadi=* | --datad=*)
915 datadir=$ac_optarg ;;
916
917 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918 | --dataroo | --dataro | --datar)
919 ac_prev=datarootdir ;;
920 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922 datarootdir=$ac_optarg ;;
923
924 -disable-* | --disable-*)
925 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928 as_fn_error "invalid feature name: $ac_useropt"
929 ac_useropt_orig=$ac_useropt
930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931 case $ac_user_opts in
932 *"
933"enable_$ac_useropt"
934"*) ;;
935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
936 ac_unrecognized_sep=', ';;
937 esac
938 eval enable_$ac_useropt=no ;;
939
940 -docdir | --docdir | --docdi | --doc | --do)
941 ac_prev=docdir ;;
942 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943 docdir=$ac_optarg ;;
944
945 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946 ac_prev=dvidir ;;
947 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948 dvidir=$ac_optarg ;;
949
950 -enable-* | --enable-*)
951 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954 as_fn_error "invalid feature name: $ac_useropt"
955 ac_useropt_orig=$ac_useropt
956 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957 case $ac_user_opts in
958 *"
959"enable_$ac_useropt"
960"*) ;;
961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
962 ac_unrecognized_sep=', ';;
963 esac
964 eval enable_$ac_useropt=\$ac_optarg ;;
965
966 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
967 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
968 | --exec | --exe | --ex)
969 ac_prev=exec_prefix ;;
970 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
971 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
972 | --exec=* | --exe=* | --ex=*)
973 exec_prefix=$ac_optarg ;;
974
975 -gas | --gas | --ga | --g)
976 # Obsolete; use --with-gas.
977 with_gas=yes ;;
978
979 -help | --help | --hel | --he | -h)
980 ac_init_help=long ;;
981 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
982 ac_init_help=recursive ;;
983 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
984 ac_init_help=short ;;
985
986 -host | --host | --hos | --ho)
987 ac_prev=host_alias ;;
988 -host=* | --host=* | --hos=* | --ho=*)
989 host_alias=$ac_optarg ;;
990
991 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
992 ac_prev=htmldir ;;
993 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
994 | --ht=*)
995 htmldir=$ac_optarg ;;
996
997 -includedir | --includedir | --includedi | --included | --include \
998 | --includ | --inclu | --incl | --inc)
999 ac_prev=includedir ;;
1000 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1001 | --includ=* | --inclu=* | --incl=* | --inc=*)
1002 includedir=$ac_optarg ;;
1003
1004 -infodir | --infodir | --infodi | --infod | --info | --inf)
1005 ac_prev=infodir ;;
1006 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1007 infodir=$ac_optarg ;;
1008
1009 -libdir | --libdir | --libdi | --libd)
1010 ac_prev=libdir ;;
1011 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1012 libdir=$ac_optarg ;;
1013
1014 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1015 | --libexe | --libex | --libe)
1016 ac_prev=libexecdir ;;
1017 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1018 | --libexe=* | --libex=* | --libe=*)
1019 libexecdir=$ac_optarg ;;
1020
1021 -localedir | --localedir | --localedi | --localed | --locale)
1022 ac_prev=localedir ;;
1023 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1024 localedir=$ac_optarg ;;
1025
1026 -localstatedir | --localstatedir | --localstatedi | --localstated \
1027 | --localstate | --localstat | --localsta | --localst | --locals)
1028 ac_prev=localstatedir ;;
1029 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1030 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1031 localstatedir=$ac_optarg ;;
1032
1033 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1034 ac_prev=mandir ;;
1035 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1036 mandir=$ac_optarg ;;
1037
1038 -nfp | --nfp | --nf)
1039 # Obsolete; use --without-fp.
1040 with_fp=no ;;
1041
1042 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1043 | --no-cr | --no-c | -n)
1044 no_create=yes ;;
1045
1046 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1047 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048 no_recursion=yes ;;
1049
1050 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1051 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1052 | --oldin | --oldi | --old | --ol | --o)
1053 ac_prev=oldincludedir ;;
1054 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1055 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1056 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1057 oldincludedir=$ac_optarg ;;
1058
1059 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1060 ac_prev=prefix ;;
1061 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1062 prefix=$ac_optarg ;;
1063
1064 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1065 | --program-pre | --program-pr | --program-p)
1066 ac_prev=program_prefix ;;
1067 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1068 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1069 program_prefix=$ac_optarg ;;
1070
1071 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1072 | --program-suf | --program-su | --program-s)
1073 ac_prev=program_suffix ;;
1074 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1075 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1076 program_suffix=$ac_optarg ;;
1077
1078 -program-transform-name | --program-transform-name \
1079 | --program-transform-nam | --program-transform-na \
1080 | --program-transform-n | --program-transform- \
1081 | --program-transform | --program-transfor \
1082 | --program-transfo | --program-transf \
1083 | --program-trans | --program-tran \
1084 | --progr-tra | --program-tr | --program-t)
1085 ac_prev=program_transform_name ;;
1086 -program-transform-name=* | --program-transform-name=* \
1087 | --program-transform-nam=* | --program-transform-na=* \
1088 | --program-transform-n=* | --program-transform-=* \
1089 | --program-transform=* | --program-transfor=* \
1090 | --program-transfo=* | --program-transf=* \
1091 | --program-trans=* | --program-tran=* \
1092 | --progr-tra=* | --program-tr=* | --program-t=*)
1093 program_transform_name=$ac_optarg ;;
1094
1095 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1096 ac_prev=pdfdir ;;
1097 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1098 pdfdir=$ac_optarg ;;
1099
1100 -psdir | --psdir | --psdi | --psd | --ps)
1101 ac_prev=psdir ;;
1102 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103 psdir=$ac_optarg ;;
1104
1105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1106 | -silent | --silent | --silen | --sile | --sil)
1107 silent=yes ;;
1108
1109 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1110 ac_prev=sbindir ;;
1111 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1112 | --sbi=* | --sb=*)
1113 sbindir=$ac_optarg ;;
1114
1115 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1116 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1117 | --sharedst | --shareds | --shared | --share | --shar \
1118 | --sha | --sh)
1119 ac_prev=sharedstatedir ;;
1120 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1121 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1122 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1123 | --sha=* | --sh=*)
1124 sharedstatedir=$ac_optarg ;;
1125
1126 -site | --site | --sit)
1127 ac_prev=site ;;
1128 -site=* | --site=* | --sit=*)
1129 site=$ac_optarg ;;
1130
1131 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1132 ac_prev=srcdir ;;
1133 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1134 srcdir=$ac_optarg ;;
1135
1136 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1137 | --syscon | --sysco | --sysc | --sys | --sy)
1138 ac_prev=sysconfdir ;;
1139 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1140 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1141 sysconfdir=$ac_optarg ;;
1142
1143 -target | --target | --targe | --targ | --tar | --ta | --t)
1144 ac_prev=target_alias ;;
1145 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1146 target_alias=$ac_optarg ;;
1147
1148 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149 verbose=yes ;;
1150
1151 -version | --version | --versio | --versi | --vers | -V)
1152 ac_init_version=: ;;
1153
1154 -with-* | --with-*)
1155 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158 as_fn_error "invalid package name: $ac_useropt"
1159 ac_useropt_orig=$ac_useropt
1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1162 *"
1163"with_$ac_useropt"
1164"*) ;;
1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1166 ac_unrecognized_sep=', ';;
1167 esac
1168 eval with_$ac_useropt=\$ac_optarg ;;
1169
1170 -without-* | --without-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error "invalid package name: $ac_useropt"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1178 *"
1179"with_$ac_useropt"
1180"*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1183 esac
1184 eval with_$ac_useropt=no ;;
1185
1186 --x)
1187 # Obsolete; use --with-x.
1188 with_x=yes ;;
1189
1190 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1191 | --x-incl | --x-inc | --x-in | --x-i)
1192 ac_prev=x_includes ;;
1193 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1194 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1195 x_includes=$ac_optarg ;;
1196
1197 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1198 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1199 ac_prev=x_libraries ;;
1200 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1201 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1202 x_libraries=$ac_optarg ;;
1203
1204 -*) as_fn_error "unrecognized option: \`$ac_option'
1205Try \`$0 --help' for more information."
1206 ;;
1207
1208 *=*)
1209 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1210 # Reject names that are not valid shell variable names.
1211 case $ac_envvar in #(
1212 '' | [0-9]* | *[!_$as_cr_alnum]* )
1213 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1214 esac
1215 eval $ac_envvar=\$ac_optarg
1216 export $ac_envvar ;;
1217
1218 *)
1219 # FIXME: should be removed in autoconf 3.0.
1220 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1221 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1223 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1224 ;;
1225
1226 esac
1227done
1228
1229if test -n "$ac_prev"; then
1230 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1231 as_fn_error "missing argument to $ac_option"
1232fi
1233
1234if test -n "$ac_unrecognized_opts"; then
1235 case $enable_option_checking in
1236 no) ;;
1237 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1238 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1239 esac
1240fi
1241
1242# Check all directory arguments for consistency.
1243for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1244 datadir sysconfdir sharedstatedir localstatedir includedir \
1245 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1246 libdir localedir mandir
1247do
1248 eval ac_val=\$$ac_var
1249 # Remove trailing slashes.
1250 case $ac_val in
1251 */ )
1252 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1253 eval $ac_var=\$ac_val;;
1254 esac
1255 # Be sure to have absolute directory names.
1256 case $ac_val in
1257 [\\/$]* | ?:[\\/]* ) continue;;
1258 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1259 esac
1260 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1261done
1262
1263# There might be people who depend on the old broken behavior: `$host'
1264# used to hold the argument of --host etc.
1265# FIXME: To remove some day.
1266build=$build_alias
1267host=$host_alias
1268target=$target_alias
1269
1270# FIXME: To remove some day.
1271if test "x$host_alias" != x; then
1272 if test "x$build_alias" = x; then
1273 cross_compiling=maybe
1274 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1275 If a cross compiler is detected then cross compile mode will be used." >&2
1276 elif test "x$build_alias" != "x$host_alias"; then
1277 cross_compiling=yes
1278 fi
1279fi
1280
1281ac_tool_prefix=
1282test -n "$host_alias" && ac_tool_prefix=$host_alias-
1283
1284test "$silent" = yes && exec 6>/dev/null
1285
1286
1287ac_pwd=`pwd` && test -n "$ac_pwd" &&
1288ac_ls_di=`ls -di .` &&
1289ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1290 as_fn_error "working directory cannot be determined"
1291test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1292 as_fn_error "pwd does not report name of working directory"
1293
1294
1295# Find the source files, if location was not specified.
1296if test -z "$srcdir"; then
1297 ac_srcdir_defaulted=yes
1298 # Try the directory containing this script, then the parent directory.
1299 ac_confdir=`$as_dirname -- "$as_myself" ||
1300$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1301 X"$as_myself" : 'X\(//\)[^/]' \| \
1302 X"$as_myself" : 'X\(//\)$' \| \
1303 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1304$as_echo X"$as_myself" |
1305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1306 s//\1/
1307 q
1308 }
1309 /^X\(\/\/\)[^/].*/{
1310 s//\1/
1311 q
1312 }
1313 /^X\(\/\/\)$/{
1314 s//\1/
1315 q
1316 }
1317 /^X\(\/\).*/{
1318 s//\1/
1319 q
1320 }
1321 s/.*/./; q'`
1322 srcdir=$ac_confdir
1323 if test ! -r "$srcdir/$ac_unique_file"; then
1324 srcdir=..
1325 fi
1326else
1327 ac_srcdir_defaulted=no
1328fi
1329if test ! -r "$srcdir/$ac_unique_file"; then
1330 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1331 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1332fi
1333ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1334ac_abs_confdir=`(
1335 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1336 pwd)`
1337# When building in place, set srcdir=.
1338if test "$ac_abs_confdir" = "$ac_pwd"; then
1339 srcdir=.
1340fi
1341# Remove unnecessary trailing slashes from srcdir.
1342# Double slashes in file names in object file debugging info
1343# mess up M-x gdb in Emacs.
1344case $srcdir in
1345*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1346esac
1347for ac_var in $ac_precious_vars; do
1348 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1349 eval ac_env_${ac_var}_value=\$${ac_var}
1350 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1351 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1352done
1353
1354#
1355# Report the --help message.
1356#
1357if test "$ac_init_help" = "long"; then
1358 # Omit some internal or obsolete options to make the list less imposing.
1359 # This message is too long to be a string in the A/UX 3.1 sh.
1360 cat <<_ACEOF
1361\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1362
1363Usage: $0 [OPTION]... [VAR=VALUE]...
1364
1365To assign environment variables (e.g., CC, CFLAGS...), specify them as
1366VAR=VALUE. See below for descriptions of some of the useful variables.
1367
1368Defaults for the options are specified in brackets.
1369
1370Configuration:
1371 -h, --help display this help and exit
1372 --help=short display options specific to this package
1373 --help=recursive display the short help of all the included packages
1374 -V, --version display version information and exit
1375 -q, --quiet, --silent do not print \`checking...' messages
1376 --cache-file=FILE cache test results in FILE [disabled]
1377 -C, --config-cache alias for \`--cache-file=config.cache'
1378 -n, --no-create do not create output files
1379 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1380
1381Installation directories:
1382 --prefix=PREFIX install architecture-independent files in PREFIX
1383 [$ac_default_prefix]
1384 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1385 [PREFIX]
1386
1387By default, \`make install' will install all the files in
1388\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1389an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1390for instance \`--prefix=\$HOME'.
1391
1392For better control, use the options below.
1393
1394Fine tuning of the installation directories:
1395 --bindir=DIR user executables [EPREFIX/bin]
1396 --sbindir=DIR system admin executables [EPREFIX/sbin]
1397 --libexecdir=DIR program executables [EPREFIX/libexec]
1398 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1399 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1400 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1401 --libdir=DIR object code libraries [EPREFIX/lib]
1402 --includedir=DIR C header files [PREFIX/include]
1403 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1404 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1405 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1406 --infodir=DIR info documentation [DATAROOTDIR/info]
1407 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1408 --mandir=DIR man documentation [DATAROOTDIR/man]
1409 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1410 --htmldir=DIR html documentation [DOCDIR]
1411 --dvidir=DIR dvi documentation [DOCDIR]
1412 --pdfdir=DIR pdf documentation [DOCDIR]
1413 --psdir=DIR ps documentation [DOCDIR]
1414_ACEOF
1415
1416 cat <<\_ACEOF
1417
1418Program names:
1419 --program-prefix=PREFIX prepend PREFIX to installed program names
1420 --program-suffix=SUFFIX append SUFFIX to installed program names
1421 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1422
1423System types:
1424 --build=BUILD configure for building on BUILD [guessed]
1425 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1426 --target=TARGET configure for building compilers for TARGET [HOST]
1427_ACEOF
1428fi
1429
1430if test -n "$ac_init_help"; then
1431 case $ac_init_help in
1432 short | recursive ) echo "Configuration of package-unused version-unused:";;
1433 esac
1434 cat <<\_ACEOF
1435
1436Optional Features:
1437 --disable-option-checking ignore unrecognized --enable/--with options
1438 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1439 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1440 --enable-multilib build many library versions (default)
1441 --disable-dependency-tracking speeds up one-time build
1442 --enable-dependency-tracking do not reject slow dependency extractors
1443 --enable-maintainer-mode enable make rules and dependencies not useful
1444 (and sometimes confusing) to the casual installer
1445 --enable-shared[=PKGS] build shared libraries [default=yes]
1446 --enable-static[=PKGS] build static libraries [default=yes]
1447 --enable-fast-install[=PKGS]
1448 optimize for fast installation [default=yes]
1449 --disable-libtool-lock avoid locking (might break parallel builds)
75935341 1450 --enable-werror turns on -Werror [default=yes]
e440a328 1451 --enable-version-specific-runtime-libs
1452 Specify that runtime libraries should be installed
1453 in a compiler-specific directory
1454
1455Optional Packages:
1456 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1457 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1458 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1459 --with-pic try to use only PIC/non-PIC objects [default=use
1460 both]
1461 --without-libffi don't use libffi
7920387d 1462 --without-libatomic don't use libatomic
4a273582 1463 --with-system-libunwind use installed libunwind
e440a328 1464
1465Some influential environment variables:
1466 CC C compiler command
1467 CFLAGS C compiler flags
1468 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1469 nonstandard directory <lib dir>
1470 LIBS libraries to pass to the linker, e.g. -l<library>
1471 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1472 you have headers in a nonstandard directory <include dir>
1473 GOC Go compiler command
1474 GOCFLAGS Go compiler flags
1475 CPP C preprocessor
1476
1477Use these variables to override the choices made by `configure' or to help
1478it to find libraries and programs with nonstandard names/locations.
1479
1480Report bugs to the package provider.
1481_ACEOF
1482ac_status=$?
1483fi
1484
1485if test "$ac_init_help" = "recursive"; then
1486 # If there are subdirs, report their specific --help.
1487 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1488 test -d "$ac_dir" ||
1489 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1490 continue
1491 ac_builddir=.
1492
1493case "$ac_dir" in
1494.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495*)
1496 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1497 # A ".." for each directory in $ac_dir_suffix.
1498 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1499 case $ac_top_builddir_sub in
1500 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1502 esac ;;
1503esac
1504ac_abs_top_builddir=$ac_pwd
1505ac_abs_builddir=$ac_pwd$ac_dir_suffix
1506# for backward compatibility:
1507ac_top_builddir=$ac_top_build_prefix
1508
1509case $srcdir in
1510 .) # We are building in place.
1511 ac_srcdir=.
1512 ac_top_srcdir=$ac_top_builddir_sub
1513 ac_abs_top_srcdir=$ac_pwd ;;
1514 [\\/]* | ?:[\\/]* ) # Absolute name.
1515 ac_srcdir=$srcdir$ac_dir_suffix;
1516 ac_top_srcdir=$srcdir
1517 ac_abs_top_srcdir=$srcdir ;;
1518 *) # Relative name.
1519 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1520 ac_top_srcdir=$ac_top_build_prefix$srcdir
1521 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1522esac
1523ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524
1525 cd "$ac_dir" || { ac_status=$?; continue; }
1526 # Check for guested configure.
1527 if test -f "$ac_srcdir/configure.gnu"; then
1528 echo &&
1529 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1530 elif test -f "$ac_srcdir/configure"; then
1531 echo &&
1532 $SHELL "$ac_srcdir/configure" --help=recursive
1533 else
1534 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1535 fi || ac_status=$?
1536 cd "$ac_pwd" || { ac_status=$?; break; }
1537 done
1538fi
1539
1540test -n "$ac_init_help" && exit $ac_status
1541if $ac_init_version; then
1542 cat <<\_ACEOF
1543package-unused configure version-unused
1544generated by GNU Autoconf 2.64
1545
1546Copyright (C) 2009 Free Software Foundation, Inc.
1547This configure script is free software; the Free Software Foundation
1548gives unlimited permission to copy, distribute and modify it.
1549_ACEOF
1550 exit
1551fi
1552
1553## ------------------------ ##
1554## Autoconf initialization. ##
1555## ------------------------ ##
1556
1557# ac_fn_c_try_compile LINENO
1558# --------------------------
1559# Try to compile conftest.$ac_ext, and return whether this succeeded.
1560ac_fn_c_try_compile ()
1561{
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 rm -f conftest.$ac_objext
1564 if { { ac_try="$ac_compile"
1565case "(($ac_try" in
1566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567 *) ac_try_echo=$ac_try;;
1568esac
1569eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570$as_echo "$ac_try_echo"; } >&5
1571 (eval "$ac_compile") 2>conftest.err
1572 ac_status=$?
1573 if test -s conftest.err; then
1574 grep -v '^ *+' conftest.err >conftest.er1
1575 cat conftest.er1 >&5
1576 mv -f conftest.er1 conftest.err
1577 fi
1578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579 test $ac_status = 0; } && {
1580 test -z "$ac_c_werror_flag" ||
1581 test ! -s conftest.err
1582 } && test -s conftest.$ac_objext; then :
1583 ac_retval=0
1584else
1585 $as_echo "$as_me: failed program was:" >&5
1586sed 's/^/| /' conftest.$ac_ext >&5
1587
1588 ac_retval=1
1589fi
1590 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1591 return $ac_retval
1592
1593} # ac_fn_c_try_compile
1594
c9c0c1d2 1595# ac_fn_c_try_link LINENO
1596# -----------------------
1597# Try to link conftest.$ac_ext, and return whether this succeeded.
1598ac_fn_c_try_link ()
e440a328 1599{
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
c9c0c1d2 1601 rm -f conftest.$ac_objext conftest$ac_exeext
1602 if { { ac_try="$ac_link"
e440a328 1603case "(($ac_try" in
1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605 *) ac_try_echo=$ac_try;;
1606esac
1607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608$as_echo "$ac_try_echo"; } >&5
c9c0c1d2 1609 (eval "$ac_link") 2>conftest.err
e440a328 1610 ac_status=$?
1611 if test -s conftest.err; then
1612 grep -v '^ *+' conftest.err >conftest.er1
1613 cat conftest.er1 >&5
1614 mv -f conftest.er1 conftest.err
1615 fi
1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
c9c0c1d2 1617 test $ac_status = 0; } && {
1618 test -z "$ac_c_werror_flag" ||
e440a328 1619 test ! -s conftest.err
c9c0c1d2 1620 } && test -s conftest$ac_exeext && {
1621 test "$cross_compiling" = yes ||
1622 $as_test_x conftest$ac_exeext
e440a328 1623 }; then :
1624 ac_retval=0
1625else
1626 $as_echo "$as_me: failed program was:" >&5
1627sed 's/^/| /' conftest.$ac_ext >&5
1628
c9c0c1d2 1629 ac_retval=1
e440a328 1630fi
c9c0c1d2 1631 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1632 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1633 # interfere with the next link command; also delete a directory that is
1634 # left behind by Apple's compiler. We do this before executing the actions.
e440a328 1635 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1636 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1637 return $ac_retval
1638
c9c0c1d2 1639} # ac_fn_c_try_link
e440a328 1640
1641# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1642# -------------------------------------------------------
1643# Tests whether HEADER exists and can be compiled using the include files in
1644# INCLUDES, setting the cache variable VAR accordingly.
1645ac_fn_c_check_header_compile ()
1646{
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1649$as_echo_n "checking for $2... " >&6; }
1650if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1651 $as_echo_n "(cached) " >&6
1652else
1653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1654/* end confdefs.h. */
1655$4
1656#include <$2>
1657_ACEOF
1658if ac_fn_c_try_compile "$LINENO"; then :
1659 eval "$3=yes"
1660else
1661 eval "$3=no"
1662fi
1663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1664fi
1665eval ac_res=\$$3
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1667$as_echo "$ac_res" >&6; }
1668 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1669
1670} # ac_fn_c_check_header_compile
1671
c9c0c1d2 1672# ac_fn_c_try_cpp LINENO
1673# ----------------------
1674# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1675ac_fn_c_try_cpp ()
e440a328 1676{
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
c9c0c1d2 1678 if { { ac_try="$ac_cpp conftest.$ac_ext"
e440a328 1679case "(($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
c9c0c1d2 1685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
e440a328 1686 ac_status=$?
1687 if test -s conftest.err; then
1688 grep -v '^ *+' conftest.err >conftest.er1
1689 cat conftest.er1 >&5
1690 mv -f conftest.er1 conftest.err
1691 fi
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
c9c0c1d2 1693 test $ac_status = 0; } >/dev/null && {
1694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
e440a328 1695 test ! -s conftest.err
1696 }; then :
1697 ac_retval=0
1698else
1699 $as_echo "$as_me: failed program was:" >&5
1700sed 's/^/| /' conftest.$ac_ext >&5
1701
c9c0c1d2 1702 ac_retval=1
1703fi
1704 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1705 return $ac_retval
1706
1707} # ac_fn_c_try_cpp
1708
1709# ac_fn_c_try_run LINENO
1710# ----------------------
1711# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1712# that executables *can* be run.
1713ac_fn_c_try_run ()
1714{
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 if { { ac_try="$ac_link"
1717case "(($ac_try" in
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1720esac
1721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722$as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_link") 2>&5
1724 ac_status=$?
1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1727 { { case "(($ac_try" in
1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729 *) ac_try_echo=$ac_try;;
1730esac
1731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732$as_echo "$ac_try_echo"; } >&5
1733 (eval "$ac_try") 2>&5
1734 ac_status=$?
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; }; }; then :
1737 ac_retval=0
1738else
1739 $as_echo "$as_me: program exited with status $ac_status" >&5
1740 $as_echo "$as_me: failed program was:" >&5
1741sed 's/^/| /' conftest.$ac_ext >&5
1742
1743 ac_retval=$ac_status
e440a328 1744fi
1745 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1746 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1747 return $ac_retval
1748
c9c0c1d2 1749} # ac_fn_c_try_run
e440a328 1750
1751# ac_fn_c_check_func LINENO FUNC VAR
1752# ----------------------------------
1753# Tests whether FUNC exists, setting the cache variable VAR accordingly
1754ac_fn_c_check_func ()
1755{
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1758$as_echo_n "checking for $2... " >&6; }
1759if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1760 $as_echo_n "(cached) " >&6
1761else
1762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1763/* end confdefs.h. */
1764/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1766#define $2 innocuous_$2
1767
1768/* System header to define __stub macros and hopefully few prototypes,
1769 which can conflict with char $2 (); below.
1770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1771 <limits.h> exists even on freestanding compilers. */
1772
1773#ifdef __STDC__
1774# include <limits.h>
1775#else
1776# include <assert.h>
1777#endif
1778
1779#undef $2
1780
1781/* Override any GCC internal prototype to avoid an error.
1782 Use char because int might match the return type of a GCC
1783 builtin and then its argument prototype would still apply. */
1784#ifdef __cplusplus
1785extern "C"
1786#endif
1787char $2 ();
1788/* The GNU C library defines this for functions which it implements
1789 to always fail with ENOSYS. Some functions are actually named
1790 something starting with __ and the normal name is an alias. */
1791#if defined __stub_$2 || defined __stub___$2
1792choke me
1793#endif
1794
1795int
1796main ()
1797{
1798return $2 ();
1799 ;
1800 return 0;
1801}
1802_ACEOF
1803if ac_fn_c_try_link "$LINENO"; then :
1804 eval "$3=yes"
1805else
1806 eval "$3=no"
1807fi
1808rm -f core conftest.err conftest.$ac_objext \
1809 conftest$ac_exeext conftest.$ac_ext
1810fi
1811eval ac_res=\$$3
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1813$as_echo "$ac_res" >&6; }
1814 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1815
1816} # ac_fn_c_check_func
1817
1818# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1819# -------------------------------------------------------
1820# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1821# the include files in INCLUDES and setting the cache variable VAR
1822# accordingly.
1823ac_fn_c_check_header_mongrel ()
1824{
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1828$as_echo_n "checking for $2... " >&6; }
1829if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1830 $as_echo_n "(cached) " >&6
1831fi
1832eval ac_res=\$$3
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1834$as_echo "$ac_res" >&6; }
1835else
1836 # Is the header compilable?
1837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1838$as_echo_n "checking $2 usability... " >&6; }
1839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840/* end confdefs.h. */
1841$4
1842#include <$2>
1843_ACEOF
1844if ac_fn_c_try_compile "$LINENO"; then :
1845 ac_header_compiler=yes
1846else
1847 ac_header_compiler=no
1848fi
1849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1851$as_echo "$ac_header_compiler" >&6; }
1852
1853# Is the header present?
1854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1855$as_echo_n "checking $2 presence... " >&6; }
1856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857/* end confdefs.h. */
1858#include <$2>
1859_ACEOF
1860if ac_fn_c_try_cpp "$LINENO"; then :
1861 ac_header_preproc=yes
1862else
1863 ac_header_preproc=no
1864fi
1865rm -f conftest.err conftest.$ac_ext
1866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1867$as_echo "$ac_header_preproc" >&6; }
1868
1869# So? What about this header?
1870case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1871 yes:no: )
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1873$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1875$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1876 ;;
1877 no:yes:* )
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1879$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1881$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1883$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1885$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1887$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1888 ;;
1889esac
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1891$as_echo_n "checking for $2... " >&6; }
1892if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1893 $as_echo_n "(cached) " >&6
1894else
1895 eval "$3=\$ac_header_compiler"
1896fi
1897eval ac_res=\$$3
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899$as_echo "$ac_res" >&6; }
1900fi
1901 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1902
1903} # ac_fn_c_check_header_mongrel
1904
1905# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1906# -------------------------------------------
1907# Tests whether TYPE exists after having included INCLUDES, setting cache
1908# variable VAR accordingly.
1909ac_fn_c_check_type ()
1910{
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913$as_echo_n "checking for $2... " >&6; }
1914if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1915 $as_echo_n "(cached) " >&6
1916else
1917 eval "$3=no"
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919/* end confdefs.h. */
1920$4
1921int
1922main ()
1923{
1924if (sizeof ($2))
1925 return 0;
1926 ;
1927 return 0;
1928}
1929_ACEOF
1930if ac_fn_c_try_compile "$LINENO"; then :
1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932/* end confdefs.h. */
1933$4
1934int
1935main ()
1936{
1937if (sizeof (($2)))
1938 return 0;
1939 ;
1940 return 0;
1941}
1942_ACEOF
1943if ac_fn_c_try_compile "$LINENO"; then :
1944
1945else
1946 eval "$3=yes"
1947fi
1948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949fi
1950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951fi
1952eval ac_res=\$$3
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954$as_echo "$ac_res" >&6; }
1955 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1956
1957} # ac_fn_c_check_type
d772e63b 1958
1959# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1960# --------------------------------------------
1961# Tries to find the compile-time value of EXPR in a program that includes
1962# INCLUDES, setting VAR accordingly. Returns whether the value could be
1963# computed
1964ac_fn_c_compute_int ()
1965{
1966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967 if test "$cross_compiling" = yes; then
1968 # Depending upon the size, compute the lo and hi bounds.
1969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970/* end confdefs.h. */
1971$4
1972int
1973main ()
1974{
1975static int test_array [1 - 2 * !(($2) >= 0)];
1976test_array [0] = 0
1977
1978 ;
1979 return 0;
1980}
1981_ACEOF
1982if ac_fn_c_try_compile "$LINENO"; then :
1983 ac_lo=0 ac_mid=0
1984 while :; do
1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986/* end confdefs.h. */
1987$4
1988int
1989main ()
1990{
1991static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1992test_array [0] = 0
1993
1994 ;
1995 return 0;
1996}
1997_ACEOF
1998if ac_fn_c_try_compile "$LINENO"; then :
1999 ac_hi=$ac_mid; break
2000else
2001 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2002 if test $ac_lo -le $ac_mid; then
2003 ac_lo= ac_hi=
2004 break
2005 fi
2006 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2007fi
2008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009 done
2010else
2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012/* end confdefs.h. */
2013$4
2014int
2015main ()
2016{
2017static int test_array [1 - 2 * !(($2) < 0)];
2018test_array [0] = 0
2019
2020 ;
2021 return 0;
2022}
2023_ACEOF
2024if ac_fn_c_try_compile "$LINENO"; then :
2025 ac_hi=-1 ac_mid=-1
2026 while :; do
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028/* end confdefs.h. */
2029$4
2030int
2031main ()
2032{
2033static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2034test_array [0] = 0
2035
2036 ;
2037 return 0;
2038}
2039_ACEOF
2040if ac_fn_c_try_compile "$LINENO"; then :
2041 ac_lo=$ac_mid; break
2042else
2043 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2044 if test $ac_mid -le $ac_hi; then
2045 ac_lo= ac_hi=
2046 break
2047 fi
2048 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2049fi
2050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051 done
2052else
2053 ac_lo= ac_hi=
2054fi
2055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056fi
2057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058# Binary search between lo and hi bounds.
2059while test "x$ac_lo" != "x$ac_hi"; do
2060 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062/* end confdefs.h. */
2063$4
2064int
2065main ()
2066{
2067static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2068test_array [0] = 0
2069
2070 ;
2071 return 0;
2072}
2073_ACEOF
2074if ac_fn_c_try_compile "$LINENO"; then :
2075 ac_hi=$ac_mid
2076else
2077 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2078fi
2079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2080done
2081case $ac_lo in #((
2082?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2083'') ac_retval=1 ;;
2084esac
2085 else
2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087/* end confdefs.h. */
2088$4
2089static long int longval () { return $2; }
2090static unsigned long int ulongval () { return $2; }
2091#include <stdio.h>
2092#include <stdlib.h>
2093int
2094main ()
2095{
2096
2097 FILE *f = fopen ("conftest.val", "w");
2098 if (! f)
2099 return 1;
2100 if (($2) < 0)
2101 {
2102 long int i = longval ();
2103 if (i != ($2))
2104 return 1;
2105 fprintf (f, "%ld", i);
2106 }
2107 else
2108 {
2109 unsigned long int i = ulongval ();
2110 if (i != ($2))
2111 return 1;
2112 fprintf (f, "%lu", i);
2113 }
2114 /* Do not output a trailing newline, as this causes \r\n confusion
2115 on some platforms. */
2116 return ferror (f) || fclose (f) != 0;
2117
2118 ;
2119 return 0;
2120}
2121_ACEOF
2122if ac_fn_c_try_run "$LINENO"; then :
2123 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2124else
2125 ac_retval=1
2126fi
2127rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2128 conftest.$ac_objext conftest.beam conftest.$ac_ext
2129rm -f conftest.val
2130
2131 fi
2132 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2133 return $ac_retval
2134
2135} # ac_fn_c_compute_int
e440a328 2136cat >config.log <<_ACEOF
2137This file contains any messages produced by compilers while
2138running configure, to aid debugging if configure makes a mistake.
2139
2140It was created by package-unused $as_me version-unused, which was
2141generated by GNU Autoconf 2.64. Invocation command line was
2142
2143 $ $0 $@
2144
2145_ACEOF
2146exec 5>>config.log
2147{
2148cat <<_ASUNAME
2149## --------- ##
2150## Platform. ##
2151## --------- ##
2152
2153hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2154uname -m = `(uname -m) 2>/dev/null || echo unknown`
2155uname -r = `(uname -r) 2>/dev/null || echo unknown`
2156uname -s = `(uname -s) 2>/dev/null || echo unknown`
2157uname -v = `(uname -v) 2>/dev/null || echo unknown`
2158
2159/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2160/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2161
2162/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2163/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2164/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2165/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2166/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2167/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2168/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2169
2170_ASUNAME
2171
2172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2173for as_dir in $PATH
2174do
2175 IFS=$as_save_IFS
2176 test -z "$as_dir" && as_dir=.
2177 $as_echo "PATH: $as_dir"
2178 done
2179IFS=$as_save_IFS
2180
2181} >&5
2182
2183cat >&5 <<_ACEOF
2184
2185
2186## ----------- ##
2187## Core tests. ##
2188## ----------- ##
2189
2190_ACEOF
2191
2192
2193# Keep a trace of the command line.
2194# Strip out --no-create and --no-recursion so they do not pile up.
2195# Strip out --silent because we don't want to record it for future runs.
2196# Also quote any args containing shell meta-characters.
2197# Make two passes to allow for proper duplicate-argument suppression.
2198ac_configure_args=
2199ac_configure_args0=
2200ac_configure_args1=
2201ac_must_keep_next=false
2202for ac_pass in 1 2
2203do
2204 for ac_arg
2205 do
2206 case $ac_arg in
2207 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2209 | -silent | --silent | --silen | --sile | --sil)
2210 continue ;;
2211 *\'*)
2212 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2213 esac
2214 case $ac_pass in
2215 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2216 2)
2217 as_fn_append ac_configure_args1 " '$ac_arg'"
2218 if test $ac_must_keep_next = true; then
2219 ac_must_keep_next=false # Got value, back to normal.
2220 else
2221 case $ac_arg in
2222 *=* | --config-cache | -C | -disable-* | --disable-* \
2223 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2224 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2225 | -with-* | --with-* | -without-* | --without-* | --x)
2226 case "$ac_configure_args0 " in
2227 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2228 esac
2229 ;;
2230 -* ) ac_must_keep_next=true ;;
2231 esac
2232 fi
2233 as_fn_append ac_configure_args " '$ac_arg'"
2234 ;;
2235 esac
2236 done
2237done
2238{ ac_configure_args0=; unset ac_configure_args0;}
2239{ ac_configure_args1=; unset ac_configure_args1;}
2240
2241# When interrupted or exit'd, cleanup temporary files, and complete
2242# config.log. We remove comments because anyway the quotes in there
2243# would cause problems or look ugly.
2244# WARNING: Use '\'' to represent an apostrophe within the trap.
2245# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2246trap 'exit_status=$?
2247 # Save into config.log some information that might help in debugging.
2248 {
2249 echo
2250
2251 cat <<\_ASBOX
2252## ---------------- ##
2253## Cache variables. ##
2254## ---------------- ##
2255_ASBOX
2256 echo
2257 # The following way of writing the cache mishandles newlines in values,
2258(
2259 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2260 eval ac_val=\$$ac_var
2261 case $ac_val in #(
2262 *${as_nl}*)
2263 case $ac_var in #(
2264 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2265$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2266 esac
2267 case $ac_var in #(
2268 _ | IFS | as_nl) ;; #(
2269 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2270 *) { eval $ac_var=; unset $ac_var;} ;;
2271 esac ;;
2272 esac
2273 done
2274 (set) 2>&1 |
2275 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2276 *${as_nl}ac_space=\ *)
2277 sed -n \
2278 "s/'\''/'\''\\\\'\'''\''/g;
2279 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2280 ;; #(
2281 *)
2282 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2283 ;;
2284 esac |
2285 sort
2286)
2287 echo
2288
2289 cat <<\_ASBOX
2290## ----------------- ##
2291## Output variables. ##
2292## ----------------- ##
2293_ASBOX
2294 echo
2295 for ac_var in $ac_subst_vars
2296 do
2297 eval ac_val=\$$ac_var
2298 case $ac_val in
2299 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2300 esac
2301 $as_echo "$ac_var='\''$ac_val'\''"
2302 done | sort
2303 echo
2304
2305 if test -n "$ac_subst_files"; then
2306 cat <<\_ASBOX
2307## ------------------- ##
2308## File substitutions. ##
2309## ------------------- ##
2310_ASBOX
2311 echo
2312 for ac_var in $ac_subst_files
2313 do
2314 eval ac_val=\$$ac_var
2315 case $ac_val in
2316 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2317 esac
2318 $as_echo "$ac_var='\''$ac_val'\''"
2319 done | sort
2320 echo
2321 fi
2322
2323 if test -s confdefs.h; then
2324 cat <<\_ASBOX
2325## ----------- ##
2326## confdefs.h. ##
2327## ----------- ##
2328_ASBOX
2329 echo
2330 cat confdefs.h
2331 echo
2332 fi
2333 test "$ac_signal" != 0 &&
2334 $as_echo "$as_me: caught signal $ac_signal"
2335 $as_echo "$as_me: exit $exit_status"
2336 } >&5
2337 rm -f core *.core core.conftest.* &&
2338 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2339 exit $exit_status
2340' 0
2341for ac_signal in 1 2 13 15; do
2342 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2343done
2344ac_signal=0
2345
2346# confdefs.h avoids OS command line length limits that DEFS can exceed.
2347rm -f -r conftest* confdefs.h
2348
2349$as_echo "/* confdefs.h */" > confdefs.h
2350
2351# Predefined preprocessor variables.
2352
2353cat >>confdefs.h <<_ACEOF
2354#define PACKAGE_NAME "$PACKAGE_NAME"
2355_ACEOF
2356
2357cat >>confdefs.h <<_ACEOF
2358#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2359_ACEOF
2360
2361cat >>confdefs.h <<_ACEOF
2362#define PACKAGE_VERSION "$PACKAGE_VERSION"
2363_ACEOF
2364
2365cat >>confdefs.h <<_ACEOF
2366#define PACKAGE_STRING "$PACKAGE_STRING"
2367_ACEOF
2368
2369cat >>confdefs.h <<_ACEOF
2370#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2371_ACEOF
2372
2373cat >>confdefs.h <<_ACEOF
2374#define PACKAGE_URL "$PACKAGE_URL"
2375_ACEOF
2376
2377
2378# Let the site file select an alternate cache file if it wants to.
2379# Prefer an explicitly selected file to automatically selected ones.
2380ac_site_file1=NONE
2381ac_site_file2=NONE
2382if test -n "$CONFIG_SITE"; then
2383 ac_site_file1=$CONFIG_SITE
2384elif test "x$prefix" != xNONE; then
2385 ac_site_file1=$prefix/share/config.site
2386 ac_site_file2=$prefix/etc/config.site
2387else
2388 ac_site_file1=$ac_default_prefix/share/config.site
2389 ac_site_file2=$ac_default_prefix/etc/config.site
2390fi
2391for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2392do
2393 test "x$ac_site_file" = xNONE && continue
2394 if test -r "$ac_site_file"; then
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2396$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2397 sed 's/^/| /' "$ac_site_file" >&5
2398 . "$ac_site_file"
2399 fi
2400done
2401
2402if test -r "$cache_file"; then
2403 # Some versions of bash will fail to source /dev/null (special
2404 # files actually), so we avoid doing that.
2405 if test -f "$cache_file"; then
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2407$as_echo "$as_me: loading cache $cache_file" >&6;}
2408 case $cache_file in
2409 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2410 *) . "./$cache_file";;
2411 esac
2412 fi
2413else
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2415$as_echo "$as_me: creating cache $cache_file" >&6;}
2416 >$cache_file
2417fi
2418
2419# Check that the precious variables saved in the cache have kept the same
2420# value.
2421ac_cache_corrupted=false
2422for ac_var in $ac_precious_vars; do
2423 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2424 eval ac_new_set=\$ac_env_${ac_var}_set
2425 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2426 eval ac_new_val=\$ac_env_${ac_var}_value
2427 case $ac_old_set,$ac_new_set in
2428 set,)
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2430$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2431 ac_cache_corrupted=: ;;
2432 ,set)
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2434$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2435 ac_cache_corrupted=: ;;
2436 ,);;
2437 *)
2438 if test "x$ac_old_val" != "x$ac_new_val"; then
2439 # differences in whitespace do not lead to failure.
2440 ac_old_val_w=`echo x $ac_old_val`
2441 ac_new_val_w=`echo x $ac_new_val`
2442 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2444$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2445 ac_cache_corrupted=:
2446 else
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2448$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2449 eval $ac_var=\$ac_old_val
2450 fi
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2452$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2454$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2455 fi;;
2456 esac
2457 # Pass precious variables to config.status.
2458 if test "$ac_new_set" = set; then
2459 case $ac_new_val in
2460 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2461 *) ac_arg=$ac_var=$ac_new_val ;;
2462 esac
2463 case " $ac_configure_args " in
2464 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2465 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2466 esac
2467 fi
2468done
2469if $ac_cache_corrupted; then
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2471$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2473$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2474 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2475fi
2476## -------------------- ##
2477## Main body of script. ##
2478## -------------------- ##
2479
2480ac_ext=c
2481ac_cpp='$CPP $CPPFLAGS'
2482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2484ac_compiler_gnu=$ac_cv_c_compiler_gnu
2485
2486
2487
4a273582 2488
2489
2490
e440a328 2491ac_config_headers="$ac_config_headers config.h"
2492
2493
e86de782 2494libtool_VERSION=10:0:0
e440a328 2495
2496
2497# Default to --enable-multilib
2498# Check whether --enable-multilib was given.
2499if test "${enable_multilib+set}" = set; then :
2500 enableval=$enable_multilib; case "$enableval" in
2501 yes) multilib=yes ;;
2502 no) multilib=no ;;
2503 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2504 esac
2505else
2506 multilib=yes
2507fi
2508
2509
2510# We may get other options which we leave undocumented:
2511# --with-target-subdir, --with-multisrctop, --with-multisubdir
2512# See config-ml.in if you want the gory details.
2513
2514if test "$srcdir" = "."; then
2515 if test "$with_target_subdir" != "."; then
2516 multi_basedir="$srcdir/$with_multisrctop../.."
2517 else
2518 multi_basedir="$srcdir/$with_multisrctop.."
2519 fi
2520else
2521 multi_basedir="$srcdir/.."
2522fi
2523
2524
2525# Even if the default multilib is not a cross compilation,
2526# it may be that some of the other multilibs are.
2527if test $cross_compiling = no && test $multilib = yes \
2528 && test "x${with_multisubdir}" != x ; then
2529 cross_compiling=maybe
2530fi
2531
2532ac_config_commands="$ac_config_commands default-1"
2533
2534
2535ac_aux_dir=
2536for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2537 for ac_t in install-sh install.sh shtool; do
2538 if test -f "$ac_dir/$ac_t"; then
2539 ac_aux_dir=$ac_dir
2540 ac_install_sh="$ac_aux_dir/$ac_t -c"
2541 break 2
2542 fi
2543 done
2544done
2545if test -z "$ac_aux_dir"; then
2546 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2547fi
2548
2549# These three variables are undocumented and unsupported,
2550# and are intended to be withdrawn in a future Autoconf release.
2551# They can cause serious problems if a builder's source tree is in a directory
2552# whose full name contains unusual characters.
2553ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2554ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2555ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2556
2557
2558# Make sure we can run config.sub.
2559$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2560 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2561
2562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2563$as_echo_n "checking build system type... " >&6; }
2564if test "${ac_cv_build+set}" = set; then :
2565 $as_echo_n "(cached) " >&6
2566else
2567 ac_build_alias=$build_alias
2568test "x$ac_build_alias" = x &&
2569 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2570test "x$ac_build_alias" = x &&
2571 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2572ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2573 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2574
2575fi
2576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2577$as_echo "$ac_cv_build" >&6; }
2578case $ac_cv_build in
2579*-*-*) ;;
2580*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2581esac
2582build=$ac_cv_build
2583ac_save_IFS=$IFS; IFS='-'
2584set x $ac_cv_build
2585shift
2586build_cpu=$1
2587build_vendor=$2
2588shift; shift
2589# Remember, the first character of IFS is used to create $*,
2590# except with old shells:
2591build_os=$*
2592IFS=$ac_save_IFS
2593case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2594
2595
2596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2597$as_echo_n "checking host system type... " >&6; }
2598if test "${ac_cv_host+set}" = set; then :
2599 $as_echo_n "(cached) " >&6
2600else
2601 if test "x$host_alias" = x; then
2602 ac_cv_host=$ac_cv_build
2603else
2604 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2605 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2606fi
2607
2608fi
2609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2610$as_echo "$ac_cv_host" >&6; }
2611case $ac_cv_host in
2612*-*-*) ;;
2613*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2614esac
2615host=$ac_cv_host
2616ac_save_IFS=$IFS; IFS='-'
2617set x $ac_cv_host
2618shift
2619host_cpu=$1
2620host_vendor=$2
2621shift; shift
2622# Remember, the first character of IFS is used to create $*,
2623# except with old shells:
2624host_os=$*
2625IFS=$ac_save_IFS
2626case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2627
2628
2629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2630$as_echo_n "checking target system type... " >&6; }
2631if test "${ac_cv_target+set}" = set; then :
2632 $as_echo_n "(cached) " >&6
2633else
2634 if test "x$target_alias" = x; then
2635 ac_cv_target=$ac_cv_host
2636else
2637 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2638 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2639fi
2640
2641fi
2642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2643$as_echo "$ac_cv_target" >&6; }
2644case $ac_cv_target in
2645*-*-*) ;;
2646*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2647esac
2648target=$ac_cv_target
2649ac_save_IFS=$IFS; IFS='-'
2650set x $ac_cv_target
2651shift
2652target_cpu=$1
2653target_vendor=$2
2654shift; shift
2655# Remember, the first character of IFS is used to create $*,
2656# except with old shells:
2657target_os=$*
2658IFS=$ac_save_IFS
2659case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2660
2661
2662# The aliases save the names the user supplied, while $host etc.
2663# will get canonicalized.
2664test -n "$target_alias" &&
2665 test "$program_prefix$program_suffix$program_transform_name" = \
2666 NONENONEs,x,x, &&
2667 program_prefix=${target_alias}-
2668
2669target_alias=${target_alias-$host_alias}
2670
2671am__api_version='1.11'
2672
2673# Find a good install program. We prefer a C program (faster),
2674# so one script is as good as another. But avoid the broken or
2675# incompatible versions:
2676# SysV /etc/install, /usr/sbin/install
2677# SunOS /usr/etc/install
2678# IRIX /sbin/install
2679# AIX /bin/install
2680# AmigaOS /C/install, which installs bootblocks on floppy discs
2681# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2682# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2683# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2684# OS/2's system install, which has a completely different semantic
2685# ./install, which can be erroneously created by make from ./install.sh.
2686# Reject install programs that cannot install multiple files.
2687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2688$as_echo_n "checking for a BSD-compatible install... " >&6; }
2689if test -z "$INSTALL"; then
2690if test "${ac_cv_path_install+set}" = set; then :
2691 $as_echo_n "(cached) " >&6
2692else
2693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694for as_dir in $PATH
2695do
2696 IFS=$as_save_IFS
2697 test -z "$as_dir" && as_dir=.
2698 # Account for people who put trailing slashes in PATH elements.
2699case $as_dir/ in #((
2700 ./ | .// | /[cC]/* | \
2701 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2702 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2703 /usr/ucb/* ) ;;
2704 *)
2705 # OSF1 and SCO ODT 3.0 have their own names for install.
2706 # Don't use installbsd from OSF since it installs stuff as root
2707 # by default.
2708 for ac_prog in ginstall scoinst install; do
2709 for ac_exec_ext in '' $ac_executable_extensions; do
2710 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2711 if test $ac_prog = install &&
2712 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2713 # AIX install. It has an incompatible calling convention.
2714 :
2715 elif test $ac_prog = install &&
2716 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2717 # program-specific install script used by HP pwplus--don't use.
2718 :
2719 else
2720 rm -rf conftest.one conftest.two conftest.dir
2721 echo one > conftest.one
2722 echo two > conftest.two
2723 mkdir conftest.dir
2724 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2725 test -s conftest.one && test -s conftest.two &&
2726 test -s conftest.dir/conftest.one &&
2727 test -s conftest.dir/conftest.two
2728 then
2729 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2730 break 3
2731 fi
2732 fi
2733 fi
2734 done
2735 done
2736 ;;
2737esac
2738
2739 done
2740IFS=$as_save_IFS
2741
2742rm -rf conftest.one conftest.two conftest.dir
2743
2744fi
2745 if test "${ac_cv_path_install+set}" = set; then
2746 INSTALL=$ac_cv_path_install
2747 else
2748 # As a last resort, use the slow shell script. Don't cache a
2749 # value for INSTALL within a source directory, because that will
2750 # break other packages using the cache if that directory is
2751 # removed, or if the value is a relative name.
2752 INSTALL=$ac_install_sh
2753 fi
2754fi
2755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2756$as_echo "$INSTALL" >&6; }
2757
2758# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2759# It thinks the first close brace ends the variable substitution.
2760test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2761
2762test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2763
2764test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2765
2766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2767$as_echo_n "checking whether build environment is sane... " >&6; }
2768# Just in case
2769sleep 1
2770echo timestamp > conftest.file
2771# Reject unsafe characters in $srcdir or the absolute working directory
2772# name. Accept space and tab only in the latter.
2773am_lf='
2774'
2775case `pwd` in
2776 *[\\\"\#\$\&\'\`$am_lf]*)
2777 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2778esac
2779case $srcdir in
2780 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2781 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2782esac
2783
2784# Do `set' in a subshell so we don't clobber the current shell's
2785# arguments. Must try -L first in case configure is actually a
2786# symlink; some systems play weird games with the mod time of symlinks
2787# (eg FreeBSD returns the mod time of the symlink's containing
2788# directory).
2789if (
2790 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2791 if test "$*" = "X"; then
2792 # -L didn't work.
2793 set X `ls -t "$srcdir/configure" conftest.file`
2794 fi
2795 rm -f conftest.file
2796 if test "$*" != "X $srcdir/configure conftest.file" \
2797 && test "$*" != "X conftest.file $srcdir/configure"; then
2798
2799 # If neither matched, then we have a broken ls. This can happen
2800 # if, for instance, CONFIG_SHELL is bash and it inherits a
2801 # broken ls alias from the environment. This has actually
2802 # happened. Such a system could not be considered "sane".
2803 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2804alias in your environment" "$LINENO" 5
2805 fi
2806
2807 test "$2" = conftest.file
2808 )
2809then
2810 # Ok.
2811 :
2812else
2813 as_fn_error "newly created file is older than distributed files!
2814Check your system clock" "$LINENO" 5
2815fi
2816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2817$as_echo "yes" >&6; }
2818test "$program_prefix" != NONE &&
2819 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2820# Use a double $ so make ignores it.
2821test "$program_suffix" != NONE &&
2822 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2823# Double any \ or $.
2824# By default was `s,x,x', remove it if useless.
2825ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2826program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2827
2828# expand $ac_aux_dir to an absolute path
2829am_aux_dir=`cd $ac_aux_dir && pwd`
2830
2831if test x"${MISSING+set}" != xset; then
2832 case $am_aux_dir in
2833 *\ * | *\ *)
2834 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2835 *)
2836 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2837 esac
2838fi
2839# Use eval to expand $SHELL
2840if eval "$MISSING --run true"; then
2841 am_missing_run="$MISSING --run "
2842else
2843 am_missing_run=
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2845$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2846fi
2847
2848if test x"${install_sh}" != xset; then
2849 case $am_aux_dir in
2850 *\ * | *\ *)
2851 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2852 *)
2853 install_sh="\${SHELL} $am_aux_dir/install-sh"
2854 esac
2855fi
2856
2857# Installed binaries are usually stripped using `strip' when the user
2858# run `make install-strip'. However `strip' might not be the right
2859# tool to use in cross-compilation environments, therefore Automake
2860# will honor the `STRIP' environment variable to overrule this program.
2861if test "$cross_compiling" != no; then
2862 if test -n "$ac_tool_prefix"; then
2863 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2864set dummy ${ac_tool_prefix}strip; ac_word=$2
2865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2866$as_echo_n "checking for $ac_word... " >&6; }
2867if test "${ac_cv_prog_STRIP+set}" = set; then :
2868 $as_echo_n "(cached) " >&6
2869else
2870 if test -n "$STRIP"; then
2871 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2872else
2873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874for as_dir in $PATH
2875do
2876 IFS=$as_save_IFS
2877 test -z "$as_dir" && as_dir=.
2878 for ac_exec_ext in '' $ac_executable_extensions; do
2879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2880 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2882 break 2
2883 fi
2884done
2885 done
2886IFS=$as_save_IFS
2887
2888fi
2889fi
2890STRIP=$ac_cv_prog_STRIP
2891if test -n "$STRIP"; then
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2893$as_echo "$STRIP" >&6; }
2894else
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896$as_echo "no" >&6; }
2897fi
2898
2899
2900fi
2901if test -z "$ac_cv_prog_STRIP"; then
2902 ac_ct_STRIP=$STRIP
2903 # Extract the first word of "strip", so it can be a program name with args.
2904set dummy strip; ac_word=$2
2905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2906$as_echo_n "checking for $ac_word... " >&6; }
2907if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2908 $as_echo_n "(cached) " >&6
2909else
2910 if test -n "$ac_ct_STRIP"; then
2911 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2912else
2913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914for as_dir in $PATH
2915do
2916 IFS=$as_save_IFS
2917 test -z "$as_dir" && as_dir=.
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2920 ac_cv_prog_ac_ct_STRIP="strip"
2921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 break 2
2923 fi
2924done
2925 done
2926IFS=$as_save_IFS
2927
2928fi
2929fi
2930ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2931if test -n "$ac_ct_STRIP"; then
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2933$as_echo "$ac_ct_STRIP" >&6; }
2934else
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936$as_echo "no" >&6; }
2937fi
2938
2939 if test "x$ac_ct_STRIP" = x; then
2940 STRIP=":"
2941 else
2942 case $cross_compiling:$ac_tool_warned in
2943yes:)
2944{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2945$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2946ac_tool_warned=yes ;;
2947esac
2948 STRIP=$ac_ct_STRIP
2949 fi
2950else
2951 STRIP="$ac_cv_prog_STRIP"
2952fi
2953
2954fi
2955INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2956
2957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2958$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2959if test -z "$MKDIR_P"; then
2960 if test "${ac_cv_path_mkdir+set}" = set; then :
2961 $as_echo_n "(cached) " >&6
2962else
2963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2965do
2966 IFS=$as_save_IFS
2967 test -z "$as_dir" && as_dir=.
2968 for ac_prog in mkdir gmkdir; do
2969 for ac_exec_ext in '' $ac_executable_extensions; do
2970 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2971 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2972 'mkdir (GNU coreutils) '* | \
2973 'mkdir (coreutils) '* | \
2974 'mkdir (fileutils) '4.1*)
2975 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2976 break 3;;
2977 esac
2978 done
2979 done
2980 done
2981IFS=$as_save_IFS
2982
2983fi
2984
2985 if test "${ac_cv_path_mkdir+set}" = set; then
2986 MKDIR_P="$ac_cv_path_mkdir -p"
2987 else
2988 # As a last resort, use the slow shell script. Don't cache a
2989 # value for MKDIR_P within a source directory, because that will
2990 # break other packages using the cache if that directory is
2991 # removed, or if the value is a relative name.
2992 test -d ./--version && rmdir ./--version
2993 MKDIR_P="$ac_install_sh -d"
2994 fi
2995fi
2996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2997$as_echo "$MKDIR_P" >&6; }
2998
2999mkdir_p="$MKDIR_P"
3000case $mkdir_p in
3001 [\\/$]* | ?:[\\/]*) ;;
3002 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3003esac
3004
3005for ac_prog in gawk mawk nawk awk
3006do
3007 # Extract the first word of "$ac_prog", so it can be a program name with args.
3008set dummy $ac_prog; ac_word=$2
3009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010$as_echo_n "checking for $ac_word... " >&6; }
3011if test "${ac_cv_prog_AWK+set}" = set; then :
3012 $as_echo_n "(cached) " >&6
3013else
3014 if test -n "$AWK"; then
3015 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3016else
3017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018for as_dir in $PATH
3019do
3020 IFS=$as_save_IFS
3021 test -z "$as_dir" && as_dir=.
3022 for ac_exec_ext in '' $ac_executable_extensions; do
3023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3024 ac_cv_prog_AWK="$ac_prog"
3025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 break 2
3027 fi
3028done
3029 done
3030IFS=$as_save_IFS
3031
3032fi
3033fi
3034AWK=$ac_cv_prog_AWK
3035if test -n "$AWK"; then
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3037$as_echo "$AWK" >&6; }
3038else
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040$as_echo "no" >&6; }
3041fi
3042
3043
3044 test -n "$AWK" && break
3045done
3046
3047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3048$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3049set x ${MAKE-make}
3050ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3051if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3052 $as_echo_n "(cached) " >&6
3053else
3054 cat >conftest.make <<\_ACEOF
3055SHELL = /bin/sh
3056all:
3057 @echo '@@@%%%=$(MAKE)=@@@%%%'
3058_ACEOF
3059# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3060case `${MAKE-make} -f conftest.make 2>/dev/null` in
3061 *@@@%%%=?*=@@@%%%*)
3062 eval ac_cv_prog_make_${ac_make}_set=yes;;
3063 *)
3064 eval ac_cv_prog_make_${ac_make}_set=no;;
3065esac
3066rm -f conftest.make
3067fi
3068if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3070$as_echo "yes" >&6; }
3071 SET_MAKE=
3072else
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074$as_echo "no" >&6; }
3075 SET_MAKE="MAKE=${MAKE-make}"
3076fi
3077
3078rm -rf .tst 2>/dev/null
3079mkdir .tst 2>/dev/null
3080if test -d .tst; then
3081 am__leading_dot=.
3082else
3083 am__leading_dot=_
3084fi
3085rmdir .tst 2>/dev/null
3086
3087if test "`cd $srcdir && pwd`" != "`pwd`"; then
3088 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3089 # is not polluted with repeated "-I."
3090 am__isrc=' -I$(srcdir)'
3091 # test to see if srcdir already configured
3092 if test -f $srcdir/config.status; then
3093 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3094 fi
3095fi
3096
3097# test whether we have cygpath
3098if test -z "$CYGPATH_W"; then
3099 if (cygpath --version) >/dev/null 2>/dev/null; then
3100 CYGPATH_W='cygpath -w'
3101 else
3102 CYGPATH_W=echo
3103 fi
3104fi
3105
3106
3107# Define the identity of the package.
3108 PACKAGE='libgo'
3109 VERSION='version-unused'
3110
3111
3112# Some tools Automake needs.
3113
3114ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3115
3116
3117AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3118
3119
3120AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3121
3122
3123AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3124
3125
3126MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3127
3128# We need awk for the "check" target. The system "awk" is bad on
3129# some platforms.
e92f1942 3130# Always define AMTAR for backward compatibility. Yes, it's still used
3131# in the wild :-( We should find a proper way to deprecate it ...
3132AMTAR='$${TAR-tar}'
e440a328 3133
e92f1942 3134am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
e440a328 3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145ac_ext=c
3146ac_cpp='$CPP $CPPFLAGS'
3147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3149ac_compiler_gnu=$ac_cv_c_compiler_gnu
3150if test -n "$ac_tool_prefix"; then
3151 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3152set dummy ${ac_tool_prefix}gcc; ac_word=$2
3153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3154$as_echo_n "checking for $ac_word... " >&6; }
3155if test "${ac_cv_prog_CC+set}" = set; then :
3156 $as_echo_n "(cached) " >&6
3157else
3158 if test -n "$CC"; then
3159 ac_cv_prog_CC="$CC" # Let the user override the test.
3160else
3161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162for as_dir in $PATH
3163do
3164 IFS=$as_save_IFS
3165 test -z "$as_dir" && as_dir=.
3166 for ac_exec_ext in '' $ac_executable_extensions; do
3167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3168 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3170 break 2
3171 fi
3172done
3173 done
3174IFS=$as_save_IFS
3175
3176fi
3177fi
3178CC=$ac_cv_prog_CC
3179if test -n "$CC"; then
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3181$as_echo "$CC" >&6; }
3182else
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184$as_echo "no" >&6; }
3185fi
3186
3187
3188fi
3189if test -z "$ac_cv_prog_CC"; then
3190 ac_ct_CC=$CC
3191 # Extract the first word of "gcc", so it can be a program name with args.
3192set dummy gcc; ac_word=$2
3193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3194$as_echo_n "checking for $ac_word... " >&6; }
3195if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3196 $as_echo_n "(cached) " >&6
3197else
3198 if test -n "$ac_ct_CC"; then
3199 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3200else
3201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202for as_dir in $PATH
3203do
3204 IFS=$as_save_IFS
3205 test -z "$as_dir" && as_dir=.
3206 for ac_exec_ext in '' $ac_executable_extensions; do
3207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3208 ac_cv_prog_ac_ct_CC="gcc"
3209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3210 break 2
3211 fi
3212done
3213 done
3214IFS=$as_save_IFS
3215
3216fi
3217fi
3218ac_ct_CC=$ac_cv_prog_ac_ct_CC
3219if test -n "$ac_ct_CC"; then
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3221$as_echo "$ac_ct_CC" >&6; }
3222else
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3224$as_echo "no" >&6; }
3225fi
3226
3227 if test "x$ac_ct_CC" = x; then
3228 CC=""
3229 else
3230 case $cross_compiling:$ac_tool_warned in
3231yes:)
3232{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3233$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3234ac_tool_warned=yes ;;
3235esac
3236 CC=$ac_ct_CC
3237 fi
3238else
3239 CC="$ac_cv_prog_CC"
3240fi
3241
3242if test -z "$CC"; then
3243 if test -n "$ac_tool_prefix"; then
3244 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3245set dummy ${ac_tool_prefix}cc; ac_word=$2
3246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3247$as_echo_n "checking for $ac_word... " >&6; }
3248if test "${ac_cv_prog_CC+set}" = set; then :
3249 $as_echo_n "(cached) " >&6
3250else
3251 if test -n "$CC"; then
3252 ac_cv_prog_CC="$CC" # Let the user override the test.
3253else
3254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255for as_dir in $PATH
3256do
3257 IFS=$as_save_IFS
3258 test -z "$as_dir" && as_dir=.
3259 for ac_exec_ext in '' $ac_executable_extensions; do
3260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3261 ac_cv_prog_CC="${ac_tool_prefix}cc"
3262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3263 break 2
3264 fi
3265done
3266 done
3267IFS=$as_save_IFS
3268
3269fi
3270fi
3271CC=$ac_cv_prog_CC
3272if test -n "$CC"; then
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3274$as_echo "$CC" >&6; }
3275else
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3277$as_echo "no" >&6; }
3278fi
3279
3280
3281 fi
3282fi
3283if test -z "$CC"; then
3284 # Extract the first word of "cc", so it can be a program name with args.
3285set dummy cc; ac_word=$2
3286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3287$as_echo_n "checking for $ac_word... " >&6; }
3288if test "${ac_cv_prog_CC+set}" = set; then :
3289 $as_echo_n "(cached) " >&6
3290else
3291 if test -n "$CC"; then
3292 ac_cv_prog_CC="$CC" # Let the user override the test.
3293else
3294 ac_prog_rejected=no
3295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296for as_dir in $PATH
3297do
3298 IFS=$as_save_IFS
3299 test -z "$as_dir" && as_dir=.
3300 for ac_exec_ext in '' $ac_executable_extensions; do
3301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3302 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3303 ac_prog_rejected=yes
3304 continue
3305 fi
3306 ac_cv_prog_CC="cc"
3307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3308 break 2
3309 fi
3310done
3311 done
3312IFS=$as_save_IFS
3313
3314if test $ac_prog_rejected = yes; then
3315 # We found a bogon in the path, so make sure we never use it.
3316 set dummy $ac_cv_prog_CC
3317 shift
3318 if test $# != 0; then
3319 # We chose a different compiler from the bogus one.
3320 # However, it has the same basename, so the bogon will be chosen
3321 # first if we set CC to just the basename; use the full file name.
3322 shift
3323 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3324 fi
3325fi
3326fi
3327fi
3328CC=$ac_cv_prog_CC
3329if test -n "$CC"; then
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3331$as_echo "$CC" >&6; }
3332else
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334$as_echo "no" >&6; }
3335fi
3336
3337
3338fi
3339if test -z "$CC"; then
3340 if test -n "$ac_tool_prefix"; then
3341 for ac_prog in cl.exe
3342 do
3343 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3344set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3346$as_echo_n "checking for $ac_word... " >&6; }
3347if test "${ac_cv_prog_CC+set}" = set; then :
3348 $as_echo_n "(cached) " >&6
3349else
3350 if test -n "$CC"; then
3351 ac_cv_prog_CC="$CC" # Let the user override the test.
3352else
3353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354for as_dir in $PATH
3355do
3356 IFS=$as_save_IFS
3357 test -z "$as_dir" && as_dir=.
3358 for ac_exec_ext in '' $ac_executable_extensions; do
3359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3360 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3362 break 2
3363 fi
3364done
3365 done
3366IFS=$as_save_IFS
3367
3368fi
3369fi
3370CC=$ac_cv_prog_CC
3371if test -n "$CC"; then
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3373$as_echo "$CC" >&6; }
3374else
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376$as_echo "no" >&6; }
3377fi
3378
3379
3380 test -n "$CC" && break
3381 done
3382fi
3383if test -z "$CC"; then
3384 ac_ct_CC=$CC
3385 for ac_prog in cl.exe
3386do
3387 # Extract the first word of "$ac_prog", so it can be a program name with args.
3388set dummy $ac_prog; ac_word=$2
3389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3390$as_echo_n "checking for $ac_word... " >&6; }
3391if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3392 $as_echo_n "(cached) " >&6
3393else
3394 if test -n "$ac_ct_CC"; then
3395 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3396else
3397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398for as_dir in $PATH
3399do
3400 IFS=$as_save_IFS
3401 test -z "$as_dir" && as_dir=.
3402 for ac_exec_ext in '' $ac_executable_extensions; do
3403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3404 ac_cv_prog_ac_ct_CC="$ac_prog"
3405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3406 break 2
3407 fi
3408done
3409 done
3410IFS=$as_save_IFS
3411
3412fi
3413fi
3414ac_ct_CC=$ac_cv_prog_ac_ct_CC
3415if test -n "$ac_ct_CC"; then
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3417$as_echo "$ac_ct_CC" >&6; }
3418else
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3420$as_echo "no" >&6; }
3421fi
3422
3423
3424 test -n "$ac_ct_CC" && break
3425done
3426
3427 if test "x$ac_ct_CC" = x; then
3428 CC=""
3429 else
3430 case $cross_compiling:$ac_tool_warned in
3431yes:)
3432{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3433$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3434ac_tool_warned=yes ;;
3435esac
3436 CC=$ac_ct_CC
3437 fi
3438fi
3439
3440fi
3441
3442
3443test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3444$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3445as_fn_error "no acceptable C compiler found in \$PATH
3446See \`config.log' for more details." "$LINENO" 5; }
3447
3448# Provide some information about the compiler.
3449$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3450set X $ac_compile
3451ac_compiler=$2
3452for ac_option in --version -v -V -qversion; do
3453 { { ac_try="$ac_compiler $ac_option >&5"
3454case "(($ac_try" in
3455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3456 *) ac_try_echo=$ac_try;;
3457esac
3458eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3459$as_echo "$ac_try_echo"; } >&5
3460 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3461 ac_status=$?
3462 if test -s conftest.err; then
3463 sed '10a\
3464... rest of stderr output deleted ...
3465 10q' conftest.err >conftest.er1
3466 cat conftest.er1 >&5
3467 rm -f conftest.er1 conftest.err
3468 fi
3469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3470 test $ac_status = 0; }
3471done
3472
3473cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3474/* end confdefs.h. */
4a273582 3475
e440a328 3476int
3477main ()
3478{
3479
3480 ;
3481 return 0;
3482}
3483_ACEOF
3484ac_clean_files_save=$ac_clean_files
3485ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3486# Try to create an executable without -o first, disregard a.out.
3487# It will help us diagnose broken compilers, and finding out an intuition
3488# of exeext.
3489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3490$as_echo_n "checking for C compiler default output file name... " >&6; }
3491ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3492
3493# The possible output files:
3494ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3495
3496ac_rmfiles=
3497for ac_file in $ac_files
3498do
3499 case $ac_file in
3500 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3501 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3502 esac
3503done
3504rm -f $ac_rmfiles
3505
3506if { { ac_try="$ac_link_default"
3507case "(($ac_try" in
3508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509 *) ac_try_echo=$ac_try;;
3510esac
3511eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3512$as_echo "$ac_try_echo"; } >&5
3513 (eval "$ac_link_default") 2>&5
3514 ac_status=$?
3515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3516 test $ac_status = 0; }; then :
3517 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3518# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3519# in a Makefile. We should not override ac_cv_exeext if it was cached,
3520# so that the user can short-circuit this test for compilers unknown to
3521# Autoconf.
3522for ac_file in $ac_files ''
3523do
3524 test -f "$ac_file" || continue
3525 case $ac_file in
3526 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3527 ;;
3528 [ab].out )
3529 # We found the default executable, but exeext='' is most
3530 # certainly right.
3531 break;;
3532 *.* )
3533 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3534 then :; else
3535 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3536 fi
3537 # We set ac_cv_exeext here because the later test for it is not
3538 # safe: cross compilers may not add the suffix if given an `-o'
3539 # argument, so we may need to know it at that point already.
3540 # Even if this section looks crufty: it has the advantage of
3541 # actually working.
3542 break;;
3543 * )
3544 break;;
3545 esac
3546done
3547test "$ac_cv_exeext" = no && ac_cv_exeext=
3548
3549else
3550 ac_file=''
3551fi
3552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3553$as_echo "$ac_file" >&6; }
3554if test -z "$ac_file"; then :
3555 $as_echo "$as_me: failed program was:" >&5
3556sed 's/^/| /' conftest.$ac_ext >&5
3557
3558{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3559$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3560{ as_fn_set_status 77
3561as_fn_error "C compiler cannot create executables
3562See \`config.log' for more details." "$LINENO" 5; }; }
3563fi
3564ac_exeext=$ac_cv_exeext
3565
3566# Check that the compiler produces executables we can run. If not, either
3567# the compiler is broken, or we cross compile.
3568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3569$as_echo_n "checking whether the C compiler works... " >&6; }
3570# If not cross compiling, check that we can run a simple program.
3571if test "$cross_compiling" != yes; then
3572 if { ac_try='./$ac_file'
3573 { { case "(($ac_try" in
3574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575 *) ac_try_echo=$ac_try;;
3576esac
3577eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3578$as_echo "$ac_try_echo"; } >&5
3579 (eval "$ac_try") 2>&5
3580 ac_status=$?
3581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3582 test $ac_status = 0; }; }; then
3583 cross_compiling=no
3584 else
3585 if test "$cross_compiling" = maybe; then
3586 cross_compiling=yes
3587 else
3588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3589$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3590as_fn_error "cannot run C compiled programs.
3591If you meant to cross compile, use \`--host'.
3592See \`config.log' for more details." "$LINENO" 5; }
3593 fi
3594 fi
3595fi
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3597$as_echo "yes" >&6; }
3598
3599rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3600ac_clean_files=$ac_clean_files_save
3601# Check that the compiler produces executables we can run. If not, either
3602# the compiler is broken, or we cross compile.
3603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3604$as_echo_n "checking whether we are cross compiling... " >&6; }
3605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3606$as_echo "$cross_compiling" >&6; }
3607
3608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3609$as_echo_n "checking for suffix of executables... " >&6; }
3610if { { ac_try="$ac_link"
3611case "(($ac_try" in
3612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613 *) ac_try_echo=$ac_try;;
3614esac
3615eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3616$as_echo "$ac_try_echo"; } >&5
3617 (eval "$ac_link") 2>&5
3618 ac_status=$?
3619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3620 test $ac_status = 0; }; then :
3621 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3622# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3623# work properly (i.e., refer to `conftest.exe'), while it won't with
3624# `rm'.
3625for ac_file in conftest.exe conftest conftest.*; do
3626 test -f "$ac_file" || continue
3627 case $ac_file in
3628 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3629 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3630 break;;
3631 * ) break;;
3632 esac
3633done
3634else
3635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3636$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3637as_fn_error "cannot compute suffix of executables: cannot compile and link
3638See \`config.log' for more details." "$LINENO" 5; }
3639fi
3640rm -f conftest$ac_cv_exeext
3641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3642$as_echo "$ac_cv_exeext" >&6; }
3643
3644rm -f conftest.$ac_ext
3645EXEEXT=$ac_cv_exeext
3646ac_exeext=$EXEEXT
3647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3648$as_echo_n "checking for suffix of object files... " >&6; }
3649if test "${ac_cv_objext+set}" = set; then :
3650 $as_echo_n "(cached) " >&6
3651else
3652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653/* end confdefs.h. */
3654
3655int
3656main ()
3657{
3658
3659 ;
3660 return 0;
3661}
3662_ACEOF
3663rm -f conftest.o conftest.obj
3664if { { ac_try="$ac_compile"
3665case "(($ac_try" in
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3668esac
3669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3670$as_echo "$ac_try_echo"; } >&5
3671 (eval "$ac_compile") 2>&5
3672 ac_status=$?
3673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3674 test $ac_status = 0; }; then :
3675 for ac_file in conftest.o conftest.obj conftest.*; do
3676 test -f "$ac_file" || continue;
3677 case $ac_file in
3678 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3679 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3680 break;;
3681 esac
3682done
3683else
3684 $as_echo "$as_me: failed program was:" >&5
3685sed 's/^/| /' conftest.$ac_ext >&5
3686
3687{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3688$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3689as_fn_error "cannot compute suffix of object files: cannot compile
3690See \`config.log' for more details." "$LINENO" 5; }
3691fi
3692rm -f conftest.$ac_cv_objext conftest.$ac_ext
3693fi
3694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3695$as_echo "$ac_cv_objext" >&6; }
3696OBJEXT=$ac_cv_objext
3697ac_objext=$OBJEXT
3698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3699$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3700if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3701 $as_echo_n "(cached) " >&6
3702else
3703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3704/* end confdefs.h. */
3705
3706int
3707main ()
3708{
3709#ifndef __GNUC__
3710 choke me
3711#endif
3712
3713 ;
3714 return 0;
3715}
3716_ACEOF
3717if ac_fn_c_try_compile "$LINENO"; then :
3718 ac_compiler_gnu=yes
3719else
3720 ac_compiler_gnu=no
3721fi
3722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3723ac_cv_c_compiler_gnu=$ac_compiler_gnu
3724
3725fi
3726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3727$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3728if test $ac_compiler_gnu = yes; then
3729 GCC=yes
3730else
3731 GCC=
3732fi
3733ac_test_CFLAGS=${CFLAGS+set}
3734ac_save_CFLAGS=$CFLAGS
3735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3736$as_echo_n "checking whether $CC accepts -g... " >&6; }
3737if test "${ac_cv_prog_cc_g+set}" = set; then :
3738 $as_echo_n "(cached) " >&6
3739else
3740 ac_save_c_werror_flag=$ac_c_werror_flag
3741 ac_c_werror_flag=yes
3742 ac_cv_prog_cc_g=no
3743 CFLAGS="-g"
3744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745/* end confdefs.h. */
3746
3747int
3748main ()
3749{
3750
3751 ;
3752 return 0;
3753}
3754_ACEOF
3755if ac_fn_c_try_compile "$LINENO"; then :
3756 ac_cv_prog_cc_g=yes
3757else
3758 CFLAGS=""
3759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760/* end confdefs.h. */
3761
3762int
3763main ()
3764{
3765
3766 ;
3767 return 0;
3768}
3769_ACEOF
3770if ac_fn_c_try_compile "$LINENO"; then :
3771
3772else
3773 ac_c_werror_flag=$ac_save_c_werror_flag
3774 CFLAGS="-g"
3775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776/* end confdefs.h. */
3777
3778int
3779main ()
3780{
3781
3782 ;
3783 return 0;
3784}
3785_ACEOF
3786if ac_fn_c_try_compile "$LINENO"; then :
3787 ac_cv_prog_cc_g=yes
3788fi
3789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3790fi
3791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3792fi
3793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3794 ac_c_werror_flag=$ac_save_c_werror_flag
3795fi
3796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3797$as_echo "$ac_cv_prog_cc_g" >&6; }
3798if test "$ac_test_CFLAGS" = set; then
3799 CFLAGS=$ac_save_CFLAGS
3800elif test $ac_cv_prog_cc_g = yes; then
3801 if test "$GCC" = yes; then
3802 CFLAGS="-g -O2"
3803 else
3804 CFLAGS="-g"
3805 fi
3806else
3807 if test "$GCC" = yes; then
3808 CFLAGS="-O2"
3809 else
3810 CFLAGS=
3811 fi
3812fi
3813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3814$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3815if test "${ac_cv_prog_cc_c89+set}" = set; then :
3816 $as_echo_n "(cached) " >&6
3817else
3818 ac_cv_prog_cc_c89=no
3819ac_save_CC=$CC
3820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821/* end confdefs.h. */
3822#include <stdarg.h>
3823#include <stdio.h>
3824#include <sys/types.h>
3825#include <sys/stat.h>
3826/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3827struct buf { int x; };
3828FILE * (*rcsopen) (struct buf *, struct stat *, int);
3829static char *e (p, i)
3830 char **p;
3831 int i;
3832{
3833 return p[i];
3834}
3835static char *f (char * (*g) (char **, int), char **p, ...)
3836{
3837 char *s;
3838 va_list v;
3839 va_start (v,p);
3840 s = g (p, va_arg (v,int));
3841 va_end (v);
3842 return s;
3843}
3844
3845/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3846 function prototypes and stuff, but not '\xHH' hex character constants.
3847 These don't provoke an error unfortunately, instead are silently treated
3848 as 'x'. The following induces an error, until -std is added to get
3849 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3850 array size at least. It's necessary to write '\x00'==0 to get something
3851 that's true only with -std. */
3852int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3853
3854/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3855 inside strings and character constants. */
3856#define FOO(x) 'x'
3857int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3858
3859int test (int i, double x);
3860struct s1 {int (*f) (int a);};
3861struct s2 {int (*f) (double a);};
3862int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3863int argc;
3864char **argv;
3865int
3866main ()
3867{
3868return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3869 ;
3870 return 0;
3871}
3872_ACEOF
3873for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3874 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3875do
3876 CC="$ac_save_CC $ac_arg"
3877 if ac_fn_c_try_compile "$LINENO"; then :
3878 ac_cv_prog_cc_c89=$ac_arg
3879fi
3880rm -f core conftest.err conftest.$ac_objext
3881 test "x$ac_cv_prog_cc_c89" != "xno" && break
3882done
3883rm -f conftest.$ac_ext
3884CC=$ac_save_CC
3885
3886fi
3887# AC_CACHE_VAL
3888case "x$ac_cv_prog_cc_c89" in
3889 x)
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3891$as_echo "none needed" >&6; } ;;
3892 xno)
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3894$as_echo "unsupported" >&6; } ;;
3895 *)
3896 CC="$CC $ac_cv_prog_cc_c89"
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3898$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3899esac
3900if test "x$ac_cv_prog_cc_c89" != xno; then :
3901
3902fi
3903
3904ac_ext=c
3905ac_cpp='$CPP $CPPFLAGS'
3906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3908ac_compiler_gnu=$ac_cv_c_compiler_gnu
3909DEPDIR="${am__leading_dot}deps"
3910
3911ac_config_commands="$ac_config_commands depfiles"
3912
3913
3914am_make=${MAKE-make}
3915cat > confinc << 'END'
3916am__doit:
3917 @echo this is the am__doit target
3918.PHONY: am__doit
3919END
3920# If we don't find an include directive, just comment out the code.
3921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3922$as_echo_n "checking for style of include used by $am_make... " >&6; }
3923am__include="#"
3924am__quote=
3925_am_result=none
3926# First try GNU make style include.
3927echo "include confinc" > confmf
3928# Ignore all kinds of additional output from `make'.
3929case `$am_make -s -f confmf 2> /dev/null` in #(
3930*the\ am__doit\ target*)
3931 am__include=include
3932 am__quote=
3933 _am_result=GNU
3934 ;;
3935esac
3936# Now try BSD make style include.
3937if test "$am__include" = "#"; then
3938 echo '.include "confinc"' > confmf
3939 case `$am_make -s -f confmf 2> /dev/null` in #(
3940 *the\ am__doit\ target*)
3941 am__include=.include
3942 am__quote="\""
3943 _am_result=BSD
3944 ;;
3945 esac
3946fi
3947
3948
3949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3950$as_echo "$_am_result" >&6; }
3951rm -f confinc confmf
3952
3953# Check whether --enable-dependency-tracking was given.
3954if test "${enable_dependency_tracking+set}" = set; then :
3955 enableval=$enable_dependency_tracking;
3956fi
3957
3958if test "x$enable_dependency_tracking" != xno; then
3959 am_depcomp="$ac_aux_dir/depcomp"
3960 AMDEPBACKSLASH='\'
e92f1942 3961 am__nodep='_no'
e440a328 3962fi
3963 if test "x$enable_dependency_tracking" != xno; then
3964 AMDEP_TRUE=
3965 AMDEP_FALSE='#'
3966else
3967 AMDEP_TRUE='#'
3968 AMDEP_FALSE=
3969fi
3970
3971
3972
3973depcc="$CC" am_compiler_list=
3974
3975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3976$as_echo_n "checking dependency style of $depcc... " >&6; }
3977if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3978 $as_echo_n "(cached) " >&6
3979else
3980 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3981 # We make a subdir and do the tests there. Otherwise we can end up
3982 # making bogus files that we don't know about and never remove. For
3983 # instance it was reported that on HP-UX the gcc test will end up
3984 # making a dummy file named `D' -- because `-MD' means `put the output
3985 # in D'.
e92f1942 3986 rm -rf conftest.dir
e440a328 3987 mkdir conftest.dir
3988 # Copy depcomp to subdir because otherwise we won't find it if we're
3989 # using a relative directory.
3990 cp "$am_depcomp" conftest.dir
3991 cd conftest.dir
3992 # We will build objects and dependencies in a subdirectory because
3993 # it helps to detect inapplicable dependency modes. For instance
3994 # both Tru64's cc and ICC support -MD to output dependencies as a
3995 # side effect of compilation, but ICC will put the dependencies in
3996 # the current directory while Tru64 will put them in the object
3997 # directory.
3998 mkdir sub
3999
4000 am_cv_CC_dependencies_compiler_type=none
4001 if test "$am_compiler_list" = ""; then
4002 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4003 fi
4004 am__universal=false
4005 case " $depcc " in #(
4006 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4007 esac
4008
4009 for depmode in $am_compiler_list; do
4010 # Setup a source with many dependencies, because some compilers
4011 # like to wrap large dependency lists on column 80 (with \), and
4012 # we should not choose a depcomp mode which is confused by this.
4013 #
4014 # We need to recreate these files for each test, as the compiler may
4015 # overwrite some of them when testing with obscure command lines.
4016 # This happens at least with the AIX C compiler.
4017 : > sub/conftest.c
4018 for i in 1 2 3 4 5 6; do
4019 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4020 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4021 # Solaris 8's {/usr,}/bin/sh.
4022 touch sub/conftst$i.h
4023 done
4024 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4025
4026 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4027 # mode. It turns out that the SunPro C++ compiler does not properly
4028 # handle `-M -o', and we need to detect this. Also, some Intel
4029 # versions had trouble with output in subdirs
4030 am__obj=sub/conftest.${OBJEXT-o}
4031 am__minus_obj="-o $am__obj"
4032 case $depmode in
4033 gcc)
4034 # This depmode causes a compiler race in universal mode.
4035 test "$am__universal" = false || continue
4036 ;;
4037 nosideeffect)
4038 # after this tag, mechanisms are not by side-effect, so they'll
4039 # only be used when explicitly requested
4040 if test "x$enable_dependency_tracking" = xyes; then
4041 continue
4042 else
4043 break
4044 fi
4045 ;;
e92f1942 4046 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
e440a328 4047 # This compiler won't grok `-c -o', but also, the minuso test has
4048 # not run yet. These depmodes are late enough in the game, and
4049 # so weak that their functioning should not be impacted.
4050 am__obj=conftest.${OBJEXT-o}
4051 am__minus_obj=
4052 ;;
4053 none) break ;;
4054 esac
4055 if depmode=$depmode \
4056 source=sub/conftest.c object=$am__obj \
4057 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4058 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4059 >/dev/null 2>conftest.err &&
4060 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4061 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4062 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4063 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4064 # icc doesn't choke on unknown options, it will just issue warnings
4065 # or remarks (even with -Werror). So we grep stderr for any message
4066 # that says an option was ignored or not supported.
4067 # When given -MP, icc 7.0 and 7.1 complain thusly:
4068 # icc: Command line warning: ignoring option '-M'; no argument required
4069 # The diagnosis changed in icc 8.0:
4070 # icc: Command line remark: option '-MP' not supported
4071 if (grep 'ignoring option' conftest.err ||
4072 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4073 am_cv_CC_dependencies_compiler_type=$depmode
4074 break
4075 fi
4076 fi
4077 done
4078
4079 cd ..
4080 rm -rf conftest.dir
4081else
4082 am_cv_CC_dependencies_compiler_type=none
4083fi
4084
4085fi
4086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4087$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4088CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4089
4090 if
4091 test "x$enable_dependency_tracking" != xno \
4092 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4093 am__fastdepCC_TRUE=
4094 am__fastdepCC_FALSE='#'
4095else
4096 am__fastdepCC_TRUE='#'
4097 am__fastdepCC_FALSE=
4098fi
4099
4100
4101ac_ext=go
4102ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
4103ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4104ac_compile_gnu=yes
4105if test -n "$ac_tool_prefix"; then
4106 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4107set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4109$as_echo_n "checking for $ac_word... " >&6; }
4110if test "${ac_cv_prog_GOC+set}" = set; then :
4111 $as_echo_n "(cached) " >&6
4112else
4113 if test -n "$GOC"; then
4114 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4115else
4116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117for as_dir in $PATH
4118do
4119 IFS=$as_save_IFS
4120 test -z "$as_dir" && as_dir=.
4121 for ac_exec_ext in '' $ac_executable_extensions; do
4122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4123 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4125 break 2
4126 fi
4127done
4128 done
4129IFS=$as_save_IFS
4130
4131fi
4132fi
4133GOC=$ac_cv_prog_GOC
4134if test -n "$GOC"; then
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4136$as_echo "$GOC" >&6; }
4137else
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4139$as_echo "no" >&6; }
4140fi
4141
4142
4143fi
4144if test -z "$ac_cv_prog_GOC"; then
4145 ac_ct_GOC=$GOC
4146 # Extract the first word of "gccgo", so it can be a program name with args.
4147set dummy gccgo; ac_word=$2
4148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4149$as_echo_n "checking for $ac_word... " >&6; }
4150if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
4151 $as_echo_n "(cached) " >&6
4152else
4153 if test -n "$ac_ct_GOC"; then
4154 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4155else
4156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4157for as_dir in $PATH
4158do
4159 IFS=$as_save_IFS
4160 test -z "$as_dir" && as_dir=.
4161 for ac_exec_ext in '' $ac_executable_extensions; do
4162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4163 ac_cv_prog_ac_ct_GOC="gccgo"
4164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4165 break 2
4166 fi
4167done
4168 done
4169IFS=$as_save_IFS
4170
4171fi
4172fi
4173ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4174if test -n "$ac_ct_GOC"; then
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4176$as_echo "$ac_ct_GOC" >&6; }
4177else
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4179$as_echo "no" >&6; }
4180fi
4181
4182 if test "x$ac_ct_GOC" = x; then
4183 GOC=""
4184 else
4185 case $cross_compiling:$ac_tool_warned in
4186yes:)
4187{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4188$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4189ac_tool_warned=yes ;;
4190esac
4191 GOC=$ac_ct_GOC
4192 fi
4193else
4194 GOC="$ac_cv_prog_GOC"
4195fi
4196
4197if test -z "$GOC"; then
4198 if test -n "$ac_tool_prefix"; then
4199 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4200set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4202$as_echo_n "checking for $ac_word... " >&6; }
4203if test "${ac_cv_prog_GOC+set}" = set; then :
4204 $as_echo_n "(cached) " >&6
4205else
4206 if test -n "$GOC"; then
4207 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4208else
4209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210for as_dir in $PATH
4211do
4212 IFS=$as_save_IFS
4213 test -z "$as_dir" && as_dir=.
4214 for ac_exec_ext in '' $ac_executable_extensions; do
4215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4216 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4218 break 2
4219 fi
4220done
4221 done
4222IFS=$as_save_IFS
4223
4224fi
4225fi
4226GOC=$ac_cv_prog_GOC
4227if test -n "$GOC"; then
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4229$as_echo "$GOC" >&6; }
4230else
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4232$as_echo "no" >&6; }
4233fi
4234
4235
4236 fi
4237fi
4238if test -z "$GOC"; then
4239 # Extract the first word of "gccgo", so it can be a program name with args.
4240set dummy gccgo; ac_word=$2
4241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4242$as_echo_n "checking for $ac_word... " >&6; }
4243if test "${ac_cv_prog_GOC+set}" = set; then :
4244 $as_echo_n "(cached) " >&6
4245else
4246 if test -n "$GOC"; then
4247 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4248else
4249 ac_prog_rejected=no
4250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251for as_dir in $PATH
4252do
4253 IFS=$as_save_IFS
4254 test -z "$as_dir" && as_dir=.
4255 for ac_exec_ext in '' $ac_executable_extensions; do
4256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4257 if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4258 ac_prog_rejected=yes
4259 continue
4260 fi
4261 ac_cv_prog_GOC="gccgo"
4262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4263 break 2
4264 fi
4265done
4266 done
4267IFS=$as_save_IFS
4268
4269if test $ac_prog_rejected = yes; then
4270 # We found a bogon in the path, so make sure we never use it.
4271 set dummy $ac_cv_prog_GOC
4272 shift
4273 if test $# != 0; then
4274 # We chose a different compiler from the bogus one.
4275 # However, it has the same basename, so the bogon will be chosen
4276 # first if we set GOC to just the basename; use the full file name.
4277 shift
4278 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4279 fi
4280fi
4281fi
4282fi
4283GOC=$ac_cv_prog_GOC
4284if test -n "$GOC"; then
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4286$as_echo "$GOC" >&6; }
4287else
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4289$as_echo "no" >&6; }
4290fi
4291
4292
4293fi
4294
4295
4296# Provide some information about the compiler.
4297$as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4298set X $ac_compile
4299ac_compiler=$2
4300{ { ac_try="$ac_compiler --version >&5"
4301case "(($ac_try" in
4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4304esac
4305eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4306$as_echo "$ac_try_echo"; } >&5
4307 (eval "$ac_compiler --version >&5") 2>conftest.err
4308 ac_status=$?
4309 if test -s conftest.err; then
4310 sed '10a\
4311... rest of stderr output deleted ...
4312 10q' conftest.err >conftest.er1
4313 cat conftest.er1 >&5
4314 rm -f conftest.er1 conftest.err
4315 fi
4316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4317 test $ac_status = 0; }
4318GOCFLAGS="-g -O2"
4319ac_ext=c
4320ac_cpp='$CPP $CPPFLAGS'
4321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4323ac_compiler_gnu=$ac_cv_c_compiler_gnu
4324
4325
4326
4327
4328
4329
4330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4331$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4332 # Check whether --enable-maintainer-mode was given.
4333if test "${enable_maintainer_mode+set}" = set; then :
4334 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4335else
4336 USE_MAINTAINER_MODE=no
4337fi
4338
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4340$as_echo "$USE_MAINTAINER_MODE" >&6; }
4341 if test $USE_MAINTAINER_MODE = yes; then
4342 MAINTAINER_MODE_TRUE=
4343 MAINTAINER_MODE_FALSE='#'
4344else
4345 MAINTAINER_MODE_TRUE='#'
4346 MAINTAINER_MODE_FALSE=
4347fi
4348
4349 MAINT=$MAINTAINER_MODE_TRUE
4350
4351
4352
c9c0c1d2 4353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4354$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4355if test "${ac_cv_path_SED+set}" = set; then :
e440a328 4356 $as_echo_n "(cached) " >&6
4357else
c9c0c1d2 4358 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4359 for ac_i in 1 2 3 4 5 6 7; do
4360 ac_script="$ac_script$as_nl$ac_script"
4361 done
4362 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4363 { ac_script=; unset ac_script;}
4364 if test -z "$SED"; then
4365 ac_path_SED_found=false
4366 # Loop through the user's path and test for each of PROGNAME-LIST
4367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368for as_dir in $PATH
e440a328 4369do
c9c0c1d2 4370 IFS=$as_save_IFS
4371 test -z "$as_dir" && as_dir=.
4372 for ac_prog in sed gsed; do
4373 for ac_exec_ext in '' $ac_executable_extensions; do
4374 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4375 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4376# Check for GNU ac_path_SED and select it if it is found.
4377 # Check for GNU $ac_path_SED
4378case `"$ac_path_SED" --version 2>&1` in
4379*GNU*)
4380 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4381*)
4382 ac_count=0
4383 $as_echo_n 0123456789 >"conftest.in"
4384 while :
4385 do
4386 cat "conftest.in" "conftest.in" >"conftest.tmp"
4387 mv "conftest.tmp" "conftest.in"
4388 cp "conftest.in" "conftest.nl"
4389 $as_echo '' >> "conftest.nl"
4390 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4391 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4392 as_fn_arith $ac_count + 1 && ac_count=$as_val
4393 if test $ac_count -gt ${ac_path_SED_max-0}; then
4394 # Best one so far, save it but keep looking for a better one
4395 ac_cv_path_SED="$ac_path_SED"
4396 ac_path_SED_max=$ac_count
4397 fi
4398 # 10*(2^10) chars as input seems more than enough
4399 test $ac_count -gt 10 && break
4400 done
4401 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4402esac
e440a328 4403
c9c0c1d2 4404 $ac_path_SED_found && break 3
4405 done
4406 done
4407 done
4408IFS=$as_save_IFS
4409 if test -z "$ac_cv_path_SED"; then
4410 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4411 fi
e440a328 4412else
c9c0c1d2 4413 ac_cv_path_SED=$SED
e440a328 4414fi
4415
4416fi
c9c0c1d2 4417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4418$as_echo "$ac_cv_path_SED" >&6; }
4419 SED="$ac_cv_path_SED"
4420 rm -f conftest.sed
4421
4422test -z "$SED" && SED=sed
4423Xsed="$SED -e 1s/^X//"
4424
e440a328 4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4436$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4437if test "${ac_cv_path_GREP+set}" = set; then :
4438 $as_echo_n "(cached) " >&6
4439else
4440 if test -z "$GREP"; then
4441 ac_path_GREP_found=false
4442 # Loop through the user's path and test for each of PROGNAME-LIST
4443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4445do
4446 IFS=$as_save_IFS
4447 test -z "$as_dir" && as_dir=.
4448 for ac_prog in grep ggrep; do
4449 for ac_exec_ext in '' $ac_executable_extensions; do
4450 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4451 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4452# Check for GNU ac_path_GREP and select it if it is found.
4453 # Check for GNU $ac_path_GREP
4454case `"$ac_path_GREP" --version 2>&1` in
4455*GNU*)
4456 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4457*)
4458 ac_count=0
4459 $as_echo_n 0123456789 >"conftest.in"
4460 while :
4461 do
4462 cat "conftest.in" "conftest.in" >"conftest.tmp"
4463 mv "conftest.tmp" "conftest.in"
4464 cp "conftest.in" "conftest.nl"
4465 $as_echo 'GREP' >> "conftest.nl"
4466 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4467 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4468 as_fn_arith $ac_count + 1 && ac_count=$as_val
4469 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4470 # Best one so far, save it but keep looking for a better one
4471 ac_cv_path_GREP="$ac_path_GREP"
4472 ac_path_GREP_max=$ac_count
4473 fi
4474 # 10*(2^10) chars as input seems more than enough
4475 test $ac_count -gt 10 && break
4476 done
4477 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4478esac
4479
4480 $ac_path_GREP_found && break 3
4481 done
4482 done
4483 done
4484IFS=$as_save_IFS
4485 if test -z "$ac_cv_path_GREP"; then
4486 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4487 fi
4488else
4489 ac_cv_path_GREP=$GREP
4490fi
4491
4492fi
4493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4494$as_echo "$ac_cv_path_GREP" >&6; }
4495 GREP="$ac_cv_path_GREP"
4496
4497
4498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4499$as_echo_n "checking for egrep... " >&6; }
4500if test "${ac_cv_path_EGREP+set}" = set; then :
4501 $as_echo_n "(cached) " >&6
4502else
4503 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4504 then ac_cv_path_EGREP="$GREP -E"
4505 else
4506 if test -z "$EGREP"; then
4507 ac_path_EGREP_found=false
4508 # Loop through the user's path and test for each of PROGNAME-LIST
4509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4511do
4512 IFS=$as_save_IFS
4513 test -z "$as_dir" && as_dir=.
4514 for ac_prog in egrep; do
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4517 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4518# Check for GNU ac_path_EGREP and select it if it is found.
4519 # Check for GNU $ac_path_EGREP
4520case `"$ac_path_EGREP" --version 2>&1` in
4521*GNU*)
4522 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4523*)
4524 ac_count=0
4525 $as_echo_n 0123456789 >"conftest.in"
4526 while :
4527 do
4528 cat "conftest.in" "conftest.in" >"conftest.tmp"
4529 mv "conftest.tmp" "conftest.in"
4530 cp "conftest.in" "conftest.nl"
4531 $as_echo 'EGREP' >> "conftest.nl"
4532 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4533 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4534 as_fn_arith $ac_count + 1 && ac_count=$as_val
4535 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4536 # Best one so far, save it but keep looking for a better one
4537 ac_cv_path_EGREP="$ac_path_EGREP"
4538 ac_path_EGREP_max=$ac_count
4539 fi
4540 # 10*(2^10) chars as input seems more than enough
4541 test $ac_count -gt 10 && break
4542 done
4543 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4544esac
4545
4546 $ac_path_EGREP_found && break 3
4547 done
4548 done
4549 done
4550IFS=$as_save_IFS
4551 if test -z "$ac_cv_path_EGREP"; then
4552 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4553 fi
4554else
4555 ac_cv_path_EGREP=$EGREP
4556fi
4557
4558 fi
4559fi
4560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4561$as_echo "$ac_cv_path_EGREP" >&6; }
4562 EGREP="$ac_cv_path_EGREP"
4563
4564
c9c0c1d2 4565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4566$as_echo_n "checking for fgrep... " >&6; }
4567if test "${ac_cv_path_FGREP+set}" = set; then :
8202cb3c 4568 $as_echo_n "(cached) " >&6
4569else
c9c0c1d2 4570 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4571 then ac_cv_path_FGREP="$GREP -F"
4572 else
4573 if test -z "$FGREP"; then
4574 ac_path_FGREP_found=false
e440a328 4575 # Loop through the user's path and test for each of PROGNAME-LIST
4576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
c9c0c1d2 4577for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
e440a328 4578do
4579 IFS=$as_save_IFS
4580 test -z "$as_dir" && as_dir=.
c9c0c1d2 4581 for ac_prog in fgrep; do
e440a328 4582 for ac_exec_ext in '' $ac_executable_extensions; do
c9c0c1d2 4583 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4584 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4585# Check for GNU ac_path_FGREP and select it if it is found.
4586 # Check for GNU $ac_path_FGREP
4587case `"$ac_path_FGREP" --version 2>&1` in
e440a328 4588*GNU*)
c9c0c1d2 4589 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
e440a328 4590*)
4591 ac_count=0
4592 $as_echo_n 0123456789 >"conftest.in"
4593 while :
4594 do
4595 cat "conftest.in" "conftest.in" >"conftest.tmp"
4596 mv "conftest.tmp" "conftest.in"
4597 cp "conftest.in" "conftest.nl"
c9c0c1d2 4598 $as_echo 'FGREP' >> "conftest.nl"
4599 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
e440a328 4600 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4601 as_fn_arith $ac_count + 1 && ac_count=$as_val
c9c0c1d2 4602 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
e440a328 4603 # Best one so far, save it but keep looking for a better one
c9c0c1d2 4604 ac_cv_path_FGREP="$ac_path_FGREP"
4605 ac_path_FGREP_max=$ac_count
e440a328 4606 fi
4607 # 10*(2^10) chars as input seems more than enough
4608 test $ac_count -gt 10 && break
4609 done
4610 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4611esac
4612
c9c0c1d2 4613 $ac_path_FGREP_found && break 3
e440a328 4614 done
4615 done
4616 done
4617IFS=$as_save_IFS
c9c0c1d2 4618 if test -z "$ac_cv_path_FGREP"; then
4619 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
e440a328 4620 fi
4621else
c9c0c1d2 4622 ac_cv_path_FGREP=$FGREP
8202cb3c 4623fi
4624
c9c0c1d2 4625 fi
e440a328 4626fi
4627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4628$as_echo "$ac_cv_path_FGREP" >&6; }
4629 FGREP="$ac_cv_path_FGREP"
4630
4631
4632test -z "$GREP" && GREP=grep
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4651ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4652ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4653
4654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4655$as_echo_n "checking how to print strings... " >&6; }
4656# Test print first, because it will be a builtin if present.
4657if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4658 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4659 ECHO='print -r --'
4660elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4661 ECHO='printf %s\n'
4662else
4663 # Use this function as a fallback that always works.
4664 func_fallback_echo ()
4665 {
4666 eval 'cat <<_LTECHO_EOF
4667$1
4668_LTECHO_EOF'
4669 }
4670 ECHO='func_fallback_echo'
4671fi
4672
4673# func_echo_all arg...
4674# Invoke $ECHO with all args, space-separated.
4675func_echo_all ()
4676{
4677 $ECHO ""
4678}
4679
4680case "$ECHO" in
4681 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4682$as_echo "printf" >&6; } ;;
4683 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4684$as_echo "print -r" >&6; } ;;
4685 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4686$as_echo "cat" >&6; } ;;
4687esac
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704# Check whether --with-gnu-ld was given.
4705if test "${with_gnu_ld+set}" = set; then :
4706 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4707else
4708 with_gnu_ld=no
4709fi
4710
4711ac_prog=ld
4712if test "$GCC" = yes; then
4713 # Check if gcc -print-prog-name=ld gives a path.
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4715$as_echo_n "checking for ld used by $CC... " >&6; }
4716 case $host in
4717 *-*-mingw*)
4718 # gcc leaves a trailing carriage return which upsets mingw
4719 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4720 *)
4721 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4722 esac
4723 case $ac_prog in
4724 # Accept absolute paths.
4725 [\\/]* | ?:[\\/]*)
4726 re_direlt='/[^/][^/]*/\.\./'
4727 # Canonicalize the pathname of ld
4728 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4729 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4730 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4731 done
4732 test -z "$LD" && LD="$ac_prog"
4733 ;;
4734 "")
4735 # If it fails, then pretend we aren't using GCC.
4736 ac_prog=ld
4737 ;;
4738 *)
4739 # If it is relative, then search for the first ld in PATH.
4740 with_gnu_ld=unknown
4741 ;;
4742 esac
4743elif test "$with_gnu_ld" = yes; then
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4745$as_echo_n "checking for GNU ld... " >&6; }
4746else
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4748$as_echo_n "checking for non-GNU ld... " >&6; }
4749fi
4750if test "${lt_cv_path_LD+set}" = set; then :
4751 $as_echo_n "(cached) " >&6
4752else
4753 if test -z "$LD"; then
4754 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4755 for ac_dir in $PATH; do
4756 IFS="$lt_save_ifs"
4757 test -z "$ac_dir" && ac_dir=.
4758 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4759 lt_cv_path_LD="$ac_dir/$ac_prog"
4760 # Check to see if the program is GNU ld. I'd rather use --version,
4761 # but apparently some variants of GNU ld only accept -v.
4762 # Break only if it was the GNU/non-GNU ld that we prefer.
4763 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4764 *GNU* | *'with BFD'*)
4765 test "$with_gnu_ld" != no && break
4766 ;;
4767 *)
4768 test "$with_gnu_ld" != yes && break
4769 ;;
4770 esac
4771 fi
4772 done
4773 IFS="$lt_save_ifs"
4774else
4775 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4776fi
4777fi
4778
4779LD="$lt_cv_path_LD"
4780if test -n "$LD"; then
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4782$as_echo "$LD" >&6; }
4783else
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4785$as_echo "no" >&6; }
4786fi
4787test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4789$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4790if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4791 $as_echo_n "(cached) " >&6
4792else
4793 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4794case `$LD -v 2>&1 </dev/null` in
4795*GNU* | *'with BFD'*)
4796 lt_cv_prog_gnu_ld=yes
4797 ;;
4798*)
4799 lt_cv_prog_gnu_ld=no
4800 ;;
4801esac
4802fi
4803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4804$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4805with_gnu_ld=$lt_cv_prog_gnu_ld
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815if test -n "$ac_tool_prefix"; then
4816 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4817set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4819$as_echo_n "checking for $ac_word... " >&6; }
4820if test "${ac_cv_prog_RANLIB+set}" = set; then :
4821 $as_echo_n "(cached) " >&6
4822else
4823 if test -n "$RANLIB"; then
4824 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4825else
4826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827for as_dir in $PATH
4828do
4829 IFS=$as_save_IFS
4830 test -z "$as_dir" && as_dir=.
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4833 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4835 break 2
4836 fi
4837done
4838 done
4839IFS=$as_save_IFS
4840
4841fi
4842fi
4843RANLIB=$ac_cv_prog_RANLIB
4844if test -n "$RANLIB"; then
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4846$as_echo "$RANLIB" >&6; }
4847else
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4849$as_echo "no" >&6; }
4850fi
4851
4852
4853fi
4854if test -z "$ac_cv_prog_RANLIB"; then
4855 ac_ct_RANLIB=$RANLIB
4856 # Extract the first word of "ranlib", so it can be a program name with args.
4857set dummy ranlib; ac_word=$2
4858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4859$as_echo_n "checking for $ac_word... " >&6; }
4860if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4861 $as_echo_n "(cached) " >&6
4862else
4863 if test -n "$ac_ct_RANLIB"; then
4864 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4865else
4866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867for as_dir in $PATH
4868do
4869 IFS=$as_save_IFS
4870 test -z "$as_dir" && as_dir=.
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4873 ac_cv_prog_ac_ct_RANLIB="ranlib"
4874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4875 break 2
4876 fi
4877done
4878 done
4879IFS=$as_save_IFS
4880
4881fi
4882fi
4883ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4884if test -n "$ac_ct_RANLIB"; then
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4886$as_echo "$ac_ct_RANLIB" >&6; }
4887else
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4889$as_echo "no" >&6; }
4890fi
4891
4892 if test "x$ac_ct_RANLIB" = x; then
4893 RANLIB=":"
4894 else
4895 case $cross_compiling:$ac_tool_warned in
4896yes:)
4897{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4898$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4899ac_tool_warned=yes ;;
4900esac
4901 RANLIB=$ac_ct_RANLIB
4902 fi
4903else
4904 RANLIB="$ac_cv_prog_RANLIB"
4905fi
4906
4907if test -n "$ac_tool_prefix"; then
4908 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4909set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4911$as_echo_n "checking for $ac_word... " >&6; }
4912if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4913 $as_echo_n "(cached) " >&6
4914else
4915 if test -n "$OBJCOPY"; then
4916 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4917else
4918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919for as_dir in $PATH
4920do
4921 IFS=$as_save_IFS
4922 test -z "$as_dir" && as_dir=.
4923 for ac_exec_ext in '' $ac_executable_extensions; do
4924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4925 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4927 break 2
4928 fi
4929done
4930 done
4931IFS=$as_save_IFS
4932
4933fi
4934fi
4935OBJCOPY=$ac_cv_prog_OBJCOPY
4936if test -n "$OBJCOPY"; then
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4938$as_echo "$OBJCOPY" >&6; }
4939else
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4941$as_echo "no" >&6; }
4942fi
4943
4944
4945fi
4946if test -z "$ac_cv_prog_OBJCOPY"; then
4947 ac_ct_OBJCOPY=$OBJCOPY
4948 # Extract the first word of "objcopy", so it can be a program name with args.
4949set dummy objcopy; ac_word=$2
4950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4951$as_echo_n "checking for $ac_word... " >&6; }
4952if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4953 $as_echo_n "(cached) " >&6
4954else
4955 if test -n "$ac_ct_OBJCOPY"; then
4956 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4957else
4958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959for as_dir in $PATH
4960do
4961 IFS=$as_save_IFS
4962 test -z "$as_dir" && as_dir=.
4963 for ac_exec_ext in '' $ac_executable_extensions; do
4964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4965 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4967 break 2
4968 fi
4969done
4970 done
4971IFS=$as_save_IFS
4972
4973fi
4974fi
4975ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4976if test -n "$ac_ct_OBJCOPY"; then
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4978$as_echo "$ac_ct_OBJCOPY" >&6; }
4979else
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4981$as_echo "no" >&6; }
4982fi
4983
4984 if test "x$ac_ct_OBJCOPY" = x; then
4985 OBJCOPY="missing-objcopy"
4986 else
4987 case $cross_compiling:$ac_tool_warned in
4988yes:)
4989{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4990$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4991ac_tool_warned=yes ;;
4992esac
4993 OBJCOPY=$ac_ct_OBJCOPY
4994 fi
4995else
4996 OBJCOPY="$ac_cv_prog_OBJCOPY"
4997fi
4998
4999
5000enable_dlopen=yes
5001
5002
5003
5004case `pwd` in
5005 *\ * | *\ *)
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5007$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5008esac
5009
5010
5011
5012macro_version='2.2.7a'
5013macro_revision='1.3134'
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027ltmain="$ac_aux_dir/ltmain.sh"
5028
5029# Backslashify metacharacters that are still active within
5030# double-quoted strings.
5031sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5032
5033# Same as above, but do not quote variable references.
5034double_quote_subst='s/\(["`\\]\)/\\\1/g'
5035
5036# Sed substitution to delay expansion of an escaped shell variable in a
5037# double_quote_subst'ed string.
5038delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5039
5040# Sed substitution to delay expansion of an escaped single quote.
5041delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5042
5043# Sed substitution to avoid accidental globbing in evaled expressions
5044no_glob_subst='s/\*/\\\*/g'
5045
5046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5047$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5048if test "${lt_cv_path_NM+set}" = set; then :
5049 $as_echo_n "(cached) " >&6
5050else
5051 if test -n "$NM"; then
5052 # Let the user override the test.
5053 lt_cv_path_NM="$NM"
5054else
5055 lt_nm_to_check="${ac_tool_prefix}nm"
5056 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5057 lt_nm_to_check="$lt_nm_to_check nm"
5058 fi
5059 for lt_tmp_nm in $lt_nm_to_check; do
5060 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5061 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5062 IFS="$lt_save_ifs"
5063 test -z "$ac_dir" && ac_dir=.
5064 tmp_nm="$ac_dir/$lt_tmp_nm"
5065 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5066 # Check to see if the nm accepts a BSD-compat flag.
5067 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5068 # nm: unknown option "B" ignored
5069 # Tru64's nm complains that /dev/null is an invalid object file
5070 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5071 */dev/null* | *'Invalid file or object type'*)
5072 lt_cv_path_NM="$tmp_nm -B"
5073 break
5074 ;;
5075 *)
5076 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5077 */dev/null*)
5078 lt_cv_path_NM="$tmp_nm -p"
5079 break
5080 ;;
5081 *)
5082 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5083 continue # so that we can try to find one that supports BSD flags
5084 ;;
5085 esac
5086 ;;
5087 esac
5088 fi
5089 done
5090 IFS="$lt_save_ifs"
5091 done
5092 : ${lt_cv_path_NM=no}
5093fi
5094fi
5095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5096$as_echo "$lt_cv_path_NM" >&6; }
5097if test "$lt_cv_path_NM" != "no"; then
5098 NM="$lt_cv_path_NM"
5099else
5100 # Didn't find any BSD compatible name lister, look for dumpbin.
5101 if test -n "$DUMPBIN"; then :
5102 # Let the user override the test.
5103 else
5104 if test -n "$ac_tool_prefix"; then
5105 for ac_prog in dumpbin "link -dump"
5106 do
5107 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5108set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5110$as_echo_n "checking for $ac_word... " >&6; }
5111if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5112 $as_echo_n "(cached) " >&6
5113else
5114 if test -n "$DUMPBIN"; then
5115 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5116else
5117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5118for as_dir in $PATH
5119do
5120 IFS=$as_save_IFS
5121 test -z "$as_dir" && as_dir=.
5122 for ac_exec_ext in '' $ac_executable_extensions; do
5123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5124 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5126 break 2
5127 fi
5128done
5129 done
5130IFS=$as_save_IFS
5131
5132fi
5133fi
5134DUMPBIN=$ac_cv_prog_DUMPBIN
5135if test -n "$DUMPBIN"; then
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5137$as_echo "$DUMPBIN" >&6; }
5138else
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5140$as_echo "no" >&6; }
5141fi
5142
5143
5144 test -n "$DUMPBIN" && break
5145 done
5146fi
5147if test -z "$DUMPBIN"; then
5148 ac_ct_DUMPBIN=$DUMPBIN
5149 for ac_prog in dumpbin "link -dump"
5150do
5151 # Extract the first word of "$ac_prog", so it can be a program name with args.
5152set dummy $ac_prog; ac_word=$2
5153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5154$as_echo_n "checking for $ac_word... " >&6; }
5155if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5156 $as_echo_n "(cached) " >&6
5157else
5158 if test -n "$ac_ct_DUMPBIN"; then
5159 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5160else
5161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162for as_dir in $PATH
5163do
5164 IFS=$as_save_IFS
5165 test -z "$as_dir" && as_dir=.
5166 for ac_exec_ext in '' $ac_executable_extensions; do
5167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5168 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 break 2
5171 fi
5172done
5173 done
5174IFS=$as_save_IFS
5175
5176fi
5177fi
5178ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5179if test -n "$ac_ct_DUMPBIN"; then
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5181$as_echo "$ac_ct_DUMPBIN" >&6; }
5182else
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5184$as_echo "no" >&6; }
5185fi
5186
5187
5188 test -n "$ac_ct_DUMPBIN" && break
5189done
5190
5191 if test "x$ac_ct_DUMPBIN" = x; then
5192 DUMPBIN=":"
5193 else
5194 case $cross_compiling:$ac_tool_warned in
5195yes:)
5196{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5197$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5198ac_tool_warned=yes ;;
5199esac
5200 DUMPBIN=$ac_ct_DUMPBIN
5201 fi
5202fi
5203
5204 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5205 *COFF*)
5206 DUMPBIN="$DUMPBIN -symbols"
5207 ;;
5208 *)
5209 DUMPBIN=:
5210 ;;
5211 esac
5212 fi
5213
5214 if test "$DUMPBIN" != ":"; then
5215 NM="$DUMPBIN"
5216 fi
5217fi
5218test -z "$NM" && NM=nm
5219
5220
5221
5222
5223
5224
5225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5226$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5227if test "${lt_cv_nm_interface+set}" = set; then :
5228 $as_echo_n "(cached) " >&6
5229else
5230 lt_cv_nm_interface="BSD nm"
5231 echo "int some_variable = 0;" > conftest.$ac_ext
5232 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5233 (eval "$ac_compile" 2>conftest.err)
5234 cat conftest.err >&5
5235 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5236 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5237 cat conftest.err >&5
5238 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5239 cat conftest.out >&5
5240 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5241 lt_cv_nm_interface="MS dumpbin"
5242 fi
5243 rm -f conftest*
5244fi
5245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5246$as_echo "$lt_cv_nm_interface" >&6; }
5247
5248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5249$as_echo_n "checking whether ln -s works... " >&6; }
5250LN_S=$as_ln_s
5251if test "$LN_S" = "ln -s"; then
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5253$as_echo "yes" >&6; }
5254else
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5256$as_echo "no, using $LN_S" >&6; }
5257fi
5258
5259# find the maximum length of command line arguments
5260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5261$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5262if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5263 $as_echo_n "(cached) " >&6
5264else
5265 i=0
5266 teststring="ABCD"
5267
5268 case $build_os in
5269 msdosdjgpp*)
5270 # On DJGPP, this test can blow up pretty badly due to problems in libc
5271 # (any single argument exceeding 2000 bytes causes a buffer overrun
5272 # during glob expansion). Even if it were fixed, the result of this
5273 # check would be larger than it should be.
5274 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5275 ;;
5276
5277 gnu*)
5278 # Under GNU Hurd, this test is not required because there is
5279 # no limit to the length of command line arguments.
5280 # Libtool will interpret -1 as no limit whatsoever
5281 lt_cv_sys_max_cmd_len=-1;
5282 ;;
5283
5284 cygwin* | mingw* | cegcc*)
5285 # On Win9x/ME, this test blows up -- it succeeds, but takes
5286 # about 5 minutes as the teststring grows exponentially.
5287 # Worse, since 9x/ME are not pre-emptively multitasking,
5288 # you end up with a "frozen" computer, even though with patience
5289 # the test eventually succeeds (with a max line length of 256k).
5290 # Instead, let's just punt: use the minimum linelength reported by
5291 # all of the supported platforms: 8192 (on NT/2K/XP).
5292 lt_cv_sys_max_cmd_len=8192;
5293 ;;
5294
5295 mint*)
5296 # On MiNT this can take a long time and run out of memory.
5297 lt_cv_sys_max_cmd_len=8192;
5298 ;;
5299
5300 amigaos*)
5301 # On AmigaOS with pdksh, this test takes hours, literally.
5302 # So we just punt and use a minimum line length of 8192.
5303 lt_cv_sys_max_cmd_len=8192;
5304 ;;
5305
5306 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5307 # This has been around since 386BSD, at least. Likely further.
5308 if test -x /sbin/sysctl; then
5309 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5310 elif test -x /usr/sbin/sysctl; then
5311 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5312 else
5313 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5314 fi
5315 # And add a safety zone
5316 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5317 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5318 ;;
5319
5320 interix*)
5321 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5322 lt_cv_sys_max_cmd_len=196608
5323 ;;
5324
5325 osf*)
5326 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5327 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5328 # nice to cause kernel panics so lets avoid the loop below.
5329 # First set a reasonable default.
5330 lt_cv_sys_max_cmd_len=16384
5331 #
5332 if test -x /sbin/sysconfig; then
5333 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5334 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5335 esac
5336 fi
5337 ;;
5338 sco3.2v5*)
5339 lt_cv_sys_max_cmd_len=102400
5340 ;;
5341 sysv5* | sco5v6* | sysv4.2uw2*)
5342 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5343 if test -n "$kargmax"; then
5344 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5345 else
5346 lt_cv_sys_max_cmd_len=32768
5347 fi
5348 ;;
5349 *)
5350 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5351 if test -n "$lt_cv_sys_max_cmd_len"; then
5352 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5353 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5354 else
5355 # Make teststring a little bigger before we do anything with it.
5356 # a 1K string should be a reasonable start.
5357 for i in 1 2 3 4 5 6 7 8 ; do
5358 teststring=$teststring$teststring
5359 done
5360 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5361 # If test is not a shell built-in, we'll probably end up computing a
5362 # maximum length that is only half of the actual maximum length, but
5363 # we can't tell.
5364 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5365 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5366 test $i != 17 # 1/2 MB should be enough
5367 do
5368 i=`expr $i + 1`
5369 teststring=$teststring$teststring
5370 done
5371 # Only check the string length outside the loop.
5372 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5373 teststring=
5374 # Add a significant safety factor because C++ compilers can tack on
5375 # massive amounts of additional arguments before passing them to the
5376 # linker. It appears as though 1/2 is a usable value.
5377 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5378 fi
5379 ;;
5380 esac
5381
5382fi
5383
5384if test -n $lt_cv_sys_max_cmd_len ; then
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5386$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5387else
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5389$as_echo "none" >&6; }
5390fi
5391max_cmd_len=$lt_cv_sys_max_cmd_len
5392
5393
5394
5395
5396
5397
5398: ${CP="cp -f"}
5399: ${MV="mv -f"}
5400: ${RM="rm -f"}
5401
5402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5403$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5404# Try some XSI features
5405xsi_shell=no
5406( _lt_dummy="a/b/c"
5407 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5408 = c,a/b,, \
5409 && eval 'test $(( 1 + 1 )) -eq 2 \
5410 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5411 && xsi_shell=yes
5412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5413$as_echo "$xsi_shell" >&6; }
5414
5415
5416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5417$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5418lt_shell_append=no
5419( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5420 >/dev/null 2>&1 \
5421 && lt_shell_append=yes
5422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5423$as_echo "$lt_shell_append" >&6; }
5424
5425
5426if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5427 lt_unset=unset
5428else
5429 lt_unset=false
5430fi
5431
5432
5433
5434
5435
5436# test EBCDIC or ASCII
5437case `echo X|tr X '\101'` in
5438 A) # ASCII based system
5439 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5440 lt_SP2NL='tr \040 \012'
5441 lt_NL2SP='tr \015\012 \040\040'
5442 ;;
5443 *) # EBCDIC based system
5444 lt_SP2NL='tr \100 \n'
5445 lt_NL2SP='tr \r\n \100\100'
5446 ;;
5447esac
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5458$as_echo_n "checking for $LD option to reload object files... " >&6; }
5459if test "${lt_cv_ld_reload_flag+set}" = set; then :
5460 $as_echo_n "(cached) " >&6
5461else
5462 lt_cv_ld_reload_flag='-r'
5463fi
5464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5465$as_echo "$lt_cv_ld_reload_flag" >&6; }
5466reload_flag=$lt_cv_ld_reload_flag
5467case $reload_flag in
5468"" | " "*) ;;
5469*) reload_flag=" $reload_flag" ;;
5470esac
5471reload_cmds='$LD$reload_flag -o $output$reload_objs'
5472case $host_os in
5473 darwin*)
5474 if test "$GCC" = yes; then
5475 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5476 else
5477 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5478 fi
5479 ;;
5480esac
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490if test -n "$ac_tool_prefix"; then
5491 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5492set dummy ${ac_tool_prefix}objdump; ac_word=$2
5493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5494$as_echo_n "checking for $ac_word... " >&6; }
5495if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5496 $as_echo_n "(cached) " >&6
5497else
5498 if test -n "$OBJDUMP"; then
5499 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5500else
5501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502for as_dir in $PATH
5503do
5504 IFS=$as_save_IFS
5505 test -z "$as_dir" && as_dir=.
5506 for ac_exec_ext in '' $ac_executable_extensions; do
5507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5508 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5510 break 2
5511 fi
5512done
5513 done
5514IFS=$as_save_IFS
5515
5516fi
5517fi
5518OBJDUMP=$ac_cv_prog_OBJDUMP
5519if test -n "$OBJDUMP"; then
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5521$as_echo "$OBJDUMP" >&6; }
5522else
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5524$as_echo "no" >&6; }
5525fi
5526
5527
5528fi
5529if test -z "$ac_cv_prog_OBJDUMP"; then
5530 ac_ct_OBJDUMP=$OBJDUMP
5531 # Extract the first word of "objdump", so it can be a program name with args.
5532set dummy objdump; ac_word=$2
5533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5534$as_echo_n "checking for $ac_word... " >&6; }
5535if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5536 $as_echo_n "(cached) " >&6
5537else
5538 if test -n "$ac_ct_OBJDUMP"; then
5539 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5540else
5541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542for as_dir in $PATH
5543do
5544 IFS=$as_save_IFS
5545 test -z "$as_dir" && as_dir=.
5546 for ac_exec_ext in '' $ac_executable_extensions; do
5547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5548 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5550 break 2
5551 fi
5552done
5553 done
5554IFS=$as_save_IFS
5555
5556fi
5557fi
5558ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5559if test -n "$ac_ct_OBJDUMP"; then
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5561$as_echo "$ac_ct_OBJDUMP" >&6; }
5562else
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5564$as_echo "no" >&6; }
5565fi
5566
5567 if test "x$ac_ct_OBJDUMP" = x; then
5568 OBJDUMP="false"
5569 else
5570 case $cross_compiling:$ac_tool_warned in
5571yes:)
5572{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5573$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5574ac_tool_warned=yes ;;
5575esac
5576 OBJDUMP=$ac_ct_OBJDUMP
5577 fi
5578else
5579 OBJDUMP="$ac_cv_prog_OBJDUMP"
5580fi
5581
5582test -z "$OBJDUMP" && OBJDUMP=objdump
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5593$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5594if test "${lt_cv_deplibs_check_method+set}" = set; then :
5595 $as_echo_n "(cached) " >&6
5596else
5597 lt_cv_file_magic_cmd='$MAGIC_CMD'
5598lt_cv_file_magic_test_file=
5599lt_cv_deplibs_check_method='unknown'
5600# Need to set the preceding variable on all platforms that support
5601# interlibrary dependencies.
5602# 'none' -- dependencies not supported.
5603# `unknown' -- same as none, but documents that we really don't know.
5604# 'pass_all' -- all dependencies passed with no checks.
5605# 'test_compile' -- check by making test program.
5606# 'file_magic [[regex]]' -- check by looking for files in library path
5607# which responds to the $file_magic_cmd with a given extended regex.
5608# If you have `file' or equivalent on your system and you're not sure
5609# whether `pass_all' will *always* work, you probably want this one.
5610
5611case $host_os in
5612aix[4-9]*)
5613 lt_cv_deplibs_check_method=pass_all
5614 ;;
5615
5616beos*)
5617 lt_cv_deplibs_check_method=pass_all
5618 ;;
5619
5620bsdi[45]*)
5621 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5622 lt_cv_file_magic_cmd='/usr/bin/file -L'
5623 lt_cv_file_magic_test_file=/shlib/libc.so
5624 ;;
5625
5626cygwin*)
5627 # func_win32_libid is a shell function defined in ltmain.sh
5628 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5629 lt_cv_file_magic_cmd='func_win32_libid'
5630 ;;
5631
5632mingw* | pw32*)
5633 # Base MSYS/MinGW do not provide the 'file' command needed by
5634 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5635 # unless we find 'file', for example because we are cross-compiling.
5636 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5637 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5638 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5639 lt_cv_file_magic_cmd='func_win32_libid'
5640 else
5641 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5642 lt_cv_file_magic_cmd='$OBJDUMP -f'
5643 fi
5644 ;;
5645
5646cegcc*)
5647 # use the weaker test based on 'objdump'. See mingw*.
5648 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5649 lt_cv_file_magic_cmd='$OBJDUMP -f'
5650 ;;
5651
5652darwin* | rhapsody*)
5653 lt_cv_deplibs_check_method=pass_all
5654 ;;
5655
5656freebsd* | dragonfly*)
5657 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5658 case $host_cpu in
5659 i*86 )
5660 # Not sure whether the presence of OpenBSD here was a mistake.
5661 # Let's accept both of them until this is cleared up.
5662 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5663 lt_cv_file_magic_cmd=/usr/bin/file
5664 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5665 ;;
5666 esac
5667 else
5668 lt_cv_deplibs_check_method=pass_all
5669 fi
5670 ;;
5671
5672gnu*)
5673 lt_cv_deplibs_check_method=pass_all
5674 ;;
5675
5676haiku*)
5677 lt_cv_deplibs_check_method=pass_all
5678 ;;
5679
5680hpux10.20* | hpux11*)
5681 lt_cv_file_magic_cmd=/usr/bin/file
5682 case $host_cpu in
5683 ia64*)
5684 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5685 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5686 ;;
5687 hppa*64*)
5688 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5689 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5690 ;;
5691 *)
5692 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5693 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5694 ;;
5695 esac
5696 ;;
5697
5698interix[3-9]*)
5699 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5700 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5701 ;;
5702
5703irix5* | irix6* | nonstopux*)
5704 case $LD in
5705 *-32|*"-32 ") libmagic=32-bit;;
5706 *-n32|*"-n32 ") libmagic=N32;;
5707 *-64|*"-64 ") libmagic=64-bit;;
5708 *) libmagic=never-match;;
5709 esac
5710 lt_cv_deplibs_check_method=pass_all
5711 ;;
5712
5713# This must be Linux ELF.
5714linux* | k*bsd*-gnu | kopensolaris*-gnu)
5715 lt_cv_deplibs_check_method=pass_all
5716 ;;
5717
5718netbsd*)
5719 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5720 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5721 else
5722 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5723 fi
5724 ;;
5725
5726newos6*)
5727 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5728 lt_cv_file_magic_cmd=/usr/bin/file
5729 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5730 ;;
5731
5732*nto* | *qnx*)
5733 lt_cv_deplibs_check_method=pass_all
5734 ;;
5735
5736openbsd*)
5737 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5738 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5739 else
5740 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5741 fi
5742 ;;
5743
5744osf3* | osf4* | osf5*)
5745 lt_cv_deplibs_check_method=pass_all
5746 ;;
5747
5748rdos*)
5749 lt_cv_deplibs_check_method=pass_all
5750 ;;
5751
5752solaris*)
5753 lt_cv_deplibs_check_method=pass_all
5754 ;;
5755
5756sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5757 lt_cv_deplibs_check_method=pass_all
5758 ;;
5759
5760sysv4 | sysv4.3*)
5761 case $host_vendor in
5762 motorola)
5763 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5764 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5765 ;;
5766 ncr)
5767 lt_cv_deplibs_check_method=pass_all
5768 ;;
5769 sequent)
5770 lt_cv_file_magic_cmd='/bin/file'
5771 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5772 ;;
5773 sni)
5774 lt_cv_file_magic_cmd='/bin/file'
5775 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5776 lt_cv_file_magic_test_file=/lib/libc.so
5777 ;;
5778 siemens)
5779 lt_cv_deplibs_check_method=pass_all
5780 ;;
5781 pc)
5782 lt_cv_deplibs_check_method=pass_all
5783 ;;
5784 esac
5785 ;;
5786
5787tpf*)
5788 lt_cv_deplibs_check_method=pass_all
5789 ;;
5790esac
5791
5792fi
5793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5794$as_echo "$lt_cv_deplibs_check_method" >&6; }
5795file_magic_cmd=$lt_cv_file_magic_cmd
5796deplibs_check_method=$lt_cv_deplibs_check_method
5797test -z "$deplibs_check_method" && deplibs_check_method=unknown
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810if test -n "$ac_tool_prefix"; then
5811 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5812set dummy ${ac_tool_prefix}ar; ac_word=$2
5813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5814$as_echo_n "checking for $ac_word... " >&6; }
5815if test "${ac_cv_prog_AR+set}" = set; then :
5816 $as_echo_n "(cached) " >&6
5817else
5818 if test -n "$AR"; then
5819 ac_cv_prog_AR="$AR" # Let the user override the test.
5820else
5821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822for as_dir in $PATH
5823do
5824 IFS=$as_save_IFS
5825 test -z "$as_dir" && as_dir=.
5826 for ac_exec_ext in '' $ac_executable_extensions; do
5827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5828 ac_cv_prog_AR="${ac_tool_prefix}ar"
5829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5830 break 2
5831 fi
5832done
5833 done
5834IFS=$as_save_IFS
5835
5836fi
5837fi
5838AR=$ac_cv_prog_AR
5839if test -n "$AR"; then
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5841$as_echo "$AR" >&6; }
5842else
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5844$as_echo "no" >&6; }
5845fi
5846
5847
5848fi
5849if test -z "$ac_cv_prog_AR"; then
5850 ac_ct_AR=$AR
5851 # Extract the first word of "ar", so it can be a program name with args.
5852set dummy ar; ac_word=$2
5853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5854$as_echo_n "checking for $ac_word... " >&6; }
5855if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5856 $as_echo_n "(cached) " >&6
5857else
5858 if test -n "$ac_ct_AR"; then
5859 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5860else
5861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862for as_dir in $PATH
5863do
5864 IFS=$as_save_IFS
5865 test -z "$as_dir" && as_dir=.
5866 for ac_exec_ext in '' $ac_executable_extensions; do
5867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5868 ac_cv_prog_ac_ct_AR="ar"
5869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5870 break 2
5871 fi
5872done
5873 done
5874IFS=$as_save_IFS
5875
5876fi
5877fi
5878ac_ct_AR=$ac_cv_prog_ac_ct_AR
5879if test -n "$ac_ct_AR"; then
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5881$as_echo "$ac_ct_AR" >&6; }
5882else
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884$as_echo "no" >&6; }
5885fi
5886
5887 if test "x$ac_ct_AR" = x; then
5888 AR="false"
5889 else
5890 case $cross_compiling:$ac_tool_warned in
5891yes:)
5892{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5894ac_tool_warned=yes ;;
5895esac
5896 AR=$ac_ct_AR
5897 fi
5898else
5899 AR="$ac_cv_prog_AR"
5900fi
5901
5902test -z "$AR" && AR=ar
5903test -z "$AR_FLAGS" && AR_FLAGS=cru
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915if test -n "$ac_tool_prefix"; then
5916 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5917set dummy ${ac_tool_prefix}strip; ac_word=$2
5918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5919$as_echo_n "checking for $ac_word... " >&6; }
5920if test "${ac_cv_prog_STRIP+set}" = set; then :
5921 $as_echo_n "(cached) " >&6
5922else
5923 if test -n "$STRIP"; then
5924 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5925else
5926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927for as_dir in $PATH
5928do
5929 IFS=$as_save_IFS
5930 test -z "$as_dir" && as_dir=.
5931 for ac_exec_ext in '' $ac_executable_extensions; do
5932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5933 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5935 break 2
5936 fi
5937done
5938 done
5939IFS=$as_save_IFS
5940
5941fi
5942fi
5943STRIP=$ac_cv_prog_STRIP
5944if test -n "$STRIP"; then
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5946$as_echo "$STRIP" >&6; }
5947else
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5949$as_echo "no" >&6; }
5950fi
5951
5952
5953fi
5954if test -z "$ac_cv_prog_STRIP"; then
5955 ac_ct_STRIP=$STRIP
5956 # Extract the first word of "strip", so it can be a program name with args.
5957set dummy strip; ac_word=$2
5958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5959$as_echo_n "checking for $ac_word... " >&6; }
5960if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5961 $as_echo_n "(cached) " >&6
5962else
5963 if test -n "$ac_ct_STRIP"; then
5964 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5965else
5966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967for as_dir in $PATH
5968do
5969 IFS=$as_save_IFS
5970 test -z "$as_dir" && as_dir=.
5971 for ac_exec_ext in '' $ac_executable_extensions; do
5972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5973 ac_cv_prog_ac_ct_STRIP="strip"
5974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5975 break 2
5976 fi
5977done
5978 done
5979IFS=$as_save_IFS
5980
5981fi
5982fi
5983ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5984if test -n "$ac_ct_STRIP"; then
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5986$as_echo "$ac_ct_STRIP" >&6; }
5987else
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5989$as_echo "no" >&6; }
5990fi
5991
5992 if test "x$ac_ct_STRIP" = x; then
5993 STRIP=":"
5994 else
5995 case $cross_compiling:$ac_tool_warned in
5996yes:)
5997{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5998$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5999ac_tool_warned=yes ;;
6000esac
6001 STRIP=$ac_ct_STRIP
6002 fi
6003else
6004 STRIP="$ac_cv_prog_STRIP"
6005fi
6006
6007test -z "$STRIP" && STRIP=:
6008
6009
6010
6011
6012
6013
6014if test -n "$ac_tool_prefix"; then
6015 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6016set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6018$as_echo_n "checking for $ac_word... " >&6; }
6019if test "${ac_cv_prog_RANLIB+set}" = set; then :
6020 $as_echo_n "(cached) " >&6
6021else
6022 if test -n "$RANLIB"; then
6023 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6024else
6025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026for as_dir in $PATH
6027do
6028 IFS=$as_save_IFS
6029 test -z "$as_dir" && as_dir=.
6030 for ac_exec_ext in '' $ac_executable_extensions; do
6031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6032 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6034 break 2
6035 fi
6036done
6037 done
6038IFS=$as_save_IFS
6039
6040fi
6041fi
6042RANLIB=$ac_cv_prog_RANLIB
6043if test -n "$RANLIB"; then
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6045$as_echo "$RANLIB" >&6; }
6046else
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6048$as_echo "no" >&6; }
6049fi
6050
6051
6052fi
6053if test -z "$ac_cv_prog_RANLIB"; then
6054 ac_ct_RANLIB=$RANLIB
6055 # Extract the first word of "ranlib", so it can be a program name with args.
6056set dummy ranlib; ac_word=$2
6057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6058$as_echo_n "checking for $ac_word... " >&6; }
6059if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6060 $as_echo_n "(cached) " >&6
6061else
6062 if test -n "$ac_ct_RANLIB"; then
6063 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6064else
6065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066for as_dir in $PATH
6067do
6068 IFS=$as_save_IFS
6069 test -z "$as_dir" && as_dir=.
6070 for ac_exec_ext in '' $ac_executable_extensions; do
6071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6072 ac_cv_prog_ac_ct_RANLIB="ranlib"
6073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6074 break 2
6075 fi
6076done
6077 done
6078IFS=$as_save_IFS
6079
6080fi
6081fi
6082ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6083if test -n "$ac_ct_RANLIB"; then
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6085$as_echo "$ac_ct_RANLIB" >&6; }
6086else
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6088$as_echo "no" >&6; }
6089fi
6090
6091 if test "x$ac_ct_RANLIB" = x; then
6092 RANLIB=":"
6093 else
6094 case $cross_compiling:$ac_tool_warned in
6095yes:)
6096{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6097$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6098ac_tool_warned=yes ;;
6099esac
6100 RANLIB=$ac_ct_RANLIB
6101 fi
6102else
6103 RANLIB="$ac_cv_prog_RANLIB"
6104fi
6105
6106test -z "$RANLIB" && RANLIB=:
6107
6108
6109
6110
6111
6112
6113# Determine commands to create old-style static archives.
6114old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6115old_postinstall_cmds='chmod 644 $oldlib'
6116old_postuninstall_cmds=
6117
6118if test -n "$RANLIB"; then
6119 case $host_os in
6120 openbsd*)
6121 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6122 ;;
6123 *)
6124 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6125 ;;
6126 esac
6127 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6128fi
6129
6130case $host_os in
6131 darwin*)
6132 lock_old_archive_extraction=yes ;;
6133 *)
6134 lock_old_archive_extraction=no ;;
6135esac
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175# If no C compiler was specified, use CC.
6176LTCC=${LTCC-"$CC"}
6177
6178# If no C compiler flags were specified, use CFLAGS.
6179LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6180
6181# Allow CC to be a program name with arguments.
6182compiler=$CC
6183
6184
6185# Check for command to grab the raw symbol name followed by C symbol from nm.
6186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6187$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6188if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6189 $as_echo_n "(cached) " >&6
6190else
6191
6192# These are sane defaults that work on at least a few old systems.
6193# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6194
6195# Character class describing NM global symbol codes.
6196symcode='[BCDEGRST]'
6197
6198# Regexp to match symbols that can be accessed directly from C.
6199sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6200
6201# Define system-specific variables.
6202case $host_os in
6203aix*)
6204 symcode='[BCDT]'
6205 ;;
6206cygwin* | mingw* | pw32* | cegcc*)
6207 symcode='[ABCDGISTW]'
6208 ;;
6209hpux*)
6210 if test "$host_cpu" = ia64; then
6211 symcode='[ABCDEGRST]'
6212 fi
6213 ;;
6214irix* | nonstopux*)
6215 symcode='[BCDEGRST]'
6216 ;;
6217osf*)
6218 symcode='[BCDEGQRST]'
6219 ;;
6220solaris*)
6221 symcode='[BDRT]'
6222 ;;
6223sco3.2v5*)
6224 symcode='[DT]'
6225 ;;
6226sysv4.2uw2*)
6227 symcode='[DT]'
6228 ;;
6229sysv5* | sco5v6* | unixware* | OpenUNIX*)
6230 symcode='[ABDT]'
6231 ;;
6232sysv4)
6233 symcode='[DFNSTU]'
6234 ;;
6235esac
6236
6237# If we're using GNU nm, then use its standard symbol codes.
6238case `$NM -V 2>&1` in
6239*GNU* | *'with BFD'*)
6240 symcode='[ABCDGIRSTW]' ;;
6241esac
6242
6243# Transform an extracted symbol line into a proper C declaration.
6244# Some systems (esp. on ia64) link data and code symbols differently,
6245# so use this general approach.
6246lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6247
6248# Transform an extracted symbol line into symbol name and symbol address
6249lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6250lt_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'"
6251
6252# Handle CRLF in mingw tool chain
6253opt_cr=
6254case $build_os in
6255mingw*)
6256 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6257 ;;
6258esac
6259
6260# Try without a prefix underscore, then with it.
6261for ac_symprfx in "" "_"; do
6262
6263 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6264 symxfrm="\\1 $ac_symprfx\\2 \\2"
6265
6266 # Write the raw and C identifiers.
6267 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6268 # Fake it for dumpbin and say T for any non-static function
6269 # and D for any global variable.
6270 # Also find C++ and __fastcall symbols from MSVC++,
6271 # which start with @ or ?.
6272 lt_cv_sys_global_symbol_pipe="$AWK '"\
6273" {last_section=section; section=\$ 3};"\
6274" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6275" \$ 0!~/External *\|/{next};"\
6276" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6277" {if(hide[section]) next};"\
6278" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6279" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6280" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6281" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6282" ' prfx=^$ac_symprfx"
6283 else
6284 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6285 fi
6286
6287 # Check to see that the pipe works correctly.
6288 pipe_works=no
6289
6290 rm -f conftest*
6291 cat > conftest.$ac_ext <<_LT_EOF
6292#ifdef __cplusplus
6293extern "C" {
6294#endif
6295char nm_test_var;
6296void nm_test_func(void);
6297void nm_test_func(void){}
6298#ifdef __cplusplus
6299}
6300#endif
6301int main(){nm_test_var='a';nm_test_func();return(0);}
6302_LT_EOF
6303
6304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6305 (eval $ac_compile) 2>&5
6306 ac_status=$?
6307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6308 test $ac_status = 0; }; then
6309 # Now try to grab the symbols.
6310 nlist=conftest.nm
6311 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6312 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6313 ac_status=$?
6314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6315 test $ac_status = 0; } && test -s "$nlist"; then
6316 # Try sorting and uniquifying the output.
6317 if sort "$nlist" | uniq > "$nlist"T; then
6318 mv -f "$nlist"T "$nlist"
6319 else
6320 rm -f "$nlist"T
6321 fi
6322
6323 # Make sure that we snagged all the symbols we need.
6324 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6325 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6326 cat <<_LT_EOF > conftest.$ac_ext
6327#ifdef __cplusplus
6328extern "C" {
6329#endif
6330
6331_LT_EOF
6332 # Now generate the symbol file.
6333 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6334
6335 cat <<_LT_EOF >> conftest.$ac_ext
6336
6337/* The mapping between symbol names and symbols. */
6338const struct {
6339 const char *name;
6340 void *address;
6341}
6342lt__PROGRAM__LTX_preloaded_symbols[] =
6343{
6344 { "@PROGRAM@", (void *) 0 },
6345_LT_EOF
6346 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6347 cat <<\_LT_EOF >> conftest.$ac_ext
6348 {0, (void *) 0}
6349};
6350
6351/* This works around a problem in FreeBSD linker */
6352#ifdef FREEBSD_WORKAROUND
6353static const void *lt_preloaded_setup() {
6354 return lt__PROGRAM__LTX_preloaded_symbols;
6355}
6356#endif
6357
6358#ifdef __cplusplus
6359}
6360#endif
6361_LT_EOF
6362 # Now try linking the two files.
6363 mv conftest.$ac_objext conftstm.$ac_objext
6364 lt_save_LIBS="$LIBS"
6365 lt_save_CFLAGS="$CFLAGS"
6366 LIBS="conftstm.$ac_objext"
6367 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6368 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6369 (eval $ac_link) 2>&5
6370 ac_status=$?
6371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6372 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6373 pipe_works=yes
6374 fi
6375 LIBS="$lt_save_LIBS"
6376 CFLAGS="$lt_save_CFLAGS"
6377 else
6378 echo "cannot find nm_test_func in $nlist" >&5
6379 fi
6380 else
6381 echo "cannot find nm_test_var in $nlist" >&5
6382 fi
6383 else
6384 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6385 fi
6386 else
6387 echo "$progname: failed program was:" >&5
6388 cat conftest.$ac_ext >&5
6389 fi
6390 rm -rf conftest* conftst*
6391
6392 # Do not use the global_symbol_pipe unless it works.
6393 if test "$pipe_works" = yes; then
6394 break
6395 else
6396 lt_cv_sys_global_symbol_pipe=
6397 fi
6398done
6399
6400fi
6401
6402if test -z "$lt_cv_sys_global_symbol_pipe"; then
6403 lt_cv_sys_global_symbol_to_cdecl=
6404fi
6405if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6407$as_echo "failed" >&6; }
6408else
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6410$as_echo "ok" >&6; }
6411fi
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
c9c0c1d2 6432
e440a328 6433
6434
6435# Check whether --enable-libtool-lock was given.
6436if test "${enable_libtool_lock+set}" = set; then :
6437 enableval=$enable_libtool_lock;
6438fi
6439
6440test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6441
6442# Some flags need to be propagated to the compiler or linker for good
6443# libtool support.
6444case $host in
6445ia64-*-hpux*)
6446 # Find out which ABI we are using.
6447 echo 'int i;' > conftest.$ac_ext
6448 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6449 (eval $ac_compile) 2>&5
6450 ac_status=$?
6451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6452 test $ac_status = 0; }; then
6453 case `/usr/bin/file conftest.$ac_objext` in
6454 *ELF-32*)
6455 HPUX_IA64_MODE="32"
6456 ;;
6457 *ELF-64*)
6458 HPUX_IA64_MODE="64"
6459 ;;
6460 esac
6461 fi
6462 rm -rf conftest*
6463 ;;
6464*-*-irix6*)
6465 # Find out which ABI we are using.
6466 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6468 (eval $ac_compile) 2>&5
6469 ac_status=$?
6470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6471 test $ac_status = 0; }; then
6472 if test "$lt_cv_prog_gnu_ld" = yes; then
6473 case `/usr/bin/file conftest.$ac_objext` in
6474 *32-bit*)
6475 LD="${LD-ld} -melf32bsmip"
6476 ;;
6477 *N32*)
6478 LD="${LD-ld} -melf32bmipn32"
6479 ;;
6480 *64-bit*)
6481 LD="${LD-ld} -melf64bmip"
6482 ;;
6483 esac
6484 else
6485 case `/usr/bin/file conftest.$ac_objext` in
6486 *32-bit*)
6487 LD="${LD-ld} -32"
6488 ;;
6489 *N32*)
6490 LD="${LD-ld} -n32"
6491 ;;
6492 *64-bit*)
6493 LD="${LD-ld} -64"
6494 ;;
6495 esac
6496 fi
6497 fi
6498 rm -rf conftest*
6499 ;;
6500
f248394b 6501x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
e440a328 6502s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6503 # Find out which ABI we are using.
6504 echo 'int i;' > conftest.$ac_ext
6505 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6506 (eval $ac_compile) 2>&5
6507 ac_status=$?
6508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6509 test $ac_status = 0; }; then
6510 case `/usr/bin/file conftest.o` in
6511 *32-bit*)
6512 case $host in
6513 x86_64-*kfreebsd*-gnu)
6514 LD="${LD-ld} -m elf_i386_fbsd"
6515 ;;
6516 x86_64-*linux*)
31d696fa 6517 case `/usr/bin/file conftest.o` in
6518 *x86-64*)
6519 LD="${LD-ld} -m elf32_x86_64"
6520 ;;
6521 *)
6522 LD="${LD-ld} -m elf_i386"
6523 ;;
6524 esac
e440a328 6525 ;;
45c387c7 6526 powerpc64le-*linux*)
f248394b 6527 LD="${LD-ld} -m elf32lppclinux"
6528 ;;
45c387c7 6529 powerpc64-*linux*)
e440a328 6530 LD="${LD-ld} -m elf32ppclinux"
6531 ;;
6532 s390x-*linux*)
6533 LD="${LD-ld} -m elf_s390"
6534 ;;
6535 sparc64-*linux*)
6536 LD="${LD-ld} -m elf32_sparc"
6537 ;;
6538 esac
6539 ;;
6540 *64-bit*)
6541 case $host in
6542 x86_64-*kfreebsd*-gnu)
6543 LD="${LD-ld} -m elf_x86_64_fbsd"
6544 ;;
6545 x86_64-*linux*)
6546 LD="${LD-ld} -m elf_x86_64"
6547 ;;
45c387c7 6548 powerpcle-*linux*)
f248394b 6549 LD="${LD-ld} -m elf64lppc"
6550 ;;
45c387c7 6551 powerpc-*linux*)
e440a328 6552 LD="${LD-ld} -m elf64ppc"
6553 ;;
6554 s390*-*linux*|s390*-*tpf*)
6555 LD="${LD-ld} -m elf64_s390"
6556 ;;
6557 sparc*-*linux*)
6558 LD="${LD-ld} -m elf64_sparc"
6559 ;;
6560 esac
6561 ;;
6562 esac
6563 fi
6564 rm -rf conftest*
6565 ;;
6566
6567*-*-sco3.2v5*)
6568 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6569 SAVE_CFLAGS="$CFLAGS"
6570 CFLAGS="$CFLAGS -belf"
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6572$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6573if test "${lt_cv_cc_needs_belf+set}" = set; then :
6574 $as_echo_n "(cached) " >&6
6575else
6576 ac_ext=c
6577ac_cpp='$CPP $CPPFLAGS'
6578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6580ac_compiler_gnu=$ac_cv_c_compiler_gnu
6581
6582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6583/* end confdefs.h. */
6584
6585int
6586main ()
6587{
6588
6589 ;
6590 return 0;
6591}
6592_ACEOF
6593if ac_fn_c_try_link "$LINENO"; then :
6594 lt_cv_cc_needs_belf=yes
6595else
6596 lt_cv_cc_needs_belf=no
6597fi
6598rm -f core conftest.err conftest.$ac_objext \
6599 conftest$ac_exeext conftest.$ac_ext
6600 ac_ext=c
6601ac_cpp='$CPP $CPPFLAGS'
6602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6604ac_compiler_gnu=$ac_cv_c_compiler_gnu
6605
6606fi
6607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6608$as_echo "$lt_cv_cc_needs_belf" >&6; }
6609 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6610 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6611 CFLAGS="$SAVE_CFLAGS"
6612 fi
6613 ;;
31d696fa 6614sparc*-*solaris*)
e440a328 6615 # Find out which ABI we are using.
6616 echo 'int i;' > conftest.$ac_ext
6617 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6618 (eval $ac_compile) 2>&5
6619 ac_status=$?
6620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6621 test $ac_status = 0; }; then
6622 case `/usr/bin/file conftest.o` in
6623 *64-bit*)
6624 case $lt_cv_prog_gnu_ld in
31d696fa 6625 yes*) LD="${LD-ld} -m elf64_sparc" ;;
e440a328 6626 *)
6627 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6628 LD="${LD-ld} -64"
6629 fi
6630 ;;
6631 esac
6632 ;;
6633 esac
6634 fi
6635 rm -rf conftest*
6636 ;;
6637esac
6638
6639need_locks="$enable_libtool_lock"
6640
6641
6642 case $host_os in
6643 rhapsody* | darwin*)
6644 if test -n "$ac_tool_prefix"; then
6645 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6646set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6648$as_echo_n "checking for $ac_word... " >&6; }
6649if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6650 $as_echo_n "(cached) " >&6
6651else
6652 if test -n "$DSYMUTIL"; then
6653 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6654else
6655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6656for as_dir in $PATH
6657do
6658 IFS=$as_save_IFS
6659 test -z "$as_dir" && as_dir=.
6660 for ac_exec_ext in '' $ac_executable_extensions; do
6661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6662 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6664 break 2
6665 fi
6666done
6667 done
6668IFS=$as_save_IFS
6669
6670fi
6671fi
6672DSYMUTIL=$ac_cv_prog_DSYMUTIL
6673if test -n "$DSYMUTIL"; then
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6675$as_echo "$DSYMUTIL" >&6; }
6676else
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6678$as_echo "no" >&6; }
6679fi
6680
6681
6682fi
6683if test -z "$ac_cv_prog_DSYMUTIL"; then
6684 ac_ct_DSYMUTIL=$DSYMUTIL
6685 # Extract the first word of "dsymutil", so it can be a program name with args.
6686set dummy dsymutil; ac_word=$2
6687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6688$as_echo_n "checking for $ac_word... " >&6; }
6689if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6690 $as_echo_n "(cached) " >&6
6691else
6692 if test -n "$ac_ct_DSYMUTIL"; then
6693 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6694else
6695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6696for as_dir in $PATH
6697do
6698 IFS=$as_save_IFS
6699 test -z "$as_dir" && as_dir=.
6700 for ac_exec_ext in '' $ac_executable_extensions; do
6701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6702 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6704 break 2
6705 fi
6706done
6707 done
6708IFS=$as_save_IFS
6709
6710fi
6711fi
6712ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6713if test -n "$ac_ct_DSYMUTIL"; then
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6715$as_echo "$ac_ct_DSYMUTIL" >&6; }
6716else
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6718$as_echo "no" >&6; }
6719fi
6720
6721 if test "x$ac_ct_DSYMUTIL" = x; then
6722 DSYMUTIL=":"
6723 else
6724 case $cross_compiling:$ac_tool_warned in
6725yes:)
6726{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6727$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6728ac_tool_warned=yes ;;
6729esac
6730 DSYMUTIL=$ac_ct_DSYMUTIL
6731 fi
6732else
6733 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6734fi
6735
6736 if test -n "$ac_tool_prefix"; then
6737 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6738set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6740$as_echo_n "checking for $ac_word... " >&6; }
6741if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6742 $as_echo_n "(cached) " >&6
6743else
6744 if test -n "$NMEDIT"; then
6745 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6746else
6747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748for as_dir in $PATH
6749do
6750 IFS=$as_save_IFS
6751 test -z "$as_dir" && as_dir=.
6752 for ac_exec_ext in '' $ac_executable_extensions; do
6753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6754 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6756 break 2
6757 fi
6758done
6759 done
6760IFS=$as_save_IFS
6761
6762fi
6763fi
6764NMEDIT=$ac_cv_prog_NMEDIT
6765if test -n "$NMEDIT"; then
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6767$as_echo "$NMEDIT" >&6; }
6768else
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6770$as_echo "no" >&6; }
6771fi
6772
6773
6774fi
6775if test -z "$ac_cv_prog_NMEDIT"; then
6776 ac_ct_NMEDIT=$NMEDIT
6777 # Extract the first word of "nmedit", so it can be a program name with args.
6778set dummy nmedit; ac_word=$2
6779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6780$as_echo_n "checking for $ac_word... " >&6; }
6781if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6782 $as_echo_n "(cached) " >&6
6783else
6784 if test -n "$ac_ct_NMEDIT"; then
6785 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6786else
6787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788for as_dir in $PATH
6789do
6790 IFS=$as_save_IFS
6791 test -z "$as_dir" && as_dir=.
6792 for ac_exec_ext in '' $ac_executable_extensions; do
6793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6794 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6796 break 2
6797 fi
6798done
6799 done
6800IFS=$as_save_IFS
6801
6802fi
6803fi
6804ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6805if test -n "$ac_ct_NMEDIT"; then
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6807$as_echo "$ac_ct_NMEDIT" >&6; }
6808else
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6810$as_echo "no" >&6; }
6811fi
6812
6813 if test "x$ac_ct_NMEDIT" = x; then
6814 NMEDIT=":"
6815 else
6816 case $cross_compiling:$ac_tool_warned in
6817yes:)
6818{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6819$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6820ac_tool_warned=yes ;;
6821esac
6822 NMEDIT=$ac_ct_NMEDIT
6823 fi
6824else
6825 NMEDIT="$ac_cv_prog_NMEDIT"
6826fi
6827
6828 if test -n "$ac_tool_prefix"; then
6829 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6830set dummy ${ac_tool_prefix}lipo; ac_word=$2
6831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6832$as_echo_n "checking for $ac_word... " >&6; }
6833if test "${ac_cv_prog_LIPO+set}" = set; then :
6834 $as_echo_n "(cached) " >&6
6835else
6836 if test -n "$LIPO"; then
6837 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6838else
6839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840for as_dir in $PATH
6841do
6842 IFS=$as_save_IFS
6843 test -z "$as_dir" && as_dir=.
6844 for ac_exec_ext in '' $ac_executable_extensions; do
6845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6846 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6848 break 2
6849 fi
6850done
6851 done
6852IFS=$as_save_IFS
6853
6854fi
6855fi
6856LIPO=$ac_cv_prog_LIPO
6857if test -n "$LIPO"; then
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6859$as_echo "$LIPO" >&6; }
6860else
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6862$as_echo "no" >&6; }
6863fi
6864
6865
6866fi
6867if test -z "$ac_cv_prog_LIPO"; then
6868 ac_ct_LIPO=$LIPO
6869 # Extract the first word of "lipo", so it can be a program name with args.
6870set dummy lipo; ac_word=$2
6871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6872$as_echo_n "checking for $ac_word... " >&6; }
6873if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6874 $as_echo_n "(cached) " >&6
6875else
6876 if test -n "$ac_ct_LIPO"; then
6877 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6878else
6879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6880for as_dir in $PATH
6881do
6882 IFS=$as_save_IFS
6883 test -z "$as_dir" && as_dir=.
6884 for ac_exec_ext in '' $ac_executable_extensions; do
6885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6886 ac_cv_prog_ac_ct_LIPO="lipo"
6887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6888 break 2
6889 fi
6890done
6891 done
6892IFS=$as_save_IFS
6893
6894fi
6895fi
6896ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6897if test -n "$ac_ct_LIPO"; then
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6899$as_echo "$ac_ct_LIPO" >&6; }
6900else
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6902$as_echo "no" >&6; }
6903fi
6904
6905 if test "x$ac_ct_LIPO" = x; then
6906 LIPO=":"
6907 else
6908 case $cross_compiling:$ac_tool_warned in
6909yes:)
6910{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6911$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6912ac_tool_warned=yes ;;
6913esac
6914 LIPO=$ac_ct_LIPO
6915 fi
6916else
6917 LIPO="$ac_cv_prog_LIPO"
6918fi
6919
6920 if test -n "$ac_tool_prefix"; then
6921 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6922set dummy ${ac_tool_prefix}otool; ac_word=$2
6923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6924$as_echo_n "checking for $ac_word... " >&6; }
6925if test "${ac_cv_prog_OTOOL+set}" = set; then :
6926 $as_echo_n "(cached) " >&6
6927else
6928 if test -n "$OTOOL"; then
6929 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6930else
6931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932for as_dir in $PATH
6933do
6934 IFS=$as_save_IFS
6935 test -z "$as_dir" && as_dir=.
6936 for ac_exec_ext in '' $ac_executable_extensions; do
6937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6938 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6940 break 2
6941 fi
6942done
6943 done
6944IFS=$as_save_IFS
6945
6946fi
6947fi
6948OTOOL=$ac_cv_prog_OTOOL
6949if test -n "$OTOOL"; then
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6951$as_echo "$OTOOL" >&6; }
6952else
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6954$as_echo "no" >&6; }
6955fi
6956
6957
6958fi
6959if test -z "$ac_cv_prog_OTOOL"; then
6960 ac_ct_OTOOL=$OTOOL
6961 # Extract the first word of "otool", so it can be a program name with args.
6962set dummy otool; ac_word=$2
6963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6964$as_echo_n "checking for $ac_word... " >&6; }
6965if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6966 $as_echo_n "(cached) " >&6
6967else
6968 if test -n "$ac_ct_OTOOL"; then
6969 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6970else
6971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972for as_dir in $PATH
6973do
6974 IFS=$as_save_IFS
6975 test -z "$as_dir" && as_dir=.
6976 for ac_exec_ext in '' $ac_executable_extensions; do
6977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6978 ac_cv_prog_ac_ct_OTOOL="otool"
6979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6980 break 2
6981 fi
6982done
6983 done
6984IFS=$as_save_IFS
6985
6986fi
6987fi
6988ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6989if test -n "$ac_ct_OTOOL"; then
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6991$as_echo "$ac_ct_OTOOL" >&6; }
6992else
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6994$as_echo "no" >&6; }
6995fi
6996
6997 if test "x$ac_ct_OTOOL" = x; then
6998 OTOOL=":"
6999 else
7000 case $cross_compiling:$ac_tool_warned in
7001yes:)
7002{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7003$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7004ac_tool_warned=yes ;;
7005esac
7006 OTOOL=$ac_ct_OTOOL
7007 fi
7008else
7009 OTOOL="$ac_cv_prog_OTOOL"
7010fi
7011
7012 if test -n "$ac_tool_prefix"; then
7013 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7014set dummy ${ac_tool_prefix}otool64; ac_word=$2
7015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7016$as_echo_n "checking for $ac_word... " >&6; }
7017if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7018 $as_echo_n "(cached) " >&6
7019else
7020 if test -n "$OTOOL64"; then
7021 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7022else
7023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024for as_dir in $PATH
7025do
7026 IFS=$as_save_IFS
7027 test -z "$as_dir" && as_dir=.
7028 for ac_exec_ext in '' $ac_executable_extensions; do
7029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7030 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7032 break 2
7033 fi
7034done
7035 done
7036IFS=$as_save_IFS
7037
7038fi
7039fi
7040OTOOL64=$ac_cv_prog_OTOOL64
7041if test -n "$OTOOL64"; then
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7043$as_echo "$OTOOL64" >&6; }
7044else
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7046$as_echo "no" >&6; }
7047fi
7048
7049
7050fi
7051if test -z "$ac_cv_prog_OTOOL64"; then
7052 ac_ct_OTOOL64=$OTOOL64
7053 # Extract the first word of "otool64", so it can be a program name with args.
7054set dummy otool64; ac_word=$2
7055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7056$as_echo_n "checking for $ac_word... " >&6; }
7057if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7058 $as_echo_n "(cached) " >&6
7059else
7060 if test -n "$ac_ct_OTOOL64"; then
7061 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7062else
7063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7064for as_dir in $PATH
7065do
7066 IFS=$as_save_IFS
7067 test -z "$as_dir" && as_dir=.
7068 for ac_exec_ext in '' $ac_executable_extensions; do
7069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7070 ac_cv_prog_ac_ct_OTOOL64="otool64"
7071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7072 break 2
7073 fi
7074done
7075 done
7076IFS=$as_save_IFS
7077
7078fi
7079fi
7080ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7081if test -n "$ac_ct_OTOOL64"; then
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7083$as_echo "$ac_ct_OTOOL64" >&6; }
7084else
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7086$as_echo "no" >&6; }
7087fi
7088
7089 if test "x$ac_ct_OTOOL64" = x; then
7090 OTOOL64=":"
7091 else
7092 case $cross_compiling:$ac_tool_warned in
7093yes:)
7094{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7095$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7096ac_tool_warned=yes ;;
7097esac
7098 OTOOL64=$ac_ct_OTOOL64
7099 fi
7100else
8202cb3c 7101 OTOOL64="$ac_cv_prog_OTOOL64"
e440a328 7102fi
7103
e440a328 7104
7105
e440a328 7106
e440a328 7107
e440a328 7108
e440a328 7109
e440a328 7110
e440a328 7111
e440a328 7112
e440a328 7113
e440a328 7114
e440a328 7115
e440a328 7116
8202cb3c 7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7131$as_echo_n "checking for -single_module linker flag... " >&6; }
7132if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7133 $as_echo_n "(cached) " >&6
e440a328 7134else
8202cb3c 7135 lt_cv_apple_cc_single_mod=no
7136 if test -z "${LT_MULTI_MODULE}"; then
7137 # By default we will add the -single_module flag. You can override
7138 # by either setting the environment variable LT_MULTI_MODULE
7139 # non-empty at configure time, or by adding -multi_module to the
7140 # link flags.
7141 rm -rf libconftest.dylib*
7142 echo "int foo(void){return 1;}" > conftest.c
7143 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7144-dynamiclib -Wl,-single_module conftest.c" >&5
7145 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7146 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7147 _lt_result=$?
7148 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7149 lt_cv_apple_cc_single_mod=yes
7150 else
7151 cat conftest.err >&5
7152 fi
7153 rm -rf libconftest.dylib*
7154 rm -f conftest.*
7155 fi
7156fi
7157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7158$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7160$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7161if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7162 $as_echo_n "(cached) " >&6
7163else
7164 lt_cv_ld_exported_symbols_list=no
7165 save_LDFLAGS=$LDFLAGS
7166 echo "_main" > conftest.sym
7167 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e440a328 7169/* end confdefs.h. */
e440a328 7170
e440a328 7171int
7172main ()
7173{
8202cb3c 7174
7175 ;
e440a328 7176 return 0;
7177}
7178_ACEOF
8202cb3c 7179if ac_fn_c_try_link "$LINENO"; then :
7180 lt_cv_ld_exported_symbols_list=yes
e440a328 7181else
8202cb3c 7182 lt_cv_ld_exported_symbols_list=no
e440a328 7183fi
8202cb3c 7184rm -f core conftest.err conftest.$ac_objext \
7185 conftest$ac_exeext conftest.$ac_ext
7186 LDFLAGS="$save_LDFLAGS"
e440a328 7187
7188fi
8202cb3c 7189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7190$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7192$as_echo_n "checking for -force_load linker flag... " >&6; }
7193if test "${lt_cv_ld_force_load+set}" = set; then :
7194 $as_echo_n "(cached) " >&6
7195else
7196 lt_cv_ld_force_load=no
7197 cat > conftest.c << _LT_EOF
7198int forced_loaded() { return 2;}
7199_LT_EOF
7200 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7201 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7202 echo "$AR cru libconftest.a conftest.o" >&5
7203 $AR cru libconftest.a conftest.o 2>&5
7204 cat > conftest.c << _LT_EOF
7205int main() { return 0;}
7206_LT_EOF
7207 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7208 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7209 _lt_result=$?
7210 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7211 lt_cv_ld_force_load=yes
7212 else
7213 cat conftest.err >&5
7214 fi
7215 rm -f conftest.err libconftest.a conftest conftest.c
7216 rm -rf conftest.dSYM
e440a328 7217
7218fi
8202cb3c 7219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7220$as_echo "$lt_cv_ld_force_load" >&6; }
7221 case $host_os in
7222 rhapsody* | darwin1.[012])
7223 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7224 darwin1.*)
7225 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7226 darwin*) # darwin 5.x on
7227 # if running on 10.5 or later, the deployment target defaults
7228 # to the OS version, if on x86, and 10.4, the deployment
7229 # target defaults to 10.4. Don't you love it?
7230 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7231 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7232 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
31d696fa 7233 10.[012][,.]*)
8202cb3c 7234 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7235 10.*)
7236 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7237 esac
7238 ;;
7239 esac
7240 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7241 _lt_dar_single_mod='$single_module'
7242 fi
7243 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7244 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7245 else
7246 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7247 fi
7248 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7249 _lt_dsymutil='~$DSYMUTIL $lib || :'
7250 else
7251 _lt_dsymutil=
7252 fi
7253 ;;
7254 esac
e440a328 7255
c9c0c1d2 7256ac_ext=c
7257ac_cpp='$CPP $CPPFLAGS'
7258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7260ac_compiler_gnu=$ac_cv_c_compiler_gnu
7261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7262$as_echo_n "checking how to run the C preprocessor... " >&6; }
7263# On Suns, sometimes $CPP names a directory.
7264if test -n "$CPP" && test -d "$CPP"; then
7265 CPP=
7266fi
7267if test -z "$CPP"; then
7268 if test "${ac_cv_prog_CPP+set}" = set; then :
7269 $as_echo_n "(cached) " >&6
7270else
7271 # Double quotes because CPP needs to be expanded
7272 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7273 do
7274 ac_preproc_ok=false
7275for ac_c_preproc_warn_flag in '' yes
7276do
7277 # Use a header file that comes with gcc, so configuring glibc
7278 # with a fresh cross-compiler works.
7279 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7280 # <limits.h> exists even on freestanding compilers.
7281 # On the NeXT, cc -E runs the code through the compiler's parser,
7282 # not just through cpp. "Syntax error" is here to catch this case.
7283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7284/* end confdefs.h. */
7285#ifdef __STDC__
7286# include <limits.h>
7287#else
7288# include <assert.h>
7289#endif
7290 Syntax error
7291_ACEOF
7292if ac_fn_c_try_cpp "$LINENO"; then :
7293
7294else
7295 # Broken: fails on valid input.
7296continue
7297fi
7298rm -f conftest.err conftest.$ac_ext
7299
7300 # OK, works on sane cases. Now check whether nonexistent headers
7301 # can be detected and how.
7302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7303/* end confdefs.h. */
7304#include <ac_nonexistent.h>
7305_ACEOF
7306if ac_fn_c_try_cpp "$LINENO"; then :
7307 # Broken: success on invalid input.
7308continue
7309else
7310 # Passes both tests.
7311ac_preproc_ok=:
7312break
7313fi
7314rm -f conftest.err conftest.$ac_ext
7315
7316done
7317# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7318rm -f conftest.err conftest.$ac_ext
7319if $ac_preproc_ok; then :
7320 break
7321fi
7322
7323 done
7324 ac_cv_prog_CPP=$CPP
7325
7326fi
7327 CPP=$ac_cv_prog_CPP
7328else
7329 ac_cv_prog_CPP=$CPP
7330fi
7331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7332$as_echo "$CPP" >&6; }
7333ac_preproc_ok=false
7334for ac_c_preproc_warn_flag in '' yes
7335do
7336 # Use a header file that comes with gcc, so configuring glibc
7337 # with a fresh cross-compiler works.
7338 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7339 # <limits.h> exists even on freestanding compilers.
7340 # On the NeXT, cc -E runs the code through the compiler's parser,
7341 # not just through cpp. "Syntax error" is here to catch this case.
7342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7343/* end confdefs.h. */
7344#ifdef __STDC__
7345# include <limits.h>
7346#else
7347# include <assert.h>
7348#endif
7349 Syntax error
7350_ACEOF
7351if ac_fn_c_try_cpp "$LINENO"; then :
7352
7353else
7354 # Broken: fails on valid input.
7355continue
7356fi
7357rm -f conftest.err conftest.$ac_ext
7358
7359 # OK, works on sane cases. Now check whether nonexistent headers
7360 # can be detected and how.
7361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7362/* end confdefs.h. */
7363#include <ac_nonexistent.h>
7364_ACEOF
7365if ac_fn_c_try_cpp "$LINENO"; then :
7366 # Broken: success on invalid input.
7367continue
7368else
7369 # Passes both tests.
7370ac_preproc_ok=:
7371break
7372fi
7373rm -f conftest.err conftest.$ac_ext
7374
7375done
7376# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7377rm -f conftest.err conftest.$ac_ext
7378if $ac_preproc_ok; then :
7379
7380else
7381 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7382$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7383as_fn_error "C preprocessor \"$CPP\" fails sanity check
7384See \`config.log' for more details." "$LINENO" 5; }
7385fi
7386
7387ac_ext=c
7388ac_cpp='$CPP $CPPFLAGS'
7389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7391ac_compiler_gnu=$ac_cv_c_compiler_gnu
7392
7393
7394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7395$as_echo_n "checking for ANSI C header files... " >&6; }
7396if test "${ac_cv_header_stdc+set}" = set; then :
7397 $as_echo_n "(cached) " >&6
7398else
7399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7400/* end confdefs.h. */
7401#include <stdlib.h>
7402#include <stdarg.h>
7403#include <string.h>
7404#include <float.h>
7405
7406int
7407main ()
7408{
7409
7410 ;
7411 return 0;
7412}
7413_ACEOF
7414if ac_fn_c_try_compile "$LINENO"; then :
7415 ac_cv_header_stdc=yes
7416else
7417 ac_cv_header_stdc=no
7418fi
7419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7420
7421if test $ac_cv_header_stdc = yes; then
7422 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7424/* end confdefs.h. */
7425#include <string.h>
7426
7427_ACEOF
7428if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7429 $EGREP "memchr" >/dev/null 2>&1; then :
7430
7431else
7432 ac_cv_header_stdc=no
7433fi
7434rm -f conftest*
7435
7436fi
7437
7438if test $ac_cv_header_stdc = yes; then
7439 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7441/* end confdefs.h. */
7442#include <stdlib.h>
7443
7444_ACEOF
7445if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7446 $EGREP "free" >/dev/null 2>&1; then :
7447
7448else
7449 ac_cv_header_stdc=no
7450fi
7451rm -f conftest*
7452
7453fi
7454
7455if test $ac_cv_header_stdc = yes; then
7456 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7457 if test "$cross_compiling" = yes; then :
7458 :
7459else
7460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7461/* end confdefs.h. */
7462#include <ctype.h>
7463#include <stdlib.h>
7464#if ((' ' & 0x0FF) == 0x020)
7465# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7466# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7467#else
7468# define ISLOWER(c) \
7469 (('a' <= (c) && (c) <= 'i') \
7470 || ('j' <= (c) && (c) <= 'r') \
7471 || ('s' <= (c) && (c) <= 'z'))
7472# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7473#endif
7474
7475#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7476int
7477main ()
7478{
7479 int i;
7480 for (i = 0; i < 256; i++)
7481 if (XOR (islower (i), ISLOWER (i))
7482 || toupper (i) != TOUPPER (i))
7483 return 2;
7484 return 0;
7485}
7486_ACEOF
7487if ac_fn_c_try_run "$LINENO"; then :
7488
7489else
7490 ac_cv_header_stdc=no
7491fi
7492rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7493 conftest.$ac_objext conftest.beam conftest.$ac_ext
7494fi
7495
7496fi
7497fi
7498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7499$as_echo "$ac_cv_header_stdc" >&6; }
7500if test $ac_cv_header_stdc = yes; then
7501
7502$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7503
7504fi
7505
7506# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7507for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7508 inttypes.h stdint.h unistd.h
7509do :
7510 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7511ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7512"
7513eval as_val=\$$as_ac_Header
7514 if test "x$as_val" = x""yes; then :
7515 cat >>confdefs.h <<_ACEOF
7516#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7517_ACEOF
7518
7519fi
7520
7521done
7522
7523
e440a328 7524for ac_header in dlfcn.h
7525do :
7526 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7527"
7528if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7529 cat >>confdefs.h <<_ACEOF
7530#define HAVE_DLFCN_H 1
7531_ACEOF
7532
7533fi
7534
7535done
7536
7537if test -n "$ac_tool_prefix"; then
7538 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7539set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7541$as_echo_n "checking for $ac_word... " >&6; }
7542if test "${ac_cv_prog_GOC+set}" = set; then :
7543 $as_echo_n "(cached) " >&6
7544else
7545 if test -n "$GOC"; then
7546 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7547else
7548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549for as_dir in $PATH
7550do
7551 IFS=$as_save_IFS
7552 test -z "$as_dir" && as_dir=.
7553 for ac_exec_ext in '' $ac_executable_extensions; do
7554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7555 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7557 break 2
7558 fi
7559done
7560 done
7561IFS=$as_save_IFS
7562
7563fi
7564fi
7565GOC=$ac_cv_prog_GOC
7566if test -n "$GOC"; then
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7568$as_echo "$GOC" >&6; }
7569else
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571$as_echo "no" >&6; }
7572fi
7573
7574
7575fi
7576if test -z "$ac_cv_prog_GOC"; then
7577 ac_ct_GOC=$GOC
7578 # Extract the first word of "gccgo", so it can be a program name with args.
7579set dummy gccgo; ac_word=$2
7580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7581$as_echo_n "checking for $ac_word... " >&6; }
7582if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7583 $as_echo_n "(cached) " >&6
7584else
7585 if test -n "$ac_ct_GOC"; then
7586 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7587else
7588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589for as_dir in $PATH
7590do
7591 IFS=$as_save_IFS
7592 test -z "$as_dir" && as_dir=.
7593 for ac_exec_ext in '' $ac_executable_extensions; do
7594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7595 ac_cv_prog_ac_ct_GOC="gccgo"
7596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7597 break 2
7598 fi
7599done
7600 done
7601IFS=$as_save_IFS
7602
7603fi
7604fi
7605ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7606if test -n "$ac_ct_GOC"; then
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7608$as_echo "$ac_ct_GOC" >&6; }
7609else
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7611$as_echo "no" >&6; }
7612fi
7613
7614 if test "x$ac_ct_GOC" = x; then
7615 GOC=""
7616 else
7617 case $cross_compiling:$ac_tool_warned in
7618yes:)
7619{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7620$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7621ac_tool_warned=yes ;;
7622esac
7623 GOC=$ac_ct_GOC
7624 fi
7625else
7626 GOC="$ac_cv_prog_GOC"
7627fi
7628
7629
7630
7631
7632
7633
7634# Set options
7635
7636
7637
7638
7639 enable_win32_dll=no
7640
7641
7642 # Check whether --enable-shared was given.
7643if test "${enable_shared+set}" = set; then :
7644 enableval=$enable_shared; p=${PACKAGE-default}
7645 case $enableval in
7646 yes) enable_shared=yes ;;
7647 no) enable_shared=no ;;
7648 *)
7649 enable_shared=no
7650 # Look at the argument we got. We use all the common list separators.
7651 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7652 for pkg in $enableval; do
7653 IFS="$lt_save_ifs"
7654 if test "X$pkg" = "X$p"; then
7655 enable_shared=yes
7656 fi
7657 done
7658 IFS="$lt_save_ifs"
7659 ;;
7660 esac
7661else
7662 enable_shared=yes
7663fi
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673 # Check whether --enable-static was given.
7674if test "${enable_static+set}" = set; then :
7675 enableval=$enable_static; p=${PACKAGE-default}
7676 case $enableval in
7677 yes) enable_static=yes ;;
7678 no) enable_static=no ;;
7679 *)
7680 enable_static=no
7681 # Look at the argument we got. We use all the common list separators.
7682 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7683 for pkg in $enableval; do
7684 IFS="$lt_save_ifs"
7685 if test "X$pkg" = "X$p"; then
7686 enable_static=yes
7687 fi
7688 done
7689 IFS="$lt_save_ifs"
7690 ;;
7691 esac
7692else
7693 enable_static=yes
7694fi
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705# Check whether --with-pic was given.
7706if test "${with_pic+set}" = set; then :
7707 withval=$with_pic; pic_mode="$withval"
7708else
7709 pic_mode=default
7710fi
7711
7712
7713test -z "$pic_mode" && pic_mode=default
7714
7715
7716
7717
7718
7719
7720
7721 # Check whether --enable-fast-install was given.
7722if test "${enable_fast_install+set}" = set; then :
7723 enableval=$enable_fast_install; p=${PACKAGE-default}
7724 case $enableval in
7725 yes) enable_fast_install=yes ;;
7726 no) enable_fast_install=no ;;
7727 *)
7728 enable_fast_install=no
7729 # Look at the argument we got. We use all the common list separators.
7730 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7731 for pkg in $enableval; do
7732 IFS="$lt_save_ifs"
7733 if test "X$pkg" = "X$p"; then
7734 enable_fast_install=yes
7735 fi
7736 done
7737 IFS="$lt_save_ifs"
7738 ;;
7739 esac
7740else
7741 enable_fast_install=yes
7742fi
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754# This can be used to rebuild libtool when needed
7755LIBTOOL_DEPS="$ltmain"
7756
7757# Always use our own libtool.
7758LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785test -z "$LN_S" && LN_S="ln -s"
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800if test -n "${ZSH_VERSION+set}" ; then
7801 setopt NO_GLOB_SUBST
7802fi
7803
7804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7805$as_echo_n "checking for objdir... " >&6; }
7806if test "${lt_cv_objdir+set}" = set; then :
7807 $as_echo_n "(cached) " >&6
7808else
7809 rm -f .libs 2>/dev/null
7810mkdir .libs 2>/dev/null
7811if test -d .libs; then
7812 lt_cv_objdir=.libs
7813else
7814 # MS-DOS does not allow filenames that begin with a dot.
7815 lt_cv_objdir=_libs
7816fi
7817rmdir .libs 2>/dev/null
7818fi
7819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7820$as_echo "$lt_cv_objdir" >&6; }
7821objdir=$lt_cv_objdir
7822
7823
7824
7825
7826
7827cat >>confdefs.h <<_ACEOF
7828#define LT_OBJDIR "$lt_cv_objdir/"
7829_ACEOF
7830
7831
7832
7833
7834case $host_os in
7835aix3*)
7836 # AIX sometimes has problems with the GCC collect2 program. For some
7837 # reason, if we set the COLLECT_NAMES environment variable, the problems
7838 # vanish in a puff of smoke.
7839 if test "X${COLLECT_NAMES+set}" != Xset; then
7840 COLLECT_NAMES=
7841 export COLLECT_NAMES
7842 fi
7843 ;;
7844esac
7845
7846# Global variables:
7847ofile=libtool
7848can_build_shared=yes
7849
7850# All known linkers require a `.a' archive for static linking (except MSVC,
7851# which needs '.lib').
7852libext=a
7853
7854with_gnu_ld="$lt_cv_prog_gnu_ld"
7855
7856old_CC="$CC"
7857old_CFLAGS="$CFLAGS"
7858
7859# Set sane defaults for various variables
7860test -z "$CC" && CC=cc
7861test -z "$LTCC" && LTCC=$CC
7862test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7863test -z "$LD" && LD=ld
7864test -z "$ac_objext" && ac_objext=o
7865
7866for cc_temp in $compiler""; do
7867 case $cc_temp in
7868 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7869 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7870 \-*) ;;
7871 *) break;;
7872 esac
7873done
7874cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7875
7876
7877# Only perform the check for file, if the check method requires it
7878test -z "$MAGIC_CMD" && MAGIC_CMD=file
7879case $deplibs_check_method in
7880file_magic*)
7881 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7883$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7884if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7885 $as_echo_n "(cached) " >&6
7886else
7887 case $MAGIC_CMD in
7888[\\/*] | ?:[\\/]*)
7889 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7890 ;;
7891*)
7892 lt_save_MAGIC_CMD="$MAGIC_CMD"
7893 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7894 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7895 for ac_dir in $ac_dummy; do
7896 IFS="$lt_save_ifs"
7897 test -z "$ac_dir" && ac_dir=.
7898 if test -f $ac_dir/${ac_tool_prefix}file; then
7899 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7900 if test -n "$file_magic_test_file"; then
7901 case $deplibs_check_method in
7902 "file_magic "*)
7903 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7904 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7905 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7906 $EGREP "$file_magic_regex" > /dev/null; then
7907 :
7908 else
7909 cat <<_LT_EOF 1>&2
7910
7911*** Warning: the command libtool uses to detect shared libraries,
7912*** $file_magic_cmd, produces output that libtool cannot recognize.
7913*** The result is that libtool may fail to recognize shared libraries
7914*** as such. This will affect the creation of libtool libraries that
7915*** depend on shared libraries, but programs linked with such libtool
7916*** libraries will work regardless of this problem. Nevertheless, you
7917*** may want to report the problem to your system manager and/or to
7918*** bug-libtool@gnu.org
7919
7920_LT_EOF
7921 fi ;;
7922 esac
7923 fi
7924 break
7925 fi
7926 done
7927 IFS="$lt_save_ifs"
7928 MAGIC_CMD="$lt_save_MAGIC_CMD"
7929 ;;
7930esac
7931fi
7932
7933MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7934if test -n "$MAGIC_CMD"; then
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7936$as_echo "$MAGIC_CMD" >&6; }
7937else
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7939$as_echo "no" >&6; }
7940fi
7941
7942
7943
7944
7945
7946if test -z "$lt_cv_path_MAGIC_CMD"; then
7947 if test -n "$ac_tool_prefix"; then
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7949$as_echo_n "checking for file... " >&6; }
7950if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7951 $as_echo_n "(cached) " >&6
7952else
7953 case $MAGIC_CMD in
7954[\\/*] | ?:[\\/]*)
7955 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7956 ;;
7957*)
7958 lt_save_MAGIC_CMD="$MAGIC_CMD"
7959 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7960 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7961 for ac_dir in $ac_dummy; do
7962 IFS="$lt_save_ifs"
7963 test -z "$ac_dir" && ac_dir=.
7964 if test -f $ac_dir/file; then
7965 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7966 if test -n "$file_magic_test_file"; then
7967 case $deplibs_check_method in
7968 "file_magic "*)
7969 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7970 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7971 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7972 $EGREP "$file_magic_regex" > /dev/null; then
7973 :
7974 else
7975 cat <<_LT_EOF 1>&2
7976
7977*** Warning: the command libtool uses to detect shared libraries,
7978*** $file_magic_cmd, produces output that libtool cannot recognize.
7979*** The result is that libtool may fail to recognize shared libraries
7980*** as such. This will affect the creation of libtool libraries that
7981*** depend on shared libraries, but programs linked with such libtool
7982*** libraries will work regardless of this problem. Nevertheless, you
7983*** may want to report the problem to your system manager and/or to
7984*** bug-libtool@gnu.org
7985
7986_LT_EOF
7987 fi ;;
7988 esac
7989 fi
7990 break
7991 fi
7992 done
7993 IFS="$lt_save_ifs"
7994 MAGIC_CMD="$lt_save_MAGIC_CMD"
7995 ;;
7996esac
7997fi
7998
7999MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8000if test -n "$MAGIC_CMD"; then
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8002$as_echo "$MAGIC_CMD" >&6; }
8003else
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8005$as_echo "no" >&6; }
8006fi
8007
8008
8009 else
8010 MAGIC_CMD=:
8011 fi
8012fi
8013
8014 fi
8015 ;;
8016esac
8017
8018# Use C for the default configuration in the libtool script
8019
8020lt_save_CC="$CC"
8021ac_ext=c
8022ac_cpp='$CPP $CPPFLAGS'
8023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8025ac_compiler_gnu=$ac_cv_c_compiler_gnu
8026
8027
8028# Source file extension for C test sources.
8029ac_ext=c
8030
8031# Object file extension for compiled C test sources.
8032objext=o
8033objext=$objext
8034
8035# Code to be used in simple compile tests
8036lt_simple_compile_test_code="int some_variable = 0;"
8037
8038# Code to be used in simple link tests
8039lt_simple_link_test_code='int main(){return(0);}'
8040
8041
8042
8043
8044
8045
8046
8047# If no C compiler was specified, use CC.
8048LTCC=${LTCC-"$CC"}
8049
8050# If no C compiler flags were specified, use CFLAGS.
8051LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8052
8053# Allow CC to be a program name with arguments.
8054compiler=$CC
8055
8056# Save the default compiler, since it gets overwritten when the other
8057# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8058compiler_DEFAULT=$CC
8059
8060# save warnings/boilerplate of simple test code
8061ac_outfile=conftest.$ac_objext
8062echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8063eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8064_lt_compiler_boilerplate=`cat conftest.err`
8065$RM conftest*
8066
8067ac_outfile=conftest.$ac_objext
8068echo "$lt_simple_link_test_code" >conftest.$ac_ext
8069eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8070_lt_linker_boilerplate=`cat conftest.err`
8071$RM -r conftest*
8072
8073
8074## CAVEAT EMPTOR:
8075## There is no encapsulation within the following macros, do not change
8076## the running order or otherwise move them around unless you know exactly
8077## what you are doing...
8078if test -n "$compiler"; then
8079
8080lt_prog_compiler_no_builtin_flag=
8081
8082if test "$GCC" = yes; then
8083 case $cc_basename in
8084 nvcc*)
8085 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8086 *)
8087 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8088 esac
8089
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8091$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8092if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8093 $as_echo_n "(cached) " >&6
8094else
8095 lt_cv_prog_compiler_rtti_exceptions=no
8096 ac_outfile=conftest.$ac_objext
8097 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8098 lt_compiler_flag="-fno-rtti -fno-exceptions"
8099 # Insert the option either (1) after the last *FLAGS variable, or
8100 # (2) before a word containing "conftest.", or (3) at the end.
8101 # Note that $ac_compile itself does not contain backslashes and begins
8102 # with a dollar sign (not a hyphen), so the echo should work correctly.
8103 # The option is referenced via a variable to avoid confusing sed.
8104 lt_compile=`echo "$ac_compile" | $SED \
8105 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8106 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8107 -e 's:$: $lt_compiler_flag:'`
8108 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8109 (eval "$lt_compile" 2>conftest.err)
8110 ac_status=$?
8111 cat conftest.err >&5
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 if (exit $ac_status) && test -s "$ac_outfile"; then
8114 # The compiler can only warn and ignore the option if not recognized
8115 # So say no if there are warnings other than the usual output.
8116 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8117 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8118 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8119 lt_cv_prog_compiler_rtti_exceptions=yes
8120 fi
8121 fi
8122 $RM conftest*
8123
8124fi
8125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8126$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8127
8128if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8129 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8130else
8131 :
8132fi
8133
8134fi
8135
8136
8137
8138
8139
8140
8141 lt_prog_compiler_wl=
8142lt_prog_compiler_pic=
8143lt_prog_compiler_static=
8144
8145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8146$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8147
8148 if test "$GCC" = yes; then
8149 lt_prog_compiler_wl='-Wl,'
8150 lt_prog_compiler_static='-static'
8151
8152 case $host_os in
8153 aix*)
8154 # All AIX code is PIC.
8155 if test "$host_cpu" = ia64; then
8156 # AIX 5 now supports IA64 processor
8157 lt_prog_compiler_static='-Bstatic'
8158 fi
31d696fa 8159 lt_prog_compiler_pic='-fPIC'
e440a328 8160 ;;
8161
8162 amigaos*)
8163 case $host_cpu in
8164 powerpc)
8165 # see comment about AmigaOS4 .so support
8166 lt_prog_compiler_pic='-fPIC'
8167 ;;
8168 m68k)
8169 # FIXME: we need at least 68020 code to build shared libraries, but
8170 # adding the `-m68020' flag to GCC prevents building anything better,
8171 # like `-m68040'.
8172 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8173 ;;
8174 esac
8175 ;;
8176
8177 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8178 # PIC is the default for these OSes.
8179 ;;
8180
8181 mingw* | cygwin* | pw32* | os2* | cegcc*)
8182 # This hack is so that the source file can tell whether it is being
8183 # built for inclusion in a dll (and should export symbols for example).
8184 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8185 # (--disable-auto-import) libraries
8186 lt_prog_compiler_pic='-DDLL_EXPORT'
8187 ;;
8188
8189 darwin* | rhapsody*)
8190 # PIC is the default on this platform
8191 # Common symbols not allowed in MH_DYLIB files
8192 lt_prog_compiler_pic='-fno-common'
8193 ;;
8194
8195 haiku*)
8196 # PIC is the default for Haiku.
8197 # The "-static" flag exists, but is broken.
8198 lt_prog_compiler_static=
8199 ;;
8200
8201 hpux*)
8202 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8203 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8204 # sets the default TLS model and affects inlining.
8205 case $host_cpu in
8206 hppa*64*)
8207 # +Z the default
8208 ;;
8209 *)
8210 lt_prog_compiler_pic='-fPIC'
8211 ;;
8212 esac
8213 ;;
8214
8215 interix[3-9]*)
8216 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8217 # Instead, we relocate shared libraries at runtime.
8218 ;;
8219
8220 msdosdjgpp*)
8221 # Just because we use GCC doesn't mean we suddenly get shared libraries
8222 # on systems that don't support them.
8223 lt_prog_compiler_can_build_shared=no
8224 enable_shared=no
8225 ;;
8226
8227 *nto* | *qnx*)
8228 # QNX uses GNU C++, but need to define -shared option too, otherwise
8229 # it will coredump.
8230 lt_prog_compiler_pic='-fPIC -shared'
8231 ;;
8232
8233 sysv4*MP*)
8234 if test -d /usr/nec; then
8235 lt_prog_compiler_pic=-Kconform_pic
8236 fi
8237 ;;
8238
8239 *)
8240 lt_prog_compiler_pic='-fPIC'
8241 ;;
8242 esac
8243
8244 case $cc_basename in
8245 nvcc*) # Cuda Compiler Driver 2.2
8246 lt_prog_compiler_wl='-Xlinker '
8247 lt_prog_compiler_pic='-Xcompiler -fPIC'
8248 ;;
8249 esac
8250 else
8251 # PORTME Check for flag to pass linker flags through the system compiler.
8252 case $host_os in
8253 aix*)
8254 lt_prog_compiler_wl='-Wl,'
8255 if test "$host_cpu" = ia64; then
8256 # AIX 5 now supports IA64 processor
8257 lt_prog_compiler_static='-Bstatic'
8258 else
8259 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8260 fi
8261 ;;
8262
8263 mingw* | cygwin* | pw32* | os2* | cegcc*)
8264 # This hack is so that the source file can tell whether it is being
8265 # built for inclusion in a dll (and should export symbols for example).
8266 lt_prog_compiler_pic='-DDLL_EXPORT'
8267 ;;
8268
8269 hpux9* | hpux10* | hpux11*)
8270 lt_prog_compiler_wl='-Wl,'
8271 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8272 # not for PA HP-UX.
8273 case $host_cpu in
8274 hppa*64*|ia64*)
8275 # +Z the default
8276 ;;
8277 *)
8278 lt_prog_compiler_pic='+Z'
8279 ;;
8280 esac
8281 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8282 lt_prog_compiler_static='${wl}-a ${wl}archive'
8283 ;;
8284
8285 irix5* | irix6* | nonstopux*)
8286 lt_prog_compiler_wl='-Wl,'
8287 # PIC (with -KPIC) is the default.
8288 lt_prog_compiler_static='-non_shared'
8289 ;;
8290
8291 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8292 case $cc_basename in
8293 # old Intel for x86_64 which still supported -KPIC.
8294 ecc*)
8295 lt_prog_compiler_wl='-Wl,'
8296 lt_prog_compiler_pic='-KPIC'
8297 lt_prog_compiler_static='-static'
8298 ;;
8299 # icc used to be incompatible with GCC.
8300 # ICC 10 doesn't accept -KPIC any more.
8301 icc* | ifort*)
8302 lt_prog_compiler_wl='-Wl,'
8303 lt_prog_compiler_pic='-fPIC'
8304 lt_prog_compiler_static='-static'
8305 ;;
8306 # Lahey Fortran 8.1.
8307 lf95*)
8308 lt_prog_compiler_wl='-Wl,'
8309 lt_prog_compiler_pic='--shared'
8310 lt_prog_compiler_static='--static'
8311 ;;
8312 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8313 # Portland Group compilers (*not* the Pentium gcc compiler,
8314 # which looks to be a dead project)
8315 lt_prog_compiler_wl='-Wl,'
8316 lt_prog_compiler_pic='-fpic'
8317 lt_prog_compiler_static='-Bstatic'
8318 ;;
8319 ccc*)
8320 lt_prog_compiler_wl='-Wl,'
8321 # All Alpha code is PIC.
8322 lt_prog_compiler_static='-non_shared'
8323 ;;
8324 xl* | bgxl* | bgf* | mpixl*)
8325 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8326 lt_prog_compiler_wl='-Wl,'
8327 lt_prog_compiler_pic='-qpic'
8328 lt_prog_compiler_static='-qstaticlink'
8329 ;;
8330 *)
8331 case `$CC -V 2>&1 | sed 5q` in
8332 *Sun\ F* | *Sun*Fortran*)
8333 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8334 lt_prog_compiler_pic='-KPIC'
8335 lt_prog_compiler_static='-Bstatic'
8336 lt_prog_compiler_wl=''
8337 ;;
8338 *Sun\ C*)
8339 # Sun C 5.9
8340 lt_prog_compiler_pic='-KPIC'
8341 lt_prog_compiler_static='-Bstatic'
8342 lt_prog_compiler_wl='-Wl,'
8343 ;;
8344 esac
8345 ;;
8346 esac
8347 ;;
8348
8349 newsos6)
8350 lt_prog_compiler_pic='-KPIC'
8351 lt_prog_compiler_static='-Bstatic'
8352 ;;
8353
8354 *nto* | *qnx*)
8355 # QNX uses GNU C++, but need to define -shared option too, otherwise
8356 # it will coredump.
8357 lt_prog_compiler_pic='-fPIC -shared'
8358 ;;
8359
8360 osf3* | osf4* | osf5*)
8361 lt_prog_compiler_wl='-Wl,'
8362 # All OSF/1 code is PIC.
8363 lt_prog_compiler_static='-non_shared'
8364 ;;
8365
8366 rdos*)
8367 lt_prog_compiler_static='-non_shared'
8368 ;;
8369
8370 solaris*)
8371 lt_prog_compiler_pic='-KPIC'
8372 lt_prog_compiler_static='-Bstatic'
8373 case $cc_basename in
8374 f77* | f90* | f95*)
8375 lt_prog_compiler_wl='-Qoption ld ';;
8376 *)
8377 lt_prog_compiler_wl='-Wl,';;
8378 esac
8379 ;;
8380
8381 sunos4*)
8382 lt_prog_compiler_wl='-Qoption ld '
8383 lt_prog_compiler_pic='-PIC'
8384 lt_prog_compiler_static='-Bstatic'
8385 ;;
8386
8387 sysv4 | sysv4.2uw2* | sysv4.3*)
8388 lt_prog_compiler_wl='-Wl,'
8389 lt_prog_compiler_pic='-KPIC'
8390 lt_prog_compiler_static='-Bstatic'
8391 ;;
8392
8393 sysv4*MP*)
8394 if test -d /usr/nec ;then
8395 lt_prog_compiler_pic='-Kconform_pic'
8396 lt_prog_compiler_static='-Bstatic'
8397 fi
8398 ;;
8399
8400 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8401 lt_prog_compiler_wl='-Wl,'
8402 lt_prog_compiler_pic='-KPIC'
8403 lt_prog_compiler_static='-Bstatic'
8404 ;;
8405
8406 unicos*)
8407 lt_prog_compiler_wl='-Wl,'
8408 lt_prog_compiler_can_build_shared=no
8409 ;;
8410
8411 uts4*)
8412 lt_prog_compiler_pic='-pic'
8413 lt_prog_compiler_static='-Bstatic'
8414 ;;
8415
8416 *)
8417 lt_prog_compiler_can_build_shared=no
8418 ;;
8419 esac
8420 fi
8421
8422case $host_os in
8423 # For platforms which do not support PIC, -DPIC is meaningless:
8424 *djgpp*)
8425 lt_prog_compiler_pic=
8426 ;;
8427 *)
8428 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8429 ;;
8430esac
8431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8432$as_echo "$lt_prog_compiler_pic" >&6; }
8433
8434
8435
8436
8437
8438
8439#
8440# Check to make sure the PIC flag actually works.
8441#
8442if test -n "$lt_prog_compiler_pic"; then
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8444$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8445if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8446 $as_echo_n "(cached) " >&6
8447else
8448 lt_cv_prog_compiler_pic_works=no
8449 ac_outfile=conftest.$ac_objext
8450 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8451 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8452 # Insert the option either (1) after the last *FLAGS variable, or
8453 # (2) before a word containing "conftest.", or (3) at the end.
8454 # Note that $ac_compile itself does not contain backslashes and begins
8455 # with a dollar sign (not a hyphen), so the echo should work correctly.
8456 # The option is referenced via a variable to avoid confusing sed.
8457 lt_compile=`echo "$ac_compile" | $SED \
8458 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8459 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8460 -e 's:$: $lt_compiler_flag:'`
8461 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8462 (eval "$lt_compile" 2>conftest.err)
8463 ac_status=$?
8464 cat conftest.err >&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 if (exit $ac_status) && test -s "$ac_outfile"; then
8467 # The compiler can only warn and ignore the option if not recognized
8468 # So say no if there are warnings other than the usual output.
8469 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8470 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8471 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8472 lt_cv_prog_compiler_pic_works=yes
8473 fi
8474 fi
8475 $RM conftest*
8476
8477fi
8478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8479$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8480
8481if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8482 case $lt_prog_compiler_pic in
8483 "" | " "*) ;;
8484 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8485 esac
8486else
8487 lt_prog_compiler_pic=
8488 lt_prog_compiler_can_build_shared=no
8489fi
8490
8491fi
8492
8493
8494
8495
8496
8497
8498#
8499# Check to make sure the static flag actually works.
8500#
8501wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8503$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8504if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8505 $as_echo_n "(cached) " >&6
8506else
8507 lt_cv_prog_compiler_static_works=no
8508 save_LDFLAGS="$LDFLAGS"
8509 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8510 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8511 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8512 # The linker can only warn and ignore the option if not recognized
8513 # So say no if there are warnings
8514 if test -s conftest.err; then
8515 # Append any errors to the config.log.
8516 cat conftest.err 1>&5
8517 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8518 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8519 if diff conftest.exp conftest.er2 >/dev/null; then
8520 lt_cv_prog_compiler_static_works=yes
8521 fi
8522 else
8523 lt_cv_prog_compiler_static_works=yes
8524 fi
8525 fi
8526 $RM -r conftest*
8527 LDFLAGS="$save_LDFLAGS"
8528
8529fi
8530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8531$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8532
8533if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8534 :
8535else
8536 lt_prog_compiler_static=
8537fi
8538
8539
8540
8541
8542
8543
8544
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8546$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8547if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8548 $as_echo_n "(cached) " >&6
8549else
8550 lt_cv_prog_compiler_c_o=no
8551 $RM -r conftest 2>/dev/null
8552 mkdir conftest
8553 cd conftest
8554 mkdir out
8555 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8556
8557 lt_compiler_flag="-o out/conftest2.$ac_objext"
8558 # Insert the option either (1) after the last *FLAGS variable, or
8559 # (2) before a word containing "conftest.", or (3) at the end.
8560 # Note that $ac_compile itself does not contain backslashes and begins
8561 # with a dollar sign (not a hyphen), so the echo should work correctly.
8562 lt_compile=`echo "$ac_compile" | $SED \
8563 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8564 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8565 -e 's:$: $lt_compiler_flag:'`
8566 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8567 (eval "$lt_compile" 2>out/conftest.err)
8568 ac_status=$?
8569 cat out/conftest.err >&5
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8572 then
8573 # The compiler can only warn and ignore the option if not recognized
8574 # So say no if there are warnings
8575 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8576 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8577 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8578 lt_cv_prog_compiler_c_o=yes
8579 fi
8580 fi
8581 chmod u+w . 2>&5
8582 $RM conftest*
8583 # SGI C++ compiler will create directory out/ii_files/ for
8584 # template instantiation
8585 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8586 $RM out/* && rmdir out
8587 cd ..
8588 $RM -r conftest
8589 $RM conftest*
8590
8591fi
8592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8593$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8594
8595
8596
8597
8598
8599
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8601$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8602if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8603 $as_echo_n "(cached) " >&6
8604else
8605 lt_cv_prog_compiler_c_o=no
8606 $RM -r conftest 2>/dev/null
8607 mkdir conftest
8608 cd conftest
8609 mkdir out
8610 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8611
8612 lt_compiler_flag="-o out/conftest2.$ac_objext"
8613 # Insert the option either (1) after the last *FLAGS variable, or
8614 # (2) before a word containing "conftest.", or (3) at the end.
8615 # Note that $ac_compile itself does not contain backslashes and begins
8616 # with a dollar sign (not a hyphen), so the echo should work correctly.
8617 lt_compile=`echo "$ac_compile" | $SED \
8618 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8619 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8620 -e 's:$: $lt_compiler_flag:'`
8621 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8622 (eval "$lt_compile" 2>out/conftest.err)
8623 ac_status=$?
8624 cat out/conftest.err >&5
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8627 then
8628 # The compiler can only warn and ignore the option if not recognized
8629 # So say no if there are warnings
8630 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8631 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8632 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8633 lt_cv_prog_compiler_c_o=yes
8634 fi
8635 fi
8636 chmod u+w . 2>&5
8637 $RM conftest*
8638 # SGI C++ compiler will create directory out/ii_files/ for
8639 # template instantiation
8640 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8641 $RM out/* && rmdir out
8642 cd ..
8643 $RM -r conftest
8644 $RM conftest*
8645
8646fi
8647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8648$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8649
8650
8651
8652
8653hard_links="nottested"
8654if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8655 # do not overwrite the value of need_locks provided by the user
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8657$as_echo_n "checking if we can lock with hard links... " >&6; }
8658 hard_links=yes
8659 $RM conftest*
8660 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8661 touch conftest.a
8662 ln conftest.a conftest.b 2>&5 || hard_links=no
8663 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8665$as_echo "$hard_links" >&6; }
8666 if test "$hard_links" = no; then
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8668$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8669 need_locks=warn
8670 fi
8671else
8672 need_locks=no
8673fi
8674
8675
8676
8677
8678
8679
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8681$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8682
8683 runpath_var=
8684 allow_undefined_flag=
8685 always_export_symbols=no
8686 archive_cmds=
8687 archive_expsym_cmds=
8688 compiler_needs_object=no
8689 enable_shared_with_static_runtimes=no
8690 export_dynamic_flag_spec=
8691 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8692 hardcode_automatic=no
8693 hardcode_direct=no
8694 hardcode_direct_absolute=no
8695 hardcode_libdir_flag_spec=
8696 hardcode_libdir_flag_spec_ld=
8697 hardcode_libdir_separator=
8698 hardcode_minus_L=no
8699 hardcode_shlibpath_var=unsupported
8700 inherit_rpath=no
8701 link_all_deplibs=unknown
8702 module_cmds=
8703 module_expsym_cmds=
8704 old_archive_from_new_cmds=
8705 old_archive_from_expsyms_cmds=
8706 thread_safe_flag_spec=
8707 whole_archive_flag_spec=
8708 # include_expsyms should be a list of space-separated symbols to be *always*
8709 # included in the symbol list
8710 include_expsyms=
8711 # exclude_expsyms can be an extended regexp of symbols to exclude
8712 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8713 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8714 # as well as any symbol that contains `d'.
8715 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8716 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8717 # platforms (ab)use it in PIC code, but their linkers get confused if
8718 # the symbol is explicitly referenced. Since portable code cannot
8719 # rely on this symbol name, it's probably fine to never include it in
8720 # preloaded symbol tables.
8721 # Exclude shared library initialization/finalization symbols.
8722 extract_expsyms_cmds=
8723
8724 case $host_os in
8725 cygwin* | mingw* | pw32* | cegcc*)
8726 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8727 # When not using gcc, we currently assume that we are using
8728 # Microsoft Visual C++.
8729 if test "$GCC" != yes; then
8730 with_gnu_ld=no
8731 fi
8732 ;;
8733 interix*)
8734 # we just hope/assume this is gcc and not c89 (= MSVC++)
8735 with_gnu_ld=yes
8736 ;;
8737 openbsd*)
8738 with_gnu_ld=no
8739 ;;
8740 esac
8741
8742 ld_shlibs=yes
8743
8744 # On some targets, GNU ld is compatible enough with the native linker
8745 # that we're better off using the native interface for both.
8746 lt_use_gnu_ld_interface=no
8747 if test "$with_gnu_ld" = yes; then
8748 case $host_os in
8749 aix*)
8750 # The AIX port of GNU ld has always aspired to compatibility
8751 # with the native linker. However, as the warning in the GNU ld
8752 # block says, versions before 2.19.5* couldn't really create working
8753 # shared libraries, regardless of the interface used.
8754 case `$LD -v 2>&1` in
8755 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8756 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8757 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8758 *)
8759 lt_use_gnu_ld_interface=yes
8760 ;;
8761 esac
8762 ;;
8763 *)
8764 lt_use_gnu_ld_interface=yes
8765 ;;
8766 esac
8767 fi
8768
8769 if test "$lt_use_gnu_ld_interface" = yes; then
8770 # If archive_cmds runs LD, not CC, wlarc should be empty
8771 wlarc='${wl}'
8772
8773 # Set some defaults for GNU ld with shared library support. These
8774 # are reset later if shared libraries are not supported. Putting them
8775 # here allows them to be overridden if necessary.
8776 runpath_var=LD_RUN_PATH
8777 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8778 export_dynamic_flag_spec='${wl}--export-dynamic'
8779 # ancient GNU ld didn't support --whole-archive et. al.
8780 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8781 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8782 else
8783 whole_archive_flag_spec=
8784 fi
8785 supports_anon_versioning=no
8786 case `$LD -v 2>&1` in
8787 *GNU\ gold*) supports_anon_versioning=yes ;;
8788 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8789 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8790 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8791 *\ 2.11.*) ;; # other 2.11 versions
8792 *) supports_anon_versioning=yes ;;
8793 esac
8794
8795 # See if GNU ld supports shared libraries.
8796 case $host_os in
8797 aix[3-9]*)
8798 # On AIX/PPC, the GNU linker is very broken
8799 if test "$host_cpu" != ia64; then
8800 ld_shlibs=no
8801 cat <<_LT_EOF 1>&2
8802
8803*** Warning: the GNU linker, at least up to release 2.19, is reported
8804*** to be unable to reliably create shared libraries on AIX.
8805*** Therefore, libtool is disabling shared libraries support. If you
8806*** really care for shared libraries, you may want to install binutils
8807*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8808*** You will then need to restart the configuration process.
8809
8810_LT_EOF
8811 fi
8812 ;;
8813
8814 amigaos*)
8815 case $host_cpu in
8816 powerpc)
8817 # see comment about AmigaOS4 .so support
8818 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8819 archive_expsym_cmds=''
8820 ;;
8821 m68k)
8822 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8823 hardcode_libdir_flag_spec='-L$libdir'
8824 hardcode_minus_L=yes
8825 ;;
8826 esac
8827 ;;
8828
8829 beos*)
8830 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8831 allow_undefined_flag=unsupported
8832 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8833 # support --undefined. This deserves some investigation. FIXME
8834 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8835 else
8836 ld_shlibs=no
8837 fi
8838 ;;
8839
8840 cygwin* | mingw* | pw32* | cegcc*)
8841 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8842 # as there is no search path for DLLs.
8843 hardcode_libdir_flag_spec='-L$libdir'
8844 export_dynamic_flag_spec='${wl}--export-all-symbols'
8845 allow_undefined_flag=unsupported
8846 always_export_symbols=no
8847 enable_shared_with_static_runtimes=yes
8848 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8849
8850 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8851 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8852 # If the export-symbols file already is a .def file (1st line
8853 # is EXPORTS), use it as is; otherwise, prepend...
8854 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8855 cp $export_symbols $output_objdir/$soname.def;
8856 else
8857 echo EXPORTS > $output_objdir/$soname.def;
8858 cat $export_symbols >> $output_objdir/$soname.def;
8859 fi~
8860 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8861 else
8862 ld_shlibs=no
8863 fi
8864 ;;
8865
8866 haiku*)
8867 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8868 link_all_deplibs=yes
8869 ;;
8870
8871 interix[3-9]*)
8872 hardcode_direct=no
8873 hardcode_shlibpath_var=no
8874 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8875 export_dynamic_flag_spec='${wl}-E'
8876 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8877 # Instead, shared libraries are loaded at an image base (0x10000000 by
8878 # default) and relocated if they conflict, which is a slow very memory
8879 # consuming and fragmenting process. To avoid this, we pick a random,
8880 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8881 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8882 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8883 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8884 ;;
8885
8886 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8887 tmp_diet=no
8888 if test "$host_os" = linux-dietlibc; then
8889 case $cc_basename in
8890 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8891 esac
8892 fi
8893 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8894 && test "$tmp_diet" = no
8895 then
8896 tmp_addflag=
8897 tmp_sharedflag='-shared'
8898 case $cc_basename,$host_cpu in
8899 pgcc*) # Portland Group C compiler
8900 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8901 tmp_addflag=' $pic_flag'
8902 ;;
8903 pgf77* | pgf90* | pgf95* | pgfortran*)
8904 # Portland Group f77 and f90 compilers
8905 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8906 tmp_addflag=' $pic_flag -Mnomain' ;;
8907 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8908 tmp_addflag=' -i_dynamic' ;;
8909 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8910 tmp_addflag=' -i_dynamic -nofor_main' ;;
8911 ifc* | ifort*) # Intel Fortran compiler
8912 tmp_addflag=' -nofor_main' ;;
8913 lf95*) # Lahey Fortran 8.1
8914 whole_archive_flag_spec=
8915 tmp_sharedflag='--shared' ;;
8916 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8917 tmp_sharedflag='-qmkshrobj'
8918 tmp_addflag= ;;
8919 nvcc*) # Cuda Compiler Driver 2.2
8920 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8921 compiler_needs_object=yes
8922 ;;
8923 esac
8924 case `$CC -V 2>&1 | sed 5q` in
8925 *Sun\ C*) # Sun C 5.9
8926 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8927 compiler_needs_object=yes
8928 tmp_sharedflag='-G' ;;
8929 *Sun\ F*) # Sun Fortran 8.3
8930 tmp_sharedflag='-G' ;;
8931 esac
8932 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8933
8934 if test "x$supports_anon_versioning" = xyes; then
8935 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8936 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8937 echo "local: *; };" >> $output_objdir/$libname.ver~
8938 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8939 fi
8940
8941 case $cc_basename in
8942 xlf* | bgf* | bgxlf* | mpixlf*)
8943 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8944 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8945 hardcode_libdir_flag_spec=
8946 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8947 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8948 if test "x$supports_anon_versioning" = xyes; then
8949 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8950 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8951 echo "local: *; };" >> $output_objdir/$libname.ver~
8952 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8953 fi
8954 ;;
8955 esac
8956 else
8957 ld_shlibs=no
8958 fi
8959 ;;
8960
8961 netbsd*)
8962 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8963 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8964 wlarc=
8965 else
8966 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8967 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8968 fi
8969 ;;
8970
8971 solaris*)
8972 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8973 ld_shlibs=no
8974 cat <<_LT_EOF 1>&2
8975
8976*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8977*** create shared libraries on Solaris systems. Therefore, libtool
8978*** is disabling shared libraries support. We urge you to upgrade GNU
8979*** binutils to release 2.9.1 or newer. Another option is to modify
8980*** your PATH or compiler configuration so that the native linker is
8981*** used, and then restart.
8982
8983_LT_EOF
8984 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8985 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8986 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8987 else
8988 ld_shlibs=no
8989 fi
8990 ;;
8991
8992 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8993 case `$LD -v 2>&1` in
8994 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8995 ld_shlibs=no
8996 cat <<_LT_EOF 1>&2
8997
8998*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8999*** reliably create shared libraries on SCO systems. Therefore, libtool
9000*** is disabling shared libraries support. We urge you to upgrade GNU
9001*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9002*** your PATH or compiler configuration so that the native linker is
9003*** used, and then restart.
9004
9005_LT_EOF
9006 ;;
9007 *)
9008 # For security reasons, it is highly recommended that you always
9009 # use absolute paths for naming shared libraries, and exclude the
9010 # DT_RUNPATH tag from executables and libraries. But doing so
9011 # requires that you compile everything twice, which is a pain.
9012 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9013 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9014 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9015 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9016 else
9017 ld_shlibs=no
9018 fi
9019 ;;
9020 esac
9021 ;;
9022
9023 sunos4*)
9024 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9025 wlarc=
9026 hardcode_direct=yes
9027 hardcode_shlibpath_var=no
9028 ;;
9029
9030 *)
9031 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9032 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9033 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9034 else
9035 ld_shlibs=no
9036 fi
9037 ;;
9038 esac
9039
9040 if test "$ld_shlibs" = no; then
9041 runpath_var=
9042 hardcode_libdir_flag_spec=
9043 export_dynamic_flag_spec=
9044 whole_archive_flag_spec=
9045 fi
9046 else
9047 # PORTME fill in a description of your system's linker (not GNU ld)
9048 case $host_os in
9049 aix3*)
9050 allow_undefined_flag=unsupported
9051 always_export_symbols=yes
9052 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9053 # Note: this linker hardcodes the directories in LIBPATH if there
9054 # are no directories specified by -L.
9055 hardcode_minus_L=yes
9056 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9057 # Neither direct hardcoding nor static linking is supported with a
9058 # broken collect2.
9059 hardcode_direct=unsupported
9060 fi
9061 ;;
9062
9063 aix[4-9]*)
9064 if test "$host_cpu" = ia64; then
9065 # On IA64, the linker does run time linking by default, so we don't
9066 # have to do anything special.
9067 aix_use_runtimelinking=no
9068 exp_sym_flag='-Bexport'
9069 no_entry_flag=""
9070 else
9071 # If we're using GNU nm, then we don't want the "-C" option.
9072 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9073 # Also, AIX nm treats weak defined symbols like other global
9074 # defined symbols, whereas GNU nm marks them as "W".
9075 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9076 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9077 else
9078 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9079 fi
9080 aix_use_runtimelinking=no
9081
9082 # Test if we are trying to use run time linking or normal
9083 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9084 # need to do runtime linking.
9085 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9086 for ld_flag in $LDFLAGS; do
9087 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9088 aix_use_runtimelinking=yes
9089 break
9090 fi
9091 done
9092 ;;
9093 esac
9094
9095 exp_sym_flag='-bexport'
9096 no_entry_flag='-bnoentry'
9097 fi
9098
9099 # When large executables or shared objects are built, AIX ld can
9100 # have problems creating the table of contents. If linking a library
9101 # or program results in "error TOC overflow" add -mminimal-toc to
9102 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9103 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9104
9105 archive_cmds=''
9106 hardcode_direct=yes
9107 hardcode_direct_absolute=yes
9108 hardcode_libdir_separator=':'
9109 link_all_deplibs=yes
9110 file_list_spec='${wl}-f,'
9111
9112 if test "$GCC" = yes; then
9113 case $host_os in aix4.[012]|aix4.[012].*)
9114 # We only want to do this on AIX 4.2 and lower, the check
9115 # below for broken collect2 doesn't work under 4.3+
9116 collect2name=`${CC} -print-prog-name=collect2`
9117 if test -f "$collect2name" &&
9118 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9119 then
9120 # We have reworked collect2
9121 :
9122 else
9123 # We have old collect2
9124 hardcode_direct=unsupported
9125 # It fails to find uninstalled libraries when the uninstalled
9126 # path is not listed in the libpath. Setting hardcode_minus_L
9127 # to unsupported forces relinking
9128 hardcode_minus_L=yes
9129 hardcode_libdir_flag_spec='-L$libdir'
9130 hardcode_libdir_separator=
9131 fi
9132 ;;
9133 esac
9134 shared_flag='-shared'
9135 if test "$aix_use_runtimelinking" = yes; then
9136 shared_flag="$shared_flag "'${wl}-G'
9137 fi
9138 else
9139 # not using gcc
9140 if test "$host_cpu" = ia64; then
9141 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9142 # chokes on -Wl,-G. The following line is correct:
9143 shared_flag='-G'
9144 else
9145 if test "$aix_use_runtimelinking" = yes; then
9146 shared_flag='${wl}-G'
9147 else
9148 shared_flag='${wl}-bM:SRE'
9149 fi
9150 fi
9151 fi
9152
9153 export_dynamic_flag_spec='${wl}-bexpall'
9154 # It seems that -bexpall does not export symbols beginning with
9155 # underscore (_), so it is better to generate a list of symbols to export.
9156 always_export_symbols=yes
9157 if test "$aix_use_runtimelinking" = yes; then
9158 # Warning - without using the other runtime loading flags (-brtl),
9159 # -berok will link without error, but may produce a broken library.
9160 allow_undefined_flag='-berok'
9161 # Determine the default libpath from the value encoded in an
9162 # empty executable.
9163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9164/* end confdefs.h. */
9165
9166int
9167main ()
9168{
9169
9170 ;
9171 return 0;
9172}
9173_ACEOF
9174if ac_fn_c_try_link "$LINENO"; then :
9175
9176lt_aix_libpath_sed='
9177 /Import File Strings/,/^$/ {
9178 /^0/ {
9179 s/^0 *\(.*\)$/\1/
9180 p
9181 }
9182 }'
9183aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9184# Check for a 64-bit object if we didn't find anything.
9185if test -z "$aix_libpath"; then
9186 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9187fi
9188fi
9189rm -f core conftest.err conftest.$ac_objext \
9190 conftest$ac_exeext conftest.$ac_ext
9191if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9192
9193 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9194 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9195 else
9196 if test "$host_cpu" = ia64; then
9197 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9198 allow_undefined_flag="-z nodefs"
9199 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9200 else
9201 # Determine the default libpath from the value encoded in an
9202 # empty executable.
9203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9204/* end confdefs.h. */
9205
9206int
9207main ()
9208{
9209
9210 ;
9211 return 0;
9212}
9213_ACEOF
9214if ac_fn_c_try_link "$LINENO"; then :
9215
9216lt_aix_libpath_sed='
9217 /Import File Strings/,/^$/ {
9218 /^0/ {
9219 s/^0 *\(.*\)$/\1/
9220 p
9221 }
9222 }'
9223aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9224# Check for a 64-bit object if we didn't find anything.
9225if test -z "$aix_libpath"; then
9226 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9227fi
9228fi
9229rm -f core conftest.err conftest.$ac_objext \
9230 conftest$ac_exeext conftest.$ac_ext
9231if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9232
9233 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9234 # Warning - without using the other run time loading flags,
9235 # -berok will link without error, but may produce a broken library.
9236 no_undefined_flag=' ${wl}-bernotok'
9237 allow_undefined_flag=' ${wl}-berok'
9238 if test "$with_gnu_ld" = yes; then
9239 # We only use this code for GNU lds that support --whole-archive.
9240 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9241 else
9242 # Exported symbols can be pulled into shared objects from archives
9243 whole_archive_flag_spec='$convenience'
9244 fi
9245 archive_cmds_need_lc=yes
9246 # This is similar to how AIX traditionally builds its shared libraries.
9247 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9248 fi
9249 fi
9250 ;;
9251
9252 amigaos*)
9253 case $host_cpu in
9254 powerpc)
9255 # see comment about AmigaOS4 .so support
9256 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9257 archive_expsym_cmds=''
9258 ;;
9259 m68k)
9260 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9261 hardcode_libdir_flag_spec='-L$libdir'
9262 hardcode_minus_L=yes
9263 ;;
9264 esac
9265 ;;
9266
9267 bsdi[45]*)
9268 export_dynamic_flag_spec=-rdynamic
9269 ;;
9270
9271 cygwin* | mingw* | pw32* | cegcc*)
9272 # When not using gcc, we currently assume that we are using
9273 # Microsoft Visual C++.
9274 # hardcode_libdir_flag_spec is actually meaningless, as there is
9275 # no search path for DLLs.
9276 hardcode_libdir_flag_spec=' '
9277 allow_undefined_flag=unsupported
9278 # Tell ltmain to make .lib files, not .a files.
9279 libext=lib
9280 # Tell ltmain to make .dll files, not .so files.
9281 shrext_cmds=".dll"
9282 # FIXME: Setting linknames here is a bad hack.
9283 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9284 # The linker will automatically build a .lib file if we build a DLL.
9285 old_archive_from_new_cmds='true'
9286 # FIXME: Should let the user specify the lib program.
9287 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9288 fix_srcfile_path='`cygpath -w "$srcfile"`'
9289 enable_shared_with_static_runtimes=yes
9290 ;;
9291
9292 darwin* | rhapsody*)
9293
9294
9295 archive_cmds_need_lc=no
9296 hardcode_direct=no
9297 hardcode_automatic=yes
9298 hardcode_shlibpath_var=unsupported
9299 if test "$lt_cv_ld_force_load" = "yes"; then
9300 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9301 else
9302 whole_archive_flag_spec=''
9303 fi
9304 link_all_deplibs=yes
9305 allow_undefined_flag="$_lt_dar_allow_undefined"
9306 case $cc_basename in
9307 ifort*) _lt_dar_can_shared=yes ;;
9308 *) _lt_dar_can_shared=$GCC ;;
9309 esac
9310 if test "$_lt_dar_can_shared" = "yes"; then
9311 output_verbose_link_cmd=func_echo_all
9312 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9313 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9314 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9315 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9316
9317 else
9318 ld_shlibs=no
9319 fi
9320
9321 ;;
9322
9323 dgux*)
9324 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9325 hardcode_libdir_flag_spec='-L$libdir'
9326 hardcode_shlibpath_var=no
9327 ;;
9328
e440a328 9329 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9330 # support. Future versions do this automatically, but an explicit c++rt0.o
9331 # does not break anything, and helps significantly (at the cost of a little
9332 # extra space).
9333 freebsd2.2*)
9334 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9335 hardcode_libdir_flag_spec='-R$libdir'
9336 hardcode_direct=yes
9337 hardcode_shlibpath_var=no
9338 ;;
9339
9340 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
31d696fa 9341 freebsd2.*)
e440a328 9342 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9343 hardcode_direct=yes
9344 hardcode_minus_L=yes
9345 hardcode_shlibpath_var=no
9346 ;;
9347
9348 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9349 freebsd* | dragonfly*)
9350 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9351 hardcode_libdir_flag_spec='-R$libdir'
9352 hardcode_direct=yes
9353 hardcode_shlibpath_var=no
9354 ;;
9355
9356 hpux9*)
9357 if test "$GCC" = yes; then
9358 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9359 else
9360 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9361 fi
9362 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9363 hardcode_libdir_separator=:
9364 hardcode_direct=yes
9365
9366 # hardcode_minus_L: Not really in the search PATH,
9367 # but as the default location of the library.
9368 hardcode_minus_L=yes
9369 export_dynamic_flag_spec='${wl}-E'
9370 ;;
9371
9372 hpux10*)
9373 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9374 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9375 else
9376 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9377 fi
9378 if test "$with_gnu_ld" = no; then
9379 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9380 hardcode_libdir_flag_spec_ld='+b $libdir'
9381 hardcode_libdir_separator=:
9382 hardcode_direct=yes
9383 hardcode_direct_absolute=yes
9384 export_dynamic_flag_spec='${wl}-E'
9385 # hardcode_minus_L: Not really in the search PATH,
9386 # but as the default location of the library.
9387 hardcode_minus_L=yes
9388 fi
9389 ;;
9390
9391 hpux11*)
9392 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9393 case $host_cpu in
9394 hppa*64*)
9395 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9396 ;;
9397 ia64*)
9398 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9399 ;;
9400 *)
9401 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9402 ;;
9403 esac
9404 else
9405 case $host_cpu in
9406 hppa*64*)
9407 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9408 ;;
9409 ia64*)
9410 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9411 ;;
9412 *)
9413
9414 # Older versions of the 11.00 compiler do not understand -b yet
9415 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9417$as_echo_n "checking if $CC understands -b... " >&6; }
9418if test "${lt_cv_prog_compiler__b+set}" = set; then :
9419 $as_echo_n "(cached) " >&6
9420else
9421 lt_cv_prog_compiler__b=no
9422 save_LDFLAGS="$LDFLAGS"
9423 LDFLAGS="$LDFLAGS -b"
9424 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9425 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9426 # The linker can only warn and ignore the option if not recognized
9427 # So say no if there are warnings
9428 if test -s conftest.err; then
9429 # Append any errors to the config.log.
9430 cat conftest.err 1>&5
9431 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9432 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9433 if diff conftest.exp conftest.er2 >/dev/null; then
9434 lt_cv_prog_compiler__b=yes
9435 fi
9436 else
9437 lt_cv_prog_compiler__b=yes
9438 fi
9439 fi
9440 $RM -r conftest*
9441 LDFLAGS="$save_LDFLAGS"
9442
9443fi
9444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9445$as_echo "$lt_cv_prog_compiler__b" >&6; }
9446
9447if test x"$lt_cv_prog_compiler__b" = xyes; then
9448 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9449else
9450 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9451fi
9452
9453 ;;
9454 esac
9455 fi
9456 if test "$with_gnu_ld" = no; then
9457 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9458 hardcode_libdir_separator=:
9459
9460 case $host_cpu in
9461 hppa*64*|ia64*)
9462 hardcode_direct=no
9463 hardcode_shlibpath_var=no
9464 ;;
9465 *)
9466 hardcode_direct=yes
9467 hardcode_direct_absolute=yes
9468 export_dynamic_flag_spec='${wl}-E'
9469
9470 # hardcode_minus_L: Not really in the search PATH,
9471 # but as the default location of the library.
9472 hardcode_minus_L=yes
9473 ;;
9474 esac
9475 fi
9476 ;;
9477
9478 irix5* | irix6* | nonstopux*)
9479 if test "$GCC" = yes; then
9480 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9481 # Try to use the -exported_symbol ld option, if it does not
9482 # work, assume that -exports_file does not work either and
9483 # implicitly export all symbols.
9484 save_LDFLAGS="$LDFLAGS"
9485 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9487/* end confdefs.h. */
9488int foo(void) {}
9489_ACEOF
9490if ac_fn_c_try_link "$LINENO"; then :
9491 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9492
9493fi
9494rm -f core conftest.err conftest.$ac_objext \
9495 conftest$ac_exeext conftest.$ac_ext
9496 LDFLAGS="$save_LDFLAGS"
9497 else
9498 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9499 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9500 fi
9501 archive_cmds_need_lc='no'
9502 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9503 hardcode_libdir_separator=:
9504 inherit_rpath=yes
9505 link_all_deplibs=yes
9506 ;;
9507
9508 netbsd*)
9509 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9510 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9511 else
9512 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9513 fi
9514 hardcode_libdir_flag_spec='-R$libdir'
9515 hardcode_direct=yes
9516 hardcode_shlibpath_var=no
9517 ;;
9518
9519 newsos6)
9520 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9521 hardcode_direct=yes
9522 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9523 hardcode_libdir_separator=:
9524 hardcode_shlibpath_var=no
9525 ;;
9526
9527 *nto* | *qnx*)
9528 ;;
9529
9530 openbsd*)
9531 if test -f /usr/libexec/ld.so; then
9532 hardcode_direct=yes
9533 hardcode_shlibpath_var=no
9534 hardcode_direct_absolute=yes
9535 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9536 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9537 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9538 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9539 export_dynamic_flag_spec='${wl}-E'
9540 else
9541 case $host_os in
9542 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9543 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9544 hardcode_libdir_flag_spec='-R$libdir'
9545 ;;
9546 *)
9547 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9548 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9549 ;;
9550 esac
9551 fi
9552 else
9553 ld_shlibs=no
9554 fi
9555 ;;
9556
9557 os2*)
9558 hardcode_libdir_flag_spec='-L$libdir'
9559 hardcode_minus_L=yes
9560 allow_undefined_flag=unsupported
9561 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9562 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9563 ;;
9564
9565 osf3*)
9566 if test "$GCC" = yes; then
9567 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9568 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9569 else
9570 allow_undefined_flag=' -expect_unresolved \*'
9571 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9572 fi
9573 archive_cmds_need_lc='no'
9574 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9575 hardcode_libdir_separator=:
9576 ;;
9577
9578 osf4* | osf5*) # as osf3* with the addition of -msym flag
9579 if test "$GCC" = yes; then
9580 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9581 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9582 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9583 else
9584 allow_undefined_flag=' -expect_unresolved \*'
9585 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9586 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9587 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9588
9589 # Both c and cxx compiler support -rpath directly
9590 hardcode_libdir_flag_spec='-rpath $libdir'
9591 fi
9592 archive_cmds_need_lc='no'
9593 hardcode_libdir_separator=:
9594 ;;
9595
9596 solaris*)
9597 no_undefined_flag=' -z defs'
9598 if test "$GCC" = yes; then
9599 wlarc='${wl}'
9600 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9601 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9602 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9603 else
9604 case `$CC -V 2>&1` in
9605 *"Compilers 5.0"*)
9606 wlarc=''
9607 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9608 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9609 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9610 ;;
9611 *)
9612 wlarc='${wl}'
9613 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9614 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9615 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9616 ;;
9617 esac
9618 fi
9619 hardcode_libdir_flag_spec='-R$libdir'
9620 hardcode_shlibpath_var=no
9621 case $host_os in
9622 solaris2.[0-5] | solaris2.[0-5].*) ;;
9623 *)
9624 # The compiler driver will combine and reorder linker options,
9625 # but understands `-z linker_flag'. GCC discards it without `$wl',
9626 # but is careful enough not to reorder.
9627 # Supported since Solaris 2.6 (maybe 2.5.1?)
9628 if test "$GCC" = yes; then
9629 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9630 else
9631 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9632 fi
9633 ;;
9634 esac
9635 link_all_deplibs=yes
9636 ;;
9637
9638 sunos4*)
9639 if test "x$host_vendor" = xsequent; then
9640 # Use $CC to link under sequent, because it throws in some extra .o
9641 # files that make .init and .fini sections work.
9642 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9643 else
9644 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9645 fi
9646 hardcode_libdir_flag_spec='-L$libdir'
9647 hardcode_direct=yes
9648 hardcode_minus_L=yes
9649 hardcode_shlibpath_var=no
9650 ;;
9651
9652 sysv4)
9653 case $host_vendor in
9654 sni)
9655 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9656 hardcode_direct=yes # is this really true???
9657 ;;
9658 siemens)
9659 ## LD is ld it makes a PLAMLIB
9660 ## CC just makes a GrossModule.
9661 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9662 reload_cmds='$CC -r -o $output$reload_objs'
9663 hardcode_direct=no
9664 ;;
9665 motorola)
9666 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9667 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9668 ;;
9669 esac
9670 runpath_var='LD_RUN_PATH'
9671 hardcode_shlibpath_var=no
9672 ;;
9673
9674 sysv4.3*)
9675 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9676 hardcode_shlibpath_var=no
9677 export_dynamic_flag_spec='-Bexport'
9678 ;;
9679
9680 sysv4*MP*)
9681 if test -d /usr/nec; then
9682 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9683 hardcode_shlibpath_var=no
9684 runpath_var=LD_RUN_PATH
9685 hardcode_runpath_var=yes
9686 ld_shlibs=yes
9687 fi
9688 ;;
9689
9690 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9691 no_undefined_flag='${wl}-z,text'
9692 archive_cmds_need_lc=no
9693 hardcode_shlibpath_var=no
9694 runpath_var='LD_RUN_PATH'
9695
9696 if test "$GCC" = yes; then
9697 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9698 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9699 else
9700 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9701 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9702 fi
9703 ;;
9704
9705 sysv5* | sco3.2v5* | sco5v6*)
9706 # Note: We can NOT use -z defs as we might desire, because we do not
9707 # link with -lc, and that would cause any symbols used from libc to
9708 # always be unresolved, which means just about no library would
9709 # ever link correctly. If we're not using GNU ld we use -z text
9710 # though, which does catch some bad symbols but isn't as heavy-handed
9711 # as -z defs.
9712 no_undefined_flag='${wl}-z,text'
9713 allow_undefined_flag='${wl}-z,nodefs'
9714 archive_cmds_need_lc=no
9715 hardcode_shlibpath_var=no
9716 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9717 hardcode_libdir_separator=':'
9718 link_all_deplibs=yes
9719 export_dynamic_flag_spec='${wl}-Bexport'
9720 runpath_var='LD_RUN_PATH'
9721
9722 if test "$GCC" = yes; then
9723 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9724 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9725 else
9726 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9727 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9728 fi
9729 ;;
9730
9731 uts4*)
9732 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9733 hardcode_libdir_flag_spec='-L$libdir'
9734 hardcode_shlibpath_var=no
9735 ;;
9736
9737 *)
9738 ld_shlibs=no
9739 ;;
9740 esac
9741
9742 if test x$host_vendor = xsni; then
9743 case $host in
9744 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9745 export_dynamic_flag_spec='${wl}-Blargedynsym'
9746 ;;
9747 esac
9748 fi
9749 fi
9750
9751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9752$as_echo "$ld_shlibs" >&6; }
9753test "$ld_shlibs" = no && can_build_shared=no
9754
9755with_gnu_ld=$with_gnu_ld
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771#
9772# Do we need to explicitly link libc?
9773#
9774case "x$archive_cmds_need_lc" in
9775x|xyes)
9776 # Assume -lc should be added
9777 archive_cmds_need_lc=yes
9778
9779 if test "$enable_shared" = yes && test "$GCC" = yes; then
9780 case $archive_cmds in
9781 *'~'*)
9782 # FIXME: we may have to deal with multi-command sequences.
9783 ;;
9784 '$CC '*)
9785 # Test whether the compiler implicitly links with -lc since on some
9786 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9787 # to ld, don't add -lc before -lgcc.
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9789$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9790if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9791 $as_echo_n "(cached) " >&6
9792else
9793 $RM conftest*
9794 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9795
9796 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9797 (eval $ac_compile) 2>&5
9798 ac_status=$?
9799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9800 test $ac_status = 0; } 2>conftest.err; then
9801 soname=conftest
9802 lib=conftest
9803 libobjs=conftest.$ac_objext
9804 deplibs=
9805 wl=$lt_prog_compiler_wl
9806 pic_flag=$lt_prog_compiler_pic
9807 compiler_flags=-v
9808 linker_flags=-v
9809 verstring=
9810 output_objdir=.
9811 libname=conftest
9812 lt_save_allow_undefined_flag=$allow_undefined_flag
9813 allow_undefined_flag=
9814 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9815 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9816 ac_status=$?
9817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9818 test $ac_status = 0; }
9819 then
9820 lt_cv_archive_cmds_need_lc=no
9821 else
9822 lt_cv_archive_cmds_need_lc=yes
9823 fi
9824 allow_undefined_flag=$lt_save_allow_undefined_flag
9825 else
9826 cat conftest.err 1>&5
9827 fi
9828 $RM conftest*
9829
9830fi
9831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9832$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9833 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9834 ;;
9835 esac
9836 fi
9837 ;;
9838esac
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9997$as_echo_n "checking dynamic linker characteristics... " >&6; }
9998
9999if test "$GCC" = yes; then
10000 case $host_os in
10001 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10002 *) lt_awk_arg="/^libraries:/" ;;
10003 esac
10004 case $host_os in
10005 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10006 *) lt_sed_strip_eq="s,=/,/,g" ;;
10007 esac
10008 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10009 case $lt_search_path_spec in
10010 *\;*)
10011 # if the path contains ";" then we assume it to be the separator
10012 # otherwise default to the standard path separator (i.e. ":") - it is
10013 # assumed that no part of a normal pathname contains ";" but that should
10014 # okay in the real world where ";" in dirpaths is itself problematic.
10015 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10016 ;;
10017 *)
10018 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10019 ;;
10020 esac
10021 # Ok, now we have the path, separated by spaces, we can step through it
10022 # and add multilib dir if necessary.
10023 lt_tmp_lt_search_path_spec=
10024 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10025 for lt_sys_path in $lt_search_path_spec; do
10026 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10027 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10028 else
10029 test -d "$lt_sys_path" && \
10030 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10031 fi
10032 done
10033 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10034BEGIN {RS=" "; FS="/|\n";} {
10035 lt_foo="";
10036 lt_count=0;
10037 for (lt_i = NF; lt_i > 0; lt_i--) {
10038 if ($lt_i != "" && $lt_i != ".") {
10039 if ($lt_i == "..") {
10040 lt_count++;
10041 } else {
10042 if (lt_count == 0) {
10043 lt_foo="/" $lt_i lt_foo;
10044 } else {
10045 lt_count--;
10046 }
10047 }
10048 }
10049 }
10050 if (lt_foo != "") { lt_freq[lt_foo]++; }
10051 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10052}'`
10053 # AWK program above erroneously prepends '/' to C:/dos/paths
10054 # for these hosts.
10055 case $host_os in
10056 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10057 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10058 esac
10059 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10060else
10061 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10062fi
10063library_names_spec=
10064libname_spec='lib$name'
10065soname_spec=
10066shrext_cmds=".so"
10067postinstall_cmds=
10068postuninstall_cmds=
10069finish_cmds=
10070finish_eval=
10071shlibpath_var=
10072shlibpath_overrides_runpath=unknown
10073version_type=none
10074dynamic_linker="$host_os ld.so"
10075sys_lib_dlsearch_path_spec="/lib /usr/lib"
10076need_lib_prefix=unknown
10077hardcode_into_libs=no
10078
10079# when you set need_version to no, make sure it does not cause -set_version
10080# flags to be left without arguments
10081need_version=unknown
10082
10083case $host_os in
10084aix3*)
10085 version_type=linux
10086 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10087 shlibpath_var=LIBPATH
10088
10089 # AIX 3 has no versioning support, so we append a major version to the name.
10090 soname_spec='${libname}${release}${shared_ext}$major'
10091 ;;
10092
10093aix[4-9]*)
10094 version_type=linux
10095 need_lib_prefix=no
10096 need_version=no
10097 hardcode_into_libs=yes
10098 if test "$host_cpu" = ia64; then
10099 # AIX 5 supports IA64
10100 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10101 shlibpath_var=LD_LIBRARY_PATH
10102 else
10103 # With GCC up to 2.95.x, collect2 would create an import file
10104 # for dependence libraries. The import file would start with
10105 # the line `#! .'. This would cause the generated library to
10106 # depend on `.', always an invalid library. This was fixed in
10107 # development snapshots of GCC prior to 3.0.
10108 case $host_os in
10109 aix4 | aix4.[01] | aix4.[01].*)
10110 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10111 echo ' yes '
10112 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10113 :
10114 else
10115 can_build_shared=no
10116 fi
10117 ;;
10118 esac
10119 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10120 # soname into executable. Probably we can add versioning support to
10121 # collect2, so additional links can be useful in future.
10122 if test "$aix_use_runtimelinking" = yes; then
10123 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10124 # instead of lib<name>.a to let people know that these are not
10125 # typical AIX shared libraries.
10126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10127 else
10128 # We preserve .a as extension for shared libraries through AIX4.2
10129 # and later when we are not doing run time linking.
10130 library_names_spec='${libname}${release}.a $libname.a'
10131 soname_spec='${libname}${release}${shared_ext}$major'
10132 fi
10133 shlibpath_var=LIBPATH
10134 fi
10135 ;;
10136
10137amigaos*)
10138 case $host_cpu in
10139 powerpc)
10140 # Since July 2007 AmigaOS4 officially supports .so libraries.
10141 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10143 ;;
10144 m68k)
10145 library_names_spec='$libname.ixlibrary $libname.a'
10146 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10147 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10148 ;;
10149 esac
10150 ;;
10151
10152beos*)
10153 library_names_spec='${libname}${shared_ext}'
10154 dynamic_linker="$host_os ld.so"
10155 shlibpath_var=LIBRARY_PATH
10156 ;;
10157
10158bsdi[45]*)
10159 version_type=linux
10160 need_version=no
10161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10162 soname_spec='${libname}${release}${shared_ext}$major'
10163 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10164 shlibpath_var=LD_LIBRARY_PATH
10165 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10166 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10167 # the default ld.so.conf also contains /usr/contrib/lib and
10168 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10169 # libtool to hard-code these into programs
10170 ;;
10171
10172cygwin* | mingw* | pw32* | cegcc*)
10173 version_type=windows
10174 shrext_cmds=".dll"
10175 need_version=no
10176 need_lib_prefix=no
10177
10178 case $GCC,$host_os in
10179 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10180 library_names_spec='$libname.dll.a'
10181 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10182 postinstall_cmds='base_file=`basename \${file}`~
10183 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10184 dldir=$destdir/`dirname \$dlpath`~
10185 test -d \$dldir || mkdir -p \$dldir~
10186 $install_prog $dir/$dlname \$dldir/$dlname~
10187 chmod a+x \$dldir/$dlname~
10188 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10189 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10190 fi'
10191 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10192 dlpath=$dir/\$dldll~
10193 $RM \$dlpath'
10194 shlibpath_overrides_runpath=yes
10195
10196 case $host_os in
10197 cygwin*)
10198 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10199 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10200
10201 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10202 ;;
10203 mingw* | cegcc*)
10204 # MinGW DLLs use traditional 'lib' prefix
10205 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10206 ;;
10207 pw32*)
10208 # pw32 DLLs use 'pw' prefix rather than 'lib'
10209 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10210 ;;
10211 esac
10212 ;;
10213
10214 *)
10215 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10216 ;;
10217 esac
10218 dynamic_linker='Win32 ld.exe'
10219 # FIXME: first we should search . and the directory the executable is in
10220 shlibpath_var=PATH
10221 ;;
10222
10223darwin* | rhapsody*)
10224 dynamic_linker="$host_os dyld"
10225 version_type=darwin
10226 need_lib_prefix=no
10227 need_version=no
10228 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10229 soname_spec='${libname}${release}${major}$shared_ext'
10230 shlibpath_overrides_runpath=yes
10231 shlibpath_var=DYLD_LIBRARY_PATH
10232 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10233
10234 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10235 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10236 ;;
10237
10238dgux*)
10239 version_type=linux
10240 need_lib_prefix=no
10241 need_version=no
10242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10243 soname_spec='${libname}${release}${shared_ext}$major'
10244 shlibpath_var=LD_LIBRARY_PATH
10245 ;;
10246
e440a328 10247freebsd* | dragonfly*)
10248 # DragonFly does not have aout. When/if they implement a new
10249 # versioning mechanism, adjust this.
10250 if test -x /usr/bin/objformat; then
10251 objformat=`/usr/bin/objformat`
10252 else
10253 case $host_os in
31d696fa 10254 freebsd[23].*) objformat=aout ;;
e440a328 10255 *) objformat=elf ;;
10256 esac
10257 fi
10258 version_type=freebsd-$objformat
10259 case $version_type in
10260 freebsd-elf*)
10261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10262 need_version=no
10263 need_lib_prefix=no
10264 ;;
10265 freebsd-*)
10266 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10267 need_version=yes
10268 ;;
10269 esac
10270 shlibpath_var=LD_LIBRARY_PATH
10271 case $host_os in
31d696fa 10272 freebsd2.*)
e440a328 10273 shlibpath_overrides_runpath=yes
10274 ;;
10275 freebsd3.[01]* | freebsdelf3.[01]*)
10276 shlibpath_overrides_runpath=yes
10277 hardcode_into_libs=yes
10278 ;;
10279 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10280 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10281 shlibpath_overrides_runpath=no
10282 hardcode_into_libs=yes
10283 ;;
10284 *) # from 4.6 on, and DragonFly
10285 shlibpath_overrides_runpath=yes
10286 hardcode_into_libs=yes
10287 ;;
10288 esac
10289 ;;
10290
10291gnu*)
10292 version_type=linux
10293 need_lib_prefix=no
10294 need_version=no
10295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10296 soname_spec='${libname}${release}${shared_ext}$major'
10297 shlibpath_var=LD_LIBRARY_PATH
10298 hardcode_into_libs=yes
10299 ;;
10300
10301haiku*)
10302 version_type=linux
10303 need_lib_prefix=no
10304 need_version=no
10305 dynamic_linker="$host_os runtime_loader"
10306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10307 soname_spec='${libname}${release}${shared_ext}$major'
10308 shlibpath_var=LIBRARY_PATH
10309 shlibpath_overrides_runpath=yes
10310 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10311 hardcode_into_libs=yes
10312 ;;
10313
10314hpux9* | hpux10* | hpux11*)
10315 # Give a soname corresponding to the major version so that dld.sl refuses to
10316 # link against other versions.
10317 version_type=sunos
10318 need_lib_prefix=no
10319 need_version=no
10320 case $host_cpu in
10321 ia64*)
10322 shrext_cmds='.so'
10323 hardcode_into_libs=yes
10324 dynamic_linker="$host_os dld.so"
10325 shlibpath_var=LD_LIBRARY_PATH
10326 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10328 soname_spec='${libname}${release}${shared_ext}$major'
10329 if test "X$HPUX_IA64_MODE" = X32; then
10330 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10331 else
10332 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10333 fi
10334 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10335 ;;
10336 hppa*64*)
10337 shrext_cmds='.sl'
10338 hardcode_into_libs=yes
10339 dynamic_linker="$host_os dld.sl"
10340 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10341 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10343 soname_spec='${libname}${release}${shared_ext}$major'
10344 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10345 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10346 ;;
10347 *)
10348 shrext_cmds='.sl'
10349 dynamic_linker="$host_os dld.sl"
10350 shlibpath_var=SHLIB_PATH
10351 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10353 soname_spec='${libname}${release}${shared_ext}$major'
10354 ;;
10355 esac
10356 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10357 postinstall_cmds='chmod 555 $lib'
10358 # or fails outright, so override atomically:
10359 install_override_mode=555
10360 ;;
10361
10362interix[3-9]*)
10363 version_type=linux
10364 need_lib_prefix=no
10365 need_version=no
10366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10367 soname_spec='${libname}${release}${shared_ext}$major'
10368 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10369 shlibpath_var=LD_LIBRARY_PATH
10370 shlibpath_overrides_runpath=no
10371 hardcode_into_libs=yes
10372 ;;
10373
10374irix5* | irix6* | nonstopux*)
10375 case $host_os in
10376 nonstopux*) version_type=nonstopux ;;
10377 *)
10378 if test "$lt_cv_prog_gnu_ld" = yes; then
10379 version_type=linux
10380 else
10381 version_type=irix
10382 fi ;;
10383 esac
10384 need_lib_prefix=no
10385 need_version=no
10386 soname_spec='${libname}${release}${shared_ext}$major'
10387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10388 case $host_os in
10389 irix5* | nonstopux*)
10390 libsuff= shlibsuff=
10391 ;;
10392 *)
10393 case $LD in # libtool.m4 will add one of these switches to LD
10394 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10395 libsuff= shlibsuff= libmagic=32-bit;;
10396 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10397 libsuff=32 shlibsuff=N32 libmagic=N32;;
10398 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10399 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10400 *) libsuff= shlibsuff= libmagic=never-match;;
10401 esac
10402 ;;
10403 esac
10404 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10405 shlibpath_overrides_runpath=no
10406 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10407 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10408 hardcode_into_libs=yes
10409 ;;
10410
10411# No shared lib support for Linux oldld, aout, or coff.
10412linux*oldld* | linux*aout* | linux*coff*)
10413 dynamic_linker=no
10414 ;;
10415
10416# This must be Linux ELF.
10417linux* | k*bsd*-gnu | kopensolaris*-gnu)
10418 version_type=linux
10419 need_lib_prefix=no
10420 need_version=no
10421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10422 soname_spec='${libname}${release}${shared_ext}$major'
10423 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10424 shlibpath_var=LD_LIBRARY_PATH
10425 shlibpath_overrides_runpath=no
10426
10427 # Some binutils ld are patched to set DT_RUNPATH
10428 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10429 $as_echo_n "(cached) " >&6
10430else
10431 lt_cv_shlibpath_overrides_runpath=no
10432 save_LDFLAGS=$LDFLAGS
10433 save_libdir=$libdir
10434 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10435 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10437/* end confdefs.h. */
10438
10439int
10440main ()
10441{
10442
10443 ;
10444 return 0;
10445}
10446_ACEOF
10447if ac_fn_c_try_link "$LINENO"; then :
10448 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10449 lt_cv_shlibpath_overrides_runpath=yes
10450fi
10451fi
10452rm -f core conftest.err conftest.$ac_objext \
10453 conftest$ac_exeext conftest.$ac_ext
10454 LDFLAGS=$save_LDFLAGS
10455 libdir=$save_libdir
10456
10457fi
10458
10459 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10460
10461 # This implies no fast_install, which is unacceptable.
10462 # Some rework will be needed to allow for fast_install
10463 # before this can be enabled.
10464 hardcode_into_libs=yes
10465
10466 # Append ld.so.conf contents to the search path
10467 if test -f /etc/ld.so.conf; then
10468 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10469 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10470 fi
10471
10472 # We used to test for /lib/ld.so.1 and disable shared libraries on
10473 # powerpc, because MkLinux only supported shared libraries with the
10474 # GNU dynamic linker. Since this was broken with cross compilers,
10475 # most powerpc-linux boxes support dynamic linking these days and
10476 # people can always --disable-shared, the test was removed, and we
10477 # assume the GNU/Linux dynamic linker is in use.
10478 dynamic_linker='GNU/Linux ld.so'
10479 ;;
10480
10481netbsd*)
10482 version_type=sunos
10483 need_lib_prefix=no
10484 need_version=no
10485 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10487 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10488 dynamic_linker='NetBSD (a.out) ld.so'
10489 else
10490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10491 soname_spec='${libname}${release}${shared_ext}$major'
10492 dynamic_linker='NetBSD ld.elf_so'
10493 fi
10494 shlibpath_var=LD_LIBRARY_PATH
10495 shlibpath_overrides_runpath=yes
10496 hardcode_into_libs=yes
10497 ;;
10498
10499newsos6)
10500 version_type=linux
10501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10502 shlibpath_var=LD_LIBRARY_PATH
10503 shlibpath_overrides_runpath=yes
10504 ;;
10505
10506*nto* | *qnx*)
10507 version_type=qnx
10508 need_lib_prefix=no
10509 need_version=no
10510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10511 soname_spec='${libname}${release}${shared_ext}$major'
10512 shlibpath_var=LD_LIBRARY_PATH
10513 shlibpath_overrides_runpath=no
10514 hardcode_into_libs=yes
10515 dynamic_linker='ldqnx.so'
10516 ;;
10517
10518openbsd*)
10519 version_type=sunos
10520 sys_lib_dlsearch_path_spec="/usr/lib"
10521 need_lib_prefix=no
10522 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10523 case $host_os in
10524 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10525 *) need_version=no ;;
10526 esac
10527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10528 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10529 shlibpath_var=LD_LIBRARY_PATH
10530 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10531 case $host_os in
10532 openbsd2.[89] | openbsd2.[89].*)
10533 shlibpath_overrides_runpath=no
10534 ;;
10535 *)
10536 shlibpath_overrides_runpath=yes
10537 ;;
10538 esac
10539 else
10540 shlibpath_overrides_runpath=yes
10541 fi
10542 ;;
10543
10544os2*)
10545 libname_spec='$name'
10546 shrext_cmds=".dll"
10547 need_lib_prefix=no
10548 library_names_spec='$libname${shared_ext} $libname.a'
10549 dynamic_linker='OS/2 ld.exe'
10550 shlibpath_var=LIBPATH
10551 ;;
10552
10553osf3* | osf4* | osf5*)
10554 version_type=osf
10555 need_lib_prefix=no
10556 need_version=no
10557 soname_spec='${libname}${release}${shared_ext}$major'
10558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10559 shlibpath_var=LD_LIBRARY_PATH
10560 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10561 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10562 ;;
10563
10564rdos*)
10565 dynamic_linker=no
10566 ;;
10567
10568solaris*)
10569 version_type=linux
10570 need_lib_prefix=no
10571 need_version=no
10572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10573 soname_spec='${libname}${release}${shared_ext}$major'
10574 shlibpath_var=LD_LIBRARY_PATH
10575 shlibpath_overrides_runpath=yes
10576 hardcode_into_libs=yes
10577 # ldd complains unless libraries are executable
10578 postinstall_cmds='chmod +x $lib'
10579 ;;
10580
10581sunos4*)
10582 version_type=sunos
10583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10584 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10585 shlibpath_var=LD_LIBRARY_PATH
10586 shlibpath_overrides_runpath=yes
10587 if test "$with_gnu_ld" = yes; then
10588 need_lib_prefix=no
10589 fi
10590 need_version=yes
10591 ;;
10592
10593sysv4 | sysv4.3*)
10594 version_type=linux
10595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10596 soname_spec='${libname}${release}${shared_ext}$major'
10597 shlibpath_var=LD_LIBRARY_PATH
10598 case $host_vendor in
10599 sni)
10600 shlibpath_overrides_runpath=no
10601 need_lib_prefix=no
10602 runpath_var=LD_RUN_PATH
10603 ;;
10604 siemens)
10605 need_lib_prefix=no
10606 ;;
10607 motorola)
10608 need_lib_prefix=no
10609 need_version=no
10610 shlibpath_overrides_runpath=no
10611 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10612 ;;
10613 esac
10614 ;;
10615
10616sysv4*MP*)
10617 if test -d /usr/nec ;then
10618 version_type=linux
10619 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10620 soname_spec='$libname${shared_ext}.$major'
10621 shlibpath_var=LD_LIBRARY_PATH
10622 fi
10623 ;;
10624
10625sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10626 version_type=freebsd-elf
10627 need_lib_prefix=no
10628 need_version=no
10629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10630 soname_spec='${libname}${release}${shared_ext}$major'
10631 shlibpath_var=LD_LIBRARY_PATH
10632 shlibpath_overrides_runpath=yes
10633 hardcode_into_libs=yes
10634 if test "$with_gnu_ld" = yes; then
10635 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10636 else
10637 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10638 case $host_os in
10639 sco3.2v5*)
10640 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10641 ;;
10642 esac
10643 fi
10644 sys_lib_dlsearch_path_spec='/usr/lib'
10645 ;;
10646
10647tpf*)
10648 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10649 version_type=linux
10650 need_lib_prefix=no
10651 need_version=no
10652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10653 shlibpath_var=LD_LIBRARY_PATH
10654 shlibpath_overrides_runpath=no
10655 hardcode_into_libs=yes
10656 ;;
10657
10658uts4*)
10659 version_type=linux
10660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10661 soname_spec='${libname}${release}${shared_ext}$major'
10662 shlibpath_var=LD_LIBRARY_PATH
10663 ;;
10664
10665*)
10666 dynamic_linker=no
10667 ;;
10668esac
10669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10670$as_echo "$dynamic_linker" >&6; }
10671test "$dynamic_linker" = no && can_build_shared=no
10672
10673variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10674if test "$GCC" = yes; then
10675 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10676fi
10677
10678if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10679 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10680fi
10681if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10682 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10683fi
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10777$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10778hardcode_action=
10779if test -n "$hardcode_libdir_flag_spec" ||
10780 test -n "$runpath_var" ||
10781 test "X$hardcode_automatic" = "Xyes" ; then
10782
10783 # We can hardcode non-existent directories.
10784 if test "$hardcode_direct" != no &&
10785 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10786 # have to relink, otherwise we might link with an installed library
10787 # when we should be linking with a yet-to-be-installed one
10788 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10789 test "$hardcode_minus_L" != no; then
10790 # Linking always hardcodes the temporary library directory.
10791 hardcode_action=relink
10792 else
10793 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10794 hardcode_action=immediate
10795 fi
10796else
10797 # We cannot hardcode anything, or else we can only hardcode existing
10798 # directories.
10799 hardcode_action=unsupported
10800fi
10801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10802$as_echo "$hardcode_action" >&6; }
10803
10804if test "$hardcode_action" = relink ||
10805 test "$inherit_rpath" = yes; then
10806 # Fast installation is not supported
10807 enable_fast_install=no
10808elif test "$shlibpath_overrides_runpath" = yes ||
10809 test "$enable_shared" = no; then
10810 # Fast installation is not necessary
10811 enable_fast_install=needless
10812fi
10813
10814
10815
10816
10817
10818
10819 if test "x$enable_dlopen" != xyes; then
10820 enable_dlopen=unknown
10821 enable_dlopen_self=unknown
10822 enable_dlopen_self_static=unknown
10823else
10824 lt_cv_dlopen=no
10825 lt_cv_dlopen_libs=
10826
10827 case $host_os in
10828 beos*)
10829 lt_cv_dlopen="load_add_on"
10830 lt_cv_dlopen_libs=
10831 lt_cv_dlopen_self=yes
10832 ;;
10833
10834 mingw* | pw32* | cegcc*)
10835 lt_cv_dlopen="LoadLibrary"
10836 lt_cv_dlopen_libs=
10837 ;;
10838
10839 cygwin*)
10840 lt_cv_dlopen="dlopen"
10841 lt_cv_dlopen_libs=
10842 ;;
10843
10844 darwin*)
10845 # if libdl is installed we need to link against it
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10847$as_echo_n "checking for dlopen in -ldl... " >&6; }
10848if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10849 $as_echo_n "(cached) " >&6
10850else
10851 ac_check_lib_save_LIBS=$LIBS
10852LIBS="-ldl $LIBS"
10853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10854/* end confdefs.h. */
10855
10856/* Override any GCC internal prototype to avoid an error.
10857 Use char because int might match the return type of a GCC
10858 builtin and then its argument prototype would still apply. */
10859#ifdef __cplusplus
10860extern "C"
10861#endif
10862char dlopen ();
10863int
10864main ()
10865{
10866return dlopen ();
10867 ;
10868 return 0;
10869}
10870_ACEOF
10871if ac_fn_c_try_link "$LINENO"; then :
10872 ac_cv_lib_dl_dlopen=yes
10873else
10874 ac_cv_lib_dl_dlopen=no
10875fi
10876rm -f core conftest.err conftest.$ac_objext \
10877 conftest$ac_exeext conftest.$ac_ext
10878LIBS=$ac_check_lib_save_LIBS
10879fi
10880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10881$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10882if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10883 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10884else
10885
10886 lt_cv_dlopen="dyld"
10887 lt_cv_dlopen_libs=
10888 lt_cv_dlopen_self=yes
10889
10890fi
10891
10892 ;;
10893
10894 *)
10895 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10896if test "x$ac_cv_func_shl_load" = x""yes; then :
10897 lt_cv_dlopen="shl_load"
10898else
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10900$as_echo_n "checking for shl_load in -ldld... " >&6; }
10901if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10902 $as_echo_n "(cached) " >&6
10903else
10904 ac_check_lib_save_LIBS=$LIBS
10905LIBS="-ldld $LIBS"
10906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10907/* end confdefs.h. */
10908
10909/* Override any GCC internal prototype to avoid an error.
10910 Use char because int might match the return type of a GCC
10911 builtin and then its argument prototype would still apply. */
10912#ifdef __cplusplus
10913extern "C"
10914#endif
10915char shl_load ();
10916int
10917main ()
10918{
10919return shl_load ();
10920 ;
10921 return 0;
10922}
10923_ACEOF
10924if ac_fn_c_try_link "$LINENO"; then :
10925 ac_cv_lib_dld_shl_load=yes
10926else
10927 ac_cv_lib_dld_shl_load=no
10928fi
10929rm -f core conftest.err conftest.$ac_objext \
10930 conftest$ac_exeext conftest.$ac_ext
10931LIBS=$ac_check_lib_save_LIBS
10932fi
10933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10934$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10935if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10936 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10937else
10938 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10939if test "x$ac_cv_func_dlopen" = x""yes; then :
10940 lt_cv_dlopen="dlopen"
10941else
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10943$as_echo_n "checking for dlopen in -ldl... " >&6; }
10944if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10945 $as_echo_n "(cached) " >&6
10946else
10947 ac_check_lib_save_LIBS=$LIBS
10948LIBS="-ldl $LIBS"
10949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10950/* end confdefs.h. */
10951
10952/* Override any GCC internal prototype to avoid an error.
10953 Use char because int might match the return type of a GCC
10954 builtin and then its argument prototype would still apply. */
10955#ifdef __cplusplus
10956extern "C"
10957#endif
10958char dlopen ();
10959int
10960main ()
10961{
10962return dlopen ();
10963 ;
10964 return 0;
10965}
10966_ACEOF
10967if ac_fn_c_try_link "$LINENO"; then :
10968 ac_cv_lib_dl_dlopen=yes
10969else
10970 ac_cv_lib_dl_dlopen=no
10971fi
10972rm -f core conftest.err conftest.$ac_objext \
10973 conftest$ac_exeext conftest.$ac_ext
10974LIBS=$ac_check_lib_save_LIBS
10975fi
10976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10977$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10978if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10979 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10980else
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10982$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10983if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10984 $as_echo_n "(cached) " >&6
10985else
10986 ac_check_lib_save_LIBS=$LIBS
10987LIBS="-lsvld $LIBS"
10988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10989/* end confdefs.h. */
10990
10991/* Override any GCC internal prototype to avoid an error.
10992 Use char because int might match the return type of a GCC
10993 builtin and then its argument prototype would still apply. */
10994#ifdef __cplusplus
10995extern "C"
10996#endif
10997char dlopen ();
10998int
10999main ()
11000{
11001return dlopen ();
11002 ;
11003 return 0;
11004}
11005_ACEOF
11006if ac_fn_c_try_link "$LINENO"; then :
11007 ac_cv_lib_svld_dlopen=yes
11008else
11009 ac_cv_lib_svld_dlopen=no
11010fi
11011rm -f core conftest.err conftest.$ac_objext \
11012 conftest$ac_exeext conftest.$ac_ext
11013LIBS=$ac_check_lib_save_LIBS
11014fi
11015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11016$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11017if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11018 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11019else
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11021$as_echo_n "checking for dld_link in -ldld... " >&6; }
11022if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11023 $as_echo_n "(cached) " >&6
11024else
11025 ac_check_lib_save_LIBS=$LIBS
11026LIBS="-ldld $LIBS"
11027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11028/* end confdefs.h. */
11029
11030/* Override any GCC internal prototype to avoid an error.
11031 Use char because int might match the return type of a GCC
11032 builtin and then its argument prototype would still apply. */
11033#ifdef __cplusplus
11034extern "C"
11035#endif
11036char dld_link ();
11037int
11038main ()
11039{
11040return dld_link ();
11041 ;
11042 return 0;
11043}
11044_ACEOF
11045if ac_fn_c_try_link "$LINENO"; then :
11046 ac_cv_lib_dld_dld_link=yes
11047else
11048 ac_cv_lib_dld_dld_link=no
11049fi
11050rm -f core conftest.err conftest.$ac_objext \
11051 conftest$ac_exeext conftest.$ac_ext
11052LIBS=$ac_check_lib_save_LIBS
11053fi
11054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11055$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11056if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11057 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11058fi
11059
11060
11061fi
11062
11063
11064fi
11065
11066
11067fi
11068
11069
11070fi
11071
11072
11073fi
11074
11075 ;;
11076 esac
11077
11078 if test "x$lt_cv_dlopen" != xno; then
11079 enable_dlopen=yes
11080 else
11081 enable_dlopen=no
11082 fi
11083
11084 case $lt_cv_dlopen in
11085 dlopen)
11086 save_CPPFLAGS="$CPPFLAGS"
11087 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11088
11089 save_LDFLAGS="$LDFLAGS"
11090 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11091
11092 save_LIBS="$LIBS"
11093 LIBS="$lt_cv_dlopen_libs $LIBS"
11094
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11096$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11097if test "${lt_cv_dlopen_self+set}" = set; then :
11098 $as_echo_n "(cached) " >&6
11099else
11100 if test "$cross_compiling" = yes; then :
11101 lt_cv_dlopen_self=cross
11102else
11103 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11104 lt_status=$lt_dlunknown
11105 cat > conftest.$ac_ext <<_LT_EOF
63e457ad 11106#line 11106 "configure"
e440a328 11107#include "confdefs.h"
11108
11109#if HAVE_DLFCN_H
11110#include <dlfcn.h>
11111#endif
11112
11113#include <stdio.h>
11114
11115#ifdef RTLD_GLOBAL
11116# define LT_DLGLOBAL RTLD_GLOBAL
11117#else
11118# ifdef DL_GLOBAL
11119# define LT_DLGLOBAL DL_GLOBAL
11120# else
11121# define LT_DLGLOBAL 0
11122# endif
11123#endif
11124
11125/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11126 find out it does not work in some platform. */
11127#ifndef LT_DLLAZY_OR_NOW
11128# ifdef RTLD_LAZY
11129# define LT_DLLAZY_OR_NOW RTLD_LAZY
11130# else
11131# ifdef DL_LAZY
11132# define LT_DLLAZY_OR_NOW DL_LAZY
11133# else
11134# ifdef RTLD_NOW
11135# define LT_DLLAZY_OR_NOW RTLD_NOW
11136# else
11137# ifdef DL_NOW
11138# define LT_DLLAZY_OR_NOW DL_NOW
11139# else
11140# define LT_DLLAZY_OR_NOW 0
11141# endif
11142# endif
11143# endif
11144# endif
11145#endif
11146
11147/* When -fvisbility=hidden is used, assume the code has been annotated
11148 correspondingly for the symbols needed. */
11149#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11150void fnord () __attribute__((visibility("default")));
11151#endif
11152
11153void fnord () { int i=42; }
11154int main ()
11155{
11156 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11157 int status = $lt_dlunknown;
11158
11159 if (self)
11160 {
11161 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11162 else
11163 {
11164 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11165 else puts (dlerror ());
11166 }
11167 /* dlclose (self); */
11168 }
11169 else
11170 puts (dlerror ());
11171
11172 return status;
11173}
11174_LT_EOF
11175 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11176 (eval $ac_link) 2>&5
11177 ac_status=$?
11178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11179 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11180 (./conftest; exit; ) >&5 2>/dev/null
11181 lt_status=$?
11182 case x$lt_status in
11183 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11184 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11185 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11186 esac
11187 else :
11188 # compilation failed
11189 lt_cv_dlopen_self=no
11190 fi
11191fi
11192rm -fr conftest*
11193
11194
11195fi
11196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11197$as_echo "$lt_cv_dlopen_self" >&6; }
11198
11199 if test "x$lt_cv_dlopen_self" = xyes; then
11200 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11202$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11203if test "${lt_cv_dlopen_self_static+set}" = set; then :
11204 $as_echo_n "(cached) " >&6
11205else
11206 if test "$cross_compiling" = yes; then :
11207 lt_cv_dlopen_self_static=cross
11208else
11209 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11210 lt_status=$lt_dlunknown
11211 cat > conftest.$ac_ext <<_LT_EOF
4a273582 11212#line 11212 "configure"
e440a328 11213#include "confdefs.h"
11214
11215#if HAVE_DLFCN_H
11216#include <dlfcn.h>
11217#endif
11218
11219#include <stdio.h>
11220
11221#ifdef RTLD_GLOBAL
11222# define LT_DLGLOBAL RTLD_GLOBAL
11223#else
11224# ifdef DL_GLOBAL
11225# define LT_DLGLOBAL DL_GLOBAL
11226# else
11227# define LT_DLGLOBAL 0
11228# endif
11229#endif
11230
11231/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11232 find out it does not work in some platform. */
11233#ifndef LT_DLLAZY_OR_NOW
11234# ifdef RTLD_LAZY
11235# define LT_DLLAZY_OR_NOW RTLD_LAZY
11236# else
11237# ifdef DL_LAZY
11238# define LT_DLLAZY_OR_NOW DL_LAZY
11239# else
11240# ifdef RTLD_NOW
11241# define LT_DLLAZY_OR_NOW RTLD_NOW
11242# else
11243# ifdef DL_NOW
11244# define LT_DLLAZY_OR_NOW DL_NOW
11245# else
11246# define LT_DLLAZY_OR_NOW 0
11247# endif
11248# endif
11249# endif
11250# endif
11251#endif
11252
11253/* When -fvisbility=hidden is used, assume the code has been annotated
11254 correspondingly for the symbols needed. */
11255#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11256void fnord () __attribute__((visibility("default")));
11257#endif
11258
11259void fnord () { int i=42; }
11260int main ()
11261{
11262 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11263 int status = $lt_dlunknown;
11264
11265 if (self)
11266 {
11267 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11268 else
11269 {
11270 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11271 else puts (dlerror ());
11272 }
11273 /* dlclose (self); */
11274 }
11275 else
11276 puts (dlerror ());
11277
11278 return status;
11279}
11280_LT_EOF
11281 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11282 (eval $ac_link) 2>&5
11283 ac_status=$?
11284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11285 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11286 (./conftest; exit; ) >&5 2>/dev/null
11287 lt_status=$?
11288 case x$lt_status in
11289 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11290 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11291 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11292 esac
11293 else :
11294 # compilation failed
11295 lt_cv_dlopen_self_static=no
11296 fi
11297fi
11298rm -fr conftest*
11299
11300
11301fi
11302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11303$as_echo "$lt_cv_dlopen_self_static" >&6; }
11304 fi
11305
11306 CPPFLAGS="$save_CPPFLAGS"
11307 LDFLAGS="$save_LDFLAGS"
11308 LIBS="$save_LIBS"
11309 ;;
11310 esac
11311
11312 case $lt_cv_dlopen_self in
11313 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11314 *) enable_dlopen_self=unknown ;;
11315 esac
11316
11317 case $lt_cv_dlopen_self_static in
11318 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11319 *) enable_dlopen_self_static=unknown ;;
11320 esac
11321fi
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339striplib=
11340old_striplib=
11341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11342$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11343if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11344 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11345 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11347$as_echo "yes" >&6; }
11348else
11349# FIXME - insert some real tests, host_os isn't really good enough
11350 case $host_os in
11351 darwin*)
11352 if test -n "$STRIP" ; then
11353 striplib="$STRIP -x"
11354 old_striplib="$STRIP -S"
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11356$as_echo "yes" >&6; }
11357 else
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11359$as_echo "no" >&6; }
11360 fi
11361 ;;
11362 *)
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11364$as_echo "no" >&6; }
11365 ;;
11366 esac
11367fi
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380 # Report which library types will actually be built
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11382$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11384$as_echo "$can_build_shared" >&6; }
11385
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11387$as_echo_n "checking whether to build shared libraries... " >&6; }
11388 test "$can_build_shared" = "no" && enable_shared=no
11389
11390 # On AIX, shared libraries and static libraries use the same namespace, and
11391 # are all built from PIC.
11392 case $host_os in
11393 aix3*)
11394 test "$enable_shared" = yes && enable_static=no
11395 if test -n "$RANLIB"; then
11396 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11397 postinstall_cmds='$RANLIB $lib'
11398 fi
11399 ;;
11400
11401 aix[4-9]*)
11402 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11403 test "$enable_shared" = yes && enable_static=no
11404 fi
11405 ;;
11406 esac
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11408$as_echo "$enable_shared" >&6; }
11409
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11411$as_echo_n "checking whether to build static libraries... " >&6; }
11412 # Make sure either enable_shared or enable_static is yes.
11413 test "$enable_shared" = yes || enable_static=yes
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11415$as_echo "$enable_static" >&6; }
11416
11417
11418
11419
11420fi
11421ac_ext=c
11422ac_cpp='$CPP $CPPFLAGS'
11423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11425ac_compiler_gnu=$ac_cv_c_compiler_gnu
11426
11427CC="$lt_save_CC"
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441# Source file extension for Go test sources.
11442ac_ext=go
11443
11444# Object file extension for compiled Go test sources.
11445objext=o
11446objext_GO=$objext
11447
11448# Code to be used in simple compile tests
11449lt_simple_compile_test_code="package main; func main() { }"
11450
11451# Code to be used in simple link tests
11452lt_simple_link_test_code='package main; func main() { }'
11453
11454# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11455
11456
11457
11458
11459
11460
11461# If no C compiler was specified, use CC.
11462LTCC=${LTCC-"$CC"}
11463
11464# If no C compiler flags were specified, use CFLAGS.
11465LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11466
11467# Allow CC to be a program name with arguments.
11468compiler=$CC
11469
11470
11471# save warnings/boilerplate of simple test code
11472ac_outfile=conftest.$ac_objext
11473echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11474eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11475_lt_compiler_boilerplate=`cat conftest.err`
11476$RM conftest*
11477
11478ac_outfile=conftest.$ac_objext
11479echo "$lt_simple_link_test_code" >conftest.$ac_ext
11480eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11481_lt_linker_boilerplate=`cat conftest.err`
11482$RM -r conftest*
11483
11484
11485# Allow CC to be a program name with arguments.
11486lt_save_CC="$CC"
11487lt_save_GCC="$GCC"
11488GCC=yes
11489CC=${GOC-"gccgo"}
11490compiler=$CC
11491compiler_GO=$CC
11492LD_GO="$LD"
11493for cc_temp in $compiler""; do
11494 case $cc_temp in
11495 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11496 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11497 \-*) ;;
11498 *) break;;
11499 esac
11500done
11501cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11502
11503
11504# Go did not exist at the time GCC didn't implicitly link libc in.
11505archive_cmds_need_lc_GO=no
11506
11507old_archive_cmds_GO=$old_archive_cmds
11508
11509## CAVEAT EMPTOR:
11510## There is no encapsulation within the following macros, do not change
11511## the running order or otherwise move them around unless you know exactly
11512## what you are doing...
11513if test -n "$compiler"; then
11514
11515lt_prog_compiler_no_builtin_flag_GO=
11516
11517if test "$GCC" = yes; then
11518 case $cc_basename in
11519 nvcc*)
11520 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11521 *)
11522 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11523 esac
11524
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11526$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11527if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11528 $as_echo_n "(cached) " >&6
11529else
11530 lt_cv_prog_compiler_rtti_exceptions=no
11531 ac_outfile=conftest.$ac_objext
11532 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11533 lt_compiler_flag="-fno-rtti -fno-exceptions"
11534 # Insert the option either (1) after the last *FLAGS variable, or
11535 # (2) before a word containing "conftest.", or (3) at the end.
11536 # Note that $ac_compile itself does not contain backslashes and begins
11537 # with a dollar sign (not a hyphen), so the echo should work correctly.
11538 # The option is referenced via a variable to avoid confusing sed.
11539 lt_compile=`echo "$ac_compile" | $SED \
11540 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11541 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11542 -e 's:$: $lt_compiler_flag:'`
11543 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11544 (eval "$lt_compile" 2>conftest.err)
11545 ac_status=$?
11546 cat conftest.err >&5
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 if (exit $ac_status) && test -s "$ac_outfile"; then
11549 # The compiler can only warn and ignore the option if not recognized
11550 # So say no if there are warnings other than the usual output.
11551 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11552 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11553 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11554 lt_cv_prog_compiler_rtti_exceptions=yes
11555 fi
11556 fi
11557 $RM conftest*
11558
11559fi
11560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11561$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11562
11563if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11564 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11565else
11566 :
11567fi
11568
11569fi
11570
11571
11572
11573 lt_prog_compiler_wl_GO=
11574lt_prog_compiler_pic_GO=
11575lt_prog_compiler_static_GO=
11576
11577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11578$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11579
11580 if test "$GCC" = yes; then
11581 lt_prog_compiler_wl_GO='-Wl,'
11582 lt_prog_compiler_static_GO='-static'
11583
11584 case $host_os in
11585 aix*)
11586 # All AIX code is PIC.
11587 if test "$host_cpu" = ia64; then
11588 # AIX 5 now supports IA64 processor
11589 lt_prog_compiler_static_GO='-Bstatic'
11590 fi
31d696fa 11591 lt_prog_compiler_pic_GO='-fPIC'
e440a328 11592 ;;
11593
11594 amigaos*)
11595 case $host_cpu in
11596 powerpc)
11597 # see comment about AmigaOS4 .so support
11598 lt_prog_compiler_pic_GO='-fPIC'
11599 ;;
11600 m68k)
11601 # FIXME: we need at least 68020 code to build shared libraries, but
11602 # adding the `-m68020' flag to GCC prevents building anything better,
11603 # like `-m68040'.
11604 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11605 ;;
11606 esac
11607 ;;
11608
11609 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11610 # PIC is the default for these OSes.
11611 ;;
11612
11613 mingw* | cygwin* | pw32* | os2* | cegcc*)
11614 # This hack is so that the source file can tell whether it is being
11615 # built for inclusion in a dll (and should export symbols for example).
11616 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11617 # (--disable-auto-import) libraries
11618 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11619 ;;
11620
11621 darwin* | rhapsody*)
11622 # PIC is the default on this platform
11623 # Common symbols not allowed in MH_DYLIB files
11624 lt_prog_compiler_pic_GO='-fno-common'
11625 ;;
11626
11627 haiku*)
11628 # PIC is the default for Haiku.
11629 # The "-static" flag exists, but is broken.
11630 lt_prog_compiler_static_GO=
11631 ;;
11632
11633 hpux*)
11634 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11635 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11636 # sets the default TLS model and affects inlining.
11637 case $host_cpu in
11638 hppa*64*)
11639 # +Z the default
11640 ;;
11641 *)
11642 lt_prog_compiler_pic_GO='-fPIC'
11643 ;;
11644 esac
11645 ;;
11646
11647 interix[3-9]*)
11648 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11649 # Instead, we relocate shared libraries at runtime.
11650 ;;
11651
11652 msdosdjgpp*)
11653 # Just because we use GCC doesn't mean we suddenly get shared libraries
11654 # on systems that don't support them.
11655 lt_prog_compiler_can_build_shared_GO=no
11656 enable_shared=no
11657 ;;
11658
11659 *nto* | *qnx*)
11660 # QNX uses GNU C++, but need to define -shared option too, otherwise
11661 # it will coredump.
11662 lt_prog_compiler_pic_GO='-fPIC -shared'
11663 ;;
11664
11665 sysv4*MP*)
11666 if test -d /usr/nec; then
11667 lt_prog_compiler_pic_GO=-Kconform_pic
11668 fi
11669 ;;
11670
11671 *)
11672 lt_prog_compiler_pic_GO='-fPIC'
11673 ;;
11674 esac
11675
11676 case $cc_basename in
11677 nvcc*) # Cuda Compiler Driver 2.2
11678 lt_prog_compiler_wl_GO='-Xlinker '
11679 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11680 ;;
11681 esac
11682 else
11683 # PORTME Check for flag to pass linker flags through the system compiler.
11684 case $host_os in
11685 aix*)
11686 lt_prog_compiler_wl_GO='-Wl,'
11687 if test "$host_cpu" = ia64; then
11688 # AIX 5 now supports IA64 processor
11689 lt_prog_compiler_static_GO='-Bstatic'
11690 else
11691 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11692 fi
11693 ;;
11694
11695 mingw* | cygwin* | pw32* | os2* | cegcc*)
11696 # This hack is so that the source file can tell whether it is being
11697 # built for inclusion in a dll (and should export symbols for example).
11698 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11699 ;;
11700
11701 hpux9* | hpux10* | hpux11*)
11702 lt_prog_compiler_wl_GO='-Wl,'
11703 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11704 # not for PA HP-UX.
11705 case $host_cpu in
11706 hppa*64*|ia64*)
11707 # +Z the default
11708 ;;
11709 *)
11710 lt_prog_compiler_pic_GO='+Z'
11711 ;;
11712 esac
11713 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11714 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11715 ;;
11716
11717 irix5* | irix6* | nonstopux*)
11718 lt_prog_compiler_wl_GO='-Wl,'
11719 # PIC (with -KPIC) is the default.
11720 lt_prog_compiler_static_GO='-non_shared'
11721 ;;
11722
11723 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11724 case $cc_basename in
11725 # old Intel for x86_64 which still supported -KPIC.
11726 ecc*)
11727 lt_prog_compiler_wl_GO='-Wl,'
11728 lt_prog_compiler_pic_GO='-KPIC'
11729 lt_prog_compiler_static_GO='-static'
11730 ;;
11731 # icc used to be incompatible with GCC.
11732 # ICC 10 doesn't accept -KPIC any more.
11733 icc* | ifort*)
11734 lt_prog_compiler_wl_GO='-Wl,'
11735 lt_prog_compiler_pic_GO='-fPIC'
11736 lt_prog_compiler_static_GO='-static'
11737 ;;
11738 # Lahey Fortran 8.1.
11739 lf95*)
11740 lt_prog_compiler_wl_GO='-Wl,'
11741 lt_prog_compiler_pic_GO='--shared'
11742 lt_prog_compiler_static_GO='--static'
11743 ;;
11744 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11745 # Portland Group compilers (*not* the Pentium gcc compiler,
11746 # which looks to be a dead project)
11747 lt_prog_compiler_wl_GO='-Wl,'
11748 lt_prog_compiler_pic_GO='-fpic'
11749 lt_prog_compiler_static_GO='-Bstatic'
11750 ;;
11751 ccc*)
11752 lt_prog_compiler_wl_GO='-Wl,'
11753 # All Alpha code is PIC.
11754 lt_prog_compiler_static_GO='-non_shared'
11755 ;;
11756 xl* | bgxl* | bgf* | mpixl*)
11757 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11758 lt_prog_compiler_wl_GO='-Wl,'
11759 lt_prog_compiler_pic_GO='-qpic'
11760 lt_prog_compiler_static_GO='-qstaticlink'
11761 ;;
11762 *)
11763 case `$CC -V 2>&1 | sed 5q` in
11764 *Sun\ F* | *Sun*Fortran*)
11765 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11766 lt_prog_compiler_pic_GO='-KPIC'
11767 lt_prog_compiler_static_GO='-Bstatic'
11768 lt_prog_compiler_wl_GO=''
11769 ;;
11770 *Sun\ C*)
11771 # Sun C 5.9
11772 lt_prog_compiler_pic_GO='-KPIC'
11773 lt_prog_compiler_static_GO='-Bstatic'
11774 lt_prog_compiler_wl_GO='-Wl,'
11775 ;;
11776 esac
11777 ;;
11778 esac
11779 ;;
11780
11781 newsos6)
11782 lt_prog_compiler_pic_GO='-KPIC'
11783 lt_prog_compiler_static_GO='-Bstatic'
11784 ;;
11785
11786 *nto* | *qnx*)
11787 # QNX uses GNU C++, but need to define -shared option too, otherwise
11788 # it will coredump.
11789 lt_prog_compiler_pic_GO='-fPIC -shared'
11790 ;;
11791
11792 osf3* | osf4* | osf5*)
11793 lt_prog_compiler_wl_GO='-Wl,'
11794 # All OSF/1 code is PIC.
11795 lt_prog_compiler_static_GO='-non_shared'
11796 ;;
11797
11798 rdos*)
11799 lt_prog_compiler_static_GO='-non_shared'
11800 ;;
11801
11802 solaris*)
11803 lt_prog_compiler_pic_GO='-KPIC'
11804 lt_prog_compiler_static_GO='-Bstatic'
11805 case $cc_basename in
11806 f77* | f90* | f95*)
11807 lt_prog_compiler_wl_GO='-Qoption ld ';;
11808 *)
11809 lt_prog_compiler_wl_GO='-Wl,';;
11810 esac
11811 ;;
11812
11813 sunos4*)
11814 lt_prog_compiler_wl_GO='-Qoption ld '
11815 lt_prog_compiler_pic_GO='-PIC'
11816 lt_prog_compiler_static_GO='-Bstatic'
11817 ;;
11818
11819 sysv4 | sysv4.2uw2* | sysv4.3*)
11820 lt_prog_compiler_wl_GO='-Wl,'
11821 lt_prog_compiler_pic_GO='-KPIC'
11822 lt_prog_compiler_static_GO='-Bstatic'
11823 ;;
11824
11825 sysv4*MP*)
11826 if test -d /usr/nec ;then
11827 lt_prog_compiler_pic_GO='-Kconform_pic'
11828 lt_prog_compiler_static_GO='-Bstatic'
11829 fi
11830 ;;
11831
11832 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11833 lt_prog_compiler_wl_GO='-Wl,'
11834 lt_prog_compiler_pic_GO='-KPIC'
11835 lt_prog_compiler_static_GO='-Bstatic'
11836 ;;
11837
11838 unicos*)
11839 lt_prog_compiler_wl_GO='-Wl,'
11840 lt_prog_compiler_can_build_shared_GO=no
11841 ;;
11842
11843 uts4*)
11844 lt_prog_compiler_pic_GO='-pic'
11845 lt_prog_compiler_static_GO='-Bstatic'
11846 ;;
11847
11848 *)
11849 lt_prog_compiler_can_build_shared_GO=no
11850 ;;
11851 esac
11852 fi
11853
11854case $host_os in
11855 # For platforms which do not support PIC, -DPIC is meaningless:
11856 *djgpp*)
11857 lt_prog_compiler_pic_GO=
11858 ;;
11859 *)
11860 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11861 ;;
11862esac
11863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11864$as_echo "$lt_prog_compiler_pic_GO" >&6; }
11865
11866
11867
11868#
11869# Check to make sure the PIC flag actually works.
11870#
11871if test -n "$lt_prog_compiler_pic_GO"; then
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11873$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11874if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11875 $as_echo_n "(cached) " >&6
11876else
11877 lt_cv_prog_compiler_pic_works_GO=no
11878 ac_outfile=conftest.$ac_objext
11879 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11880 lt_compiler_flag="$lt_prog_compiler_pic_GO"
11881 # Insert the option either (1) after the last *FLAGS variable, or
11882 # (2) before a word containing "conftest.", or (3) at the end.
11883 # Note that $ac_compile itself does not contain backslashes and begins
11884 # with a dollar sign (not a hyphen), so the echo should work correctly.
11885 # The option is referenced via a variable to avoid confusing sed.
11886 lt_compile=`echo "$ac_compile" | $SED \
11887 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11888 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11889 -e 's:$: $lt_compiler_flag:'`
11890 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11891 (eval "$lt_compile" 2>conftest.err)
11892 ac_status=$?
11893 cat conftest.err >&5
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 if (exit $ac_status) && test -s "$ac_outfile"; then
11896 # The compiler can only warn and ignore the option if not recognized
11897 # So say no if there are warnings other than the usual output.
11898 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11899 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11900 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11901 lt_cv_prog_compiler_pic_works_GO=yes
11902 fi
11903 fi
11904 $RM conftest*
11905
11906fi
11907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11908$as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11909
11910if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11911 case $lt_prog_compiler_pic_GO in
11912 "" | " "*) ;;
11913 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11914 esac
11915else
11916 lt_prog_compiler_pic_GO=
11917 lt_prog_compiler_can_build_shared_GO=no
11918fi
11919
11920fi
11921
11922
11923
11924#
11925# Check to make sure the static flag actually works.
11926#
11927wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11929$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11930if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11931 $as_echo_n "(cached) " >&6
11932else
11933 lt_cv_prog_compiler_static_works_GO=no
11934 save_LDFLAGS="$LDFLAGS"
11935 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11936 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11937 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11938 # The linker can only warn and ignore the option if not recognized
11939 # So say no if there are warnings
11940 if test -s conftest.err; then
11941 # Append any errors to the config.log.
11942 cat conftest.err 1>&5
11943 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11944 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11945 if diff conftest.exp conftest.er2 >/dev/null; then
11946 lt_cv_prog_compiler_static_works_GO=yes
11947 fi
11948 else
11949 lt_cv_prog_compiler_static_works_GO=yes
11950 fi
11951 fi
11952 $RM -r conftest*
11953 LDFLAGS="$save_LDFLAGS"
11954
11955fi
11956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11957$as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11958
11959if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11960 :
11961else
11962 lt_prog_compiler_static_GO=
11963fi
11964
11965
11966
11967
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11969$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11970if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11971 $as_echo_n "(cached) " >&6
11972else
11973 lt_cv_prog_compiler_c_o_GO=no
11974 $RM -r conftest 2>/dev/null
11975 mkdir conftest
11976 cd conftest
11977 mkdir out
11978 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11979
11980 lt_compiler_flag="-o out/conftest2.$ac_objext"
11981 # Insert the option either (1) after the last *FLAGS variable, or
11982 # (2) before a word containing "conftest.", or (3) at the end.
11983 # Note that $ac_compile itself does not contain backslashes and begins
11984 # with a dollar sign (not a hyphen), so the echo should work correctly.
11985 lt_compile=`echo "$ac_compile" | $SED \
11986 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11987 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11988 -e 's:$: $lt_compiler_flag:'`
11989 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11990 (eval "$lt_compile" 2>out/conftest.err)
11991 ac_status=$?
11992 cat out/conftest.err >&5
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11995 then
11996 # The compiler can only warn and ignore the option if not recognized
11997 # So say no if there are warnings
11998 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11999 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12000 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12001 lt_cv_prog_compiler_c_o_GO=yes
12002 fi
12003 fi
12004 chmod u+w . 2>&5
12005 $RM conftest*
12006 # SGI C++ compiler will create directory out/ii_files/ for
12007 # template instantiation
12008 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12009 $RM out/* && rmdir out
12010 cd ..
12011 $RM -r conftest
12012 $RM conftest*
12013
12014fi
12015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12016$as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12017
12018
12019
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12021$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12022if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
12023 $as_echo_n "(cached) " >&6
12024else
12025 lt_cv_prog_compiler_c_o_GO=no
12026 $RM -r conftest 2>/dev/null
12027 mkdir conftest
12028 cd conftest
12029 mkdir out
12030 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12031
12032 lt_compiler_flag="-o out/conftest2.$ac_objext"
12033 # Insert the option either (1) after the last *FLAGS variable, or
12034 # (2) before a word containing "conftest.", or (3) at the end.
12035 # Note that $ac_compile itself does not contain backslashes and begins
12036 # with a dollar sign (not a hyphen), so the echo should work correctly.
12037 lt_compile=`echo "$ac_compile" | $SED \
12038 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12039 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12040 -e 's:$: $lt_compiler_flag:'`
12041 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12042 (eval "$lt_compile" 2>out/conftest.err)
12043 ac_status=$?
12044 cat out/conftest.err >&5
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12047 then
12048 # The compiler can only warn and ignore the option if not recognized
12049 # So say no if there are warnings
12050 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12051 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12052 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12053 lt_cv_prog_compiler_c_o_GO=yes
12054 fi
12055 fi
12056 chmod u+w . 2>&5
12057 $RM conftest*
12058 # SGI C++ compiler will create directory out/ii_files/ for
12059 # template instantiation
12060 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12061 $RM out/* && rmdir out
12062 cd ..
12063 $RM -r conftest
12064 $RM conftest*
12065
12066fi
12067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12068$as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12069
12070
12071
12072
12073hard_links="nottested"
12074if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
12075 # do not overwrite the value of need_locks provided by the user
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12077$as_echo_n "checking if we can lock with hard links... " >&6; }
12078 hard_links=yes
12079 $RM conftest*
12080 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12081 touch conftest.a
12082 ln conftest.a conftest.b 2>&5 || hard_links=no
12083 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12085$as_echo "$hard_links" >&6; }
12086 if test "$hard_links" = no; then
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12088$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12089 need_locks=warn
12090 fi
12091else
12092 need_locks=no
12093fi
12094
12095
12096
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12098$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12099
12100 runpath_var=
12101 allow_undefined_flag_GO=
12102 always_export_symbols_GO=no
12103 archive_cmds_GO=
12104 archive_expsym_cmds_GO=
12105 compiler_needs_object_GO=no
12106 enable_shared_with_static_runtimes_GO=no
12107 export_dynamic_flag_spec_GO=
12108 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12109 hardcode_automatic_GO=no
12110 hardcode_direct_GO=no
12111 hardcode_direct_absolute_GO=no
12112 hardcode_libdir_flag_spec_GO=
12113 hardcode_libdir_flag_spec_ld_GO=
12114 hardcode_libdir_separator_GO=
12115 hardcode_minus_L_GO=no
12116 hardcode_shlibpath_var_GO=unsupported
12117 inherit_rpath_GO=no
12118 link_all_deplibs_GO=unknown
12119 module_cmds_GO=
12120 module_expsym_cmds_GO=
12121 old_archive_from_new_cmds_GO=
12122 old_archive_from_expsyms_cmds_GO=
12123 thread_safe_flag_spec_GO=
12124 whole_archive_flag_spec_GO=
12125 # include_expsyms should be a list of space-separated symbols to be *always*
12126 # included in the symbol list
12127 include_expsyms_GO=
12128 # exclude_expsyms can be an extended regexp of symbols to exclude
12129 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12130 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12131 # as well as any symbol that contains `d'.
12132 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12133 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12134 # platforms (ab)use it in PIC code, but their linkers get confused if
12135 # the symbol is explicitly referenced. Since portable code cannot
12136 # rely on this symbol name, it's probably fine to never include it in
12137 # preloaded symbol tables.
12138 # Exclude shared library initialization/finalization symbols.
12139 extract_expsyms_cmds=
12140
12141 case $host_os in
12142 cygwin* | mingw* | pw32* | cegcc*)
12143 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12144 # When not using gcc, we currently assume that we are using
12145 # Microsoft Visual C++.
12146 if test "$GCC" != yes; then
12147 with_gnu_ld=no
12148 fi
12149 ;;
12150 interix*)
12151 # we just hope/assume this is gcc and not c89 (= MSVC++)
12152 with_gnu_ld=yes
12153 ;;
12154 openbsd*)
12155 with_gnu_ld=no
12156 ;;
12157 esac
12158
12159 ld_shlibs_GO=yes
12160
12161 # On some targets, GNU ld is compatible enough with the native linker
12162 # that we're better off using the native interface for both.
12163 lt_use_gnu_ld_interface=no
12164 if test "$with_gnu_ld" = yes; then
12165 case $host_os in
12166 aix*)
12167 # The AIX port of GNU ld has always aspired to compatibility
12168 # with the native linker. However, as the warning in the GNU ld
12169 # block says, versions before 2.19.5* couldn't really create working
12170 # shared libraries, regardless of the interface used.
12171 case `$LD -v 2>&1` in
12172 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12173 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12174 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12175 *)
12176 lt_use_gnu_ld_interface=yes
12177 ;;
12178 esac
12179 ;;
12180 *)
12181 lt_use_gnu_ld_interface=yes
12182 ;;
12183 esac
12184 fi
12185
12186 if test "$lt_use_gnu_ld_interface" = yes; then
12187 # If archive_cmds runs LD, not CC, wlarc should be empty
12188 wlarc='${wl}'
12189
12190 # Set some defaults for GNU ld with shared library support. These
12191 # are reset later if shared libraries are not supported. Putting them
12192 # here allows them to be overridden if necessary.
12193 runpath_var=LD_RUN_PATH
12194 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12195 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12196 # ancient GNU ld didn't support --whole-archive et. al.
12197 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12198 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12199 else
12200 whole_archive_flag_spec_GO=
12201 fi
12202 supports_anon_versioning=no
12203 case `$LD -v 2>&1` in
12204 *GNU\ gold*) supports_anon_versioning=yes ;;
12205 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12206 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12207 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12208 *\ 2.11.*) ;; # other 2.11 versions
12209 *) supports_anon_versioning=yes ;;
12210 esac
12211
12212 # See if GNU ld supports shared libraries.
12213 case $host_os in
12214 aix[3-9]*)
12215 # On AIX/PPC, the GNU linker is very broken
12216 if test "$host_cpu" != ia64; then
12217 ld_shlibs_GO=no
12218 cat <<_LT_EOF 1>&2
12219
12220*** Warning: the GNU linker, at least up to release 2.19, is reported
12221*** to be unable to reliably create shared libraries on AIX.
12222*** Therefore, libtool is disabling shared libraries support. If you
12223*** really care for shared libraries, you may want to install binutils
12224*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12225*** You will then need to restart the configuration process.
12226
12227_LT_EOF
12228 fi
12229 ;;
12230
12231 amigaos*)
12232 case $host_cpu in
12233 powerpc)
12234 # see comment about AmigaOS4 .so support
12235 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12236 archive_expsym_cmds_GO=''
12237 ;;
12238 m68k)
12239 archive_cmds_GO='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
12240 hardcode_libdir_flag_spec_GO='-L$libdir'
12241 hardcode_minus_L_GO=yes
12242 ;;
12243 esac
12244 ;;
12245
12246 beos*)
12247 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12248 allow_undefined_flag_GO=unsupported
12249 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12250 # support --undefined. This deserves some investigation. FIXME
12251 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12252 else
12253 ld_shlibs_GO=no
12254 fi
12255 ;;
12256
12257 cygwin* | mingw* | pw32* | cegcc*)
12258 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12259 # as there is no search path for DLLs.
12260 hardcode_libdir_flag_spec_GO='-L$libdir'
12261 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12262 allow_undefined_flag_GO=unsupported
12263 always_export_symbols_GO=no
12264 enable_shared_with_static_runtimes_GO=yes
12265 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12266
12267 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12268 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12269 # If the export-symbols file already is a .def file (1st line
12270 # is EXPORTS), use it as is; otherwise, prepend...
12271 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12272 cp $export_symbols $output_objdir/$soname.def;
12273 else
12274 echo EXPORTS > $output_objdir/$soname.def;
12275 cat $export_symbols >> $output_objdir/$soname.def;
12276 fi~
12277 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12278 else
12279 ld_shlibs_GO=no
12280 fi
12281 ;;
12282
12283 haiku*)
12284 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12285 link_all_deplibs_GO=yes
12286 ;;
12287
12288 interix[3-9]*)
12289 hardcode_direct_GO=no
12290 hardcode_shlibpath_var_GO=no
12291 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12292 export_dynamic_flag_spec_GO='${wl}-E'
12293 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12294 # Instead, shared libraries are loaded at an image base (0x10000000 by
12295 # default) and relocated if they conflict, which is a slow very memory
12296 # consuming and fragmenting process. To avoid this, we pick a random,
12297 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12298 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12299 archive_cmds_GO='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12300 archive_expsym_cmds_GO='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12301 ;;
12302
12303 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12304 tmp_diet=no
12305 if test "$host_os" = linux-dietlibc; then
12306 case $cc_basename in
12307 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12308 esac
12309 fi
12310 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12311 && test "$tmp_diet" = no
12312 then
12313 tmp_addflag=
12314 tmp_sharedflag='-shared'
12315 case $cc_basename,$host_cpu in
12316 pgcc*) # Portland Group C compiler
12317 whole_archive_flag_spec_GO='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12318 tmp_addflag=' $pic_flag'
12319 ;;
12320 pgf77* | pgf90* | pgf95* | pgfortran*)
12321 # Portland Group f77 and f90 compilers
12322 whole_archive_flag_spec_GO='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12323 tmp_addflag=' $pic_flag -Mnomain' ;;
12324 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12325 tmp_addflag=' -i_dynamic' ;;
12326 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12327 tmp_addflag=' -i_dynamic -nofor_main' ;;
12328 ifc* | ifort*) # Intel Fortran compiler
12329 tmp_addflag=' -nofor_main' ;;
12330 lf95*) # Lahey Fortran 8.1
12331 whole_archive_flag_spec_GO=
12332 tmp_sharedflag='--shared' ;;
12333 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12334 tmp_sharedflag='-qmkshrobj'
12335 tmp_addflag= ;;
12336 nvcc*) # Cuda Compiler Driver 2.2
12337 whole_archive_flag_spec_GO='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12338 compiler_needs_object_GO=yes
12339 ;;
12340 esac
12341 case `$CC -V 2>&1 | sed 5q` in
12342 *Sun\ C*) # Sun C 5.9
12343 whole_archive_flag_spec_GO='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12344 compiler_needs_object_GO=yes
12345 tmp_sharedflag='-G' ;;
12346 *Sun\ F*) # Sun Fortran 8.3
12347 tmp_sharedflag='-G' ;;
12348 esac
12349 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12350
12351 if test "x$supports_anon_versioning" = xyes; then
12352 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12353 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12354 echo "local: *; };" >> $output_objdir/$libname.ver~
12355 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12356 fi
12357
12358 case $cc_basename in
12359 xlf* | bgf* | bgxlf* | mpixlf*)
12360 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12361 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12362 hardcode_libdir_flag_spec_GO=
12363 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12364 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12365 if test "x$supports_anon_versioning" = xyes; then
12366 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12367 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12368 echo "local: *; };" >> $output_objdir/$libname.ver~
12369 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12370 fi
12371 ;;
12372 esac
12373 else
12374 ld_shlibs_GO=no
12375 fi
12376 ;;
12377
12378 netbsd*)
12379 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12380 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12381 wlarc=
12382 else
12383 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12384 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12385 fi
12386 ;;
12387
12388 solaris*)
12389 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12390 ld_shlibs_GO=no
12391 cat <<_LT_EOF 1>&2
12392
12393*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12394*** create shared libraries on Solaris systems. Therefore, libtool
12395*** is disabling shared libraries support. We urge you to upgrade GNU
12396*** binutils to release 2.9.1 or newer. Another option is to modify
12397*** your PATH or compiler configuration so that the native linker is
12398*** used, and then restart.
12399
12400_LT_EOF
12401 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12402 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12403 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12404 else
12405 ld_shlibs_GO=no
12406 fi
12407 ;;
12408
12409 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12410 case `$LD -v 2>&1` in
12411 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12412 ld_shlibs_GO=no
12413 cat <<_LT_EOF 1>&2
12414
12415*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12416*** reliably create shared libraries on SCO systems. Therefore, libtool
12417*** is disabling shared libraries support. We urge you to upgrade GNU
12418*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12419*** your PATH or compiler configuration so that the native linker is
12420*** used, and then restart.
12421
12422_LT_EOF
12423 ;;
12424 *)
12425 # For security reasons, it is highly recommended that you always
12426 # use absolute paths for naming shared libraries, and exclude the
12427 # DT_RUNPATH tag from executables and libraries. But doing so
12428 # requires that you compile everything twice, which is a pain.
12429 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12430 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12431 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12432 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12433 else
12434 ld_shlibs_GO=no
12435 fi
12436 ;;
12437 esac
12438 ;;
12439
12440 sunos4*)
12441 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12442 wlarc=
12443 hardcode_direct_GO=yes
12444 hardcode_shlibpath_var_GO=no
12445 ;;
12446
12447 *)
12448 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12449 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12450 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12451 else
12452 ld_shlibs_GO=no
12453 fi
12454 ;;
12455 esac
12456
12457 if test "$ld_shlibs_GO" = no; then
12458 runpath_var=
12459 hardcode_libdir_flag_spec_GO=
12460 export_dynamic_flag_spec_GO=
12461 whole_archive_flag_spec_GO=
12462 fi
12463 else
12464 # PORTME fill in a description of your system's linker (not GNU ld)
12465 case $host_os in
12466 aix3*)
12467 allow_undefined_flag_GO=unsupported
12468 always_export_symbols_GO=yes
12469 archive_expsym_cmds_GO='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
12470 # Note: this linker hardcodes the directories in LIBPATH if there
12471 # are no directories specified by -L.
12472 hardcode_minus_L_GO=yes
12473 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12474 # Neither direct hardcoding nor static linking is supported with a
12475 # broken collect2.
12476 hardcode_direct_GO=unsupported
12477 fi
12478 ;;
12479
12480 aix[4-9]*)
12481 if test "$host_cpu" = ia64; then
12482 # On IA64, the linker does run time linking by default, so we don't
12483 # have to do anything special.
12484 aix_use_runtimelinking=no
12485 exp_sym_flag='-Bexport'
12486 no_entry_flag=""
12487 else
12488 # If we're using GNU nm, then we don't want the "-C" option.
12489 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12490 # Also, AIX nm treats weak defined symbols like other global
12491 # defined symbols, whereas GNU nm marks them as "W".
12492 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12493 export_symbols_cmds_GO='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12494 else
12495 export_symbols_cmds_GO='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12496 fi
12497 aix_use_runtimelinking=no
12498
12499 # Test if we are trying to use run time linking or normal
12500 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12501 # need to do runtime linking.
12502 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12503 for ld_flag in $LDFLAGS; do
12504 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12505 aix_use_runtimelinking=yes
12506 break
12507 fi
12508 done
12509 ;;
12510 esac
12511
12512 exp_sym_flag='-bexport'
12513 no_entry_flag='-bnoentry'
12514 fi
12515
12516 # When large executables or shared objects are built, AIX ld can
12517 # have problems creating the table of contents. If linking a library
12518 # or program results in "error TOC overflow" add -mminimal-toc to
12519 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12520 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12521
12522 archive_cmds_GO=''
12523 hardcode_direct_GO=yes
12524 hardcode_direct_absolute_GO=yes
12525 hardcode_libdir_separator_GO=':'
12526 link_all_deplibs_GO=yes
12527 file_list_spec_GO='${wl}-f,'
12528
12529 if test "$GCC" = yes; then
12530 case $host_os in aix4.[012]|aix4.[012].*)
12531 # We only want to do this on AIX 4.2 and lower, the check
12532 # below for broken collect2 doesn't work under 4.3+
12533 collect2name=`${CC} -print-prog-name=collect2`
12534 if test -f "$collect2name" &&
12535 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12536 then
12537 # We have reworked collect2
12538 :
12539 else
12540 # We have old collect2
12541 hardcode_direct_GO=unsupported
12542 # It fails to find uninstalled libraries when the uninstalled
12543 # path is not listed in the libpath. Setting hardcode_minus_L
12544 # to unsupported forces relinking
12545 hardcode_minus_L_GO=yes
12546 hardcode_libdir_flag_spec_GO='-L$libdir'
12547 hardcode_libdir_separator_GO=
12548 fi
12549 ;;
12550 esac
12551 shared_flag='-shared'
12552 if test "$aix_use_runtimelinking" = yes; then
12553 shared_flag="$shared_flag "'${wl}-G'
12554 fi
12555 else
12556 # not using gcc
12557 if test "$host_cpu" = ia64; then
12558 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12559 # chokes on -Wl,-G. The following line is correct:
12560 shared_flag='-G'
12561 else
12562 if test "$aix_use_runtimelinking" = yes; then
12563 shared_flag='${wl}-G'
12564 else
12565 shared_flag='${wl}-bM:SRE'
12566 fi
12567 fi
12568 fi
12569
12570 export_dynamic_flag_spec_GO='${wl}-bexpall'
12571 # It seems that -bexpall does not export symbols beginning with
12572 # underscore (_), so it is better to generate a list of symbols to export.
12573 always_export_symbols_GO=yes
12574 if test "$aix_use_runtimelinking" = yes; then
12575 # Warning - without using the other runtime loading flags (-brtl),
12576 # -berok will link without error, but may produce a broken library.
12577 allow_undefined_flag_GO='-berok'
12578 # Determine the default libpath from the value encoded in an
12579 # empty executable.
12580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12581/* end confdefs.h. */
12582
12583int
12584main ()
12585{
12586
12587 ;
12588 return 0;
12589}
12590_ACEOF
12591if ac_fn_c_try_link "$LINENO"; then :
12592
12593lt_aix_libpath_sed='
12594 /Import File Strings/,/^$/ {
12595 /^0/ {
12596 s/^0 *\(.*\)$/\1/
12597 p
12598 }
12599 }'
12600aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12601# Check for a 64-bit object if we didn't find anything.
12602if test -z "$aix_libpath"; then
12603 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12604fi
12605fi
12606rm -f core conftest.err conftest.$ac_objext \
12607 conftest$ac_exeext conftest.$ac_ext
12608if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12609
12610 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12611 archive_expsym_cmds_GO='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12612 else
12613 if test "$host_cpu" = ia64; then
12614 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12615 allow_undefined_flag_GO="-z nodefs"
12616 archive_expsym_cmds_GO="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12617 else
12618 # Determine the default libpath from the value encoded in an
12619 # empty executable.
12620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12621/* end confdefs.h. */
12622
12623int
12624main ()
12625{
12626
12627 ;
12628 return 0;
12629}
12630_ACEOF
12631if ac_fn_c_try_link "$LINENO"; then :
12632
12633lt_aix_libpath_sed='
12634 /Import File Strings/,/^$/ {
12635 /^0/ {
12636 s/^0 *\(.*\)$/\1/
12637 p
12638 }
12639 }'
12640aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12641# Check for a 64-bit object if we didn't find anything.
12642if test -z "$aix_libpath"; then
12643 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12644fi
12645fi
12646rm -f core conftest.err conftest.$ac_objext \
12647 conftest$ac_exeext conftest.$ac_ext
12648if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12649
12650 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12651 # Warning - without using the other run time loading flags,
12652 # -berok will link without error, but may produce a broken library.
12653 no_undefined_flag_GO=' ${wl}-bernotok'
12654 allow_undefined_flag_GO=' ${wl}-berok'
12655 if test "$with_gnu_ld" = yes; then
12656 # We only use this code for GNU lds that support --whole-archive.
12657 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12658 else
12659 # Exported symbols can be pulled into shared objects from archives
12660 whole_archive_flag_spec_GO='$convenience'
12661 fi
12662 archive_cmds_need_lc_GO=yes
12663 # This is similar to how AIX traditionally builds its shared libraries.
12664 archive_expsym_cmds_GO="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12665 fi
12666 fi
12667 ;;
12668
12669 amigaos*)
12670 case $host_cpu in
12671 powerpc)
12672 # see comment about AmigaOS4 .so support
12673 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12674 archive_expsym_cmds_GO=''
12675 ;;
12676 m68k)
12677 archive_cmds_GO='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
12678 hardcode_libdir_flag_spec_GO='-L$libdir'
12679 hardcode_minus_L_GO=yes
12680 ;;
12681 esac
12682 ;;
12683
12684 bsdi[45]*)
12685 export_dynamic_flag_spec_GO=-rdynamic
12686 ;;
12687
12688 cygwin* | mingw* | pw32* | cegcc*)
12689 # When not using gcc, we currently assume that we are using
12690 # Microsoft Visual C++.
12691 # hardcode_libdir_flag_spec is actually meaningless, as there is
12692 # no search path for DLLs.
12693 hardcode_libdir_flag_spec_GO=' '
12694 allow_undefined_flag_GO=unsupported
12695 # Tell ltmain to make .lib files, not .a files.
12696 libext=lib
12697 # Tell ltmain to make .dll files, not .so files.
12698 shrext_cmds=".dll"
12699 # FIXME: Setting linknames here is a bad hack.
12700 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12701 # The linker will automatically build a .lib file if we build a DLL.
12702 old_archive_from_new_cmds_GO='true'
12703 # FIXME: Should let the user specify the lib program.
12704 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12705 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12706 enable_shared_with_static_runtimes_GO=yes
12707 ;;
12708
12709 darwin* | rhapsody*)
12710
12711
12712 archive_cmds_need_lc_GO=no
12713 hardcode_direct_GO=no
12714 hardcode_automatic_GO=yes
12715 hardcode_shlibpath_var_GO=unsupported
12716 if test "$lt_cv_ld_force_load" = "yes"; then
12717 whole_archive_flag_spec_GO='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12718 else
12719 whole_archive_flag_spec_GO=''
12720 fi
12721 link_all_deplibs_GO=yes
12722 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12723 case $cc_basename in
12724 ifort*) _lt_dar_can_shared=yes ;;
12725 *) _lt_dar_can_shared=$GCC ;;
12726 esac
12727 if test "$_lt_dar_can_shared" = "yes"; then
12728 output_verbose_link_cmd=func_echo_all
12729 archive_cmds_GO="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12730 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12731 archive_expsym_cmds_GO="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12732 module_expsym_cmds_GO="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12733
12734 else
12735 ld_shlibs_GO=no
12736 fi
12737
12738 ;;
12739
12740 dgux*)
12741 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12742 hardcode_libdir_flag_spec_GO='-L$libdir'
12743 hardcode_shlibpath_var_GO=no
12744 ;;
12745
e440a328 12746 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12747 # support. Future versions do this automatically, but an explicit c++rt0.o
12748 # does not break anything, and helps significantly (at the cost of a little
12749 # extra space).
12750 freebsd2.2*)
12751 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12752 hardcode_libdir_flag_spec_GO='-R$libdir'
12753 hardcode_direct_GO=yes
12754 hardcode_shlibpath_var_GO=no
12755 ;;
12756
12757 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
31d696fa 12758 freebsd2.*)
e440a328 12759 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12760 hardcode_direct_GO=yes
12761 hardcode_minus_L_GO=yes
12762 hardcode_shlibpath_var_GO=no
12763 ;;
12764
12765 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12766 freebsd* | dragonfly*)
12767 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12768 hardcode_libdir_flag_spec_GO='-R$libdir'
12769 hardcode_direct_GO=yes
12770 hardcode_shlibpath_var_GO=no
12771 ;;
12772
12773 hpux9*)
12774 if test "$GCC" = yes; then
12775 archive_cmds_GO='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12776 else
12777 archive_cmds_GO='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12778 fi
12779 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12780 hardcode_libdir_separator_GO=:
12781 hardcode_direct_GO=yes
12782
12783 # hardcode_minus_L: Not really in the search PATH,
12784 # but as the default location of the library.
12785 hardcode_minus_L_GO=yes
12786 export_dynamic_flag_spec_GO='${wl}-E'
12787 ;;
12788
12789 hpux10*)
12790 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12791 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12792 else
12793 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12794 fi
12795 if test "$with_gnu_ld" = no; then
12796 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12797 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12798 hardcode_libdir_separator_GO=:
12799 hardcode_direct_GO=yes
12800 hardcode_direct_absolute_GO=yes
12801 export_dynamic_flag_spec_GO='${wl}-E'
12802 # hardcode_minus_L: Not really in the search PATH,
12803 # but as the default location of the library.
12804 hardcode_minus_L_GO=yes
12805 fi
12806 ;;
12807
12808 hpux11*)
12809 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12810 case $host_cpu in
12811 hppa*64*)
12812 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12813 ;;
12814 ia64*)
12815 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12816 ;;
12817 *)
12818 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12819 ;;
12820 esac
12821 else
12822 case $host_cpu in
12823 hppa*64*)
12824 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12825 ;;
12826 ia64*)
12827 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12828 ;;
12829 *)
12830 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12831 ;;
12832 esac
12833 fi
12834 if test "$with_gnu_ld" = no; then
12835 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12836 hardcode_libdir_separator_GO=:
12837
12838 case $host_cpu in
12839 hppa*64*|ia64*)
12840 hardcode_direct_GO=no
12841 hardcode_shlibpath_var_GO=no
12842 ;;
12843 *)
12844 hardcode_direct_GO=yes
12845 hardcode_direct_absolute_GO=yes
12846 export_dynamic_flag_spec_GO='${wl}-E'
12847
12848 # hardcode_minus_L: Not really in the search PATH,
12849 # but as the default location of the library.
12850 hardcode_minus_L_GO=yes
12851 ;;
12852 esac
12853 fi
12854 ;;
12855
12856 irix5* | irix6* | nonstopux*)
12857 if test "$GCC" = yes; then
12858 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12859 # Try to use the -exported_symbol ld option, if it does not
12860 # work, assume that -exports_file does not work either and
12861 # implicitly export all symbols.
12862 save_LDFLAGS="$LDFLAGS"
12863 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12865/* end confdefs.h. */
12866int foo(void) {}
12867_ACEOF
12868if ac_fn_c_try_link "$LINENO"; then :
12869 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
12870
12871fi
12872rm -f core conftest.err conftest.$ac_objext \
12873 conftest$ac_exeext conftest.$ac_ext
12874 LDFLAGS="$save_LDFLAGS"
12875 else
12876 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12877 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
12878 fi
12879 archive_cmds_need_lc_GO='no'
12880 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12881 hardcode_libdir_separator_GO=:
12882 inherit_rpath_GO=yes
12883 link_all_deplibs_GO=yes
12884 ;;
12885
12886 netbsd*)
12887 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12888 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12889 else
12890 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12891 fi
12892 hardcode_libdir_flag_spec_GO='-R$libdir'
12893 hardcode_direct_GO=yes
12894 hardcode_shlibpath_var_GO=no
12895 ;;
12896
12897 newsos6)
12898 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12899 hardcode_direct_GO=yes
12900 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12901 hardcode_libdir_separator_GO=:
12902 hardcode_shlibpath_var_GO=no
12903 ;;
12904
12905 *nto* | *qnx*)
12906 ;;
12907
12908 openbsd*)
12909 if test -f /usr/libexec/ld.so; then
12910 hardcode_direct_GO=yes
12911 hardcode_shlibpath_var_GO=no
12912 hardcode_direct_absolute_GO=yes
12913 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12914 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12915 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12916 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12917 export_dynamic_flag_spec_GO='${wl}-E'
12918 else
12919 case $host_os in
12920 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12921 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12922 hardcode_libdir_flag_spec_GO='-R$libdir'
12923 ;;
12924 *)
12925 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12926 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12927 ;;
12928 esac
12929 fi
12930 else
12931 ld_shlibs_GO=no
12932 fi
12933 ;;
12934
12935 os2*)
12936 hardcode_libdir_flag_spec_GO='-L$libdir'
12937 hardcode_minus_L_GO=yes
12938 allow_undefined_flag_GO=unsupported
12939 archive_cmds_GO='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
12940 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12941 ;;
12942
12943 osf3*)
12944 if test "$GCC" = yes; then
12945 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12946 archive_cmds_GO='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12947 else
12948 allow_undefined_flag_GO=' -expect_unresolved \*'
12949 archive_cmds_GO='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12950 fi
12951 archive_cmds_need_lc_GO='no'
12952 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12953 hardcode_libdir_separator_GO=:
12954 ;;
12955
12956 osf4* | osf5*) # as osf3* with the addition of -msym flag
12957 if test "$GCC" = yes; then
12958 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12959 archive_cmds_GO='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12960 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12961 else
12962 allow_undefined_flag_GO=' -expect_unresolved \*'
12963 archive_cmds_GO='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12964 archive_expsym_cmds_GO='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
12965 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
12966
12967 # Both c and cxx compiler support -rpath directly
12968 hardcode_libdir_flag_spec_GO='-rpath $libdir'
12969 fi
12970 archive_cmds_need_lc_GO='no'
12971 hardcode_libdir_separator_GO=:
12972 ;;
12973
12974 solaris*)
12975 no_undefined_flag_GO=' -z defs'
12976 if test "$GCC" = yes; then
12977 wlarc='${wl}'
12978 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12979 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12980 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12981 else
12982 case `$CC -V 2>&1` in
12983 *"Compilers 5.0"*)
12984 wlarc=''
12985 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12986 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12987 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12988 ;;
12989 *)
12990 wlarc='${wl}'
12991 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12992 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12993 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12994 ;;
12995 esac
12996 fi
12997 hardcode_libdir_flag_spec_GO='-R$libdir'
12998 hardcode_shlibpath_var_GO=no
12999 case $host_os in
13000 solaris2.[0-5] | solaris2.[0-5].*) ;;
13001 *)
13002 # The compiler driver will combine and reorder linker options,
13003 # but understands `-z linker_flag'. GCC discards it without `$wl',
13004 # but is careful enough not to reorder.
13005 # Supported since Solaris 2.6 (maybe 2.5.1?)
13006 if test "$GCC" = yes; then
13007 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13008 else
13009 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
13010 fi
13011 ;;
13012 esac
13013 link_all_deplibs_GO=yes
13014 ;;
13015
13016 sunos4*)
13017 if test "x$host_vendor" = xsequent; then
13018 # Use $CC to link under sequent, because it throws in some extra .o
13019 # files that make .init and .fini sections work.
13020 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13021 else
13022 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13023 fi
13024 hardcode_libdir_flag_spec_GO='-L$libdir'
13025 hardcode_direct_GO=yes
13026 hardcode_minus_L_GO=yes
13027 hardcode_shlibpath_var_GO=no
13028 ;;
13029
13030 sysv4)
13031 case $host_vendor in
13032 sni)
13033 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13034 hardcode_direct_GO=yes # is this really true???
13035 ;;
13036 siemens)
13037 ## LD is ld it makes a PLAMLIB
13038 ## CC just makes a GrossModule.
13039 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13040 reload_cmds_GO='$CC -r -o $output$reload_objs'
13041 hardcode_direct_GO=no
13042 ;;
13043 motorola)
13044 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13045 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
13046 ;;
13047 esac
13048 runpath_var='LD_RUN_PATH'
13049 hardcode_shlibpath_var_GO=no
13050 ;;
13051
13052 sysv4.3*)
13053 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13054 hardcode_shlibpath_var_GO=no
13055 export_dynamic_flag_spec_GO='-Bexport'
13056 ;;
13057
13058 sysv4*MP*)
13059 if test -d /usr/nec; then
13060 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13061 hardcode_shlibpath_var_GO=no
13062 runpath_var=LD_RUN_PATH
13063 hardcode_runpath_var=yes
13064 ld_shlibs_GO=yes
13065 fi
13066 ;;
13067
13068 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13069 no_undefined_flag_GO='${wl}-z,text'
13070 archive_cmds_need_lc_GO=no
13071 hardcode_shlibpath_var_GO=no
13072 runpath_var='LD_RUN_PATH'
13073
13074 if test "$GCC" = yes; then
13075 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13076 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13077 else
13078 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13079 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13080 fi
13081 ;;
13082
13083 sysv5* | sco3.2v5* | sco5v6*)
13084 # Note: We can NOT use -z defs as we might desire, because we do not
13085 # link with -lc, and that would cause any symbols used from libc to
13086 # always be unresolved, which means just about no library would
13087 # ever link correctly. If we're not using GNU ld we use -z text
13088 # though, which does catch some bad symbols but isn't as heavy-handed
13089 # as -z defs.
13090 no_undefined_flag_GO='${wl}-z,text'
13091 allow_undefined_flag_GO='${wl}-z,nodefs'
13092 archive_cmds_need_lc_GO=no
13093 hardcode_shlibpath_var_GO=no
13094 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
13095 hardcode_libdir_separator_GO=':'
13096 link_all_deplibs_GO=yes
13097 export_dynamic_flag_spec_GO='${wl}-Bexport'
13098 runpath_var='LD_RUN_PATH'
13099
13100 if test "$GCC" = yes; then
13101 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13102 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13103 else
13104 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13105 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13106 fi
13107 ;;
13108
13109 uts4*)
13110 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13111 hardcode_libdir_flag_spec_GO='-L$libdir'
13112 hardcode_shlibpath_var_GO=no
13113 ;;
13114
13115 *)
13116 ld_shlibs_GO=no
13117 ;;
13118 esac
13119
13120 if test x$host_vendor = xsni; then
13121 case $host in
13122 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13123 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
13124 ;;
13125 esac
13126 fi
13127 fi
13128
13129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13130$as_echo "$ld_shlibs_GO" >&6; }
13131test "$ld_shlibs_GO" = no && can_build_shared=no
13132
13133with_gnu_ld_GO=$with_gnu_ld
13134
13135
13136
13137
13138
13139
13140#
13141# Do we need to explicitly link libc?
13142#
13143case "x$archive_cmds_need_lc_GO" in
13144x|xyes)
13145 # Assume -lc should be added
13146 archive_cmds_need_lc_GO=yes
13147
13148 if test "$enable_shared" = yes && test "$GCC" = yes; then
13149 case $archive_cmds_GO in
13150 *'~'*)
13151 # FIXME: we may have to deal with multi-command sequences.
13152 ;;
13153 '$CC '*)
13154 # Test whether the compiler implicitly links with -lc since on some
13155 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13156 # to ld, don't add -lc before -lgcc.
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13158$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13159if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
13160 $as_echo_n "(cached) " >&6
13161else
13162 $RM conftest*
13163 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13164
13165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13166 (eval $ac_compile) 2>&5
13167 ac_status=$?
13168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13169 test $ac_status = 0; } 2>conftest.err; then
13170 soname=conftest
13171 lib=conftest
13172 libobjs=conftest.$ac_objext
13173 deplibs=
13174 wl=$lt_prog_compiler_wl_GO
13175 pic_flag=$lt_prog_compiler_pic_GO
13176 compiler_flags=-v
13177 linker_flags=-v
13178 verstring=
13179 output_objdir=.
13180 libname=conftest
13181 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
13182 allow_undefined_flag_GO=
13183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13184 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13185 ac_status=$?
13186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13187 test $ac_status = 0; }
13188 then
13189 lt_cv_archive_cmds_need_lc_GO=no
13190 else
13191 lt_cv_archive_cmds_need_lc_GO=yes
13192 fi
13193 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13194 else
13195 cat conftest.err 1>&5
13196 fi
13197 $RM conftest*
13198
13199fi
13200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13201$as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13202 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13203 ;;
13204 esac
13205 fi
13206 ;;
13207esac
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13273$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13274hardcode_action_GO=
13275if test -n "$hardcode_libdir_flag_spec_GO" ||
13276 test -n "$runpath_var_GO" ||
13277 test "X$hardcode_automatic_GO" = "Xyes" ; then
13278
13279 # We can hardcode non-existent directories.
13280 if test "$hardcode_direct_GO" != no &&
13281 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13282 # have to relink, otherwise we might link with an installed library
13283 # when we should be linking with a yet-to-be-installed one
13284 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13285 test "$hardcode_minus_L_GO" != no; then
13286 # Linking always hardcodes the temporary library directory.
13287 hardcode_action_GO=relink
13288 else
13289 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13290 hardcode_action_GO=immediate
13291 fi
13292else
13293 # We cannot hardcode anything, or else we can only hardcode existing
13294 # directories.
13295 hardcode_action_GO=unsupported
13296fi
13297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13298$as_echo "$hardcode_action_GO" >&6; }
13299
13300if test "$hardcode_action_GO" = relink ||
13301 test "$inherit_rpath_GO" = yes; then
13302 # Fast installation is not supported
13303 enable_fast_install=no
13304elif test "$shlibpath_overrides_runpath" = yes ||
13305 test "$enable_shared" = no; then
13306 # Fast installation is not necessary
13307 enable_fast_install=needless
13308fi
13309
13310
13311
13312
13313
13314
13315
13316fi
13317
13318ac_ext=c
13319ac_cpp='$CPP $CPPFLAGS'
13320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13322ac_compiler_gnu=$ac_cv_c_compiler_gnu
13323
13324
13325GCC=$lt_save_GCC
13326CC="$lt_save_CC"
13327
13328
13329
13330
13331 ac_config_commands="$ac_config_commands libtool"
13332
13333
13334
13335
13336# Only expand once:
13337
13338
13339
13340
13341
a27e1015 13342CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13343
13344
d477de41 13345for ac_prog in gawk mawk nawk awk
13346do
13347 # Extract the first word of "$ac_prog", so it can be a program name with args.
13348set dummy $ac_prog; ac_word=$2
13349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13350$as_echo_n "checking for $ac_word... " >&6; }
13351if test "${ac_cv_prog_AWK+set}" = set; then :
13352 $as_echo_n "(cached) " >&6
13353else
13354 if test -n "$AWK"; then
13355 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13356else
13357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13358for as_dir in $PATH
13359do
13360 IFS=$as_save_IFS
13361 test -z "$as_dir" && as_dir=.
13362 for ac_exec_ext in '' $ac_executable_extensions; do
13363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13364 ac_cv_prog_AWK="$ac_prog"
13365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13366 break 2
13367 fi
13368done
13369 done
13370IFS=$as_save_IFS
13371
13372fi
13373fi
13374AWK=$ac_cv_prog_AWK
13375if test -n "$AWK"; then
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13377$as_echo "$AWK" >&6; }
13378else
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13380$as_echo "no" >&6; }
13381fi
13382
13383
13384 test -n "$AWK" && break
13385done
13386
13387
e440a328 13388WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13389
13390
75935341 13391# Check whether --enable-werror was given.
13392if test "${enable_werror+set}" = set; then :
13393 enableval=$enable_werror;
13394fi
13395
13396if test "x$enable_werror" != "xno"; then
13397 WERROR="-Werror"
13398fi
e440a328 13399
13400
13401glibgo_toolexecdir=no
13402glibgo_toolexeclibdir=no
e440a328 13403
13404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13405$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13406# Check whether --enable-version-specific-runtime-libs was given.
13407if test "${enable_version_specific_runtime_libs+set}" = set; then :
13408 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13409 yes) version_specific_libs=yes ;;
13410 no) version_specific_libs=no ;;
13411 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13412 esac
13413else
13414 version_specific_libs=no
13415fi
13416
13417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13418$as_echo "$version_specific_libs" >&6; }
13419
13420# Version-specific runtime libs processing.
13421if test $version_specific_libs = yes; then
13422 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13423 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13424fi
13425
13426# Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13427# Install a library built with a cross compiler in tooldir, not libdir.
61efdf66 13428if test -n "$with_cross_host" &&
13429 test x"$with_cross_host" != x"no"; then
13430 nover_glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13431 nover_glibgo_toolexeclibdir='${toolexecdir}/lib'
13432else
13433 nover_glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13434 nover_glibgo_toolexeclibdir='${libdir}'
13435fi
67d3a836 13436multi_os_directory=`$GOC -print-multi-os-directory`
61efdf66 13437case $multi_os_directory in
13438 .) ;; # Avoid trailing /.
13439 *) nover_glibgo_toolexeclibdir=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;;
13440esac
13441
e440a328 13442if test x"$glibgo_toolexecdir" = x"no"; then
61efdf66 13443 glibgo_toolexecdir="${nover_glibgo_toolexecdir}"
13444 glibgo_toolexeclibdir="${nover_glibgo_toolexeclibdir}"
e440a328 13445fi
13446
13447
13448
13449
13450
13451# See if the user wants to configure without libffi. Some
13452# architectures don't support it. FIXME: We should set a default
13453# based on the host.
13454
13455# Check whether --with-libffi was given.
13456if test "${with_libffi+set}" = set; then :
13457 withval=$with_libffi; :
13458else
13459 with_libffi=${with_libffi_default-yes}
13460fi
13461
13462
13463LIBFFI=
13464LIBFFIINCS=
13465if test "$with_libffi" != no; then
13466
13467$as_echo "#define USE_LIBFFI 1" >>confdefs.h
13468
13469 LIBFFI=../libffi/libffi_convenience.la
13470 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13471fi
13472
13473
63e457ad 13474 if test "$with_liffi" != "no"; then
13475 USE_LIBFFI_TRUE=
13476 USE_LIBFFI_FALSE='#'
13477else
13478 USE_LIBFFI_TRUE='#'
13479 USE_LIBFFI_FALSE=
13480fi
13481
e440a328 13482
7920387d 13483# See if the user wants to configure without libatomic. This is useful if we are
13484# on an architecture for which libgo does not need an atomic support library and
13485# libatomic does not support our C compiler.
13486
13487# Check whether --with-libatomic was given.
13488if test "${with_libatomic+set}" = set; then :
13489 withval=$with_libatomic; :
13490else
13491 with_libatomic=${with_libatomic_default-yes}
13492fi
13493
13494
13495LIBATOMIC=
13496if test "$with_libatomic" != no; then
13497 LIBATOMIC=../libatomic/libatomic_convenience.la
13498fi
13499
13500
4180345a 13501# Used to tell GNU make to include a file without telling automake to
13502# include it.
13503go_include="-include"
13504
13505
91d733e1 13506# All known GOOS values. This is the union of all operating systems
13507# supported by the gofrontend and all operating systems supported by
13508# the gc toolchain.
13509ALLGOOS="android darwin dragonfly freebsd irix linux netbsd openbsd plan9 rtems solaris windows"
13510
e440a328 13511is_darwin=no
13512is_freebsd=no
524b52f8 13513is_irix=no
e440a328 13514is_linux=no
12adcb64 13515is_netbsd=no
fb08d005 13516is_openbsd=no
0ce10ea1 13517is_dragonfly=no
e440a328 13518is_rtems=no
cea7ac49 13519is_solaris=no
7731bf71 13520GOOS=unknown
e440a328 13521case ${host} in
cea7ac49 13522 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13523 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
524b52f8 13524 *-*-irix6*) is_irix=yes; GOOS=irix ;;
cea7ac49 13525 *-*-linux*) is_linux=yes; GOOS=linux ;;
86240434 13526 *-*-netbsd*) is_netbsd=yes; GOOS=netbsd ;;
fb08d005 13527 *-*-openbsd*) is_openbsd=yes; GOOS=openbsd ;;
0ce10ea1 13528 *-*-dragonfly*) is_dragonfly=yes; GOOS=dragonfly ;;
cea7ac49 13529 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13530 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
e440a328 13531esac
13532 if test $is_darwin = yes; then
13533 LIBGO_IS_DARWIN_TRUE=
13534 LIBGO_IS_DARWIN_FALSE='#'
13535else
13536 LIBGO_IS_DARWIN_TRUE='#'
13537 LIBGO_IS_DARWIN_FALSE=
13538fi
13539
13540 if test $is_freebsd = yes; then
13541 LIBGO_IS_FREEBSD_TRUE=
13542 LIBGO_IS_FREEBSD_FALSE='#'
13543else
13544 LIBGO_IS_FREEBSD_TRUE='#'
13545 LIBGO_IS_FREEBSD_FALSE=
13546fi
13547
524b52f8 13548 if test $is_irix = yes; then
13549 LIBGO_IS_IRIX_TRUE=
13550 LIBGO_IS_IRIX_FALSE='#'
13551else
13552 LIBGO_IS_IRIX_TRUE='#'
13553 LIBGO_IS_IRIX_FALSE=
13554fi
13555
e440a328 13556 if test $is_linux = yes; then
13557 LIBGO_IS_LINUX_TRUE=
13558 LIBGO_IS_LINUX_FALSE='#'
13559else
13560 LIBGO_IS_LINUX_TRUE='#'
13561 LIBGO_IS_LINUX_FALSE=
13562fi
13563
86240434 13564 if test $is_netbsd = yes; then
13565 LIBGO_IS_NETBSD_TRUE=
13566 LIBGO_IS_NETBSD_FALSE='#'
13567else
13568 LIBGO_IS_NETBSD_TRUE='#'
13569 LIBGO_IS_NETBSD_FALSE=
13570fi
13571
fb08d005 13572 if test $is_openbsd = yes; then
13573 LIBGO_IS_OPENBSD_TRUE=
13574 LIBGO_IS_OPENBSD_FALSE='#'
13575else
13576 LIBGO_IS_OPENBSD_TRUE='#'
13577 LIBGO_IS_OPENBSD_FALSE=
13578fi
13579
e6af9bdb 13580 if test $is_dragonfly = yes; then
0ce10ea1 13581 LIBGO_IS_DRAGONFLY_TRUE=
13582 LIBGO_IS_DRAGONFLY_FALSE='#'
13583else
13584 LIBGO_IS_DRAGONFLY_TRUE='#'
13585 LIBGO_IS_DRAGONFLY_FALSE=
13586fi
13587
e440a328 13588 if test $is_rtems = yes; then
13589 LIBGO_IS_RTEMS_TRUE=
13590 LIBGO_IS_RTEMS_FALSE='#'
13591else
13592 LIBGO_IS_RTEMS_TRUE='#'
13593 LIBGO_IS_RTEMS_FALSE=
13594fi
13595
cea7ac49 13596 if test $is_solaris = yes; then
13597 LIBGO_IS_SOLARIS_TRUE=
13598 LIBGO_IS_SOLARIS_FALSE='#'
13599else
13600 LIBGO_IS_SOLARIS_TRUE='#'
13601 LIBGO_IS_SOLARIS_FALSE=
13602fi
13603
be239ed2 13604 if test $is_darwin = yes -o $is_dragonfly = yes -o $is_freebsd = yes -o $is_netbsd = yes -o $is_openbsd = yes; then
13605 LIBGO_IS_BSD_TRUE=
13606 LIBGO_IS_BSD_FALSE='#'
13607else
13608 LIBGO_IS_BSD_TRUE='#'
13609 LIBGO_IS_BSD_FALSE=
13610fi
13611
e440a328 13612
7731bf71 13613
91d733e1 13614
6222f4a8 13615USE_DEJAGNU=no
13616case ${host} in
13617 *-*-rtems*) USE_DEJAGNU=yes ;;
9d5dfb12 13618 ${build}) ;;
6222f4a8 13619 *) USE_DEJAGNU=yes ;;
13620esac
13621
13622
91d733e1 13623# All known GOARCH values. This is the union of all architectures
13624# supported by the gofrontend and all architectures supported by the
13625# gc toolchain.
13626# N.B. Keep in sync with gcc/testsuite/go.test/go-test.exp (go-set-goarch).
4cee8921 13627ALLGOARCH="386 alpha amd64 amd64p32 arm armbe arm64 arm64be ia64 m68k mipso32 mipsn32 mipso64 mipsn64 mips mipsle mips64 mips64le mips64p32 mips64p32le ppc ppc64 ppc64le s390 s390x sparc sparc64"
91d733e1 13628
13629# All known GOARCH_FAMILY values.
13630ALLGOARCHFAMILY="I386 ALPHA AMD64 ARM ARM64 IA64 M68K MIPS MIPS64 PPC PPC64 S390 S390X SPARC SPARC64"
13631
7731bf71 13632GOARCH=unknown
91d733e1 13633GOARCH_FAMILY=unknown
13634GOARCH_BIGENDIAN=0
13635GOARCH_CACHELINESIZE=64
13636GOARCH_PHYSPAGESIZE=4096
13637GOARCH_PCQUANTUM=1
13638GOARCH_INT64ALIGN=8
13639GOARCH_HUGEPAGESIZE=0
13640GOARCH_MINFRAMESIZE=0
e440a328 13641case ${host} in
16dc3e4d 13642 alpha*-*-*)
16dc3e4d 13643 GOARCH=alpha
91d733e1 13644 GOARCH_FAMILY=ALPHA
13645 GOARCH_PHYSPAGESIZE=8192
13646 GOARCH_PCQUANTUM=4
16dc3e4d 13647 ;;
275f094b 13648 aarch64-*-*)
275f094b 13649 GOARCH=arm64
91d733e1 13650 GOARCH_FAMILY=ARM64
13651 GOARCH_CACHELINESIZE=32
13652 GOARCH_PHYSPAGESIZE=65536
7153717f 13653 GOARCH_PCQUANTUM=4
91d733e1 13654 GOARCH_MINFRAMESIZE=8
275f094b 13655 ;;
8fb241fa 13656 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
8fb241fa 13657 GOARCH=arm
91d733e1 13658 GOARCH_FAMILY=ARM
13659 GOARCH_CACHELINESIZE=32
13660 GOARCH_PCQUANTUM=4
91d733e1 13661 GOARCH_MINFRAMESIZE=4
8fb241fa 13662 ;;
7731bf71 13663 i[34567]86-*-* | x86_64-*-*)
13664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13665/* end confdefs.h. */
13666
13667#ifdef __x86_64__
13668#error 64-bit
13669#endif
13670_ACEOF
3ae9cf6a 13671if ac_fn_c_try_compile "$LINENO"; then :
91d733e1 13672 GOARCH=386
13673GOARCH_FAMILY=I386
13674GOARCH_INT64ALIGN=4
13675GOARCH_HUGEPAGESIZE="1 << 21"
13676
7731bf71 13677else
91d733e1 13678 GOARCH=amd64
13679GOARCH_FAMILY=AMD64
13680GOARCH_HUGEPAGESIZE="1 << 21"
13681
7731bf71 13682fi
3ae9cf6a 13683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e440a328 13684 ;;
4d29d40e 13685 ia64-*-*)
4d29d40e 13686 GOARCH=ia64
91d733e1 13687 GOARCH_FAMILY=IA64
13688 GOARCH_CACHELINESIZE=16384
f2f0277e 13689 GOARCH_PHYSPAGESIZE=65536
4d29d40e 13690 ;;
8fb241fa 13691 m68k*-*-*)
8fb241fa 13692 GOARCH=m68k
91d733e1 13693 GOARCH_FAMILY=M68K
13694 GOARCH_BIGENDIAN=1
13695 GOARCH_CACHELINESIZE=16
13696 GOARCH_PCQUANTUM=4
6f8663d2 13697 GOARCH_INT64ALIGN=2
8fb241fa 13698 ;;
13699 mips*-*-*)
13700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13701/* end confdefs.h. */
13702
fa5e552e 13703#if _MIPS_SIM != _ABIO32
13704#error not o32
13705#endif
13706_ACEOF
13707if ac_fn_c_try_compile "$LINENO"; then :
13708 mips_abi="o32"
13709else
13710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13711/* end confdefs.h. */
13712
13713#if _MIPS_SIM != _ABIN32
13714#error not n32
8fb241fa 13715#endif
13716_ACEOF
3ae9cf6a 13717if ac_fn_c_try_compile "$LINENO"; then :
fa5e552e 13718 mips_abi="n32"
8fb241fa 13719else
fa5e552e 13720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13721/* end confdefs.h. */
13722
13723#if _MIPS_SIM != _ABI64
13724#error not n64
13725#endif
13726_ACEOF
13727if ac_fn_c_try_compile "$LINENO"; then :
13728 mips_abi="n64"
13729else
13730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13731/* end confdefs.h. */
13732
13733#if _MIPS_SIM != _ABIO64
13734#error not o64
13735#endif
13736_ACEOF
13737if ac_fn_c_try_compile "$LINENO"; then :
13738 mips_abi="o64"
13739else
13740 as_fn_error "unknown MIPS ABI" "$LINENO" 5
13741mips_abi="n32"
8fb241fa 13742fi
3ae9cf6a 13743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fa5e552e 13744fi
13745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13746fi
13747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13748fi
13749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13750 case "$mips_abi" in
13751 "o32") GOARCH=mipso32 ;;
13752 "n32") GOARCH=mipsn32 ;;
13753 "n64") GOARCH=mipsn64 ;;
13754 "o64") GOARCH=mipso64 ;;
13755 esac
91d733e1 13756 case "$mips_abi" in
13757 "o32" | "n32")
13758 GOARCH_FAMILY=MIPS
91d733e1 13759 GOARCH_MINFRAMESIZE=4
13760 ;;
13761 "n64" | "o64")
13762 GOARCH_FAMILY=MIPS64
13763 GOARCH_MINFRAMESIZE=8
13764 ;;
13765 esac
13766 case "${host}" in
13767 mips*el)
13768 ;;
13769 *)
13770 GOARCH_BIGENDIAN=1
13771 ;;
13772 esac
13773 GOARCH_CACHELINESIZE=32
13774 GOARCH_PHYSPAGESIZE=16384
13775 GOARCH_PCQUANTUM=4
8fb241fa 13776 ;;
13777 rs6000*-*-* | powerpc*-*-*)
13778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13779/* end confdefs.h. */
13780
13781#ifdef _ARCH_PPC64
13782#error 64-bit
13783#endif
13784_ACEOF
3ae9cf6a 13785if ac_fn_c_try_compile "$LINENO"; then :
91d733e1 13786 GOARCH=ppc
13787GOARCH_FAMILY=PPC
13788GOARCH_BIGENDIAN=1
91d733e1 13789
59eb586e 13790else
91d733e1 13791
13792GOARCH_FAMILY=PPC64
13793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59eb586e 13794/* end confdefs.h. */
13795
13796#if defined(_BIG_ENDIAN) || defined(__BIG_ENDIAN__)
13797#error 64be
13798#endif
13799_ACEOF
13800if ac_fn_c_try_compile "$LINENO"; then :
91d733e1 13801 GOARCH=ppc64le
13802
8fb241fa 13803else
91d733e1 13804 GOARCH=ppc64
13805GOARCH_BIGENDIAN=1
13806
8fb241fa 13807fi
59eb586e 13808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13809fi
3ae9cf6a 13810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
91d733e1 13811 GOARCH_PHYSPAGESIZE=65536
13812 GOARCH_PCQUANTUM=4
13813 GOARCH_MINFRAMESIZE=32
e440a328 13814 ;;
141eb62b 13815 s390*-*-*)
13816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13817/* end confdefs.h. */
13818
13819#if defined(__s390x__)
13820#error 64-bit
13821#endif
13822_ACEOF
13823if ac_fn_c_try_compile "$LINENO"; then :
91d733e1 13824 GOARCH=s390
13825GOARCH_FAMILY=S390
91d733e1 13826GOARCH_MINFRAMESIZE=4
13827
141eb62b 13828else
91d733e1 13829 GOARCH=s390x
13830GOARCH_FAMILY=S390X
13831GOARCH_MINFRAMESIZE=8
13832
141eb62b 13833fi
13834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
91d733e1 13835 GOARCH_BIGENDIAN=1
13836 GOARCH_CACHELINESIZE=256
13837 GOARCH_PCQUANTUM=2
141eb62b 13838 ;;
cea7ac49 13839 sparc*-*-*)
13840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13841/* end confdefs.h. */
13842
13843#if defined(__sparcv9) || defined(__arch64__)
13844#error 64-bit
13845#endif
13846_ACEOF
3ae9cf6a 13847if ac_fn_c_try_compile "$LINENO"; then :
91d733e1 13848 GOARCH=sparc
13849GOARCH_FAMILY=SPARC
91d733e1 13850
cea7ac49 13851else
91d733e1 13852 GOARCH=sparc64
13853GOARCH_FAMILY=SPARC64
13854
cea7ac49 13855fi
3ae9cf6a 13856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
91d733e1 13857 GOARCH_BIGENDIAN=1
13858 GOARCH_PHYSPAGESIZE=8192
13859 GOARCH_PCQUANTUM=4
cea7ac49 13860 ;;
e440a328 13861esac
fa5e552e 13862
8fb241fa 13863
0694cef2 13864
8fb241fa 13865
8fb241fa 13866
59eb586e 13867
141eb62b 13868
141eb62b 13869
cea7ac49 13870
cea7ac49 13871
e440a328 13872
7731bf71 13873
d477de41 13874GO_LIBCALL_OS_FILE=
13875GO_LIBCALL_OS_ARCH_FILE=
13876GO_SYSCALL_OS_FILE=
13877GO_SYSCALL_OS_ARCH_FILE=
4a7cfa71 13878if test -f "${srcdir}/go/syscall/libcall_${GOOS}.go"; then
13879 GO_LIBCALL_OS_FILE="go/syscall/libcall_${GOOS}.go"
8fb241fa 13880fi
4a7cfa71 13881if test -f "${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go"; then
13882 GO_LIBCALL_OS_ARCH_FILE="go/syscall/libcall_${GOOS}_${GOARCH}.go"
d477de41 13883fi
4a7cfa71 13884if test -f "${srcdir}/go/syscall/syscall_${GOOS}.go"; then
13885 GO_SYSCALL_OS_FILE="go/syscall/syscall_${GOOS}.go"
d477de41 13886fi
4a7cfa71 13887if test -f "${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go"; then
13888 GO_SYSCALL_OS_ARCH_FILE="go/syscall/syscall_${GOOS}_${GOARCH}.go"
d477de41 13889fi
13890
13891
13892
8fb241fa 13893
13894
6785caa3 13895OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
69db433d 13896case "$target" in
e0519e05 13897 mips-sgi-irix6.5*)
13898 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
13899 # msghdr in <sys/socket.h>.
6785caa3 13900 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
e0519e05 13901 ;;
69db433d 13902 *-*-solaris2.1[01])
13903 # Solaris 10+ needs this so struct msghdr gets the msg_control
ed845d9d 13904 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
69db433d 13905 # above doesn't work with C99.
ed845d9d 13906 OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
69db433d 13907 ;;
13908esac
13909
13910
e440a328 13911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13912$as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
cea7ac49 13913if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
e440a328 13914 $as_echo_n "(cached) " >&6
13915else
13916 CFLAGS_hold=$CFLAGS
13917CFLAGS="$CFLAGS -fsplit-stack"
13918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13919/* end confdefs.h. */
13920int i;
13921_ACEOF
13922if ac_fn_c_try_compile "$LINENO"; then :
cea7ac49 13923 libgo_cv_c_split_stack_supported=yes
e440a328 13924else
cea7ac49 13925 libgo_cv_c_split_stack_supported=no
e440a328 13926fi
13927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13928CFLAGS=$CFLAGS_hold
13929fi
cea7ac49 13930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
13931$as_echo "$libgo_cv_c_split_stack_supported" >&6; }
f137de11 13932
13933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split/non-split linked together" >&5
13934$as_echo_n "checking whether linker supports split/non-split linked together... " >&6; }
13935if test "${libgo_cv_c_linker_split_non_split+set}" = set; then :
13936 $as_echo_n "(cached) " >&6
13937else
13938 cat > conftest1.c << EOF
13939extern void f();
13940int main() { f(); return 0; }
13941EOF
13942cat > conftest2.c << EOF
13943void f() {}
13944EOF
bea517c4 13945$CC -c -fsplit-stack $CFLAGS $CPPFLAGS conftest1.c >/dev/null 2>&1
13946$CC -c $CFLAGS $CPPFLAGS conftest2.c > /dev/null 2>&1
13947if $CC -o conftest conftest1.$ac_objext conftest2.$ac_objext > /dev/null 2>&1; then
f137de11 13948 libgo_cv_c_linker_split_non_split=yes
13949else
13950 libgo_cv_c_linker_split_non_split=no
13951fi
13952rm -f conftest1.* conftest2.* conftest
13953fi
13954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_split_non_split" >&5
13955$as_echo "$libgo_cv_c_linker_split_non_split" >&6; }
13956
13957if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
e440a328 13958 SPLIT_STACK=-fsplit-stack
13959
13960$as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13961
13962else
13963 SPLIT_STACK=
13964fi
13965
f137de11 13966 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
e440a328 13967 USING_SPLIT_STACK_TRUE=
13968 USING_SPLIT_STACK_FALSE='#'
13969else
13970 USING_SPLIT_STACK_TRUE='#'
13971 USING_SPLIT_STACK_FALSE=
13972fi
13973
13974
242418a3 13975if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = no; then
13976 GO_SPLIT_STACK=-fno-split-stack
13977else
13978 GO_SPLIT_STACK=
13979fi
13980
13981
e440a328 13982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
13983$as_echo_n "checking whether linker supports split stack... " >&6; }
cea7ac49 13984if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
e440a328 13985 $as_echo_n "(cached) " >&6
13986else
cea7ac49 13987 libgo_cv_c_linker_supports_split_stack=no
7dc947bd 13988if $GOC -Wl,--help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
cea7ac49 13989 libgo_cv_c_linker_supports_split_stack=yes
e440a328 13990fi
13991fi
cea7ac49 13992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
13993$as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
13994if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
e440a328 13995
13996$as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
13997
13998fi
13999
b5f8bff0 14000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is llgo" >&5
14001$as_echo_n "checking whether compiler is llgo... " >&6; }
14002if test "${libgo_cv_c_goc_is_llgo+set}" = set; then :
14003 $as_echo_n "(cached) " >&6
14004else
14005 libgo_cv_c_goc_is_llgo=no
14006if $GOC -dumpversion 2>/dev/null | grep llgo >/dev/null 2>&1; then
14007 libgo_cv_c_goc_is_llgo=yes
14008fi
14009fi
14010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_goc_is_llgo" >&5
14011$as_echo "$libgo_cv_c_goc_is_llgo" >&6; }
14012 if test "$libgo_cv_c_goc_is_llgo" = yes; then
14013 GOC_IS_LLGO_TRUE=
14014 GOC_IS_LLGO_FALSE='#'
14015else
14016 GOC_IS_LLGO_TRUE='#'
14017 GOC_IS_LLGO_FALSE=
14018fi
14019
14020
7d17fab3 14021MATH_LIBS=
14022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14023$as_echo_n "checking for sqrt in -lm... " >&6; }
14024if test "${ac_cv_lib_m_sqrt+set}" = set; then :
14025 $as_echo_n "(cached) " >&6
14026else
14027 ac_check_lib_save_LIBS=$LIBS
14028LIBS="-lm $LIBS"
14029cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14030/* end confdefs.h. */
14031
14032/* Override any GCC internal prototype to avoid an error.
14033 Use char because int might match the return type of a GCC
14034 builtin and then its argument prototype would still apply. */
14035#ifdef __cplusplus
14036extern "C"
14037#endif
14038char sqrt ();
14039int
14040main ()
14041{
14042return sqrt ();
14043 ;
14044 return 0;
14045}
14046_ACEOF
14047if ac_fn_c_try_link "$LINENO"; then :
14048 ac_cv_lib_m_sqrt=yes
14049else
14050 ac_cv_lib_m_sqrt=no
14051fi
14052rm -f core conftest.err conftest.$ac_objext \
14053 conftest$ac_exeext conftest.$ac_ext
14054LIBS=$ac_check_lib_save_LIBS
14055fi
14056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14057$as_echo "$ac_cv_lib_m_sqrt" >&6; }
14058if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
14059 MATH_LIBS=-lm
14060fi
14061
14062
14063
cea7ac49 14064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14065$as_echo_n "checking for socket libraries... " >&6; }
14066if test "${libgo_cv_lib_sockets+set}" = set; then :
14067 $as_echo_n "(cached) " >&6
14068else
14069 libgo_cv_lib_sockets=
14070 libgo_check_both=no
14071 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14072if test "x$ac_cv_func_connect" = x""yes; then :
14073 libgo_check_socket=no
14074else
14075 libgo_check_socket=yes
14076fi
14077
14078 if test "$libgo_check_socket" = "yes"; then
14079 unset ac_cv_func_connect
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14081$as_echo_n "checking for main in -lsocket... " >&6; }
14082if test "${ac_cv_lib_socket_main+set}" = set; then :
14083 $as_echo_n "(cached) " >&6
14084else
14085 ac_check_lib_save_LIBS=$LIBS
14086LIBS="-lsocket $LIBS"
14087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14088/* end confdefs.h. */
14089
14090
14091int
14092main ()
14093{
14094return main ();
14095 ;
14096 return 0;
14097}
14098_ACEOF
14099if ac_fn_c_try_link "$LINENO"; then :
14100 ac_cv_lib_socket_main=yes
14101else
14102 ac_cv_lib_socket_main=no
14103fi
14104rm -f core conftest.err conftest.$ac_objext \
14105 conftest$ac_exeext conftest.$ac_ext
14106LIBS=$ac_check_lib_save_LIBS
14107fi
14108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14109$as_echo "$ac_cv_lib_socket_main" >&6; }
14110if test "x$ac_cv_lib_socket_main" = x""yes; then :
14111 libgo_cv_lib_sockets="-lsocket"
14112else
14113 libgo_check_both=yes
14114fi
14115
14116 fi
14117 if test "$libgo_check_both" = "yes"; then
14118 libgo_old_libs=$LIBS
14119 LIBS="$LIBS -lsocket -lnsl"
14120 unset ac_cv_func_accept
14121 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14122if test "x$ac_cv_func_accept" = x""yes; then :
14123 libgo_check_nsl=no
14124 libgo_cv_lib_sockets="-lsocket -lnsl"
14125fi
14126
14127 unset ac_cv_func_accept
14128 LIBS=$libgo_old_libs
14129 fi
14130 unset ac_cv_func_gethostbyname
14131 libgo_old_libs="$LIBS"
14132 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14133if test "x$ac_cv_func_gethostbyname" = x""yes; then :
14134
14135else
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14137$as_echo_n "checking for main in -lnsl... " >&6; }
14138if test "${ac_cv_lib_nsl_main+set}" = set; then :
14139 $as_echo_n "(cached) " >&6
14140else
14141 ac_check_lib_save_LIBS=$LIBS
14142LIBS="-lnsl $LIBS"
14143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14144/* end confdefs.h. */
14145
14146
14147int
14148main ()
14149{
14150return main ();
14151 ;
14152 return 0;
14153}
14154_ACEOF
14155if ac_fn_c_try_link "$LINENO"; then :
14156 ac_cv_lib_nsl_main=yes
14157else
14158 ac_cv_lib_nsl_main=no
14159fi
14160rm -f core conftest.err conftest.$ac_objext \
14161 conftest$ac_exeext conftest.$ac_ext
14162LIBS=$ac_check_lib_save_LIBS
14163fi
14164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14165$as_echo "$ac_cv_lib_nsl_main" >&6; }
14166if test "x$ac_cv_lib_nsl_main" = x""yes; then :
14167 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
14168fi
14169
14170fi
14171
14172 unset ac_cv_func_gethostbyname
5c55b1cf 14173 ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
14174if test "x$ac_cv_func_sendfile" = x""yes; then :
14175
14176else
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsendfile" >&5
14178$as_echo_n "checking for main in -lsendfile... " >&6; }
14179if test "${ac_cv_lib_sendfile_main+set}" = set; then :
14180 $as_echo_n "(cached) " >&6
14181else
14182 ac_check_lib_save_LIBS=$LIBS
14183LIBS="-lsendfile $LIBS"
14184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14185/* end confdefs.h. */
14186
14187
14188int
14189main ()
14190{
14191return main ();
14192 ;
14193 return 0;
14194}
14195_ACEOF
14196if ac_fn_c_try_link "$LINENO"; then :
14197 ac_cv_lib_sendfile_main=yes
14198else
14199 ac_cv_lib_sendfile_main=no
14200fi
14201rm -f core conftest.err conftest.$ac_objext \
14202 conftest$ac_exeext conftest.$ac_ext
14203LIBS=$ac_check_lib_save_LIBS
14204fi
14205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_main" >&5
14206$as_echo "$ac_cv_lib_sendfile_main" >&6; }
14207if test "x$ac_cv_lib_sendfile_main" = x""yes; then :
14208 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lsendfile"
14209fi
14210
14211fi
14212
cea7ac49 14213 LIBS=$libgo_old_libs
14214
14215fi
14216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14217$as_echo "$libgo_cv_lib_sockets" >&6; }
14218NET_LIBS="$libgo_cv_lib_sockets"
14219
14220
f555a9df 14221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14222$as_echo_n "checking whether -pthread is supported... " >&6; }
cea7ac49 14223if test "${libgo_cv_lib_pthread+set}" = set; then :
f555a9df 14224 $as_echo_n "(cached) " >&6
14225else
14226 CFLAGS_hold=$CFLAGS
14227CFLAGS="$CFLAGS -pthread"
14228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14229/* end confdefs.h. */
14230int i;
14231_ACEOF
14232if ac_fn_c_try_compile "$LINENO"; then :
cea7ac49 14233 libgo_cv_lib_pthread=yes
f555a9df 14234else
cea7ac49 14235 libgo_cv_lib_pthread=no
f555a9df 14236fi
14237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14238CFLAGS=$CFLAGS_hold
14239fi
cea7ac49 14240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14241$as_echo "$libgo_cv_lib_pthread" >&6; }
f555a9df 14242PTHREAD_CFLAGS=
cea7ac49 14243if test "$libgo_cv_lib_pthread" = yes; then
f555a9df 14244 PTHREAD_CFLAGS=-pthread
14245fi
14246
14247
14248PTHREAD_LIBS=
14249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14250$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14251if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
14252 $as_echo_n "(cached) " >&6
14253else
14254 ac_check_lib_save_LIBS=$LIBS
14255LIBS="-lpthread $LIBS"
14256cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14257/* end confdefs.h. */
14258
14259/* Override any GCC internal prototype to avoid an error.
14260 Use char because int might match the return type of a GCC
14261 builtin and then its argument prototype would still apply. */
14262#ifdef __cplusplus
14263extern "C"
14264#endif
14265char pthread_create ();
14266int
14267main ()
14268{
14269return pthread_create ();
14270 ;
14271 return 0;
14272}
14273_ACEOF
14274if ac_fn_c_try_link "$LINENO"; then :
14275 ac_cv_lib_pthread_pthread_create=yes
14276else
14277 ac_cv_lib_pthread_pthread_create=no
14278fi
14279rm -f core conftest.err conftest.$ac_objext \
14280 conftest$ac_exeext conftest.$ac_ext
14281LIBS=$ac_check_lib_save_LIBS
14282fi
14283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14284$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14285if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
14286 PTHREAD_LIBS=-lpthread
14287fi
14288
14289
14290
554126c9 14291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14292$as_echo_n "checking for library containing sched_yield... " >&6; }
14293if test "${ac_cv_search_sched_yield+set}" = set; then :
14294 $as_echo_n "(cached) " >&6
14295else
14296 ac_func_search_save_LIBS=$LIBS
14297cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14298/* end confdefs.h. */
14299
14300/* Override any GCC internal prototype to avoid an error.
14301 Use char because int might match the return type of a GCC
14302 builtin and then its argument prototype would still apply. */
14303#ifdef __cplusplus
14304extern "C"
14305#endif
14306char sched_yield ();
14307int
14308main ()
14309{
14310return sched_yield ();
14311 ;
14312 return 0;
14313}
14314_ACEOF
14315for ac_lib in '' rt; do
14316 if test -z "$ac_lib"; then
14317 ac_res="none required"
14318 else
14319 ac_res=-l$ac_lib
14320 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14321 fi
14322 if ac_fn_c_try_link "$LINENO"; then :
14323 ac_cv_search_sched_yield=$ac_res
14324fi
14325rm -f core conftest.err conftest.$ac_objext \
14326 conftest$ac_exeext
14327 if test "${ac_cv_search_sched_yield+set}" = set; then :
14328 break
14329fi
14330done
14331if test "${ac_cv_search_sched_yield+set}" = set; then :
14332
14333else
14334 ac_cv_search_sched_yield=no
14335fi
14336rm conftest.$ac_ext
14337LIBS=$ac_func_search_save_LIBS
14338fi
14339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14340$as_echo "$ac_cv_search_sched_yield" >&6; }
14341ac_res=$ac_cv_search_sched_yield
14342if test "$ac_res" != no; then :
14343 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14344
697aef8c 14345fi
14346
14347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14348$as_echo_n "checking for library containing nanosleep... " >&6; }
14349if test "${ac_cv_search_nanosleep+set}" = set; then :
14350 $as_echo_n "(cached) " >&6
14351else
14352 ac_func_search_save_LIBS=$LIBS
14353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14354/* end confdefs.h. */
14355
14356/* Override any GCC internal prototype to avoid an error.
14357 Use char because int might match the return type of a GCC
14358 builtin and then its argument prototype would still apply. */
14359#ifdef __cplusplus
14360extern "C"
14361#endif
14362char nanosleep ();
14363int
14364main ()
14365{
14366return nanosleep ();
14367 ;
14368 return 0;
14369}
14370_ACEOF
14371for ac_lib in '' rt; do
14372 if test -z "$ac_lib"; then
14373 ac_res="none required"
14374 else
14375 ac_res=-l$ac_lib
14376 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14377 fi
14378 if ac_fn_c_try_link "$LINENO"; then :
14379 ac_cv_search_nanosleep=$ac_res
14380fi
14381rm -f core conftest.err conftest.$ac_objext \
14382 conftest$ac_exeext
14383 if test "${ac_cv_search_nanosleep+set}" = set; then :
14384 break
14385fi
14386done
14387if test "${ac_cv_search_nanosleep+set}" = set; then :
14388
14389else
14390 ac_cv_search_nanosleep=no
14391fi
14392rm conftest.$ac_ext
14393LIBS=$ac_func_search_save_LIBS
14394fi
14395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14396$as_echo "$ac_cv_search_nanosleep" >&6; }
14397ac_res=$ac_cv_search_nanosleep
14398if test "$ac_res" != no; then :
14399 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14400
2b19d687 14401fi
14402
14403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14404$as_echo_n "checking for library containing clock_gettime... " >&6; }
14405if test "${ac_cv_search_clock_gettime+set}" = set; then :
14406 $as_echo_n "(cached) " >&6
14407else
14408 ac_func_search_save_LIBS=$LIBS
14409cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14410/* end confdefs.h. */
14411
14412/* Override any GCC internal prototype to avoid an error.
14413 Use char because int might match the return type of a GCC
14414 builtin and then its argument prototype would still apply. */
14415#ifdef __cplusplus
14416extern "C"
14417#endif
14418char clock_gettime ();
14419int
14420main ()
14421{
14422return clock_gettime ();
14423 ;
14424 return 0;
14425}
14426_ACEOF
14427for ac_lib in '' rt; do
14428 if test -z "$ac_lib"; then
14429 ac_res="none required"
14430 else
14431 ac_res=-l$ac_lib
14432 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14433 fi
14434 if ac_fn_c_try_link "$LINENO"; then :
14435 ac_cv_search_clock_gettime=$ac_res
14436fi
14437rm -f core conftest.err conftest.$ac_objext \
14438 conftest$ac_exeext
14439 if test "${ac_cv_search_clock_gettime+set}" = set; then :
14440 break
14441fi
14442done
14443if test "${ac_cv_search_clock_gettime+set}" = set; then :
14444
14445else
14446 ac_cv_search_clock_gettime=no
14447fi
14448rm conftest.$ac_ext
14449LIBS=$ac_func_search_save_LIBS
14450fi
14451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14452$as_echo "$ac_cv_search_clock_gettime" >&6; }
14453ac_res=$ac_cv_search_clock_gettime
14454if test "$ac_res" != no; then :
14455 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14456
554126c9 14457fi
14458
14459
e440a328 14460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14461$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14462if test "${ac_cv_c_bigendian+set}" = set; then :
14463 $as_echo_n "(cached) " >&6
14464else
14465 ac_cv_c_bigendian=unknown
14466 # See if we're dealing with a universal compiler.
14467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14468/* end confdefs.h. */
14469#ifndef __APPLE_CC__
14470 not a universal capable compiler
14471 #endif
14472 typedef int dummy;
14473
14474_ACEOF
14475if ac_fn_c_try_compile "$LINENO"; then :
14476
14477 # Check for potential -arch flags. It is not universal unless
14478 # there are at least two -arch flags with different values.
14479 ac_arch=
14480 ac_prev=
14481 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14482 if test -n "$ac_prev"; then
14483 case $ac_word in
14484 i?86 | x86_64 | ppc | ppc64)
14485 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14486 ac_arch=$ac_word
14487 else
14488 ac_cv_c_bigendian=universal
14489 break
14490 fi
14491 ;;
14492 esac
14493 ac_prev=
14494 elif test "x$ac_word" = "x-arch"; then
14495 ac_prev=arch
14496 fi
14497 done
14498fi
14499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14500 if test $ac_cv_c_bigendian = unknown; then
14501 # See if sys/param.h defines the BYTE_ORDER macro.
14502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14503/* end confdefs.h. */
14504#include <sys/types.h>
14505 #include <sys/param.h>
14506
14507int
14508main ()
14509{
14510#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14511 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14512 && LITTLE_ENDIAN)
14513 bogus endian macros
14514 #endif
14515
14516 ;
14517 return 0;
14518}
14519_ACEOF
14520if ac_fn_c_try_compile "$LINENO"; then :
14521 # It does; now see whether it defined to BIG_ENDIAN or not.
14522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14523/* end confdefs.h. */
14524#include <sys/types.h>
14525 #include <sys/param.h>
14526
14527int
14528main ()
14529{
14530#if BYTE_ORDER != BIG_ENDIAN
14531 not big endian
14532 #endif
14533
14534 ;
14535 return 0;
14536}
14537_ACEOF
14538if ac_fn_c_try_compile "$LINENO"; then :
14539 ac_cv_c_bigendian=yes
14540else
14541 ac_cv_c_bigendian=no
14542fi
14543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14544fi
14545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14546 fi
14547 if test $ac_cv_c_bigendian = unknown; then
14548 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14550/* end confdefs.h. */
14551#include <limits.h>
14552
14553int
14554main ()
14555{
14556#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14557 bogus endian macros
14558 #endif
14559
14560 ;
14561 return 0;
14562}
14563_ACEOF
14564if ac_fn_c_try_compile "$LINENO"; then :
14565 # It does; now see whether it defined to _BIG_ENDIAN or not.
14566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14567/* end confdefs.h. */
14568#include <limits.h>
14569
14570int
14571main ()
14572{
14573#ifndef _BIG_ENDIAN
14574 not big endian
14575 #endif
14576
14577 ;
14578 return 0;
14579}
14580_ACEOF
14581if ac_fn_c_try_compile "$LINENO"; then :
14582 ac_cv_c_bigendian=yes
14583else
14584 ac_cv_c_bigendian=no
14585fi
14586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14587fi
14588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14589 fi
14590 if test $ac_cv_c_bigendian = unknown; then
14591 # Compile a test program.
14592 if test "$cross_compiling" = yes; then :
14593 # Try to guess by grepping values from an object file.
14594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14595/* end confdefs.h. */
14596short int ascii_mm[] =
14597 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14598 short int ascii_ii[] =
14599 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14600 int use_ascii (int i) {
14601 return ascii_mm[i] + ascii_ii[i];
14602 }
14603 short int ebcdic_ii[] =
14604 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14605 short int ebcdic_mm[] =
14606 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14607 int use_ebcdic (int i) {
14608 return ebcdic_mm[i] + ebcdic_ii[i];
14609 }
14610 extern int foo;
14611
14612int
14613main ()
14614{
14615return use_ascii (foo) == use_ebcdic (foo);
14616 ;
14617 return 0;
14618}
14619_ACEOF
14620if ac_fn_c_try_compile "$LINENO"; then :
14621 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14622 ac_cv_c_bigendian=yes
14623 fi
14624 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14625 if test "$ac_cv_c_bigendian" = unknown; then
14626 ac_cv_c_bigendian=no
14627 else
14628 # finding both strings is unlikely to happen, but who knows?
14629 ac_cv_c_bigendian=unknown
14630 fi
14631 fi
14632fi
14633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14634else
14635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14636/* end confdefs.h. */
14637$ac_includes_default
14638int
14639main ()
14640{
14641
14642 /* Are we little or big endian? From Harbison&Steele. */
14643 union
14644 {
14645 long int l;
14646 char c[sizeof (long int)];
14647 } u;
14648 u.l = 1;
14649 return u.c[sizeof (long int) - 1] == 1;
14650
14651 ;
14652 return 0;
14653}
14654_ACEOF
14655if ac_fn_c_try_run "$LINENO"; then :
14656 ac_cv_c_bigendian=no
14657else
14658 ac_cv_c_bigendian=yes
14659fi
14660rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14661 conftest.$ac_objext conftest.beam conftest.$ac_ext
14662fi
14663
14664 fi
14665fi
14666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14667$as_echo "$ac_cv_c_bigendian" >&6; }
14668 case $ac_cv_c_bigendian in #(
14669 yes)
14670 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14671;; #(
14672 no)
14673 ;; #(
14674 universal)
14675
14676$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14677
14678 ;; #(
14679 *)
14680 as_fn_error "unknown endianness
14681 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14682 esac
14683
14684
4a273582 14685
14686
14687# Check whether --with-system-libunwind was given.
14688if test "${with_system_libunwind+set}" = set; then :
14689 withval=$with_system_libunwind;
14690fi
14691
14692 # If system-libunwind was not specifically set, pick a default setting.
14693 if test x$with_system_libunwind = x; then
14694 case ${target} in
14695 ia64-*-hpux*) with_system_libunwind=yes ;;
14696 *) with_system_libunwind=no ;;
14697 esac
14698 fi
14699 # Based on system-libunwind and target, do we have ipinfo?
14700 if test x$with_system_libunwind = xyes; then
14701 case ${target} in
14702 ia64-*-*) have_unwind_getipinfo=no ;;
14703 *) have_unwind_getipinfo=yes ;;
14704 esac
14705 else
14706 # Darwin before version 9 does not have _Unwind_GetIPInfo.
14707
14708 case ${target} in
14709 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14710 *) have_unwind_getipinfo=yes ;;
14711 esac
14712
14713 fi
14714
14715 if test x$have_unwind_getipinfo = xyes; then
14716
14717$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14718
14719 fi
14720
e440a328 14721
6f5938e5 14722for ac_header in port.h sched.h semaphore.h sys/file.h sys/mman.h syscall.h sys/epoll.h sys/event.h sys/inotify.h sys/ptrace.h sys/syscall.h sys/user.h sys/utsname.h sys/select.h sys/socket.h net/if.h net/if_arp.h net/route.h netpacket/packet.h sys/prctl.h sys/mount.h sys/vfs.h sys/statfs.h sys/timex.h sys/sysinfo.h utime.h linux/ether.h linux/fs.h linux/reboot.h netinet/icmp6.h netinet/in_syst.h netinet/ip.h netinet/ip_mroute.h netinet/if_ether.h
e440a328 14723do :
14724 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14725ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14726eval as_val=\$$as_ac_Header
14727 if test "x$as_val" = x""yes; then :
14728 cat >>confdefs.h <<_ACEOF
14729#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14730_ACEOF
14731
14732fi
14733
14734done
14735
49b4e44b 14736
87e44028 14737for ac_header in linux/filter.h linux/if_addr.h linux/if_ether.h linux/if_tun.h linux/netlink.h linux/rtnetlink.h
49b4e44b 14738do :
14739 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14740ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
14741#include <sys/socket.h>
14742#endif
14743
14744"
14745eval as_val=\$$as_ac_Header
14746 if test "x$as_val" = x""yes; then :
14747 cat >>confdefs.h <<_ACEOF
14748#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14749_ACEOF
14750
14751fi
14752
14753done
14754
14755
2277da31 14756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <ustat.h> can be used" >&5
14757$as_echo_n "checking whether <ustat.h> can be used... " >&6; }
14758if test "${libgo_cv_c_ustat_h+set}" = set; then :
14759 $as_echo_n "(cached) " >&6
14760else
d1b5e112 14761 CFLAGS_hold=$CFLAGS
14762CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE $OSCFLAGS"
14763cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2277da31 14764/* end confdefs.h. */
14765
14766#include <sys/types.h>
14767#ifdef HAVE_LINUX_FILTER_H
14768#include <linux/filter.h>
14769#endif
14770#include <ustat.h>
14771
14772_ACEOF
14773if ac_fn_c_try_compile "$LINENO"; then :
14774 libgo_cv_c_ustat_h=yes
14775else
14776 libgo_cv_c_ustat_h=no
14777fi
14778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d1b5e112 14779CFLAGS=$CFLAGS_hold
2277da31 14780fi
14781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_ustat_h" >&5
14782$as_echo "$libgo_cv_c_ustat_h" >&6; }
14783if test $libgo_cv_c_ustat_h = yes; then
14784
14785$as_echo "#define HAVE_USTAT_H 1" >>confdefs.h
14786
14787fi
14788
e440a328 14789 if test "$ac_cv_header_sys_mman_h" = yes; then
14790 HAVE_SYS_MMAN_H_TRUE=
14791 HAVE_SYS_MMAN_H_FALSE='#'
14792else
14793 HAVE_SYS_MMAN_H_TRUE='#'
14794 HAVE_SYS_MMAN_H_FALSE=
14795fi
14796
ccd3f476 14797
f11c2155 14798for ac_func in strerror_r strsignal wait4 mincore setenv unsetenv dl_iterate_phdr
e440a328 14799do :
14800 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14801ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14802eval as_val=\$$as_ac_var
14803 if test "x$as_val" = x""yes; then :
14804 cat >>confdefs.h <<_ACEOF
14805#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14806_ACEOF
14807
14808fi
14809done
14810
ccd3f476 14811 if test "$ac_cv_func_strerror_r" = yes; then
14812 HAVE_STRERROR_R_TRUE=
14813 HAVE_STRERROR_R_FALSE='#'
14814else
14815 HAVE_STRERROR_R_TRUE='#'
14816 HAVE_STRERROR_R_FALSE=
14817fi
14818
37d6b690 14819 if test "$ac_cv_func_wait4" = yes; then
14820 HAVE_WAIT4_TRUE=
14821 HAVE_WAIT4_FALSE='#'
14822else
14823 HAVE_WAIT4_TRUE='#'
14824 HAVE_WAIT4_FALSE=
14825fi
14826
e440a328 14827
9eb89a08 14828for ac_func in accept4 dup3 epoll_create1 faccessat fallocate fchmodat fchownat futimesat getxattr inotify_add_watch inotify_init inotify_init1 inotify_rm_watch listxattr mkdirat mknodat open64 openat pipe2 removexattr renameat setxattr sync_file_range splice tee unlinkat unshare utimensat
8202cb3c 14829do :
14830 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14831ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14832eval as_val=\$$as_ac_var
14833 if test "x$as_val" = x""yes; then :
14834 cat >>confdefs.h <<_ACEOF
14835#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14836_ACEOF
14837
14838fi
14839done
14840
0ec80c0c 14841ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14842if test "x$ac_cv_type_off_t" = x""yes; then :
14843
14844else
14845
14846cat >>confdefs.h <<_ACEOF
14847#define off_t long int
14848_ACEOF
14849
14850fi
14851
8202cb3c 14852ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
14853if test "x$ac_cv_type_loff_t" = x""yes; then :
14854
14855cat >>confdefs.h <<_ACEOF
14856#define HAVE_LOFF_T 1
14857_ACEOF
14858
14859
14860fi
14861
14862
6217b5f4 14863LIBS_hold="$LIBS"
14864LIBS="$LIBS -lm"
14865for ac_func in cosl expl logl sinl tanl acosl asinl atanl atan2l expm1l ldexpl log10l log1pl
14866do :
14867 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14868ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14869eval as_val=\$$as_ac_var
14870 if test "x$as_val" = x""yes; then :
14871 cat >>confdefs.h <<_ACEOF
14872#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14873_ACEOF
14874
14875fi
14876done
14877
14878LIBS="$LIBS_hold"
14879
a101a385 14880CFLAGS_hold="$CFLAGS"
14881CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14882LIBS_hold="$LIBS"
14883LIBS="$LIBS $PTHREAD_LIBS"
14884for ac_func in sem_timedwait
14885do :
14886 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
14887if test "x$ac_cv_func_sem_timedwait" = x""yes; then :
14888 cat >>confdefs.h <<_ACEOF
14889#define HAVE_SEM_TIMEDWAIT 1
14890_ACEOF
14891
14892fi
14893done
14894
14895CFLAGS="$CFLAGS_hold"
14896LIBS="$LIBS_hold"
14897
5b49fca6 14898LIBS_hold="$LIBS"
14899LIBS="$LIBS $MATH_LIBS"
14900for ac_func in matherr
14901do :
14902 ac_fn_c_check_func "$LINENO" "matherr" "ac_cv_func_matherr"
14903if test "x$ac_cv_func_matherr" = x""yes; then :
14904 cat >>confdefs.h <<_ACEOF
14905#define HAVE_MATHERR 1
14906_ACEOF
14907
14908fi
14909done
14910
14911LIBS="$LIBS_hold"
14912
12140f2f 14913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
14914$as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
14915if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
14916 $as_echo_n "(cached) " >&6
14917else
14918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14919/* end confdefs.h. */
14920
14921typedef unsigned int uint32 __attribute__ ((mode (SI)));
14922uint32 i;
14923int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14924
14925_ACEOF
14926if ac_fn_c_try_link "$LINENO"; then :
14927 libgo_cv_func___sync_bool_compare_and_swap_4=yes
14928else
14929 libgo_cv_func___sync_bool_compare_and_swap_4=no
14930fi
14931rm -f core conftest.err conftest.$ac_objext \
14932 conftest$ac_exeext conftest.$ac_ext
14933fi
14934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
14935$as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
14936if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
63bcac1c 14937
14938$as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
12140f2f 14939
14940fi
14941
97a9e84d 14942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_8" >&5
14943$as_echo_n "checking for __sync_bool_compare_and_swap_8... " >&6; }
14944if test "${libgo_cv_func___sync_bool_compare_and_swap_8+set}" = set; then :
14945 $as_echo_n "(cached) " >&6
14946else
14947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14948/* end confdefs.h. */
14949
14950typedef unsigned int uint64 __attribute__ ((mode (DI)));
14951uint64 i;
14952int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14953
14954_ACEOF
14955if ac_fn_c_try_link "$LINENO"; then :
14956 libgo_cv_func___sync_bool_compare_and_swap_8=yes
14957else
14958 libgo_cv_func___sync_bool_compare_and_swap_8=no
14959fi
14960rm -f core conftest.err conftest.$ac_objext \
14961 conftest$ac_exeext conftest.$ac_ext
14962fi
14963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_8" >&5
14964$as_echo "$libgo_cv_func___sync_bool_compare_and_swap_8" >&6; }
14965if test "$libgo_cv_func___sync_bool_compare_and_swap_8" = "yes"; then
14966
14967$as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_8 1" >>confdefs.h
14968
14969fi
14970
cb6f50ce 14971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
14972$as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
14973if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
14974 $as_echo_n "(cached) " >&6
14975else
14976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14977/* end confdefs.h. */
14978
14979typedef unsigned int uint32 __attribute__ ((mode (SI)));
14980uint32 i;
14981int main() { return __sync_fetch_and_add (&i, 1); }
14982
14983_ACEOF
14984if ac_fn_c_try_link "$LINENO"; then :
14985 libgo_cv_func___sync_fetch_and_add_4=yes
14986else
14987 libgo_cv_func___sync_fetch_and_add_4=no
14988fi
14989rm -f core conftest.err conftest.$ac_objext \
14990 conftest$ac_exeext conftest.$ac_ext
14991fi
14992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
14993$as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
14994if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
14995
14996$as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
14997
14998fi
14999
97a9e84d 15000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_add_and_fetch_8" >&5
15001$as_echo_n "checking for __sync_add_and_fetch_8... " >&6; }
15002if test "${libgo_cv_func___sync_add_and_fetch_8+set}" = set; then :
15003 $as_echo_n "(cached) " >&6
15004else
15005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15006/* end confdefs.h. */
15007
15008typedef unsigned int uint64 __attribute__ ((mode (DI)));
15009uint64 i;
15010int main() { return __sync_add_and_fetch (&i, 1); }
15011
15012_ACEOF
15013if ac_fn_c_try_link "$LINENO"; then :
15014 libgo_cv_func___sync_add_and_fetch_8=yes
15015else
15016 libgo_cv_func___sync_add_and_fetch_8=no
15017fi
15018rm -f core conftest.err conftest.$ac_objext \
15019 conftest$ac_exeext conftest.$ac_ext
15020fi
15021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_add_and_fetch_8" >&5
15022$as_echo "$libgo_cv_func___sync_add_and_fetch_8" >&6; }
15023if test "$libgo_cv_func___sync_add_and_fetch_8" = "yes"; then
15024
15025$as_echo "#define HAVE_SYNC_ADD_AND_FETCH_8 1" >>confdefs.h
15026
15027fi
15028
e440a328 15029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
15030$as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
cea7ac49 15031if test "${libgo_cv_c_stringops+set}" = set; then :
e440a328 15032 $as_echo_n "(cached) " >&6
15033else
15034 CFLAGS_hold=$CFLAGS
15035CFLAGS="$CFLAGS -minline-all-stringops"
15036cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15037/* end confdefs.h. */
15038int i;
15039_ACEOF
15040if ac_fn_c_try_compile "$LINENO"; then :
cea7ac49 15041 libgo_cv_c_stringops=yes
e440a328 15042else
cea7ac49 15043 libgo_cv_c_stringops=no
e440a328 15044fi
15045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15046CFLAGS=$CFLAGS_hold
15047fi
cea7ac49 15048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
15049$as_echo "$libgo_cv_c_stringops" >&6; }
e440a328 15050STRINGOPS_FLAG=
cea7ac49 15051if test "$libgo_cv_c_stringops" = yes; then
e440a328 15052 STRINGOPS_FLAG=-minline-all-stringops
15053fi
15054
15055
68e1881d 15056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5
15057$as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; }
15058if test "${libgo_cv_c_fancymath+set}" = set; then :
15059 $as_echo_n "(cached) " >&6
15060else
15061 CFLAGS_hold=$CFLAGS
15062CFLAGS="$CFLAGS -mfancy-math-387"
15063cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15064/* end confdefs.h. */
15065int i;
15066_ACEOF
15067if ac_fn_c_try_compile "$LINENO"; then :
15068 libgo_cv_c_fancymath=yes
15069else
15070 libgo_cv_c_fancymath=no
15071fi
15072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15073CFLAGS=$CFLAGS_hold
15074fi
15075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5
15076$as_echo "$libgo_cv_c_fancymath" >&6; }
15077MATH_FLAG=
15078if test "$libgo_cv_c_fancymath" = yes; then
15079 MATH_FLAG="-mfancy-math-387 -funsafe-math-optimizations"
a1a3143a 15080else
15081 MATH_FLAG="-ffp-contract=off"
68e1881d 15082fi
15083
15084
e440a328 15085CFLAGS_hold=$CFLAGS
15086CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
15087ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
15088if test "x$ac_cv_type_off64_t" = x""yes; then :
15089
15090cat >>confdefs.h <<_ACEOF
15091#define HAVE_OFF64_T 1
15092_ACEOF
15093
15094
15095fi
15096
15097CFLAGS=$CFLAGS_hold
15098
d772e63b 15099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
15100$as_echo_n "checking epoll_event size... " >&6; }
15101if test "${libgo_cv_c_epoll_event_size+set}" = set; then :
15102 $as_echo_n "(cached) " >&6
15103else
15104 if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then :
15105
15106else
15107 libgo_cv_c_epoll_event_size=0
15108fi
15109
15110fi
15111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
15112$as_echo "$libgo_cv_c_epoll_event_size" >&6; }
15113SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size}
15114
15115
15116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
15117$as_echo_n "checking epoll_event data.fd offset... " >&6; }
15118if test "${libgo_cv_c_epoll_event_fd_offset+set}" = set; then :
15119 $as_echo_n "(cached) " >&6
15120else
15121 if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h>
15122#include <sys/epoll.h>"; then :
15123
15124else
15125 libgo_cv_c_epoll_event_fd_offset=0
15126fi
15127
15128fi
15129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
15130$as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
15131STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset}
15132
15133
8dcdfb38 15134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15135/* end confdefs.h. */
15136#include <sys/stat.h>
15137
15138_ACEOF
15139if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15140 $EGREP "timespec_t.*st_atim" >/dev/null 2>&1; then :
15141 have_stat_timespec=yes
15142else
15143 have_stat_timespec=no
15144fi
15145rm -f conftest*
15146
15147 if test $have_stat_timespec = yes; then
15148 HAVE_STAT_TIMESPEC_TRUE=
15149 HAVE_STAT_TIMESPEC_FALSE='#'
15150else
15151 HAVE_STAT_TIMESPEC_TRUE='#'
15152 HAVE_STAT_TIMESPEC_FALSE=
15153fi
15154
15155
5b49fca6 15156ac_fn_c_check_type "$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include <math.h>
15157"
15158if test "x$ac_cv_type_struct_exception" = x""yes; then :
15159 libgo_has_struct_exception=yes
15160else
15161 libgo_has_struct_exception=no
15162fi
15163
15164if test "$libgo_has_struct_exception" = "yes"; then
15165
15166$as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
15167
15168fi
15169
96912098 15170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5
15171$as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; }
15172if test "${libgo_cv_lib_setcontext_clobbers_tls+set}" = set; then :
15173 $as_echo_n "(cached) " >&6
15174else
84a24710 15175 CFLAGS_hold="$CFLAGS"
15176CFLAGS="$PTHREAD_CFLAGS"
15177LIBS_hold="$LIBS"
96912098 15178LIBS="$LIBS $PTHREAD_LIBS"
84a24710 15179# The cast to long int works around a bug in the HP C Compiler
15180# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15181# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15182# This bug is HP SR number 8606223364.
15183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15184$as_echo_n "checking size of void *... " >&6; }
15185if test "${ac_cv_sizeof_void_p+set}" = set; then :
15186 $as_echo_n "(cached) " >&6
15187else
15188 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15189
15190else
15191 if test "$ac_cv_type_void_p" = yes; then
15192 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15193$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15194{ as_fn_set_status 77
15195as_fn_error "cannot compute sizeof (void *)
15196See \`config.log' for more details." "$LINENO" 5; }; }
15197 else
15198 ac_cv_sizeof_void_p=0
15199 fi
15200fi
15201
15202fi
15203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15204$as_echo "$ac_cv_sizeof_void_p" >&6; }
15205
15206
15207
15208cat >>confdefs.h <<_ACEOF
15209#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15210_ACEOF
15211
15212
15213as_fn_arith $ac_cv_sizeof_void_p \* 8 && ptr_type_size=$as_val
96912098 15214if test "$cross_compiling" = yes; then :
84a24710 15215 case "$target:$ptr_type_size" in
15216 i?86-*-solaris2.1[01]:64 | x86_64*-*-solaris2.1[01]:64)
15217 libgo_cv_lib_setcontext_clobbers_tls=yes ;;
15218 *)
15219 libgo_cv_lib_setcontext_clobbers_tls=no ;;
96912098 15220 esac
15221
15222else
15223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15224/* end confdefs.h. */
15225
15226#include <pthread.h>
15227#include <stdlib.h>
15228#include <ucontext.h>
15229#include <unistd.h>
15230
15231__thread int tls;
15232
15233static char stack[10 * 1024 * 1024];
15234static ucontext_t c;
15235
15236/* Called via makecontext/setcontext. */
15237
15238static void
15239cfn (void)
15240{
15241 exit (tls);
15242}
15243
15244/* Called via pthread_create. */
15245
15246static void *
15247tfn (void *dummy)
15248{
15249 /* The thread should still see this value after calling
15250 setcontext. */
15251 tls = 0;
15252
15253 setcontext (&c);
15254
15255 /* The call to setcontext should not return. */
15256 abort ();
15257}
15258
15259int
15260main ()
15261{
15262 pthread_t tid;
15263
15264 /* The thread should not see this value. */
15265 tls = 1;
15266
15267 if (getcontext (&c) < 0)
15268 abort ();
15269
15270 c.uc_stack.ss_sp = stack;
9f89fc14 15271#ifdef MAKECONTEXT_STACK_TOP
15272 c.uc_stack.ss_sp += sizeof stack;
15273#endif
96912098 15274 c.uc_stack.ss_flags = 0;
15275 c.uc_stack.ss_size = sizeof stack;
15276 c.uc_link = NULL;
15277 makecontext (&c, cfn, 0);
15278
15279 if (pthread_create (&tid, NULL, tfn, NULL) != 0)
15280 abort ();
15281
15282 if (pthread_join (tid, NULL) != 0)
15283 abort ();
15284
15285 /* The thread should have called exit. */
15286 abort ();
15287}
15288
15289_ACEOF
15290if ac_fn_c_try_run "$LINENO"; then :
15291 libgo_cv_lib_setcontext_clobbers_tls=no
15292else
15293 libgo_cv_lib_setcontext_clobbers_tls=yes
15294fi
15295rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15296 conftest.$ac_objext conftest.beam conftest.$ac_ext
15297fi
15298
84a24710 15299CFLAGS="$CFLAGS_hold"
96912098 15300LIBS="$LIBS_hold"
15301
15302fi
15303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5
15304$as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; }
15305if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
15306
15307$as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h
15308
15309fi
15310
11f8ac85 15311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
15312$as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
15313if test "${libgo_cv_ro_eh_frame+set}" = set; then :
15314 $as_echo_n "(cached) " >&6
15315else
15316
15317libgo_cv_ro_eh_frame=no
15318echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
15319if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
15320 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
15321 libgo_cv_ro_eh_frame=yes
15322 elif grep '.section.*eh_frame.*#alloc' conftest.c \
15323 | grep -v '#write' > /dev/null; then
15324 libgo_cv_ro_eh_frame=yes
15325 fi
15326fi
15327rm -f conftest.*
15328
15329fi
15330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ro_eh_frame" >&5
15331$as_echo "$libgo_cv_ro_eh_frame" >&6; }
15332if test "x$libgo_cv_ro_eh_frame" = xyes; then
15333
15334$as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
15335
15336else
15337
15338$as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
15339
15340fi
15341
5f69fdaa 15342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Qunused-arguments" >&5
15343$as_echo_n "checking if compiler supports -Qunused-arguments... " >&6; }
15344if test "${libgo_cv_c_unused_arguments+set}" = set; then :
15345 $as_echo_n "(cached) " >&6
15346else
15347 CFLAGS_hold=$CFLAGS
15348CFLAGS="$CFLAGS -Qunused-arguments"
15349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15350/* end confdefs.h. */
15351int i;
15352_ACEOF
15353if ac_fn_c_try_compile "$LINENO"; then :
15354 libgo_cv_c_unused_arguments=yes
15355else
15356 libgo_cv_c_unused_arguments=no
15357fi
15358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15359CFLAGS=$CFLAGS_hold
15360fi
15361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_unused_arguments" >&5
15362$as_echo "$libgo_cv_c_unused_arguments" >&6; }
15363
11f8ac85 15364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports GNU comdat group syntax" >&5
15365$as_echo_n "checking if assembler supports GNU comdat group syntax... " >&6; }
15366if test "${libgo_cv_as_comdat_gnu+set}" = set; then :
15367 $as_echo_n "(cached) " >&6
15368else
15369
15370echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
5f69fdaa 15371CFLAGS_hold=$CFLAGS
15372if test "$libgo_cv_c_unused_arguments" = yes; then
15373 CFLAGS="$CFLAGS -Qunused-arguments"
15374fi
11f8ac85 15375if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
15376 libgo_cv_as_comdat_gnu=yes
15377else
15378 libgo_cv_as_comdat_gnu=no
15379fi
5f69fdaa 15380CFLAGS=$CFLAGS_hold
11f8ac85 15381
15382fi
15383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_comdat_gnu" >&5
15384$as_echo "$libgo_cv_as_comdat_gnu" >&6; }
15385if test "x$libgo_cv_as_comdat_gnu" = xyes; then
15386
15387$as_echo "#define HAVE_AS_COMDAT_GAS 1" >>confdefs.h
15388
15389fi
15390
15391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15392$as_echo_n "checking assembler supports pc related relocs... " >&6; }
15393if test "${libgo_cv_as_x86_pcrel+set}" = set; then :
15394 $as_echo_n "(cached) " >&6
15395else
15396
15397libgo_cv_as_x86_pcrel=yes
15398echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
5f69fdaa 15399CFLAGS_hold=$CFLAGS
15400if test "$libgo_cv_c_unused_arguments" = yes; then
15401 CFLAGS="$CFLAGS -Qunused-arguments"
15402fi
11f8ac85 15403if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
15404 libgo_cv_as_x86_pcrel=no
15405fi
5f69fdaa 15406CFLAGS=$CFLAGS_hold
11f8ac85 15407
15408fi
15409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_pcrel" >&5
15410$as_echo "$libgo_cv_as_x86_pcrel" >&6; }
15411if test "x$libgo_cv_as_x86_pcrel" = xyes; then
15412
15413$as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
15414
15415fi
15416
15417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
15418$as_echo_n "checking assembler supports unwind section type... " >&6; }
15419if test "${libgo_cv_as_x86_64_unwind_section_type+set}" = set; then :
15420 $as_echo_n "(cached) " >&6
15421else
15422
15423libgo_cv_as_x86_64_unwind_section_type=yes
15424echo '.section .eh_frame,"a",@unwind' > conftest.s
5f69fdaa 15425CFLAGS_hold=$CFLAGS
15426if test "$libgo_cv_c_unused_arguments" = yes; then
15427 CFLAGS="$CFLAGS -Qunused-arguments"
15428fi
11f8ac85 15429if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
15430 libgo_cv_as_x86_64_unwind_section_type=no
15431fi
5f69fdaa 15432CFLAGS=$CFLAGS_hold
11f8ac85 15433
15434fi
15435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_64_unwind_section_type" >&5
15436$as_echo "$libgo_cv_as_x86_64_unwind_section_type" >&6; }
15437if test "x$libgo_cv_as_x86_64_unwind_section_type" = xyes; then
15438
15439$as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
15440
15441fi
15442
e440a328 15443cat >confcache <<\_ACEOF
15444# This file is a shell script that caches the results of configure
15445# tests run on this system so they can be shared between configure
15446# scripts and configure runs, see configure's option --config-cache.
15447# It is not useful on other systems. If it contains results you don't
15448# want to keep, you may remove or edit it.
15449#
15450# config.status only pays attention to the cache file if you give it
15451# the --recheck option to rerun configure.
15452#
15453# `ac_cv_env_foo' variables (set or unset) will be overridden when
15454# loading this file, other *unset* `ac_cv_foo' will be assigned the
15455# following values.
15456
15457_ACEOF
15458
15459# The following way of writing the cache mishandles newlines in values,
15460# but we know of no workaround that is simple, portable, and efficient.
15461# So, we kill variables containing newlines.
15462# Ultrix sh set writes to stderr and can't be redirected directly,
15463# and sets the high bit in the cache file unless we assign to the vars.
15464(
15465 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15466 eval ac_val=\$$ac_var
15467 case $ac_val in #(
15468 *${as_nl}*)
15469 case $ac_var in #(
15470 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15471$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15472 esac
15473 case $ac_var in #(
15474 _ | IFS | as_nl) ;; #(
15475 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15476 *) { eval $ac_var=; unset $ac_var;} ;;
15477 esac ;;
15478 esac
15479 done
15480
15481 (set) 2>&1 |
15482 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15483 *${as_nl}ac_space=\ *)
15484 # `set' does not quote correctly, so add quotes: double-quote
15485 # substitution turns \\\\ into \\, and sed turns \\ into \.
15486 sed -n \
15487 "s/'/'\\\\''/g;
15488 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15489 ;; #(
15490 *)
15491 # `set' quotes correctly as required by POSIX, so do not add quotes.
15492 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15493 ;;
15494 esac |
15495 sort
15496) |
15497 sed '
15498 /^ac_cv_env_/b end
15499 t clear
15500 :clear
15501 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15502 t end
15503 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15504 :end' >>confcache
15505if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15506 if test -w "$cache_file"; then
15507 test "x$cache_file" != "x/dev/null" &&
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15509$as_echo "$as_me: updating cache $cache_file" >&6;}
15510 cat confcache >$cache_file
15511 else
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15513$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15514 fi
15515fi
15516rm -f confcache
15517
15518if test ${multilib} = yes; then
15519 multilib_arg="--enable-multilib"
15520else
15521 multilib_arg=
15522fi
15523
15524ac_config_files="$ac_config_files Makefile testsuite/Makefile"
15525
15526
15527ac_config_commands="$ac_config_commands default"
15528
15529
15530cat >confcache <<\_ACEOF
15531# This file is a shell script that caches the results of configure
15532# tests run on this system so they can be shared between configure
15533# scripts and configure runs, see configure's option --config-cache.
15534# It is not useful on other systems. If it contains results you don't
15535# want to keep, you may remove or edit it.
15536#
15537# config.status only pays attention to the cache file if you give it
15538# the --recheck option to rerun configure.
15539#
15540# `ac_cv_env_foo' variables (set or unset) will be overridden when
15541# loading this file, other *unset* `ac_cv_foo' will be assigned the
15542# following values.
15543
15544_ACEOF
15545
15546# The following way of writing the cache mishandles newlines in values,
15547# but we know of no workaround that is simple, portable, and efficient.
15548# So, we kill variables containing newlines.
15549# Ultrix sh set writes to stderr and can't be redirected directly,
15550# and sets the high bit in the cache file unless we assign to the vars.
15551(
15552 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15553 eval ac_val=\$$ac_var
15554 case $ac_val in #(
15555 *${as_nl}*)
15556 case $ac_var in #(
15557 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15558$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15559 esac
15560 case $ac_var in #(
15561 _ | IFS | as_nl) ;; #(
15562 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15563 *) { eval $ac_var=; unset $ac_var;} ;;
15564 esac ;;
15565 esac
15566 done
15567
15568 (set) 2>&1 |
15569 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15570 *${as_nl}ac_space=\ *)
15571 # `set' does not quote correctly, so add quotes: double-quote
15572 # substitution turns \\\\ into \\, and sed turns \\ into \.
15573 sed -n \
15574 "s/'/'\\\\''/g;
15575 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15576 ;; #(
15577 *)
15578 # `set' quotes correctly as required by POSIX, so do not add quotes.
15579 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15580 ;;
15581 esac |
15582 sort
15583) |
15584 sed '
15585 /^ac_cv_env_/b end
15586 t clear
15587 :clear
15588 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15589 t end
15590 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15591 :end' >>confcache
15592if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15593 if test -w "$cache_file"; then
15594 test "x$cache_file" != "x/dev/null" &&
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15596$as_echo "$as_me: updating cache $cache_file" >&6;}
15597 cat confcache >$cache_file
15598 else
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15600$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15601 fi
15602fi
15603rm -f confcache
15604
15605test "x$prefix" = xNONE && prefix=$ac_default_prefix
15606# Let make expand exec_prefix.
15607test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15608
15609DEFS=-DHAVE_CONFIG_H
15610
15611ac_libobjs=
15612ac_ltlibobjs=
15613for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15614 # 1. Remove the extension, and $U if already installed.
15615 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15616 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15617 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15618 # will be set to the directory where LIBOBJS objects are built.
15619 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15620 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15621done
15622LIBOBJS=$ac_libobjs
15623
15624LTLIBOBJS=$ac_ltlibobjs
15625
15626
15627 if test -n "$EXEEXT"; then
15628 am__EXEEXT_TRUE=
15629 am__EXEEXT_FALSE='#'
15630else
15631 am__EXEEXT_TRUE='#'
15632 am__EXEEXT_FALSE=
15633fi
15634
15635if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15636 as_fn_error "conditional \"AMDEP\" was never defined.
15637Usually this means the macro was only invoked conditionally." "$LINENO" 5
15638fi
15639if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15640 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15641Usually this means the macro was only invoked conditionally." "$LINENO" 5
15642fi
15643if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15644 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15645Usually this means the macro was only invoked conditionally." "$LINENO" 5
15646fi
63e457ad 15647if test -z "${USE_LIBFFI_TRUE}" && test -z "${USE_LIBFFI_FALSE}"; then
15648 as_fn_error "conditional \"USE_LIBFFI\" was never defined.
15649Usually this means the macro was only invoked conditionally." "$LINENO" 5
15650fi
e440a328 15651if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
15652 as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
15653Usually this means the macro was only invoked conditionally." "$LINENO" 5
15654fi
15655if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
15656 as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
15657Usually this means the macro was only invoked conditionally." "$LINENO" 5
524b52f8 15658fi
15659if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
15660 as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined.
15661Usually this means the macro was only invoked conditionally." "$LINENO" 5
e440a328 15662fi
15663if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
15664 as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
15665Usually this means the macro was only invoked conditionally." "$LINENO" 5
15666fi
86240434 15667if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
15668 as_fn_error "conditional \"LIBGO_IS_NETBSD\" was never defined.
15669Usually this means the macro was only invoked conditionally." "$LINENO" 5
15670fi
fb08d005 15671if test -z "${LIBGO_IS_OPENBSD_TRUE}" && test -z "${LIBGO_IS_OPENBSD_FALSE}"; then
15672 as_fn_error "conditional \"LIBGO_IS_OPENBSD\" was never defined.
15673Usually this means the macro was only invoked conditionally." "$LINENO" 5
15674fi
0ce10ea1 15675if test -z "${LIBGO_IS_DRAGONFLY_TRUE}" && test -z "${LIBGO_IS_DRAGONFLY_FALSE}"; then
15676 as_fn_error "conditional \"LIBGO_IS_DRAGONFLY\" was never defined.
15677Usually this means the macro was only invoked conditionally." "$LINENO" 5
15678fi
e440a328 15679if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
15680 as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
15681Usually this means the macro was only invoked conditionally." "$LINENO" 5
15682fi
cea7ac49 15683if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
15684 as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
e440a328 15685Usually this means the macro was only invoked conditionally." "$LINENO" 5
15686fi
be239ed2 15687if test -z "${LIBGO_IS_BSD_TRUE}" && test -z "${LIBGO_IS_BSD_FALSE}"; then
15688 as_fn_error "conditional \"LIBGO_IS_BSD\" was never defined.
15689Usually this means the macro was only invoked conditionally." "$LINENO" 5
15690fi
e440a328 15691if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
15692 as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
15693Usually this means the macro was only invoked conditionally." "$LINENO" 5
b5f8bff0 15694fi
15695if test -z "${GOC_IS_LLGO_TRUE}" && test -z "${GOC_IS_LLGO_FALSE}"; then
15696 as_fn_error "conditional \"GOC_IS_LLGO\" was never defined.
15697Usually this means the macro was only invoked conditionally." "$LINENO" 5
e440a328 15698fi
15699
15700if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
15701 as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
15702Usually this means the macro was only invoked conditionally." "$LINENO" 5
15703fi
ccd3f476 15704if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
15705 as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined.
15706Usually this means the macro was only invoked conditionally." "$LINENO" 5
15707fi
37d6b690 15708if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
15709 as_fn_error "conditional \"HAVE_WAIT4\" was never defined.
15710Usually this means the macro was only invoked conditionally." "$LINENO" 5
15711fi
8dcdfb38 15712if test -z "${HAVE_STAT_TIMESPEC_TRUE}" && test -z "${HAVE_STAT_TIMESPEC_FALSE}"; then
15713 as_fn_error "conditional \"HAVE_STAT_TIMESPEC\" was never defined.
15714Usually this means the macro was only invoked conditionally." "$LINENO" 5
15715fi
e440a328 15716
15717: ${CONFIG_STATUS=./config.status}
15718ac_write_fail=0
15719ac_clean_files_save=$ac_clean_files
15720ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15721{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15722$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15723as_write_fail=0
15724cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15725#! $SHELL
15726# Generated by $as_me.
15727# Run this file to recreate the current configuration.
15728# Compiler output produced by configure, useful for debugging
15729# configure, is in config.log if it exists.
15730
15731debug=false
15732ac_cs_recheck=false
15733ac_cs_silent=false
15734
15735SHELL=\${CONFIG_SHELL-$SHELL}
15736export SHELL
15737_ASEOF
15738cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15739## -------------------- ##
15740## M4sh Initialization. ##
15741## -------------------- ##
15742
15743# Be more Bourne compatible
15744DUALCASE=1; export DUALCASE # for MKS sh
15745if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15746 emulate sh
15747 NULLCMD=:
15748 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15749 # is contrary to our usage. Disable this feature.
15750 alias -g '${1+"$@"}'='"$@"'
15751 setopt NO_GLOB_SUBST
15752else
15753 case `(set -o) 2>/dev/null` in #(
15754 *posix*) :
15755 set -o posix ;; #(
15756 *) :
15757 ;;
15758esac
15759fi
15760
15761
15762as_nl='
15763'
15764export as_nl
15765# Printing a long string crashes Solaris 7 /usr/bin/printf.
15766as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15767as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15768as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15769# Prefer a ksh shell builtin over an external printf program on Solaris,
15770# but without wasting forks for bash or zsh.
15771if test -z "$BASH_VERSION$ZSH_VERSION" \
15772 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15773 as_echo='print -r --'
15774 as_echo_n='print -rn --'
15775elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15776 as_echo='printf %s\n'
15777 as_echo_n='printf %s'
15778else
15779 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15780 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15781 as_echo_n='/usr/ucb/echo -n'
15782 else
15783 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15784 as_echo_n_body='eval
15785 arg=$1;
15786 case $arg in #(
15787 *"$as_nl"*)
15788 expr "X$arg" : "X\\(.*\\)$as_nl";
15789 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15790 esac;
15791 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15792 '
15793 export as_echo_n_body
15794 as_echo_n='sh -c $as_echo_n_body as_echo'
15795 fi
15796 export as_echo_body
15797 as_echo='sh -c $as_echo_body as_echo'
15798fi
15799
15800# The user is always right.
15801if test "${PATH_SEPARATOR+set}" != set; then
15802 PATH_SEPARATOR=:
15803 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15804 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15805 PATH_SEPARATOR=';'
15806 }
15807fi
15808
15809
15810# IFS
15811# We need space, tab and new line, in precisely that order. Quoting is
15812# there to prevent editors from complaining about space-tab.
15813# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15814# splitting by setting IFS to empty value.)
15815IFS=" "" $as_nl"
15816
15817# Find who we are. Look in the path if we contain no directory separator.
15818case $0 in #((
15819 *[\\/]* ) as_myself=$0 ;;
15820 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15821for as_dir in $PATH
15822do
15823 IFS=$as_save_IFS
15824 test -z "$as_dir" && as_dir=.
15825 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15826 done
15827IFS=$as_save_IFS
15828
15829 ;;
15830esac
15831# We did not find ourselves, most probably we were run as `sh COMMAND'
15832# in which case we are not to be found in the path.
15833if test "x$as_myself" = x; then
15834 as_myself=$0
15835fi
15836if test ! -f "$as_myself"; then
15837 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15838 exit 1
15839fi
15840
15841# Unset variables that we do not need and which cause bugs (e.g. in
15842# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15843# suppresses any "Segmentation fault" message there. '((' could
15844# trigger a bug in pdksh 5.2.14.
15845for as_var in BASH_ENV ENV MAIL MAILPATH
15846do eval test x\${$as_var+set} = xset \
15847 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15848done
15849PS1='$ '
15850PS2='> '
15851PS4='+ '
15852
15853# NLS nuisances.
15854LC_ALL=C
15855export LC_ALL
15856LANGUAGE=C
15857export LANGUAGE
15858
15859# CDPATH.
15860(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15861
15862
15863# as_fn_error ERROR [LINENO LOG_FD]
15864# ---------------------------------
15865# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15866# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15867# script with status $?, using 1 if that was 0.
15868as_fn_error ()
15869{
15870 as_status=$?; test $as_status -eq 0 && as_status=1
15871 if test "$3"; then
15872 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15873 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15874 fi
15875 $as_echo "$as_me: error: $1" >&2
15876 as_fn_exit $as_status
15877} # as_fn_error
15878
15879
15880# as_fn_set_status STATUS
15881# -----------------------
15882# Set $? to STATUS, without forking.
15883as_fn_set_status ()
15884{
15885 return $1
15886} # as_fn_set_status
15887
15888# as_fn_exit STATUS
15889# -----------------
15890# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15891as_fn_exit ()
15892{
15893 set +e
15894 as_fn_set_status $1
15895 exit $1
15896} # as_fn_exit
15897
15898# as_fn_unset VAR
15899# ---------------
15900# Portably unset VAR.
15901as_fn_unset ()
15902{
15903 { eval $1=; unset $1;}
15904}
15905as_unset=as_fn_unset
15906# as_fn_append VAR VALUE
15907# ----------------------
15908# Append the text in VALUE to the end of the definition contained in VAR. Take
15909# advantage of any shell optimizations that allow amortized linear growth over
15910# repeated appends, instead of the typical quadratic growth present in naive
15911# implementations.
15912if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15913 eval 'as_fn_append ()
15914 {
15915 eval $1+=\$2
15916 }'
15917else
15918 as_fn_append ()
15919 {
15920 eval $1=\$$1\$2
15921 }
15922fi # as_fn_append
15923
15924# as_fn_arith ARG...
15925# ------------------
15926# Perform arithmetic evaluation on the ARGs, and store the result in the
15927# global $as_val. Take advantage of shells that can avoid forks. The arguments
15928# must be portable across $(()) and expr.
15929if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15930 eval 'as_fn_arith ()
15931 {
15932 as_val=$(( $* ))
15933 }'
15934else
15935 as_fn_arith ()
15936 {
15937 as_val=`expr "$@" || test $? -eq 1`
15938 }
15939fi # as_fn_arith
15940
15941
15942if expr a : '\(a\)' >/dev/null 2>&1 &&
15943 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15944 as_expr=expr
15945else
15946 as_expr=false
15947fi
15948
15949if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15950 as_basename=basename
15951else
15952 as_basename=false
15953fi
15954
15955if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15956 as_dirname=dirname
15957else
15958 as_dirname=false
15959fi
15960
15961as_me=`$as_basename -- "$0" ||
15962$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15963 X"$0" : 'X\(//\)$' \| \
15964 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15965$as_echo X/"$0" |
15966 sed '/^.*\/\([^/][^/]*\)\/*$/{
15967 s//\1/
15968 q
15969 }
15970 /^X\/\(\/\/\)$/{
15971 s//\1/
15972 q
15973 }
15974 /^X\/\(\/\).*/{
15975 s//\1/
15976 q
15977 }
15978 s/.*/./; q'`
15979
15980# Avoid depending upon Character Ranges.
15981as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15982as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15983as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15984as_cr_digits='0123456789'
15985as_cr_alnum=$as_cr_Letters$as_cr_digits
15986
15987ECHO_C= ECHO_N= ECHO_T=
15988case `echo -n x` in #(((((
15989-n*)
15990 case `echo 'xy\c'` in
15991 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15992 xy) ECHO_C='\c';;
15993 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15994 ECHO_T=' ';;
15995 esac;;
15996*)
15997 ECHO_N='-n';;
15998esac
15999
16000rm -f conf$$ conf$$.exe conf$$.file
16001if test -d conf$$.dir; then
16002 rm -f conf$$.dir/conf$$.file
16003else
16004 rm -f conf$$.dir
16005 mkdir conf$$.dir 2>/dev/null
16006fi
16007if (echo >conf$$.file) 2>/dev/null; then
16008 if ln -s conf$$.file conf$$ 2>/dev/null; then
16009 as_ln_s='ln -s'
16010 # ... but there are two gotchas:
16011 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16012 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16013 # In both cases, we have to default to `cp -p'.
16014 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16015 as_ln_s='cp -p'
16016 elif ln conf$$.file conf$$ 2>/dev/null; then
16017 as_ln_s=ln
16018 else
16019 as_ln_s='cp -p'
16020 fi
16021else
16022 as_ln_s='cp -p'
16023fi
16024rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16025rmdir conf$$.dir 2>/dev/null
16026
16027
16028# as_fn_mkdir_p
16029# -------------
16030# Create "$as_dir" as a directory, including parents if necessary.
16031as_fn_mkdir_p ()
16032{
16033
16034 case $as_dir in #(
16035 -*) as_dir=./$as_dir;;
16036 esac
16037 test -d "$as_dir" || eval $as_mkdir_p || {
16038 as_dirs=
16039 while :; do
16040 case $as_dir in #(
16041 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16042 *) as_qdir=$as_dir;;
16043 esac
16044 as_dirs="'$as_qdir' $as_dirs"
16045 as_dir=`$as_dirname -- "$as_dir" ||
16046$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16047 X"$as_dir" : 'X\(//\)[^/]' \| \
16048 X"$as_dir" : 'X\(//\)$' \| \
16049 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16050$as_echo X"$as_dir" |
16051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16052 s//\1/
16053 q
16054 }
16055 /^X\(\/\/\)[^/].*/{
16056 s//\1/
16057 q
16058 }
16059 /^X\(\/\/\)$/{
16060 s//\1/
16061 q
16062 }
16063 /^X\(\/\).*/{
16064 s//\1/
16065 q
16066 }
16067 s/.*/./; q'`
16068 test -d "$as_dir" && break
16069 done
16070 test -z "$as_dirs" || eval "mkdir $as_dirs"
16071 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16072
16073
16074} # as_fn_mkdir_p
16075if mkdir -p . 2>/dev/null; then
16076 as_mkdir_p='mkdir -p "$as_dir"'
16077else
16078 test -d ./-p && rmdir ./-p
16079 as_mkdir_p=false
16080fi
16081
16082if test -x / >/dev/null 2>&1; then
16083 as_test_x='test -x'
16084else
16085 if ls -dL / >/dev/null 2>&1; then
16086 as_ls_L_option=L
16087 else
16088 as_ls_L_option=
16089 fi
16090 as_test_x='
16091 eval sh -c '\''
16092 if test -d "$1"; then
16093 test -d "$1/.";
16094 else
16095 case $1 in #(
16096 -*)set "./$1";;
16097 esac;
16098 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16099 ???[sx]*):;;*)false;;esac;fi
16100 '\'' sh
16101 '
16102fi
16103as_executable_p=$as_test_x
16104
16105# Sed expression to map a string onto a valid CPP name.
16106as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16107
16108# Sed expression to map a string onto a valid variable name.
16109as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16110
16111
16112exec 6>&1
16113## ----------------------------------- ##
16114## Main body of $CONFIG_STATUS script. ##
16115## ----------------------------------- ##
16116_ASEOF
16117test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16118
16119cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16120# Save the log message, to keep $0 and so on meaningful, and to
16121# report actual input values of CONFIG_FILES etc. instead of their
16122# values after options handling.
16123ac_log="
16124This file was extended by package-unused $as_me version-unused, which was
16125generated by GNU Autoconf 2.64. Invocation command line was
16126
16127 CONFIG_FILES = $CONFIG_FILES
16128 CONFIG_HEADERS = $CONFIG_HEADERS
16129 CONFIG_LINKS = $CONFIG_LINKS
16130 CONFIG_COMMANDS = $CONFIG_COMMANDS
16131 $ $0 $@
16132
16133on `(hostname || uname -n) 2>/dev/null | sed 1q`
16134"
16135
16136_ACEOF
16137
16138case $ac_config_files in *"
16139"*) set x $ac_config_files; shift; ac_config_files=$*;;
16140esac
16141
16142case $ac_config_headers in *"
16143"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16144esac
16145
16146
16147cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16148# Files that config.status was made for.
16149config_files="$ac_config_files"
16150config_headers="$ac_config_headers"
16151config_commands="$ac_config_commands"
16152
16153_ACEOF
16154
16155cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16156ac_cs_usage="\
16157\`$as_me' instantiates files and other configuration actions
16158from templates according to the current configuration. Unless the files
16159and actions are specified as TAGs, all are instantiated by default.
16160
16161Usage: $0 [OPTION]... [TAG]...
16162
16163 -h, --help print this help, then exit
16164 -V, --version print version number and configuration settings, then exit
16165 -q, --quiet, --silent
16166 do not print progress messages
16167 -d, --debug don't remove temporary files
16168 --recheck update $as_me by reconfiguring in the same conditions
16169 --file=FILE[:TEMPLATE]
16170 instantiate the configuration file FILE
16171 --header=FILE[:TEMPLATE]
16172 instantiate the configuration header FILE
16173
16174Configuration files:
16175$config_files
16176
16177Configuration headers:
16178$config_headers
16179
16180Configuration commands:
16181$config_commands
16182
16183Report bugs to the package provider."
16184
16185_ACEOF
16186cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16187ac_cs_version="\\
16188package-unused config.status version-unused
16189configured by $0, generated by GNU Autoconf 2.64,
16190 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16191
16192Copyright (C) 2009 Free Software Foundation, Inc.
16193This config.status script is free software; the Free Software Foundation
16194gives unlimited permission to copy, distribute and modify it."
16195
16196ac_pwd='$ac_pwd'
16197srcdir='$srcdir'
16198INSTALL='$INSTALL'
16199MKDIR_P='$MKDIR_P'
16200AWK='$AWK'
16201test -n "\$AWK" || AWK=awk
16202_ACEOF
16203
16204cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16205# The default lists apply if the user does not specify any file.
16206ac_need_defaults=:
16207while test $# != 0
16208do
16209 case $1 in
16210 --*=*)
16211 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16212 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16213 ac_shift=:
16214 ;;
16215 *)
16216 ac_option=$1
16217 ac_optarg=$2
16218 ac_shift=shift
16219 ;;
16220 esac
16221
16222 case $ac_option in
16223 # Handling of the options.
16224 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16225 ac_cs_recheck=: ;;
16226 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16227 $as_echo "$ac_cs_version"; exit ;;
16228 --debug | --debu | --deb | --de | --d | -d )
16229 debug=: ;;
16230 --file | --fil | --fi | --f )
16231 $ac_shift
16232 case $ac_optarg in
16233 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16234 esac
16235 as_fn_append CONFIG_FILES " '$ac_optarg'"
16236 ac_need_defaults=false;;
16237 --header | --heade | --head | --hea )
16238 $ac_shift
16239 case $ac_optarg in
16240 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16241 esac
16242 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16243 ac_need_defaults=false;;
16244 --he | --h)
16245 # Conflict between --help and --header
16246 as_fn_error "ambiguous option: \`$1'
16247Try \`$0 --help' for more information.";;
16248 --help | --hel | -h )
16249 $as_echo "$ac_cs_usage"; exit ;;
16250 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16251 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16252 ac_cs_silent=: ;;
16253
16254 # This is an error.
16255 -*) as_fn_error "unrecognized option: \`$1'
16256Try \`$0 --help' for more information." ;;
16257
16258 *) as_fn_append ac_config_targets " $1"
16259 ac_need_defaults=false ;;
16260
16261 esac
16262 shift
16263done
16264
16265ac_configure_extra_args=
16266
16267if $ac_cs_silent; then
16268 exec 6>/dev/null
16269 ac_configure_extra_args="$ac_configure_extra_args --silent"
16270fi
16271
16272_ACEOF
16273cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16274if \$ac_cs_recheck; then
16275 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16276 shift
16277 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16278 CONFIG_SHELL='$SHELL'
16279 export CONFIG_SHELL
16280 exec "\$@"
16281fi
16282
16283_ACEOF
16284cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16285exec 5>>config.log
16286{
16287 echo
16288 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16289## Running $as_me. ##
16290_ASBOX
16291 $as_echo "$ac_log"
16292} >&5
16293
16294_ACEOF
16295cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16296#
16297# INIT-COMMANDS
16298#
16299
16300srcdir="$srcdir"
16301host="$host"
16302target="$target"
16303with_multisubdir="$with_multisubdir"
16304with_multisrctop="$with_multisrctop"
16305with_target_subdir="$with_target_subdir"
16306ac_configure_args="${multilib_arg} ${ac_configure_args}"
16307multi_basedir="$multi_basedir"
16308CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16309CC="$CC"
4a273582 16310CXX="$CXX"
16311GFORTRAN="$GFORTRAN"
e440a328 16312AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16313
16314
16315# The HP-UX ksh and POSIX shell print the target directory to stdout
16316# if CDPATH is set.
16317(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16318
16319sed_quote_subst='$sed_quote_subst'
16320double_quote_subst='$double_quote_subst'
16321delay_variable_subst='$delay_variable_subst'
16322SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16323Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16324GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16325EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16326FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16327SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16328ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16329LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16330macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16331macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16332enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16333enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16334pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16335enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16336host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16337host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16338host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16339build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16340build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16341build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16342NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16343LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16344max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16345ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16346exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16347lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16348lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16349lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16350reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16351reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16352OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16353deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16354file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16355AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16356AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16357STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16358RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16359old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16360old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16361old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16362lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16363CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16364CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16365compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16366GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16367lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16368lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16369lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16370lt_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"`'
16371objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16372MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16373lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16374lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16375lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16376lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16377lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16378need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16379DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16380NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16381LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16382OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16383OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16384libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16385shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16386extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16387archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16388enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16389export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16390whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16391compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16392old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16393old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16394archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16395archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16396module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16397module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16398with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16399allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16400no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16401hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16402hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16403hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16404hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16405hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16406hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16407hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16408hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16409inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16410link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16411fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16412always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16413export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16414exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16415include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16416prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16417file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16418variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16419need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16420need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16421version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16422runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16423shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16424shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16425libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16426library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16427soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16428install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16429postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16430postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16431finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16432finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16433hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16434sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16435sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16436hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16437enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16438enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16439enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16440old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16441striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16442LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
16443reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
16444reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
16445old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16446compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
16447GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
16448lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
16449lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
16450lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
16451lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
16452lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
16453archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
16454enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
16455export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16456whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16457compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
16458old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
16459old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
16460archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16461archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16462module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
16463module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16464with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
16465allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16466no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16467hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16468hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
16469hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
16470hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
16471hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
16472hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
16473hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
16474hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
16475inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
16476link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
16477fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
16478always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
16479export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
16480exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16481include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16482prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
16483file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
16484hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
16485
16486LTCC='$LTCC'
16487LTCFLAGS='$LTCFLAGS'
16488compiler='$compiler_DEFAULT'
16489
16490# A function that is used when there is no print builtin or printf.
16491func_fallback_echo ()
16492{
16493 eval 'cat <<_LTECHO_EOF
16494\$1
16495_LTECHO_EOF'
16496}
16497
16498# Quote evaled strings.
16499for var in SED \
16500GREP \
16501EGREP \
16502FGREP \
16503SHELL \
16504ECHO \
16505LD \
16506NM \
16507LN_S \
16508lt_SP2NL \
16509lt_NL2SP \
16510reload_flag \
16511OBJDUMP \
16512deplibs_check_method \
16513file_magic_cmd \
16514AR \
16515AR_FLAGS \
16516STRIP \
16517RANLIB \
16518CC \
16519CFLAGS \
16520compiler \
16521lt_cv_sys_global_symbol_pipe \
16522lt_cv_sys_global_symbol_to_cdecl \
16523lt_cv_sys_global_symbol_to_c_name_address \
16524lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16525lt_prog_compiler_no_builtin_flag \
16526lt_prog_compiler_wl \
16527lt_prog_compiler_pic \
16528lt_prog_compiler_static \
16529lt_cv_prog_compiler_c_o \
16530need_locks \
16531DSYMUTIL \
16532NMEDIT \
16533LIPO \
16534OTOOL \
16535OTOOL64 \
16536shrext_cmds \
16537export_dynamic_flag_spec \
16538whole_archive_flag_spec \
16539compiler_needs_object \
16540with_gnu_ld \
16541allow_undefined_flag \
16542no_undefined_flag \
16543hardcode_libdir_flag_spec \
16544hardcode_libdir_flag_spec_ld \
16545hardcode_libdir_separator \
16546fix_srcfile_path \
16547exclude_expsyms \
16548include_expsyms \
16549file_list_spec \
16550variables_saved_for_relink \
16551libname_spec \
16552library_names_spec \
16553soname_spec \
16554install_override_mode \
16555finish_eval \
16556old_striplib \
16557striplib \
16558LD_GO \
16559reload_flag_GO \
16560compiler_GO \
16561lt_prog_compiler_no_builtin_flag_GO \
16562lt_prog_compiler_wl_GO \
16563lt_prog_compiler_pic_GO \
16564lt_prog_compiler_static_GO \
16565lt_cv_prog_compiler_c_o_GO \
16566export_dynamic_flag_spec_GO \
16567whole_archive_flag_spec_GO \
16568compiler_needs_object_GO \
16569with_gnu_ld_GO \
16570allow_undefined_flag_GO \
16571no_undefined_flag_GO \
16572hardcode_libdir_flag_spec_GO \
16573hardcode_libdir_flag_spec_ld_GO \
16574hardcode_libdir_separator_GO \
16575fix_srcfile_path_GO \
16576exclude_expsyms_GO \
16577include_expsyms_GO \
16578file_list_spec_GO; do
16579 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16580 *[\\\\\\\`\\"\\\$]*)
16581 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16582 ;;
16583 *)
16584 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16585 ;;
16586 esac
16587done
16588
16589# Double-quote double-evaled strings.
16590for var in reload_cmds \
16591old_postinstall_cmds \
16592old_postuninstall_cmds \
16593old_archive_cmds \
16594extract_expsyms_cmds \
16595old_archive_from_new_cmds \
16596old_archive_from_expsyms_cmds \
16597archive_cmds \
16598archive_expsym_cmds \
16599module_cmds \
16600module_expsym_cmds \
16601export_symbols_cmds \
16602prelink_cmds \
16603postinstall_cmds \
16604postuninstall_cmds \
16605finish_cmds \
16606sys_lib_search_path_spec \
16607sys_lib_dlsearch_path_spec \
16608reload_cmds_GO \
16609old_archive_cmds_GO \
16610old_archive_from_new_cmds_GO \
16611old_archive_from_expsyms_cmds_GO \
16612archive_cmds_GO \
16613archive_expsym_cmds_GO \
16614module_cmds_GO \
16615module_expsym_cmds_GO \
16616export_symbols_cmds_GO \
16617prelink_cmds_GO; do
16618 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16619 *[\\\\\\\`\\"\\\$]*)
16620 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16621 ;;
16622 *)
16623 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16624 ;;
16625 esac
16626done
16627
16628ac_aux_dir='$ac_aux_dir'
16629xsi_shell='$xsi_shell'
16630lt_shell_append='$lt_shell_append'
16631
16632# See if we are running on zsh, and set the options which allow our
16633# commands through without removal of \ escapes INIT.
16634if test -n "\${ZSH_VERSION+set}" ; then
16635 setopt NO_GLOB_SUBST
16636fi
16637
16638
16639 PACKAGE='$PACKAGE'
16640 VERSION='$VERSION'
16641 TIMESTAMP='$TIMESTAMP'
16642 RM='$RM'
16643 ofile='$ofile'
16644
16645
16646
16647
16648
16649
16650# Variables needed in config.status (file generation) which aren't already
16651# passed by autoconf.
16652SUBDIRS="$SUBDIRS"
16653
16654
16655_ACEOF
16656
16657cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16658
16659# Handling of arguments.
16660for ac_config_target in $ac_config_targets
16661do
16662 case $ac_config_target in
16663 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16664 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16665 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16666 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16667 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16668 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16669 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16670
16671 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16672 esac
16673done
16674
16675
16676# If the user did not use the arguments to specify the items to instantiate,
16677# then the envvar interface is used. Set only those that are not.
16678# We use the long form for the default assignment because of an extremely
16679# bizarre bug on SunOS 4.1.3.
16680if $ac_need_defaults; then
16681 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16682 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16683 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16684fi
16685
16686# Have a temporary directory for convenience. Make it in the build tree
16687# simply because there is no reason against having it here, and in addition,
16688# creating and moving files from /tmp can sometimes cause problems.
16689# Hook for its removal unless debugging.
16690# Note that there is a small window in which the directory will not be cleaned:
16691# after its creation but before its name has been assigned to `$tmp'.
16692$debug ||
16693{
16694 tmp=
16695 trap 'exit_status=$?
16696 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16697' 0
16698 trap 'as_fn_exit 1' 1 2 13 15
16699}
16700# Create a (secure) tmp directory for tmp files.
16701
16702{
16703 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16704 test -n "$tmp" && test -d "$tmp"
16705} ||
16706{
16707 tmp=./conf$$-$RANDOM
16708 (umask 077 && mkdir "$tmp")
16709} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16710
16711# Set up the scripts for CONFIG_FILES section.
16712# No need to generate them if there are no CONFIG_FILES.
16713# This happens for instance with `./config.status config.h'.
16714if test -n "$CONFIG_FILES"; then
16715
16716
16717ac_cr=`echo X | tr X '\015'`
16718# On cygwin, bash can eat \r inside `` if the user requested igncr.
16719# But we know of no other shell where ac_cr would be empty at this
16720# point, so we can use a bashism as a fallback.
16721if test "x$ac_cr" = x; then
16722 eval ac_cr=\$\'\\r\'
16723fi
16724ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16725if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16726 ac_cs_awk_cr='\r'
16727else
16728 ac_cs_awk_cr=$ac_cr
16729fi
16730
16731echo 'BEGIN {' >"$tmp/subs1.awk" &&
16732_ACEOF
16733
16734
16735{
16736 echo "cat >conf$$subs.awk <<_ACEOF" &&
16737 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16738 echo "_ACEOF"
16739} >conf$$subs.sh ||
16740 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16741ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16742ac_delim='%!_!# '
16743for ac_last_try in false false false false false :; do
16744 . ./conf$$subs.sh ||
16745 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16746
16747 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16748 if test $ac_delim_n = $ac_delim_num; then
16749 break
16750 elif $ac_last_try; then
16751 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16752 else
16753 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16754 fi
16755done
16756rm -f conf$$subs.sh
16757
16758cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16759cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16760_ACEOF
16761sed -n '
16762h
16763s/^/S["/; s/!.*/"]=/
16764p
16765g
16766s/^[^!]*!//
16767:repl
16768t repl
16769s/'"$ac_delim"'$//
16770t delim
16771:nl
16772h
16773s/\(.\{148\}\).*/\1/
16774t more1
16775s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16776p
16777n
16778b repl
16779:more1
16780s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16781p
16782g
16783s/.\{148\}//
16784t nl
16785:delim
16786h
16787s/\(.\{148\}\).*/\1/
16788t more2
16789s/["\\]/\\&/g; s/^/"/; s/$/"/
16790p
16791b
16792:more2
16793s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16794p
16795g
16796s/.\{148\}//
16797t delim
16798' <conf$$subs.awk | sed '
16799/^[^""]/{
16800 N
16801 s/\n//
16802}
16803' >>$CONFIG_STATUS || ac_write_fail=1
16804rm -f conf$$subs.awk
16805cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16806_ACAWK
16807cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16808 for (key in S) S_is_set[key] = 1
16809 FS = "\a"
16810
16811}
16812{
16813 line = $ 0
16814 nfields = split(line, field, "@")
16815 substed = 0
16816 len = length(field[1])
16817 for (i = 2; i < nfields; i++) {
16818 key = field[i]
16819 keylen = length(key)
16820 if (S_is_set[key]) {
16821 value = S[key]
16822 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16823 len += length(value) + length(field[++i])
16824 substed = 1
16825 } else
16826 len += 1 + keylen
16827 }
16828
16829 print line
16830}
16831
16832_ACAWK
16833_ACEOF
16834cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16835if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16836 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16837else
16838 cat
16839fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16840 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16841_ACEOF
16842
16843# VPATH may cause trouble with some makes, so we remove $(srcdir),
16844# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16845# trailing colons and then remove the whole line if VPATH becomes empty
16846# (actually we leave an empty line to preserve line numbers).
16847if test "x$srcdir" = x.; then
16848 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16849s/:*\$(srcdir):*/:/
16850s/:*\${srcdir}:*/:/
16851s/:*@srcdir@:*/:/
16852s/^\([^=]*=[ ]*\):*/\1/
16853s/:*$//
16854s/^[^=]*=[ ]*$//
16855}'
16856fi
16857
16858cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16859fi # test -n "$CONFIG_FILES"
16860
16861# Set up the scripts for CONFIG_HEADERS section.
16862# No need to generate them if there are no CONFIG_HEADERS.
16863# This happens for instance with `./config.status Makefile'.
16864if test -n "$CONFIG_HEADERS"; then
16865cat >"$tmp/defines.awk" <<\_ACAWK ||
16866BEGIN {
16867_ACEOF
16868
16869# Transform confdefs.h into an awk script `defines.awk', embedded as
16870# here-document in config.status, that substitutes the proper values into
16871# config.h.in to produce config.h.
16872
16873# Create a delimiter string that does not exist in confdefs.h, to ease
16874# handling of long lines.
16875ac_delim='%!_!# '
16876for ac_last_try in false false :; do
16877 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16878 if test -z "$ac_t"; then
16879 break
16880 elif $ac_last_try; then
16881 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16882 else
16883 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16884 fi
16885done
16886
16887# For the awk script, D is an array of macro values keyed by name,
16888# likewise P contains macro parameters if any. Preserve backslash
16889# newline sequences.
16890
16891ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16892sed -n '
16893s/.\{148\}/&'"$ac_delim"'/g
16894t rset
16895:rset
16896s/^[ ]*#[ ]*define[ ][ ]*/ /
16897t def
16898d
16899:def
16900s/\\$//
16901t bsnl
16902s/["\\]/\\&/g
16903s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16904D["\1"]=" \3"/p
16905s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16906d
16907:bsnl
16908s/["\\]/\\&/g
16909s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16910D["\1"]=" \3\\\\\\n"\\/p
16911t cont
16912s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16913t cont
16914d
16915:cont
16916n
16917s/.\{148\}/&'"$ac_delim"'/g
16918t clear
16919:clear
16920s/\\$//
16921t bsnlc
16922s/["\\]/\\&/g; s/^/"/; s/$/"/p
16923d
16924:bsnlc
16925s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16926b cont
16927' <confdefs.h | sed '
16928s/'"$ac_delim"'/"\\\
16929"/g' >>$CONFIG_STATUS || ac_write_fail=1
16930
16931cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16932 for (key in D) D_is_set[key] = 1
16933 FS = "\a"
16934}
16935/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16936 line = \$ 0
16937 split(line, arg, " ")
16938 if (arg[1] == "#") {
16939 defundef = arg[2]
16940 mac1 = arg[3]
16941 } else {
16942 defundef = substr(arg[1], 2)
16943 mac1 = arg[2]
16944 }
16945 split(mac1, mac2, "(") #)
16946 macro = mac2[1]
16947 prefix = substr(line, 1, index(line, defundef) - 1)
16948 if (D_is_set[macro]) {
16949 # Preserve the white space surrounding the "#".
16950 print prefix "define", macro P[macro] D[macro]
16951 next
16952 } else {
16953 # Replace #undef with comments. This is necessary, for example,
16954 # in the case of _POSIX_SOURCE, which is predefined and required
16955 # on some systems where configure will not decide to define it.
16956 if (defundef == "undef") {
16957 print "/*", prefix defundef, macro, "*/"
16958 next
16959 }
16960 }
16961}
16962{ print }
16963_ACAWK
16964_ACEOF
16965cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16966 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16967fi # test -n "$CONFIG_HEADERS"
16968
16969
16970eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16971shift
16972for ac_tag
16973do
16974 case $ac_tag in
16975 :[FHLC]) ac_mode=$ac_tag; continue;;
16976 esac
16977 case $ac_mode$ac_tag in
16978 :[FHL]*:*);;
16979 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16980 :[FH]-) ac_tag=-:-;;
16981 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16982 esac
16983 ac_save_IFS=$IFS
16984 IFS=:
16985 set x $ac_tag
16986 IFS=$ac_save_IFS
16987 shift
16988 ac_file=$1
16989 shift
16990
16991 case $ac_mode in
16992 :L) ac_source=$1;;
16993 :[FH])
16994 ac_file_inputs=
16995 for ac_f
16996 do
16997 case $ac_f in
16998 -) ac_f="$tmp/stdin";;
16999 *) # Look for the file first in the build tree, then in the source tree
17000 # (if the path is not absolute). The absolute path cannot be DOS-style,
17001 # because $ac_f cannot contain `:'.
17002 test -f "$ac_f" ||
17003 case $ac_f in
17004 [\\/$]*) false;;
17005 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17006 esac ||
17007 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17008 esac
17009 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17010 as_fn_append ac_file_inputs " '$ac_f'"
17011 done
17012
17013 # Let's still pretend it is `configure' which instantiates (i.e., don't
17014 # use $as_me), people would be surprised to read:
17015 # /* config.h. Generated by config.status. */
17016 configure_input='Generated from '`
17017 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17018 `' by configure.'
17019 if test x"$ac_file" != x-; then
17020 configure_input="$ac_file. $configure_input"
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17022$as_echo "$as_me: creating $ac_file" >&6;}
17023 fi
17024 # Neutralize special characters interpreted by sed in replacement strings.
17025 case $configure_input in #(
17026 *\&* | *\|* | *\\* )
17027 ac_sed_conf_input=`$as_echo "$configure_input" |
17028 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17029 *) ac_sed_conf_input=$configure_input;;
17030 esac
17031
17032 case $ac_tag in
17033 *:-:* | *:-) cat >"$tmp/stdin" \
17034 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17035 esac
17036 ;;
17037 esac
17038
17039 ac_dir=`$as_dirname -- "$ac_file" ||
17040$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17041 X"$ac_file" : 'X\(//\)[^/]' \| \
17042 X"$ac_file" : 'X\(//\)$' \| \
17043 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17044$as_echo X"$ac_file" |
17045 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17046 s//\1/
17047 q
17048 }
17049 /^X\(\/\/\)[^/].*/{
17050 s//\1/
17051 q
17052 }
17053 /^X\(\/\/\)$/{
17054 s//\1/
17055 q
17056 }
17057 /^X\(\/\).*/{
17058 s//\1/
17059 q
17060 }
17061 s/.*/./; q'`
17062 as_dir="$ac_dir"; as_fn_mkdir_p
17063 ac_builddir=.
17064
17065case "$ac_dir" in
17066.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17067*)
17068 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17069 # A ".." for each directory in $ac_dir_suffix.
17070 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17071 case $ac_top_builddir_sub in
17072 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17073 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17074 esac ;;
17075esac
17076ac_abs_top_builddir=$ac_pwd
17077ac_abs_builddir=$ac_pwd$ac_dir_suffix
17078# for backward compatibility:
17079ac_top_builddir=$ac_top_build_prefix
17080
17081case $srcdir in
17082 .) # We are building in place.
17083 ac_srcdir=.
17084 ac_top_srcdir=$ac_top_builddir_sub
17085 ac_abs_top_srcdir=$ac_pwd ;;
17086 [\\/]* | ?:[\\/]* ) # Absolute name.
17087 ac_srcdir=$srcdir$ac_dir_suffix;
17088 ac_top_srcdir=$srcdir
17089 ac_abs_top_srcdir=$srcdir ;;
17090 *) # Relative name.
17091 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17092 ac_top_srcdir=$ac_top_build_prefix$srcdir
17093 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17094esac
17095ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17096
17097
17098 case $ac_mode in
17099 :F)
17100 #
17101 # CONFIG_FILE
17102 #
17103
17104 case $INSTALL in
17105 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17106 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17107 esac
17108 ac_MKDIR_P=$MKDIR_P
17109 case $MKDIR_P in
17110 [\\/$]* | ?:[\\/]* ) ;;
17111 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17112 esac
17113_ACEOF
17114
17115cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17116# If the template does not know about datarootdir, expand it.
17117# FIXME: This hack should be removed a few years after 2.60.
17118ac_datarootdir_hack=; ac_datarootdir_seen=
17119ac_sed_dataroot='
17120/datarootdir/ {
17121 p
17122 q
17123}
17124/@datadir@/p
17125/@docdir@/p
17126/@infodir@/p
17127/@localedir@/p
17128/@mandir@/p'
17129case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17130*datarootdir*) ac_datarootdir_seen=yes;;
17131*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17133$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17134_ACEOF
17135cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17136 ac_datarootdir_hack='
17137 s&@datadir@&$datadir&g
17138 s&@docdir@&$docdir&g
17139 s&@infodir@&$infodir&g
17140 s&@localedir@&$localedir&g
17141 s&@mandir@&$mandir&g
17142 s&\\\${datarootdir}&$datarootdir&g' ;;
17143esac
17144_ACEOF
17145
17146# Neutralize VPATH when `$srcdir' = `.'.
17147# Shell code in configure.ac might set extrasub.
17148# FIXME: do we really want to maintain this feature?
17149cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17150ac_sed_extra="$ac_vpsub
17151$extrasub
17152_ACEOF
17153cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17154:t
17155/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17156s|@configure_input@|$ac_sed_conf_input|;t t
17157s&@top_builddir@&$ac_top_builddir_sub&;t t
17158s&@top_build_prefix@&$ac_top_build_prefix&;t t
17159s&@srcdir@&$ac_srcdir&;t t
17160s&@abs_srcdir@&$ac_abs_srcdir&;t t
17161s&@top_srcdir@&$ac_top_srcdir&;t t
17162s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17163s&@builddir@&$ac_builddir&;t t
17164s&@abs_builddir@&$ac_abs_builddir&;t t
17165s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17166s&@INSTALL@&$ac_INSTALL&;t t
17167s&@MKDIR_P@&$ac_MKDIR_P&;t t
17168$ac_datarootdir_hack
17169"
17170eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17171 || as_fn_error "could not create $ac_file" "$LINENO" 5
17172
17173test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17174 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17175 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17177which seems to be undefined. Please make sure it is defined." >&5
17178$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17179which seems to be undefined. Please make sure it is defined." >&2;}
17180
17181 rm -f "$tmp/stdin"
17182 case $ac_file in
17183 -) cat "$tmp/out" && rm -f "$tmp/out";;
17184 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17185 esac \
17186 || as_fn_error "could not create $ac_file" "$LINENO" 5
17187 ;;
17188 :H)
17189 #
17190 # CONFIG_HEADER
17191 #
17192 if test x"$ac_file" != x-; then
17193 {
17194 $as_echo "/* $configure_input */" \
17195 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17196 } >"$tmp/config.h" \
17197 || as_fn_error "could not create $ac_file" "$LINENO" 5
17198 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17199 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17200$as_echo "$as_me: $ac_file is unchanged" >&6;}
17201 else
17202 rm -f "$ac_file"
17203 mv "$tmp/config.h" "$ac_file" \
17204 || as_fn_error "could not create $ac_file" "$LINENO" 5
17205 fi
17206 else
17207 $as_echo "/* $configure_input */" \
17208 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17209 || as_fn_error "could not create -" "$LINENO" 5
17210 fi
17211# Compute "$ac_file"'s index in $config_headers.
17212_am_arg="$ac_file"
17213_am_stamp_count=1
17214for _am_header in $config_headers :; do
17215 case $_am_header in
17216 $_am_arg | $_am_arg:* )
17217 break ;;
17218 * )
17219 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17220 esac
17221done
17222echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17223$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17224 X"$_am_arg" : 'X\(//\)[^/]' \| \
17225 X"$_am_arg" : 'X\(//\)$' \| \
17226 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17227$as_echo X"$_am_arg" |
17228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17229 s//\1/
17230 q
17231 }
17232 /^X\(\/\/\)[^/].*/{
17233 s//\1/
17234 q
17235 }
17236 /^X\(\/\/\)$/{
17237 s//\1/
17238 q
17239 }
17240 /^X\(\/\).*/{
17241 s//\1/
17242 q
17243 }
17244 s/.*/./; q'`/stamp-h$_am_stamp_count
17245 ;;
17246
17247 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17248$as_echo "$as_me: executing $ac_file commands" >&6;}
17249 ;;
17250 esac
17251
17252
17253 case $ac_file$ac_mode in
17254 "default-1":C)
17255# Only add multilib support code if we just rebuilt the top-level
17256# Makefile.
17257case " $CONFIG_FILES " in
17258 *" Makefile "*)
17259 ac_file=Makefile . ${multi_basedir}/config-ml.in
17260 ;;
17261esac ;;
17262 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17263 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17264 # are listed without --file. Let's play safe and only enable the eval
17265 # if we detect the quoting.
17266 case $CONFIG_FILES in
17267 *\'*) eval set x "$CONFIG_FILES" ;;
17268 *) set x $CONFIG_FILES ;;
17269 esac
17270 shift
17271 for mf
17272 do
17273 # Strip MF so we end up with the name of the file.
17274 mf=`echo "$mf" | sed -e 's/:.*$//'`
17275 # Check whether this is an Automake generated Makefile or not.
17276 # We used to match only the files named `Makefile.in', but
17277 # some people rename them; so instead we look at the file content.
17278 # Grep'ing the first line is not enough: some people post-process
17279 # each Makefile.in and add a new line on top of each file to say so.
17280 # Grep'ing the whole file is not good either: AIX grep has a line
17281 # limit of 2048, but all sed's we know have understand at least 4000.
17282 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17283 dirpart=`$as_dirname -- "$mf" ||
17284$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17285 X"$mf" : 'X\(//\)[^/]' \| \
17286 X"$mf" : 'X\(//\)$' \| \
17287 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17288$as_echo X"$mf" |
17289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17290 s//\1/
17291 q
17292 }
17293 /^X\(\/\/\)[^/].*/{
17294 s//\1/
17295 q
17296 }
17297 /^X\(\/\/\)$/{
17298 s//\1/
17299 q
17300 }
17301 /^X\(\/\).*/{
17302 s//\1/
17303 q
17304 }
17305 s/.*/./; q'`
17306 else
17307 continue
17308 fi
17309 # Extract the definition of DEPDIR, am__include, and am__quote
17310 # from the Makefile without running `make'.
17311 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17312 test -z "$DEPDIR" && continue
17313 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17314 test -z "am__include" && continue
17315 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17316 # When using ansi2knr, U may be empty or an underscore; expand it
17317 U=`sed -n 's/^U = //p' < "$mf"`
17318 # Find all dependency output files, they are included files with
17319 # $(DEPDIR) in their names. We invoke sed twice because it is the
17320 # simplest approach to changing $(DEPDIR) to its actual value in the
17321 # expansion.
17322 for file in `sed -n "
17323 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17324 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17325 # Make sure the directory exists.
17326 test -f "$dirpart/$file" && continue
17327 fdir=`$as_dirname -- "$file" ||
17328$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17329 X"$file" : 'X\(//\)[^/]' \| \
17330 X"$file" : 'X\(//\)$' \| \
17331 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17332$as_echo X"$file" |
17333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17334 s//\1/
17335 q
17336 }
17337 /^X\(\/\/\)[^/].*/{
17338 s//\1/
17339 q
17340 }
17341 /^X\(\/\/\)$/{
17342 s//\1/
17343 q
17344 }
17345 /^X\(\/\).*/{
17346 s//\1/
17347 q
17348 }
17349 s/.*/./; q'`
17350 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17351 # echo "creating $dirpart/$file"
17352 echo '# dummy' > "$dirpart/$file"
17353 done
17354 done
17355}
17356 ;;
17357 "libtool":C)
17358
17359 # See if we are running on zsh, and set the options which allow our
17360 # commands through without removal of \ escapes.
17361 if test -n "${ZSH_VERSION+set}" ; then
17362 setopt NO_GLOB_SUBST
17363 fi
17364
17365 cfgfile="${ofile}T"
17366 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17367 $RM "$cfgfile"
17368
17369 cat <<_LT_EOF >> "$cfgfile"
17370#! $SHELL
17371
17372# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17373# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17374# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17375# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17376#
17377# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17378# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17379# Written by Gordon Matzigkeit, 1996
17380#
17381# This file is part of GNU Libtool.
17382#
17383# GNU Libtool is free software; you can redistribute it and/or
17384# modify it under the terms of the GNU General Public License as
17385# published by the Free Software Foundation; either version 2 of
17386# the License, or (at your option) any later version.
17387#
17388# As a special exception to the GNU General Public License,
17389# if you distribute this file as part of a program or library that
17390# is built using GNU Libtool, you may include this file under the
17391# same distribution terms that you use for the rest of that program.
17392#
17393# GNU Libtool is distributed in the hope that it will be useful,
17394# but WITHOUT ANY WARRANTY; without even the implied warranty of
17395# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17396# GNU General Public License for more details.
17397#
17398# You should have received a copy of the GNU General Public License
17399# along with GNU Libtool; see the file COPYING. If not, a copy
17400# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17401# obtained by writing to the Free Software Foundation, Inc.,
17402# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17403
17404
17405# The names of the tagged configurations supported by this script.
17406available_tags="GO "
17407
17408# ### BEGIN LIBTOOL CONFIG
17409
17410# A sed program that does not truncate output.
17411SED=$lt_SED
17412
17413# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17414Xsed="\$SED -e 1s/^X//"
17415
17416# A grep program that handles long lines.
17417GREP=$lt_GREP
17418
17419# An ERE matcher.
17420EGREP=$lt_EGREP
17421
17422# A literal string matcher.
17423FGREP=$lt_FGREP
17424
17425# Shell to use when invoking shell scripts.
17426SHELL=$lt_SHELL
17427
17428# An echo program that protects backslashes.
17429ECHO=$lt_ECHO
17430
17431# Which release of libtool.m4 was used?
17432macro_version=$macro_version
17433macro_revision=$macro_revision
17434
17435# Whether or not to build shared libraries.
17436build_libtool_libs=$enable_shared
17437
17438# Whether or not to build static libraries.
17439build_old_libs=$enable_static
17440
17441# What type of objects to build.
17442pic_mode=$pic_mode
17443
17444# Whether or not to optimize for fast installation.
17445fast_install=$enable_fast_install
17446
17447# The host system.
17448host_alias=$host_alias
17449host=$host
17450host_os=$host_os
17451
17452# The build system.
17453build_alias=$build_alias
17454build=$build
17455build_os=$build_os
17456
17457# A BSD- or MS-compatible name lister.
17458NM=$lt_NM
17459
17460# Whether we need soft or hard links.
17461LN_S=$lt_LN_S
17462
17463# What is the maximum length of a command?
17464max_cmd_len=$max_cmd_len
17465
17466# Object file suffix (normally "o").
17467objext=$ac_objext
17468
17469# Executable file suffix (normally "").
17470exeext=$exeext
17471
17472# whether the shell understands "unset".
17473lt_unset=$lt_unset
17474
17475# turn spaces into newlines.
17476SP2NL=$lt_lt_SP2NL
17477
17478# turn newlines into spaces.
17479NL2SP=$lt_lt_NL2SP
17480
17481# An object symbol dumper.
17482OBJDUMP=$lt_OBJDUMP
17483
17484# Method to check whether dependent libraries are shared objects.
17485deplibs_check_method=$lt_deplibs_check_method
17486
17487# Command to use when deplibs_check_method == "file_magic".
17488file_magic_cmd=$lt_file_magic_cmd
17489
17490# The archiver.
17491AR=$lt_AR
17492AR_FLAGS=$lt_AR_FLAGS
17493
17494# A symbol stripping program.
17495STRIP=$lt_STRIP
17496
17497# Commands used to install an old-style archive.
17498RANLIB=$lt_RANLIB
17499old_postinstall_cmds=$lt_old_postinstall_cmds
17500old_postuninstall_cmds=$lt_old_postuninstall_cmds
17501
17502# Whether to use a lock for old archive extraction.
17503lock_old_archive_extraction=$lock_old_archive_extraction
17504
17505# A C compiler.
17506LTCC=$lt_CC
17507
17508# LTCC compiler flags.
17509LTCFLAGS=$lt_CFLAGS
17510
17511# Take the output of nm and produce a listing of raw symbols and C names.
17512global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17513
17514# Transform the output of nm in a proper C declaration.
17515global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17516
17517# Transform the output of nm in a C name address pair.
17518global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17519
17520# Transform the output of nm in a C name address pair when lib prefix is needed.
17521global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17522
17523# The name of the directory that contains temporary libtool files.
17524objdir=$objdir
17525
17526# Used to examine libraries when file_magic_cmd begins with "file".
17527MAGIC_CMD=$MAGIC_CMD
17528
17529# Must we lock files when doing compilation?
17530need_locks=$lt_need_locks
17531
17532# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17533DSYMUTIL=$lt_DSYMUTIL
17534
17535# Tool to change global to local symbols on Mac OS X.
17536NMEDIT=$lt_NMEDIT
17537
17538# Tool to manipulate fat objects and archives on Mac OS X.
17539LIPO=$lt_LIPO
17540
17541# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17542OTOOL=$lt_OTOOL
17543
17544# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17545OTOOL64=$lt_OTOOL64
17546
17547# Old archive suffix (normally "a").
17548libext=$libext
17549
17550# Shared library suffix (normally ".so").
17551shrext_cmds=$lt_shrext_cmds
17552
17553# The commands to extract the exported symbol list from a shared archive.
17554extract_expsyms_cmds=$lt_extract_expsyms_cmds
17555
17556# Variables whose values should be saved in libtool wrapper scripts and
17557# restored at link time.
17558variables_saved_for_relink=$lt_variables_saved_for_relink
17559
17560# Do we need the "lib" prefix for modules?
17561need_lib_prefix=$need_lib_prefix
17562
17563# Do we need a version for libraries?
17564need_version=$need_version
17565
17566# Library versioning type.
17567version_type=$version_type
17568
17569# Shared library runtime path variable.
17570runpath_var=$runpath_var
17571
17572# Shared library path variable.
17573shlibpath_var=$shlibpath_var
17574
17575# Is shlibpath searched before the hard-coded library search path?
17576shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17577
17578# Format of library name prefix.
17579libname_spec=$lt_libname_spec
17580
17581# List of archive names. First name is the real one, the rest are links.
17582# The last name is the one that the linker finds with -lNAME
17583library_names_spec=$lt_library_names_spec
17584
17585# The coded name of the library, if different from the real name.
17586soname_spec=$lt_soname_spec
17587
17588# Permission mode override for installation of shared libraries.
17589install_override_mode=$lt_install_override_mode
17590
17591# Command to use after installation of a shared archive.
17592postinstall_cmds=$lt_postinstall_cmds
17593
17594# Command to use after uninstallation of a shared archive.
17595postuninstall_cmds=$lt_postuninstall_cmds
17596
17597# Commands used to finish a libtool library installation in a directory.
17598finish_cmds=$lt_finish_cmds
17599
17600# As "finish_cmds", except a single script fragment to be evaled but
17601# not shown.
17602finish_eval=$lt_finish_eval
17603
17604# Whether we should hardcode library paths into libraries.
17605hardcode_into_libs=$hardcode_into_libs
17606
17607# Compile-time system search path for libraries.
17608sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17609
17610# Run-time system search path for libraries.
17611sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17612
17613# Whether dlopen is supported.
17614dlopen_support=$enable_dlopen
17615
17616# Whether dlopen of programs is supported.
17617dlopen_self=$enable_dlopen_self
17618
17619# Whether dlopen of statically linked programs is supported.
17620dlopen_self_static=$enable_dlopen_self_static
17621
17622# Commands to strip libraries.
17623old_striplib=$lt_old_striplib
17624striplib=$lt_striplib
17625
17626
17627# The linker used to build libraries.
17628LD=$lt_LD
17629
17630# How to create reloadable object files.
17631reload_flag=$lt_reload_flag
17632reload_cmds=$lt_reload_cmds
17633
17634# Commands used to build an old-style archive.
17635old_archive_cmds=$lt_old_archive_cmds
17636
17637# A language specific compiler.
17638CC=$lt_compiler
17639
17640# Is the compiler the GNU compiler?
17641with_gcc=$GCC
17642
17643# Compiler flag to turn off builtin functions.
17644no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17645
17646# How to pass a linker flag through the compiler.
17647wl=$lt_lt_prog_compiler_wl
17648
17649# Additional compiler flags for building library objects.
17650pic_flag=$lt_lt_prog_compiler_pic
17651
17652# Compiler flag to prevent dynamic linking.
17653link_static_flag=$lt_lt_prog_compiler_static
17654
17655# Does compiler simultaneously support -c and -o options?
17656compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17657
17658# Whether or not to add -lc for building shared libraries.
17659build_libtool_need_lc=$archive_cmds_need_lc
17660
17661# Whether or not to disallow shared libs when runtime libs are static.
17662allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17663
17664# Compiler flag to allow reflexive dlopens.
17665export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17666
17667# Compiler flag to generate shared objects directly from archives.
17668whole_archive_flag_spec=$lt_whole_archive_flag_spec
17669
17670# Whether the compiler copes with passing no objects directly.
17671compiler_needs_object=$lt_compiler_needs_object
17672
17673# Create an old-style archive from a shared archive.
17674old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17675
17676# Create a temporary old-style archive to link instead of a shared archive.
17677old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17678
17679# Commands used to build a shared archive.
17680archive_cmds=$lt_archive_cmds
17681archive_expsym_cmds=$lt_archive_expsym_cmds
17682
17683# Commands used to build a loadable module if different from building
17684# a shared archive.
17685module_cmds=$lt_module_cmds
17686module_expsym_cmds=$lt_module_expsym_cmds
17687
17688# Whether we are building with GNU ld or not.
17689with_gnu_ld=$lt_with_gnu_ld
17690
17691# Flag that allows shared libraries with undefined symbols to be built.
17692allow_undefined_flag=$lt_allow_undefined_flag
17693
17694# Flag that enforces no undefined symbols.
17695no_undefined_flag=$lt_no_undefined_flag
17696
17697# Flag to hardcode \$libdir into a binary during linking.
17698# This must work even if \$libdir does not exist
17699hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17700
17701# If ld is used when linking, flag to hardcode \$libdir into a binary
17702# during linking. This must work even if \$libdir does not exist.
17703hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17704
17705# Whether we need a single "-rpath" flag with a separated argument.
17706hardcode_libdir_separator=$lt_hardcode_libdir_separator
17707
17708# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17709# DIR into the resulting binary.
17710hardcode_direct=$hardcode_direct
17711
17712# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17713# DIR into the resulting binary and the resulting library dependency is
17714# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17715# library is relocated.
17716hardcode_direct_absolute=$hardcode_direct_absolute
17717
17718# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17719# into the resulting binary.
17720hardcode_minus_L=$hardcode_minus_L
17721
17722# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17723# into the resulting binary.
17724hardcode_shlibpath_var=$hardcode_shlibpath_var
17725
17726# Set to "yes" if building a shared library automatically hardcodes DIR
17727# into the library and all subsequent libraries and executables linked
17728# against it.
17729hardcode_automatic=$hardcode_automatic
17730
17731# Set to yes if linker adds runtime paths of dependent libraries
17732# to runtime path list.
17733inherit_rpath=$inherit_rpath
17734
17735# Whether libtool must link a program against all its dependency libraries.
17736link_all_deplibs=$link_all_deplibs
17737
17738# Fix the shell variable \$srcfile for the compiler.
17739fix_srcfile_path=$lt_fix_srcfile_path
17740
17741# Set to "yes" if exported symbols are required.
17742always_export_symbols=$always_export_symbols
17743
17744# The commands to list exported symbols.
17745export_symbols_cmds=$lt_export_symbols_cmds
17746
17747# Symbols that should not be listed in the preloaded symbols.
17748exclude_expsyms=$lt_exclude_expsyms
17749
17750# Symbols that must always be exported.
17751include_expsyms=$lt_include_expsyms
17752
17753# Commands necessary for linking programs (against libraries) with templates.
17754prelink_cmds=$lt_prelink_cmds
17755
17756# Specify filename containing input files.
17757file_list_spec=$lt_file_list_spec
17758
17759# How to hardcode a shared library path into an executable.
17760hardcode_action=$hardcode_action
17761
17762# ### END LIBTOOL CONFIG
17763
17764_LT_EOF
17765
17766 case $host_os in
17767 aix3*)
17768 cat <<\_LT_EOF >> "$cfgfile"
17769# AIX sometimes has problems with the GCC collect2 program. For some
17770# reason, if we set the COLLECT_NAMES environment variable, the problems
17771# vanish in a puff of smoke.
17772if test "X${COLLECT_NAMES+set}" != Xset; then
17773 COLLECT_NAMES=
17774 export COLLECT_NAMES
17775fi
17776_LT_EOF
17777 ;;
17778 esac
17779
17780
17781ltmain="$ac_aux_dir/ltmain.sh"
17782
17783
17784 # We use sed instead of cat because bash on DJGPP gets confused if
17785 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17786 # text mode, it properly converts lines to CR/LF. This bash problem
17787 # is reportedly fixed, but why not run on old versions too?
17788 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17789 || (rm -f "$cfgfile"; exit 1)
17790
17791 case $xsi_shell in
17792 yes)
17793 cat << \_LT_EOF >> "$cfgfile"
17794
17795# func_dirname file append nondir_replacement
17796# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17797# otherwise set result to NONDIR_REPLACEMENT.
17798func_dirname ()
17799{
17800 case ${1} in
17801 */*) func_dirname_result="${1%/*}${2}" ;;
17802 * ) func_dirname_result="${3}" ;;
17803 esac
17804}
17805
17806# func_basename file
17807func_basename ()
17808{
17809 func_basename_result="${1##*/}"
17810}
17811
17812# func_dirname_and_basename file append nondir_replacement
17813# perform func_basename and func_dirname in a single function
17814# call:
17815# dirname: Compute the dirname of FILE. If nonempty,
17816# add APPEND to the result, otherwise set result
17817# to NONDIR_REPLACEMENT.
17818# value returned in "$func_dirname_result"
17819# basename: Compute filename of FILE.
17820# value retuned in "$func_basename_result"
17821# Implementation must be kept synchronized with func_dirname
17822# and func_basename. For efficiency, we do not delegate to
17823# those functions but instead duplicate the functionality here.
17824func_dirname_and_basename ()
17825{
17826 case ${1} in
17827 */*) func_dirname_result="${1%/*}${2}" ;;
17828 * ) func_dirname_result="${3}" ;;
17829 esac
17830 func_basename_result="${1##*/}"
17831}
17832
17833# func_stripname prefix suffix name
17834# strip PREFIX and SUFFIX off of NAME.
17835# PREFIX and SUFFIX must not contain globbing or regex special
17836# characters, hashes, percent signs, but SUFFIX may contain a leading
17837# dot (in which case that matches only a dot).
17838func_stripname ()
17839{
17840 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17841 # positional parameters, so assign one to ordinary parameter first.
17842 func_stripname_result=${3}
17843 func_stripname_result=${func_stripname_result#"${1}"}
17844 func_stripname_result=${func_stripname_result%"${2}"}
17845}
17846
17847# func_opt_split
17848func_opt_split ()
17849{
17850 func_opt_split_opt=${1%%=*}
17851 func_opt_split_arg=${1#*=}
17852}
17853
17854# func_lo2o object
17855func_lo2o ()
17856{
17857 case ${1} in
17858 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17859 *) func_lo2o_result=${1} ;;
17860 esac
17861}
17862
17863# func_xform libobj-or-source
17864func_xform ()
17865{
17866 func_xform_result=${1%.*}.lo
17867}
17868
17869# func_arith arithmetic-term...
17870func_arith ()
17871{
17872 func_arith_result=$(( $* ))
17873}
17874
17875# func_len string
17876# STRING may not start with a hyphen.
17877func_len ()
17878{
17879 func_len_result=${#1}
17880}
17881
17882_LT_EOF
17883 ;;
17884 *) # Bourne compatible functions.
17885 cat << \_LT_EOF >> "$cfgfile"
17886
17887# func_dirname file append nondir_replacement
17888# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17889# otherwise set result to NONDIR_REPLACEMENT.
17890func_dirname ()
17891{
17892 # Extract subdirectory from the argument.
17893 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17894 if test "X$func_dirname_result" = "X${1}"; then
17895 func_dirname_result="${3}"
17896 else
17897 func_dirname_result="$func_dirname_result${2}"
17898 fi
17899}
17900
17901# func_basename file
17902func_basename ()
17903{
17904 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17905}
17906
17907
17908# func_stripname prefix suffix name
17909# strip PREFIX and SUFFIX off of NAME.
17910# PREFIX and SUFFIX must not contain globbing or regex special
17911# characters, hashes, percent signs, but SUFFIX may contain a leading
17912# dot (in which case that matches only a dot).
17913# func_strip_suffix prefix name
17914func_stripname ()
17915{
17916 case ${2} in
17917 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17918 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17919 esac
17920}
17921
17922# sed scripts:
17923my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17924my_sed_long_arg='1s/^-[^=]*=//'
17925
17926# func_opt_split
17927func_opt_split ()
17928{
17929 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17930 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17931}
17932
17933# func_lo2o object
17934func_lo2o ()
17935{
17936 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17937}
17938
17939# func_xform libobj-or-source
17940func_xform ()
17941{
17942 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17943}
17944
17945# func_arith arithmetic-term...
17946func_arith ()
17947{
17948 func_arith_result=`expr "$@"`
17949}
17950
17951# func_len string
17952# STRING may not start with a hyphen.
17953func_len ()
17954{
17955 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17956}
17957
17958_LT_EOF
17959esac
17960
17961case $lt_shell_append in
17962 yes)
17963 cat << \_LT_EOF >> "$cfgfile"
17964
17965# func_append var value
17966# Append VALUE to the end of shell variable VAR.
17967func_append ()
17968{
17969 eval "$1+=\$2"
17970}
17971_LT_EOF
17972 ;;
17973 *)
17974 cat << \_LT_EOF >> "$cfgfile"
17975
17976# func_append var value
17977# Append VALUE to the end of shell variable VAR.
17978func_append ()
17979{
17980 eval "$1=\$$1\$2"
17981}
17982
17983_LT_EOF
17984 ;;
17985 esac
17986
17987
17988 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17989 || (rm -f "$cfgfile"; exit 1)
17990
17991 mv -f "$cfgfile" "$ofile" ||
17992 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17993 chmod +x "$ofile"
17994
17995
17996 cat <<_LT_EOF >> "$ofile"
17997
17998# ### BEGIN LIBTOOL TAG CONFIG: GO
17999
18000# The linker used to build libraries.
18001LD=$lt_LD_GO
18002
18003# How to create reloadable object files.
18004reload_flag=$lt_reload_flag_GO
18005reload_cmds=$lt_reload_cmds_GO
18006
18007# Commands used to build an old-style archive.
18008old_archive_cmds=$lt_old_archive_cmds_GO
18009
18010# A language specific compiler.
18011CC=$lt_compiler_GO
18012
18013# Is the compiler the GNU compiler?
18014with_gcc=$GCC_GO
18015
18016# Compiler flag to turn off builtin functions.
18017no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
18018
18019# How to pass a linker flag through the compiler.
18020wl=$lt_lt_prog_compiler_wl_GO
18021
18022# Additional compiler flags for building library objects.
18023pic_flag=$lt_lt_prog_compiler_pic_GO
18024
18025# Compiler flag to prevent dynamic linking.
18026link_static_flag=$lt_lt_prog_compiler_static_GO
18027
18028# Does compiler simultaneously support -c and -o options?
18029compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
18030
18031# Whether or not to add -lc for building shared libraries.
18032build_libtool_need_lc=$archive_cmds_need_lc_GO
18033
18034# Whether or not to disallow shared libs when runtime libs are static.
18035allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
18036
18037# Compiler flag to allow reflexive dlopens.
18038export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
18039
18040# Compiler flag to generate shared objects directly from archives.
18041whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
18042
18043# Whether the compiler copes with passing no objects directly.
18044compiler_needs_object=$lt_compiler_needs_object_GO
18045
18046# Create an old-style archive from a shared archive.
18047old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
18048
18049# Create a temporary old-style archive to link instead of a shared archive.
18050old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
18051
18052# Commands used to build a shared archive.
18053archive_cmds=$lt_archive_cmds_GO
18054archive_expsym_cmds=$lt_archive_expsym_cmds_GO
18055
18056# Commands used to build a loadable module if different from building
18057# a shared archive.
18058module_cmds=$lt_module_cmds_GO
18059module_expsym_cmds=$lt_module_expsym_cmds_GO
18060
18061# Whether we are building with GNU ld or not.
18062with_gnu_ld=$lt_with_gnu_ld_GO
18063
18064# Flag that allows shared libraries with undefined symbols to be built.
18065allow_undefined_flag=$lt_allow_undefined_flag_GO
18066
18067# Flag that enforces no undefined symbols.
18068no_undefined_flag=$lt_no_undefined_flag_GO
18069
18070# Flag to hardcode \$libdir into a binary during linking.
18071# This must work even if \$libdir does not exist
18072hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
18073
18074# If ld is used when linking, flag to hardcode \$libdir into a binary
18075# during linking. This must work even if \$libdir does not exist.
18076hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
18077
18078# Whether we need a single "-rpath" flag with a separated argument.
18079hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
18080
18081# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18082# DIR into the resulting binary.
18083hardcode_direct=$hardcode_direct_GO
18084
18085# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18086# DIR into the resulting binary and the resulting library dependency is
18087# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18088# library is relocated.
18089hardcode_direct_absolute=$hardcode_direct_absolute_GO
18090
18091# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18092# into the resulting binary.
18093hardcode_minus_L=$hardcode_minus_L_GO
18094
18095# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18096# into the resulting binary.
18097hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
18098
18099# Set to "yes" if building a shared library automatically hardcodes DIR
18100# into the library and all subsequent libraries and executables linked
18101# against it.
18102hardcode_automatic=$hardcode_automatic_GO
18103
18104# Set to yes if linker adds runtime paths of dependent libraries
18105# to runtime path list.
18106inherit_rpath=$inherit_rpath_GO
18107
18108# Whether libtool must link a program against all its dependency libraries.
18109link_all_deplibs=$link_all_deplibs_GO
18110
18111# Fix the shell variable \$srcfile for the compiler.
18112fix_srcfile_path=$lt_fix_srcfile_path_GO
18113
18114# Set to "yes" if exported symbols are required.
18115always_export_symbols=$always_export_symbols_GO
18116
18117# The commands to list exported symbols.
18118export_symbols_cmds=$lt_export_symbols_cmds_GO
18119
18120# Symbols that should not be listed in the preloaded symbols.
18121exclude_expsyms=$lt_exclude_expsyms_GO
18122
18123# Symbols that must always be exported.
18124include_expsyms=$lt_include_expsyms_GO
18125
18126# Commands necessary for linking programs (against libraries) with templates.
18127prelink_cmds=$lt_prelink_cmds_GO
18128
18129# Specify filename containing input files.
18130file_list_spec=$lt_file_list_spec_GO
18131
18132# How to hardcode a shared library path into an executable.
18133hardcode_action=$hardcode_action_GO
18134
18135# ### END LIBTOOL TAG CONFIG: GO
18136_LT_EOF
18137
18138 ;;
18139 "default":C) if test -n "$CONFIG_FILES"; then
18140 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
18141 # that multilib installs will end up installed in the correct place.
18142 # The testsuite needs it for multilib-aware ABI baseline files.
18143 # To work around this not being passed down from config-ml.in ->
18144 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
18145 # append it here. Only modify Makefiles that have just been created.
18146 #
18147 # Also, get rid of this simulated-VPATH thing that automake does.
18148 cat > vpsed << \_EOF
18149s!`test -f '$<' || echo '$(srcdir)/'`!!
18150_EOF
18151 for i in $SUBDIRS; do
18152 case $CONFIG_FILES in
18153 *${i}/Makefile*)
18154 #echo "Adding MULTISUBDIR to $i/Makefile"
18155 sed -f vpsed $i/Makefile > tmp
18156 grep '^MULTISUBDIR =' Makefile >> tmp
18157 mv tmp $i/Makefile
18158 ;;
18159 esac
18160 done
18161 rm vpsed
18162 fi
18163 ;;
18164
18165 esac
18166done # for ac_tag
18167
18168
18169as_fn_exit 0
18170_ACEOF
18171ac_clean_files=$ac_clean_files_save
18172
18173test $ac_write_fail = 0 ||
18174 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18175
18176
18177# configure is writing to config.log, and then calls config.status.
18178# config.status does its own redirection, appending to config.log.
18179# Unfortunately, on DOS this fails, as config.log is still kept open
18180# by configure, so config.status won't be able to write to it; its
18181# output is simply discarded. So we exec the FD to /dev/null,
18182# effectively closing config.log, so it can be properly (re)opened and
18183# appended to by config.status. When coming back to configure, we
18184# need to make the FD available again.
18185if test "$no_create" != yes; then
18186 ac_cs_success=:
18187 ac_config_status_args=
18188 test "$silent" = yes &&
18189 ac_config_status_args="$ac_config_status_args --quiet"
18190 exec 5>/dev/null
18191 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18192 exec 5>>config.log
18193 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18194 # would make configure fail if this is the last instruction.
18195 $ac_cs_success || as_fn_exit $?
18196fi
18197if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18199$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18200fi
18201