]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgo/configure
re PR libstdc++/83601 (std::regex_replace C++14 conformance issue: escaping in SED...
[thirdparty/gcc.git] / libgo / configure
CommitLineData
7a938933
ILT
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64 for package-unused version-unused.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183else
184 as_have_required=no
185fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206fi
207fi
208 done;;
209 esac
210 as_found=false
211done
212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215fi; }
216IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238$0: including any error possibly output before this
239$0: message. Then install a modern shell, or manually run
240$0: the script under such a shell if you do have one."
241 fi
242 exit 1
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260 { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_fn_set_status ()
268{
269 return $1
270} # as_fn_set_status
271
272# as_fn_exit STATUS
273# -----------------
274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275as_fn_exit ()
276{
277 set +e
278 as_fn_set_status $1
279 exit $1
280} # as_fn_exit
281
282# as_fn_mkdir_p
283# -------------
284# Create "$as_dir" as a directory, including parents if necessary.
285as_fn_mkdir_p ()
286{
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304$as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328} # as_fn_mkdir_p
329# as_fn_append VAR VALUE
330# ----------------------
331# Append the text in VALUE to the end of the definition contained in VAR. Take
332# advantage of any shell optimizations that allow amortized linear growth over
333# repeated appends, instead of the typical quadratic growth present in naive
334# implementations.
335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345fi # as_fn_append
346
347# as_fn_arith ARG...
348# ------------------
349# Perform arithmetic evaluation on the ARGs, and store the result in the
350# global $as_val. Take advantage of shells that can avoid forks. The arguments
351# must be portable across $(()) and expr.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362fi # as_fn_arith
363
364
365# as_fn_error ERROR [LINENO LOG_FD]
366# ---------------------------------
367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369# script with status $?, using 1 if that was 0.
370as_fn_error ()
371{
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379} # as_fn_error
380
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384else
385 as_expr=false
386fi
387
388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390else
391 as_basename=false
392fi
393
394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396else
397 as_dirname=false
398fi
399
400as_me=`$as_basename -- "$0" ||
401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404$as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419# Avoid depending upon Character Ranges.
420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423as_cr_digits='0123456789'
424as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456}
457
458ECHO_C= ECHO_N= ECHO_T=
459case `echo -n x` in #(((((
460-n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467*)
468 ECHO_N='-n';;
469esac
470
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477fi
478if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492else
493 as_ln_s='cp -p'
494fi
495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
497
498if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503fi
504
505if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525fi
526as_executable_p=$as_test_x
527
528# Sed expression to map a string onto a valid CPP name.
529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531# Sed expression to map a string onto a valid variable name.
532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537exec 7<&0 </dev/null 6>&1
538
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544#
545# Initializations.
546#
547ac_default_prefix=/usr/local
548ac_clean_files=
549ac_config_libobj_dir=.
550LIBOBJS=
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
555
556# Identity of this package.
557PACKAGE_NAME='package-unused'
558PACKAGE_TARNAME='libgo'
559PACKAGE_VERSION='version-unused'
560PACKAGE_STRING='package-unused version-unused'
561PACKAGE_BUGREPORT=''
562PACKAGE_URL=''
563
564ac_unique_file="Makefile.am"
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
568#ifdef HAVE_SYS_TYPES_H
569# include <sys/types.h>
570#endif
571#ifdef HAVE_SYS_STAT_H
572# include <sys/stat.h>
573#endif
574#ifdef STDC_HEADERS
575# include <stdlib.h>
576# include <stddef.h>
577#else
578# ifdef HAVE_STDLIB_H
579# include <stdlib.h>
580# endif
581#endif
582#ifdef HAVE_STRING_H
583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584# include <memory.h>
585# endif
586# include <string.h>
587#endif
588#ifdef HAVE_STRINGS_H
589# include <strings.h>
590#endif
591#ifdef HAVE_INTTYPES_H
592# include <inttypes.h>
593#endif
594#ifdef HAVE_STDINT_H
595# include <stdint.h>
596#endif
597#ifdef HAVE_UNISTD_H
598# include <unistd.h>
599#endif"
600
601ac_subst_vars='am__EXEEXT_FALSE
602am__EXEEXT_TRUE
603LTLIBOBJS
604LIBOBJS
476013d6
ILT
605HAVE_STAT_TIMESPEC_FALSE
606HAVE_STAT_TIMESPEC_TRUE
207c35fa
ILT
607STRUCT_EPOLL_EVENT_FD_OFFSET
608SIZEOF_STRUCT_EPOLL_EVENT
9d465faf 609MATH_FLAG
7a938933 610STRINGOPS_FLAG
0b3189e7
ILT
611HAVE_WAIT4_FALSE
612HAVE_WAIT4_TRUE
8955c80a
ILT
613HAVE_STRERROR_R_FALSE
614HAVE_STRERROR_R_TRUE
7a938933
ILT
615HAVE_SYS_MMAN_H_FALSE
616HAVE_SYS_MMAN_H_TRUE
6c94a9fa
ILT
617PTHREAD_LIBS
618PTHREAD_CFLAGS
f2ee78b8 619NET_LIBS
505b439a 620MATH_LIBS
4c46b5f0
ILT
621GOC_IS_LLGO_FALSE
622GOC_IS_LLGO_TRUE
a2bf11d1 623GO_SPLIT_STACK
7a938933
ILT
624USING_SPLIT_STACK_FALSE
625USING_SPLIT_STACK_TRUE
626SPLIT_STACK
08934aed 627HWCAP_CFLAGS
90630d19 628OSCFLAGS
de27caac
ILT
629GO_SYSCALL_OS_ARCH_FILE
630GO_SYSCALL_OS_FILE
631GO_LIBCALL_OS_ARCH_FILE
632GO_LIBCALL_OS_FILE
a8464243
ILT
633ALLGOARCHFAMILY
634ALLGOARCH
635GOARCH_MINFRAMESIZE
636GOARCH_HUGEPAGESIZE
637GOARCH_INT64ALIGN
638GOARCH_PCQUANTUM
639GOARCH_PHYSPAGESIZE
640GOARCH_CACHELINESIZE
641GOARCH_BIGENDIAN
642GOARCH_FAMILY
c3b5b97b 643GOARCH
7134cf28 644USE_DEJAGNU
a8464243 645ALLGOOS
c3b5b97b 646GOOS
22b955cc
ILT
647LIBGO_IS_BSD_FALSE
648LIBGO_IS_BSD_TRUE
f163907e
ILT
649LIBGO_IS_AIX_FALSE
650LIBGO_IS_AIX_TRUE
f2ee78b8
ILT
651LIBGO_IS_SOLARIS_FALSE
652LIBGO_IS_SOLARIS_TRUE
7a938933
ILT
653LIBGO_IS_RTEMS_FALSE
654LIBGO_IS_RTEMS_TRUE
f038dae6
ILT
655LIBGO_IS_DRAGONFLY_FALSE
656LIBGO_IS_DRAGONFLY_TRUE
4ccad563
ILT
657LIBGO_IS_OPENBSD_FALSE
658LIBGO_IS_OPENBSD_TRUE
df4aa89a
ILT
659LIBGO_IS_NETBSD_FALSE
660LIBGO_IS_NETBSD_TRUE
7a938933
ILT
661LIBGO_IS_LINUX_FALSE
662LIBGO_IS_LINUX_TRUE
654d2ec0
ILT
663LIBGO_IS_IRIX_FALSE
664LIBGO_IS_IRIX_TRUE
7a938933
ILT
665LIBGO_IS_FREEBSD_FALSE
666LIBGO_IS_FREEBSD_TRUE
667LIBGO_IS_DARWIN_FALSE
668LIBGO_IS_DARWIN_TRUE
18c70075 669go_include
9a85ed03 670LIBATOMIC
5302cd02
ILT
671USE_LIBFFI_FALSE
672USE_LIBFFI_TRUE
7a938933
ILT
673LIBFFIINCS
674LIBFFI
317ea7c0 675nover_glibgo_toolexeclibdir
7a938933
ILT
676glibgo_toolexeclibdir
677glibgo_toolexecdir
7a938933
ILT
678WERROR
679WARN_FLAGS
d983a802 680CC_FOR_BUILD
7a938933
ILT
681enable_static
682enable_shared
061793a4 683CPP
7a938933
ILT
684OTOOL64
685OTOOL
686LIPO
687NMEDIT
688DSYMUTIL
689AR
690OBJDUMP
691LN_S
692NM
693ac_ct_DUMPBIN
694DUMPBIN
695LIBTOOL
696OBJCOPY
697RANLIB
698LD
699FGREP
700EGREP
701GREP
061793a4 702SED
7a938933
ILT
703MAINT
704MAINTAINER_MODE_FALSE
705MAINTAINER_MODE_TRUE
706GOCFLAGS
707GOC
708am__fastdepCC_FALSE
709am__fastdepCC_TRUE
710CCDEPMODE
44c925bd 711am__nodep
7a938933
ILT
712AMDEPBACKSLASH
713AMDEP_FALSE
714AMDEP_TRUE
715am__quote
716am__include
717DEPDIR
718OBJEXT
719EXEEXT
720ac_ct_CC
721CPPFLAGS
722LDFLAGS
723CFLAGS
724CC
725am__untar
726am__tar
727AMTAR
728am__leading_dot
729SET_MAKE
730AWK
731mkdir_p
732MKDIR_P
733INSTALL_STRIP_PROGRAM
734STRIP
735install_sh
736MAKEINFO
737AUTOHEADER
738AUTOMAKE
739AUTOCONF
740ACLOCAL
741VERSION
742PACKAGE
743CYGPATH_W
744am__isrc
745INSTALL_DATA
746INSTALL_SCRIPT
747INSTALL_PROGRAM
748target_os
749target_vendor
750target_cpu
751target
752host_os
753host_vendor
754host_cpu
755host
756build_os
757build_vendor
758build_cpu
759build
760multi_basedir
761libtool_VERSION
762target_alias
763host_alias
764build_alias
765LIBS
766ECHO_T
767ECHO_N
768ECHO_C
769DEFS
770mandir
771localedir
772libdir
773psdir
774pdfdir
775dvidir
776htmldir
777infodir
778docdir
779oldincludedir
780includedir
781localstatedir
782sharedstatedir
783sysconfdir
784datadir
785datarootdir
786libexecdir
787sbindir
788bindir
789program_transform_name
790prefix
791exec_prefix
792PACKAGE_URL
793PACKAGE_BUGREPORT
794PACKAGE_STRING
795PACKAGE_VERSION
796PACKAGE_TARNAME
797PACKAGE_NAME
798PATH_SEPARATOR
799SHELL'
800ac_subst_files=''
801ac_user_opts='
802enable_option_checking
803enable_multilib
804enable_dependency_tracking
805enable_maintainer_mode
806with_gnu_ld
807enable_shared
808enable_static
809with_pic
810enable_fast_install
811enable_libtool_lock
0d4668c1 812enable_werror
7a938933
ILT
813enable_version_specific_runtime_libs
814with_libffi
9a85ed03 815with_libatomic
54f0deb0 816with_system_libunwind
7a938933
ILT
817'
818 ac_precious_vars='build_alias
819host_alias
820target_alias
821CPP
822CPPFLAGS'
823
824
825# Initialize some variables set by options.
826ac_init_help=
827ac_init_version=false
828ac_unrecognized_opts=
829ac_unrecognized_sep=
830# The variables have the same names as the options, with
831# dashes changed to underlines.
832cache_file=/dev/null
833exec_prefix=NONE
834no_create=
835no_recursion=
836prefix=NONE
837program_prefix=NONE
838program_suffix=NONE
839program_transform_name=s,x,x,
840silent=
841site=
842srcdir=
843verbose=
844x_includes=NONE
845x_libraries=NONE
846
847# Installation directory options.
848# These are left unexpanded so users can "make install exec_prefix=/foo"
849# and all the variables that are supposed to be based on exec_prefix
850# by default will actually change.
851# Use braces instead of parens because sh, perl, etc. also accept them.
852# (The list follows the same order as the GNU Coding Standards.)
853bindir='${exec_prefix}/bin'
854sbindir='${exec_prefix}/sbin'
855libexecdir='${exec_prefix}/libexec'
856datarootdir='${prefix}/share'
857datadir='${datarootdir}'
858sysconfdir='${prefix}/etc'
859sharedstatedir='${prefix}/com'
860localstatedir='${prefix}/var'
861includedir='${prefix}/include'
862oldincludedir='/usr/include'
863docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
864infodir='${datarootdir}/info'
865htmldir='${docdir}'
866dvidir='${docdir}'
867pdfdir='${docdir}'
868psdir='${docdir}'
869libdir='${exec_prefix}/lib'
870localedir='${datarootdir}/locale'
871mandir='${datarootdir}/man'
872
873ac_prev=
874ac_dashdash=
875for ac_option
876do
877 # If the previous option needs an argument, assign it.
878 if test -n "$ac_prev"; then
879 eval $ac_prev=\$ac_option
880 ac_prev=
881 continue
882 fi
883
884 case $ac_option in
885 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
886 *) ac_optarg=yes ;;
887 esac
888
889 # Accept the important Cygnus configure options, so we can diagnose typos.
890
891 case $ac_dashdash$ac_option in
892 --)
893 ac_dashdash=yes ;;
894
895 -bindir | --bindir | --bindi | --bind | --bin | --bi)
896 ac_prev=bindir ;;
897 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
898 bindir=$ac_optarg ;;
899
900 -build | --build | --buil | --bui | --bu)
901 ac_prev=build_alias ;;
902 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
903 build_alias=$ac_optarg ;;
904
905 -cache-file | --cache-file | --cache-fil | --cache-fi \
906 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
907 ac_prev=cache_file ;;
908 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
909 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
910 cache_file=$ac_optarg ;;
911
912 --config-cache | -C)
913 cache_file=config.cache ;;
914
915 -datadir | --datadir | --datadi | --datad)
916 ac_prev=datadir ;;
917 -datadir=* | --datadir=* | --datadi=* | --datad=*)
918 datadir=$ac_optarg ;;
919
920 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
921 | --dataroo | --dataro | --datar)
922 ac_prev=datarootdir ;;
923 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
924 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
925 datarootdir=$ac_optarg ;;
926
927 -disable-* | --disable-*)
928 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
929 # Reject names that are not valid shell variable names.
930 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931 as_fn_error "invalid feature name: $ac_useropt"
932 ac_useropt_orig=$ac_useropt
933 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
934 case $ac_user_opts in
935 *"
936"enable_$ac_useropt"
937"*) ;;
938 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
939 ac_unrecognized_sep=', ';;
940 esac
941 eval enable_$ac_useropt=no ;;
942
943 -docdir | --docdir | --docdi | --doc | --do)
944 ac_prev=docdir ;;
945 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
946 docdir=$ac_optarg ;;
947
948 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
949 ac_prev=dvidir ;;
950 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
951 dvidir=$ac_optarg ;;
952
953 -enable-* | --enable-*)
954 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
955 # Reject names that are not valid shell variable names.
956 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
957 as_fn_error "invalid feature name: $ac_useropt"
958 ac_useropt_orig=$ac_useropt
959 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
960 case $ac_user_opts in
961 *"
962"enable_$ac_useropt"
963"*) ;;
964 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
965 ac_unrecognized_sep=', ';;
966 esac
967 eval enable_$ac_useropt=\$ac_optarg ;;
968
969 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
970 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
971 | --exec | --exe | --ex)
972 ac_prev=exec_prefix ;;
973 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
974 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
975 | --exec=* | --exe=* | --ex=*)
976 exec_prefix=$ac_optarg ;;
977
978 -gas | --gas | --ga | --g)
979 # Obsolete; use --with-gas.
980 with_gas=yes ;;
981
982 -help | --help | --hel | --he | -h)
983 ac_init_help=long ;;
984 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
985 ac_init_help=recursive ;;
986 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
987 ac_init_help=short ;;
988
989 -host | --host | --hos | --ho)
990 ac_prev=host_alias ;;
991 -host=* | --host=* | --hos=* | --ho=*)
992 host_alias=$ac_optarg ;;
993
994 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
995 ac_prev=htmldir ;;
996 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
997 | --ht=*)
998 htmldir=$ac_optarg ;;
999
1000 -includedir | --includedir | --includedi | --included | --include \
1001 | --includ | --inclu | --incl | --inc)
1002 ac_prev=includedir ;;
1003 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1004 | --includ=* | --inclu=* | --incl=* | --inc=*)
1005 includedir=$ac_optarg ;;
1006
1007 -infodir | --infodir | --infodi | --infod | --info | --inf)
1008 ac_prev=infodir ;;
1009 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1010 infodir=$ac_optarg ;;
1011
1012 -libdir | --libdir | --libdi | --libd)
1013 ac_prev=libdir ;;
1014 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1015 libdir=$ac_optarg ;;
1016
1017 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1018 | --libexe | --libex | --libe)
1019 ac_prev=libexecdir ;;
1020 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1021 | --libexe=* | --libex=* | --libe=*)
1022 libexecdir=$ac_optarg ;;
1023
1024 -localedir | --localedir | --localedi | --localed | --locale)
1025 ac_prev=localedir ;;
1026 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1027 localedir=$ac_optarg ;;
1028
1029 -localstatedir | --localstatedir | --localstatedi | --localstated \
1030 | --localstate | --localstat | --localsta | --localst | --locals)
1031 ac_prev=localstatedir ;;
1032 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1033 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1034 localstatedir=$ac_optarg ;;
1035
1036 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1037 ac_prev=mandir ;;
1038 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1039 mandir=$ac_optarg ;;
1040
1041 -nfp | --nfp | --nf)
1042 # Obsolete; use --without-fp.
1043 with_fp=no ;;
1044
1045 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1046 | --no-cr | --no-c | -n)
1047 no_create=yes ;;
1048
1049 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1050 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1051 no_recursion=yes ;;
1052
1053 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1054 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1055 | --oldin | --oldi | --old | --ol | --o)
1056 ac_prev=oldincludedir ;;
1057 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1058 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1059 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1060 oldincludedir=$ac_optarg ;;
1061
1062 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1063 ac_prev=prefix ;;
1064 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1065 prefix=$ac_optarg ;;
1066
1067 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1068 | --program-pre | --program-pr | --program-p)
1069 ac_prev=program_prefix ;;
1070 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1071 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1072 program_prefix=$ac_optarg ;;
1073
1074 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1075 | --program-suf | --program-su | --program-s)
1076 ac_prev=program_suffix ;;
1077 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1078 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1079 program_suffix=$ac_optarg ;;
1080
1081 -program-transform-name | --program-transform-name \
1082 | --program-transform-nam | --program-transform-na \
1083 | --program-transform-n | --program-transform- \
1084 | --program-transform | --program-transfor \
1085 | --program-transfo | --program-transf \
1086 | --program-trans | --program-tran \
1087 | --progr-tra | --program-tr | --program-t)
1088 ac_prev=program_transform_name ;;
1089 -program-transform-name=* | --program-transform-name=* \
1090 | --program-transform-nam=* | --program-transform-na=* \
1091 | --program-transform-n=* | --program-transform-=* \
1092 | --program-transform=* | --program-transfor=* \
1093 | --program-transfo=* | --program-transf=* \
1094 | --program-trans=* | --program-tran=* \
1095 | --progr-tra=* | --program-tr=* | --program-t=*)
1096 program_transform_name=$ac_optarg ;;
1097
1098 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1099 ac_prev=pdfdir ;;
1100 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1101 pdfdir=$ac_optarg ;;
1102
1103 -psdir | --psdir | --psdi | --psd | --ps)
1104 ac_prev=psdir ;;
1105 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1106 psdir=$ac_optarg ;;
1107
1108 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1109 | -silent | --silent | --silen | --sile | --sil)
1110 silent=yes ;;
1111
1112 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1113 ac_prev=sbindir ;;
1114 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1115 | --sbi=* | --sb=*)
1116 sbindir=$ac_optarg ;;
1117
1118 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1119 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1120 | --sharedst | --shareds | --shared | --share | --shar \
1121 | --sha | --sh)
1122 ac_prev=sharedstatedir ;;
1123 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1124 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1125 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1126 | --sha=* | --sh=*)
1127 sharedstatedir=$ac_optarg ;;
1128
1129 -site | --site | --sit)
1130 ac_prev=site ;;
1131 -site=* | --site=* | --sit=*)
1132 site=$ac_optarg ;;
1133
1134 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1135 ac_prev=srcdir ;;
1136 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1137 srcdir=$ac_optarg ;;
1138
1139 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1140 | --syscon | --sysco | --sysc | --sys | --sy)
1141 ac_prev=sysconfdir ;;
1142 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1143 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1144 sysconfdir=$ac_optarg ;;
1145
1146 -target | --target | --targe | --targ | --tar | --ta | --t)
1147 ac_prev=target_alias ;;
1148 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1149 target_alias=$ac_optarg ;;
1150
1151 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1152 verbose=yes ;;
1153
1154 -version | --version | --versio | --versi | --vers | -V)
1155 ac_init_version=: ;;
1156
1157 -with-* | --with-*)
1158 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1159 # Reject names that are not valid shell variable names.
1160 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1161 as_fn_error "invalid package name: $ac_useropt"
1162 ac_useropt_orig=$ac_useropt
1163 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1164 case $ac_user_opts in
1165 *"
1166"with_$ac_useropt"
1167"*) ;;
1168 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1169 ac_unrecognized_sep=', ';;
1170 esac
1171 eval with_$ac_useropt=\$ac_optarg ;;
1172
1173 -without-* | --without-*)
1174 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177 as_fn_error "invalid package name: $ac_useropt"
1178 ac_useropt_orig=$ac_useropt
1179 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1181 *"
1182"with_$ac_useropt"
1183"*) ;;
1184 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1185 ac_unrecognized_sep=', ';;
1186 esac
1187 eval with_$ac_useropt=no ;;
1188
1189 --x)
1190 # Obsolete; use --with-x.
1191 with_x=yes ;;
1192
1193 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1194 | --x-incl | --x-inc | --x-in | --x-i)
1195 ac_prev=x_includes ;;
1196 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1197 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1198 x_includes=$ac_optarg ;;
1199
1200 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1201 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1202 ac_prev=x_libraries ;;
1203 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1204 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1205 x_libraries=$ac_optarg ;;
1206
1207 -*) as_fn_error "unrecognized option: \`$ac_option'
1208Try \`$0 --help' for more information."
1209 ;;
1210
1211 *=*)
1212 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1213 # Reject names that are not valid shell variable names.
1214 case $ac_envvar in #(
1215 '' | [0-9]* | *[!_$as_cr_alnum]* )
1216 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1217 esac
1218 eval $ac_envvar=\$ac_optarg
1219 export $ac_envvar ;;
1220
1221 *)
1222 # FIXME: should be removed in autoconf 3.0.
1223 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1224 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1225 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1226 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1227 ;;
1228
1229 esac
1230done
1231
1232if test -n "$ac_prev"; then
1233 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1234 as_fn_error "missing argument to $ac_option"
1235fi
1236
1237if test -n "$ac_unrecognized_opts"; then
1238 case $enable_option_checking in
1239 no) ;;
1240 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1241 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1242 esac
1243fi
1244
1245# Check all directory arguments for consistency.
1246for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1247 datadir sysconfdir sharedstatedir localstatedir includedir \
1248 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1249 libdir localedir mandir
1250do
1251 eval ac_val=\$$ac_var
1252 # Remove trailing slashes.
1253 case $ac_val in
1254 */ )
1255 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1256 eval $ac_var=\$ac_val;;
1257 esac
1258 # Be sure to have absolute directory names.
1259 case $ac_val in
1260 [\\/$]* | ?:[\\/]* ) continue;;
1261 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1262 esac
1263 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1264done
1265
1266# There might be people who depend on the old broken behavior: `$host'
1267# used to hold the argument of --host etc.
1268# FIXME: To remove some day.
1269build=$build_alias
1270host=$host_alias
1271target=$target_alias
1272
1273# FIXME: To remove some day.
1274if test "x$host_alias" != x; then
1275 if test "x$build_alias" = x; then
1276 cross_compiling=maybe
1277 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1278 If a cross compiler is detected then cross compile mode will be used." >&2
1279 elif test "x$build_alias" != "x$host_alias"; then
1280 cross_compiling=yes
1281 fi
1282fi
1283
1284ac_tool_prefix=
1285test -n "$host_alias" && ac_tool_prefix=$host_alias-
1286
1287test "$silent" = yes && exec 6>/dev/null
1288
1289
1290ac_pwd=`pwd` && test -n "$ac_pwd" &&
1291ac_ls_di=`ls -di .` &&
1292ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1293 as_fn_error "working directory cannot be determined"
1294test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1295 as_fn_error "pwd does not report name of working directory"
1296
1297
1298# Find the source files, if location was not specified.
1299if test -z "$srcdir"; then
1300 ac_srcdir_defaulted=yes
1301 # Try the directory containing this script, then the parent directory.
1302 ac_confdir=`$as_dirname -- "$as_myself" ||
1303$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1304 X"$as_myself" : 'X\(//\)[^/]' \| \
1305 X"$as_myself" : 'X\(//\)$' \| \
1306 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1307$as_echo X"$as_myself" |
1308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1309 s//\1/
1310 q
1311 }
1312 /^X\(\/\/\)[^/].*/{
1313 s//\1/
1314 q
1315 }
1316 /^X\(\/\/\)$/{
1317 s//\1/
1318 q
1319 }
1320 /^X\(\/\).*/{
1321 s//\1/
1322 q
1323 }
1324 s/.*/./; q'`
1325 srcdir=$ac_confdir
1326 if test ! -r "$srcdir/$ac_unique_file"; then
1327 srcdir=..
1328 fi
1329else
1330 ac_srcdir_defaulted=no
1331fi
1332if test ! -r "$srcdir/$ac_unique_file"; then
1333 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1334 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1335fi
1336ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1337ac_abs_confdir=`(
1338 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1339 pwd)`
1340# When building in place, set srcdir=.
1341if test "$ac_abs_confdir" = "$ac_pwd"; then
1342 srcdir=.
1343fi
1344# Remove unnecessary trailing slashes from srcdir.
1345# Double slashes in file names in object file debugging info
1346# mess up M-x gdb in Emacs.
1347case $srcdir in
1348*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1349esac
1350for ac_var in $ac_precious_vars; do
1351 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1352 eval ac_env_${ac_var}_value=\$${ac_var}
1353 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1354 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1355done
1356
1357#
1358# Report the --help message.
1359#
1360if test "$ac_init_help" = "long"; then
1361 # Omit some internal or obsolete options to make the list less imposing.
1362 # This message is too long to be a string in the A/UX 3.1 sh.
1363 cat <<_ACEOF
1364\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1365
1366Usage: $0 [OPTION]... [VAR=VALUE]...
1367
1368To assign environment variables (e.g., CC, CFLAGS...), specify them as
1369VAR=VALUE. See below for descriptions of some of the useful variables.
1370
1371Defaults for the options are specified in brackets.
1372
1373Configuration:
1374 -h, --help display this help and exit
1375 --help=short display options specific to this package
1376 --help=recursive display the short help of all the included packages
1377 -V, --version display version information and exit
1378 -q, --quiet, --silent do not print \`checking...' messages
1379 --cache-file=FILE cache test results in FILE [disabled]
1380 -C, --config-cache alias for \`--cache-file=config.cache'
1381 -n, --no-create do not create output files
1382 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1383
1384Installation directories:
1385 --prefix=PREFIX install architecture-independent files in PREFIX
1386 [$ac_default_prefix]
1387 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1388 [PREFIX]
1389
1390By default, \`make install' will install all the files in
1391\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1392an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1393for instance \`--prefix=\$HOME'.
1394
1395For better control, use the options below.
1396
1397Fine tuning of the installation directories:
1398 --bindir=DIR user executables [EPREFIX/bin]
1399 --sbindir=DIR system admin executables [EPREFIX/sbin]
1400 --libexecdir=DIR program executables [EPREFIX/libexec]
1401 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1402 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1403 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1404 --libdir=DIR object code libraries [EPREFIX/lib]
1405 --includedir=DIR C header files [PREFIX/include]
1406 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1407 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1408 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1409 --infodir=DIR info documentation [DATAROOTDIR/info]
1410 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1411 --mandir=DIR man documentation [DATAROOTDIR/man]
1412 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1413 --htmldir=DIR html documentation [DOCDIR]
1414 --dvidir=DIR dvi documentation [DOCDIR]
1415 --pdfdir=DIR pdf documentation [DOCDIR]
1416 --psdir=DIR ps documentation [DOCDIR]
1417_ACEOF
1418
1419 cat <<\_ACEOF
1420
1421Program names:
1422 --program-prefix=PREFIX prepend PREFIX to installed program names
1423 --program-suffix=SUFFIX append SUFFIX to installed program names
1424 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1425
1426System types:
1427 --build=BUILD configure for building on BUILD [guessed]
1428 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1429 --target=TARGET configure for building compilers for TARGET [HOST]
1430_ACEOF
1431fi
1432
1433if test -n "$ac_init_help"; then
1434 case $ac_init_help in
1435 short | recursive ) echo "Configuration of package-unused version-unused:";;
1436 esac
1437 cat <<\_ACEOF
1438
1439Optional Features:
1440 --disable-option-checking ignore unrecognized --enable/--with options
1441 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1442 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1443 --enable-multilib build many library versions (default)
1444 --disable-dependency-tracking speeds up one-time build
1445 --enable-dependency-tracking do not reject slow dependency extractors
1446 --enable-maintainer-mode enable make rules and dependencies not useful
1447 (and sometimes confusing) to the casual installer
1448 --enable-shared[=PKGS] build shared libraries [default=yes]
1449 --enable-static[=PKGS] build static libraries [default=yes]
1450 --enable-fast-install[=PKGS]
1451 optimize for fast installation [default=yes]
1452 --disable-libtool-lock avoid locking (might break parallel builds)
0d4668c1 1453 --enable-werror turns on -Werror [default=yes]
7a938933
ILT
1454 --enable-version-specific-runtime-libs
1455 Specify that runtime libraries should be installed
1456 in a compiler-specific directory
1457
1458Optional Packages:
1459 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1460 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1461 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1462 --with-pic try to use only PIC/non-PIC objects [default=use
1463 both]
1464 --without-libffi don't use libffi
9a85ed03 1465 --without-libatomic don't use libatomic
54f0deb0 1466 --with-system-libunwind use installed libunwind
7a938933
ILT
1467
1468Some influential environment variables:
1469 CC C compiler command
1470 CFLAGS C compiler flags
1471 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1472 nonstandard directory <lib dir>
1473 LIBS libraries to pass to the linker, e.g. -l<library>
1474 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1475 you have headers in a nonstandard directory <include dir>
1476 GOC Go compiler command
1477 GOCFLAGS Go compiler flags
1478 CPP C preprocessor
1479
1480Use these variables to override the choices made by `configure' or to help
1481it to find libraries and programs with nonstandard names/locations.
1482
1483Report bugs to the package provider.
1484_ACEOF
1485ac_status=$?
1486fi
1487
1488if test "$ac_init_help" = "recursive"; then
1489 # If there are subdirs, report their specific --help.
1490 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1491 test -d "$ac_dir" ||
1492 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1493 continue
1494 ac_builddir=.
1495
1496case "$ac_dir" in
1497.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498*)
1499 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1500 # A ".." for each directory in $ac_dir_suffix.
1501 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1502 case $ac_top_builddir_sub in
1503 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1505 esac ;;
1506esac
1507ac_abs_top_builddir=$ac_pwd
1508ac_abs_builddir=$ac_pwd$ac_dir_suffix
1509# for backward compatibility:
1510ac_top_builddir=$ac_top_build_prefix
1511
1512case $srcdir in
1513 .) # We are building in place.
1514 ac_srcdir=.
1515 ac_top_srcdir=$ac_top_builddir_sub
1516 ac_abs_top_srcdir=$ac_pwd ;;
1517 [\\/]* | ?:[\\/]* ) # Absolute name.
1518 ac_srcdir=$srcdir$ac_dir_suffix;
1519 ac_top_srcdir=$srcdir
1520 ac_abs_top_srcdir=$srcdir ;;
1521 *) # Relative name.
1522 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1523 ac_top_srcdir=$ac_top_build_prefix$srcdir
1524 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1525esac
1526ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1527
1528 cd "$ac_dir" || { ac_status=$?; continue; }
1529 # Check for guested configure.
1530 if test -f "$ac_srcdir/configure.gnu"; then
1531 echo &&
1532 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1533 elif test -f "$ac_srcdir/configure"; then
1534 echo &&
1535 $SHELL "$ac_srcdir/configure" --help=recursive
1536 else
1537 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1538 fi || ac_status=$?
1539 cd "$ac_pwd" || { ac_status=$?; break; }
1540 done
1541fi
1542
1543test -n "$ac_init_help" && exit $ac_status
1544if $ac_init_version; then
1545 cat <<\_ACEOF
1546package-unused configure version-unused
1547generated by GNU Autoconf 2.64
1548
1549Copyright (C) 2009 Free Software Foundation, Inc.
1550This configure script is free software; the Free Software Foundation
1551gives unlimited permission to copy, distribute and modify it.
1552_ACEOF
1553 exit
1554fi
1555
1556## ------------------------ ##
1557## Autoconf initialization. ##
1558## ------------------------ ##
1559
1560# ac_fn_c_try_compile LINENO
1561# --------------------------
1562# Try to compile conftest.$ac_ext, and return whether this succeeded.
1563ac_fn_c_try_compile ()
1564{
1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566 rm -f conftest.$ac_objext
1567 if { { ac_try="$ac_compile"
1568case "(($ac_try" in
1569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570 *) ac_try_echo=$ac_try;;
1571esac
1572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573$as_echo "$ac_try_echo"; } >&5
1574 (eval "$ac_compile") 2>conftest.err
1575 ac_status=$?
1576 if test -s conftest.err; then
1577 grep -v '^ *+' conftest.err >conftest.er1
1578 cat conftest.er1 >&5
1579 mv -f conftest.er1 conftest.err
1580 fi
1581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582 test $ac_status = 0; } && {
1583 test -z "$ac_c_werror_flag" ||
1584 test ! -s conftest.err
1585 } && test -s conftest.$ac_objext; then :
1586 ac_retval=0
1587else
1588 $as_echo "$as_me: failed program was:" >&5
1589sed 's/^/| /' conftest.$ac_ext >&5
1590
1591 ac_retval=1
1592fi
1593 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1594 return $ac_retval
1595
1596} # ac_fn_c_try_compile
1597
061793a4
ILT
1598# ac_fn_c_try_link LINENO
1599# -----------------------
1600# Try to link conftest.$ac_ext, and return whether this succeeded.
1601ac_fn_c_try_link ()
7a938933
ILT
1602{
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
061793a4
ILT
1604 rm -f conftest.$ac_objext conftest$ac_exeext
1605 if { { ac_try="$ac_link"
7a938933
ILT
1606case "(($ac_try" in
1607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608 *) ac_try_echo=$ac_try;;
1609esac
1610eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611$as_echo "$ac_try_echo"; } >&5
061793a4 1612 (eval "$ac_link") 2>conftest.err
7a938933
ILT
1613 ac_status=$?
1614 if test -s conftest.err; then
1615 grep -v '^ *+' conftest.err >conftest.er1
1616 cat conftest.er1 >&5
1617 mv -f conftest.er1 conftest.err
1618 fi
1619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
061793a4
ILT
1620 test $ac_status = 0; } && {
1621 test -z "$ac_c_werror_flag" ||
7a938933 1622 test ! -s conftest.err
061793a4
ILT
1623 } && test -s conftest$ac_exeext && {
1624 test "$cross_compiling" = yes ||
1625 $as_test_x conftest$ac_exeext
7a938933
ILT
1626 }; then :
1627 ac_retval=0
1628else
1629 $as_echo "$as_me: failed program was:" >&5
1630sed 's/^/| /' conftest.$ac_ext >&5
1631
061793a4 1632 ac_retval=1
7a938933 1633fi
061793a4
ILT
1634 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1635 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1636 # interfere with the next link command; also delete a directory that is
1637 # left behind by Apple's compiler. We do this before executing the actions.
7a938933
ILT
1638 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1639 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1640 return $ac_retval
1641
061793a4 1642} # ac_fn_c_try_link
7a938933
ILT
1643
1644# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1645# -------------------------------------------------------
1646# Tests whether HEADER exists and can be compiled using the include files in
1647# INCLUDES, setting the cache variable VAR accordingly.
1648ac_fn_c_check_header_compile ()
1649{
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1652$as_echo_n "checking for $2... " >&6; }
1653if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1654 $as_echo_n "(cached) " >&6
1655else
1656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1657/* end confdefs.h. */
1658$4
1659#include <$2>
1660_ACEOF
1661if ac_fn_c_try_compile "$LINENO"; then :
1662 eval "$3=yes"
1663else
1664 eval "$3=no"
1665fi
1666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1667fi
1668eval ac_res=\$$3
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1670$as_echo "$ac_res" >&6; }
1671 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1672
1673} # ac_fn_c_check_header_compile
1674
061793a4
ILT
1675# ac_fn_c_try_cpp LINENO
1676# ----------------------
1677# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1678ac_fn_c_try_cpp ()
7a938933
ILT
1679{
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
061793a4 1681 if { { ac_try="$ac_cpp conftest.$ac_ext"
7a938933
ILT
1682case "(($ac_try" in
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1685esac
1686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687$as_echo "$ac_try_echo"; } >&5
061793a4 1688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
7a938933
ILT
1689 ac_status=$?
1690 if test -s conftest.err; then
1691 grep -v '^ *+' conftest.err >conftest.er1
1692 cat conftest.er1 >&5
1693 mv -f conftest.er1 conftest.err
1694 fi
1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
061793a4
ILT
1696 test $ac_status = 0; } >/dev/null && {
1697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7a938933
ILT
1698 test ! -s conftest.err
1699 }; then :
1700 ac_retval=0
1701else
1702 $as_echo "$as_me: failed program was:" >&5
1703sed 's/^/| /' conftest.$ac_ext >&5
1704
061793a4
ILT
1705 ac_retval=1
1706fi
1707 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1708 return $ac_retval
1709
1710} # ac_fn_c_try_cpp
1711
1712# ac_fn_c_try_run LINENO
1713# ----------------------
1714# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1715# that executables *can* be run.
1716ac_fn_c_try_run ()
1717{
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 if { { ac_try="$ac_link"
1720case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723esac
1724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725$as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_link") 2>&5
1727 ac_status=$?
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1730 { { case "(($ac_try" in
1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1733esac
1734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735$as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_try") 2>&5
1737 ac_status=$?
1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; }; }; then :
1740 ac_retval=0
1741else
1742 $as_echo "$as_me: program exited with status $ac_status" >&5
1743 $as_echo "$as_me: failed program was:" >&5
1744sed 's/^/| /' conftest.$ac_ext >&5
1745
1746 ac_retval=$ac_status
7a938933
ILT
1747fi
1748 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1749 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1750 return $ac_retval
1751
061793a4 1752} # ac_fn_c_try_run
7a938933
ILT
1753
1754# ac_fn_c_check_func LINENO FUNC VAR
1755# ----------------------------------
1756# Tests whether FUNC exists, setting the cache variable VAR accordingly
1757ac_fn_c_check_func ()
1758{
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1761$as_echo_n "checking for $2... " >&6; }
1762if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1763 $as_echo_n "(cached) " >&6
1764else
1765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766/* end confdefs.h. */
1767/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1769#define $2 innocuous_$2
1770
1771/* System header to define __stub macros and hopefully few prototypes,
1772 which can conflict with char $2 (); below.
1773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1774 <limits.h> exists even on freestanding compilers. */
1775
1776#ifdef __STDC__
1777# include <limits.h>
1778#else
1779# include <assert.h>
1780#endif
1781
1782#undef $2
1783
1784/* Override any GCC internal prototype to avoid an error.
1785 Use char because int might match the return type of a GCC
1786 builtin and then its argument prototype would still apply. */
1787#ifdef __cplusplus
1788extern "C"
1789#endif
1790char $2 ();
1791/* The GNU C library defines this for functions which it implements
1792 to always fail with ENOSYS. Some functions are actually named
1793 something starting with __ and the normal name is an alias. */
1794#if defined __stub_$2 || defined __stub___$2
1795choke me
1796#endif
1797
1798int
1799main ()
1800{
1801return $2 ();
1802 ;
1803 return 0;
1804}
1805_ACEOF
1806if ac_fn_c_try_link "$LINENO"; then :
1807 eval "$3=yes"
1808else
1809 eval "$3=no"
1810fi
1811rm -f core conftest.err conftest.$ac_objext \
1812 conftest$ac_exeext conftest.$ac_ext
1813fi
1814eval ac_res=\$$3
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816$as_echo "$ac_res" >&6; }
1817 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1818
1819} # ac_fn_c_check_func
1820
1821# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1822# -------------------------------------------------------
1823# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1824# the include files in INCLUDES and setting the cache variable VAR
1825# accordingly.
1826ac_fn_c_check_header_mongrel ()
1827{
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831$as_echo_n "checking for $2... " >&6; }
1832if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1833 $as_echo_n "(cached) " >&6
1834fi
1835eval ac_res=\$$3
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1837$as_echo "$ac_res" >&6; }
1838else
1839 # Is the header compilable?
1840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1841$as_echo_n "checking $2 usability... " >&6; }
1842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843/* end confdefs.h. */
1844$4
1845#include <$2>
1846_ACEOF
1847if ac_fn_c_try_compile "$LINENO"; then :
1848 ac_header_compiler=yes
1849else
1850 ac_header_compiler=no
1851fi
1852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1854$as_echo "$ac_header_compiler" >&6; }
1855
1856# Is the header present?
1857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1858$as_echo_n "checking $2 presence... " >&6; }
1859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1860/* end confdefs.h. */
1861#include <$2>
1862_ACEOF
1863if ac_fn_c_try_cpp "$LINENO"; then :
1864 ac_header_preproc=yes
1865else
1866 ac_header_preproc=no
1867fi
1868rm -f conftest.err conftest.$ac_ext
1869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1870$as_echo "$ac_header_preproc" >&6; }
1871
1872# So? What about this header?
1873case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1874 yes:no: )
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1876$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1878$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1879 ;;
1880 no:yes:* )
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1882$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1884$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1886$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1888$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1890$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1891 ;;
1892esac
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1894$as_echo_n "checking for $2... " >&6; }
1895if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1896 $as_echo_n "(cached) " >&6
1897else
1898 eval "$3=\$ac_header_compiler"
1899fi
1900eval ac_res=\$$3
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902$as_echo "$ac_res" >&6; }
1903fi
1904 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1905
1906} # ac_fn_c_check_header_mongrel
1907
1908# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1909# -------------------------------------------
1910# Tests whether TYPE exists after having included INCLUDES, setting cache
1911# variable VAR accordingly.
1912ac_fn_c_check_type ()
1913{
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1916$as_echo_n "checking for $2... " >&6; }
1917if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1918 $as_echo_n "(cached) " >&6
1919else
1920 eval "$3=no"
1921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922/* end confdefs.h. */
1923$4
1924int
1925main ()
1926{
1927if (sizeof ($2))
1928 return 0;
1929 ;
1930 return 0;
1931}
1932_ACEOF
1933if ac_fn_c_try_compile "$LINENO"; then :
1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935/* end confdefs.h. */
1936$4
1937int
1938main ()
1939{
1940if (sizeof (($2)))
1941 return 0;
1942 ;
1943 return 0;
1944}
1945_ACEOF
1946if ac_fn_c_try_compile "$LINENO"; then :
1947
1948else
1949 eval "$3=yes"
1950fi
1951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1952fi
1953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1954fi
1955eval ac_res=\$$3
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957$as_echo "$ac_res" >&6; }
1958 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1959
1960} # ac_fn_c_check_type
207c35fa
ILT
1961
1962# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1963# --------------------------------------------
1964# Tries to find the compile-time value of EXPR in a program that includes
1965# INCLUDES, setting VAR accordingly. Returns whether the value could be
1966# computed
1967ac_fn_c_compute_int ()
1968{
1969 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970 if test "$cross_compiling" = yes; then
1971 # Depending upon the size, compute the lo and hi bounds.
1972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973/* end confdefs.h. */
1974$4
1975int
1976main ()
1977{
1978static int test_array [1 - 2 * !(($2) >= 0)];
1979test_array [0] = 0
1980
1981 ;
1982 return 0;
1983}
1984_ACEOF
1985if ac_fn_c_try_compile "$LINENO"; then :
1986 ac_lo=0 ac_mid=0
1987 while :; do
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989/* end confdefs.h. */
1990$4
1991int
1992main ()
1993{
1994static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1995test_array [0] = 0
1996
1997 ;
1998 return 0;
1999}
2000_ACEOF
2001if ac_fn_c_try_compile "$LINENO"; then :
2002 ac_hi=$ac_mid; break
2003else
2004 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2005 if test $ac_lo -le $ac_mid; then
2006 ac_lo= ac_hi=
2007 break
2008 fi
2009 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2010fi
2011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2012 done
2013else
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015/* end confdefs.h. */
2016$4
2017int
2018main ()
2019{
2020static int test_array [1 - 2 * !(($2) < 0)];
2021test_array [0] = 0
2022
2023 ;
2024 return 0;
2025}
2026_ACEOF
2027if ac_fn_c_try_compile "$LINENO"; then :
2028 ac_hi=-1 ac_mid=-1
2029 while :; do
2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031/* end confdefs.h. */
2032$4
2033int
2034main ()
2035{
2036static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2037test_array [0] = 0
2038
2039 ;
2040 return 0;
2041}
2042_ACEOF
2043if ac_fn_c_try_compile "$LINENO"; then :
2044 ac_lo=$ac_mid; break
2045else
2046 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2047 if test $ac_mid -le $ac_hi; then
2048 ac_lo= ac_hi=
2049 break
2050 fi
2051 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2052fi
2053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054 done
2055else
2056 ac_lo= ac_hi=
2057fi
2058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2059fi
2060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2061# Binary search between lo and hi bounds.
2062while test "x$ac_lo" != "x$ac_hi"; do
2063 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065/* end confdefs.h. */
2066$4
2067int
2068main ()
2069{
2070static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2071test_array [0] = 0
2072
2073 ;
2074 return 0;
2075}
2076_ACEOF
2077if ac_fn_c_try_compile "$LINENO"; then :
2078 ac_hi=$ac_mid
2079else
2080 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2081fi
2082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2083done
2084case $ac_lo in #((
2085?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2086'') ac_retval=1 ;;
2087esac
2088 else
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090/* end confdefs.h. */
2091$4
2092static long int longval () { return $2; }
2093static unsigned long int ulongval () { return $2; }
2094#include <stdio.h>
2095#include <stdlib.h>
2096int
2097main ()
2098{
2099
2100 FILE *f = fopen ("conftest.val", "w");
2101 if (! f)
2102 return 1;
2103 if (($2) < 0)
2104 {
2105 long int i = longval ();
2106 if (i != ($2))
2107 return 1;
2108 fprintf (f, "%ld", i);
2109 }
2110 else
2111 {
2112 unsigned long int i = ulongval ();
2113 if (i != ($2))
2114 return 1;
2115 fprintf (f, "%lu", i);
2116 }
2117 /* Do not output a trailing newline, as this causes \r\n confusion
2118 on some platforms. */
2119 return ferror (f) || fclose (f) != 0;
2120
2121 ;
2122 return 0;
2123}
2124_ACEOF
2125if ac_fn_c_try_run "$LINENO"; then :
2126 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2127else
2128 ac_retval=1
2129fi
2130rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2131 conftest.$ac_objext conftest.beam conftest.$ac_ext
2132rm -f conftest.val
2133
2134 fi
2135 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2136 return $ac_retval
2137
2138} # ac_fn_c_compute_int
7a938933
ILT
2139cat >config.log <<_ACEOF
2140This file contains any messages produced by compilers while
2141running configure, to aid debugging if configure makes a mistake.
2142
2143It was created by package-unused $as_me version-unused, which was
2144generated by GNU Autoconf 2.64. Invocation command line was
2145
2146 $ $0 $@
2147
2148_ACEOF
2149exec 5>>config.log
2150{
2151cat <<_ASUNAME
2152## --------- ##
2153## Platform. ##
2154## --------- ##
2155
2156hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2157uname -m = `(uname -m) 2>/dev/null || echo unknown`
2158uname -r = `(uname -r) 2>/dev/null || echo unknown`
2159uname -s = `(uname -s) 2>/dev/null || echo unknown`
2160uname -v = `(uname -v) 2>/dev/null || echo unknown`
2161
2162/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2163/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2164
2165/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2166/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2167/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2168/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2169/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2170/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2171/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2172
2173_ASUNAME
2174
2175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2176for as_dir in $PATH
2177do
2178 IFS=$as_save_IFS
2179 test -z "$as_dir" && as_dir=.
2180 $as_echo "PATH: $as_dir"
2181 done
2182IFS=$as_save_IFS
2183
2184} >&5
2185
2186cat >&5 <<_ACEOF
2187
2188
2189## ----------- ##
2190## Core tests. ##
2191## ----------- ##
2192
2193_ACEOF
2194
2195
2196# Keep a trace of the command line.
2197# Strip out --no-create and --no-recursion so they do not pile up.
2198# Strip out --silent because we don't want to record it for future runs.
2199# Also quote any args containing shell meta-characters.
2200# Make two passes to allow for proper duplicate-argument suppression.
2201ac_configure_args=
2202ac_configure_args0=
2203ac_configure_args1=
2204ac_must_keep_next=false
2205for ac_pass in 1 2
2206do
2207 for ac_arg
2208 do
2209 case $ac_arg in
2210 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2211 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2212 | -silent | --silent | --silen | --sile | --sil)
2213 continue ;;
2214 *\'*)
2215 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2216 esac
2217 case $ac_pass in
2218 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2219 2)
2220 as_fn_append ac_configure_args1 " '$ac_arg'"
2221 if test $ac_must_keep_next = true; then
2222 ac_must_keep_next=false # Got value, back to normal.
2223 else
2224 case $ac_arg in
2225 *=* | --config-cache | -C | -disable-* | --disable-* \
2226 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2227 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2228 | -with-* | --with-* | -without-* | --without-* | --x)
2229 case "$ac_configure_args0 " in
2230 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2231 esac
2232 ;;
2233 -* ) ac_must_keep_next=true ;;
2234 esac
2235 fi
2236 as_fn_append ac_configure_args " '$ac_arg'"
2237 ;;
2238 esac
2239 done
2240done
2241{ ac_configure_args0=; unset ac_configure_args0;}
2242{ ac_configure_args1=; unset ac_configure_args1;}
2243
2244# When interrupted or exit'd, cleanup temporary files, and complete
2245# config.log. We remove comments because anyway the quotes in there
2246# would cause problems or look ugly.
2247# WARNING: Use '\'' to represent an apostrophe within the trap.
2248# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2249trap 'exit_status=$?
2250 # Save into config.log some information that might help in debugging.
2251 {
2252 echo
2253
2254 cat <<\_ASBOX
2255## ---------------- ##
2256## Cache variables. ##
2257## ---------------- ##
2258_ASBOX
2259 echo
2260 # The following way of writing the cache mishandles newlines in values,
2261(
2262 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2263 eval ac_val=\$$ac_var
2264 case $ac_val in #(
2265 *${as_nl}*)
2266 case $ac_var in #(
2267 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2268$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2269 esac
2270 case $ac_var in #(
2271 _ | IFS | as_nl) ;; #(
2272 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2273 *) { eval $ac_var=; unset $ac_var;} ;;
2274 esac ;;
2275 esac
2276 done
2277 (set) 2>&1 |
2278 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2279 *${as_nl}ac_space=\ *)
2280 sed -n \
2281 "s/'\''/'\''\\\\'\'''\''/g;
2282 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2283 ;; #(
2284 *)
2285 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2286 ;;
2287 esac |
2288 sort
2289)
2290 echo
2291
2292 cat <<\_ASBOX
2293## ----------------- ##
2294## Output variables. ##
2295## ----------------- ##
2296_ASBOX
2297 echo
2298 for ac_var in $ac_subst_vars
2299 do
2300 eval ac_val=\$$ac_var
2301 case $ac_val in
2302 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2303 esac
2304 $as_echo "$ac_var='\''$ac_val'\''"
2305 done | sort
2306 echo
2307
2308 if test -n "$ac_subst_files"; then
2309 cat <<\_ASBOX
2310## ------------------- ##
2311## File substitutions. ##
2312## ------------------- ##
2313_ASBOX
2314 echo
2315 for ac_var in $ac_subst_files
2316 do
2317 eval ac_val=\$$ac_var
2318 case $ac_val in
2319 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2320 esac
2321 $as_echo "$ac_var='\''$ac_val'\''"
2322 done | sort
2323 echo
2324 fi
2325
2326 if test -s confdefs.h; then
2327 cat <<\_ASBOX
2328## ----------- ##
2329## confdefs.h. ##
2330## ----------- ##
2331_ASBOX
2332 echo
2333 cat confdefs.h
2334 echo
2335 fi
2336 test "$ac_signal" != 0 &&
2337 $as_echo "$as_me: caught signal $ac_signal"
2338 $as_echo "$as_me: exit $exit_status"
2339 } >&5
2340 rm -f core *.core core.conftest.* &&
2341 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2342 exit $exit_status
2343' 0
2344for ac_signal in 1 2 13 15; do
2345 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2346done
2347ac_signal=0
2348
2349# confdefs.h avoids OS command line length limits that DEFS can exceed.
2350rm -f -r conftest* confdefs.h
2351
2352$as_echo "/* confdefs.h */" > confdefs.h
2353
2354# Predefined preprocessor variables.
2355
2356cat >>confdefs.h <<_ACEOF
2357#define PACKAGE_NAME "$PACKAGE_NAME"
2358_ACEOF
2359
2360cat >>confdefs.h <<_ACEOF
2361#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2362_ACEOF
2363
2364cat >>confdefs.h <<_ACEOF
2365#define PACKAGE_VERSION "$PACKAGE_VERSION"
2366_ACEOF
2367
2368cat >>confdefs.h <<_ACEOF
2369#define PACKAGE_STRING "$PACKAGE_STRING"
2370_ACEOF
2371
2372cat >>confdefs.h <<_ACEOF
2373#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2374_ACEOF
2375
2376cat >>confdefs.h <<_ACEOF
2377#define PACKAGE_URL "$PACKAGE_URL"
2378_ACEOF
2379
2380
2381# Let the site file select an alternate cache file if it wants to.
2382# Prefer an explicitly selected file to automatically selected ones.
2383ac_site_file1=NONE
2384ac_site_file2=NONE
2385if test -n "$CONFIG_SITE"; then
2386 ac_site_file1=$CONFIG_SITE
2387elif test "x$prefix" != xNONE; then
2388 ac_site_file1=$prefix/share/config.site
2389 ac_site_file2=$prefix/etc/config.site
2390else
2391 ac_site_file1=$ac_default_prefix/share/config.site
2392 ac_site_file2=$ac_default_prefix/etc/config.site
2393fi
2394for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2395do
2396 test "x$ac_site_file" = xNONE && continue
2397 if test -r "$ac_site_file"; then
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2399$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2400 sed 's/^/| /' "$ac_site_file" >&5
2401 . "$ac_site_file"
2402 fi
2403done
2404
2405if test -r "$cache_file"; then
2406 # Some versions of bash will fail to source /dev/null (special
2407 # files actually), so we avoid doing that.
2408 if test -f "$cache_file"; then
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2410$as_echo "$as_me: loading cache $cache_file" >&6;}
2411 case $cache_file in
2412 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2413 *) . "./$cache_file";;
2414 esac
2415 fi
2416else
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2418$as_echo "$as_me: creating cache $cache_file" >&6;}
2419 >$cache_file
2420fi
2421
2422# Check that the precious variables saved in the cache have kept the same
2423# value.
2424ac_cache_corrupted=false
2425for ac_var in $ac_precious_vars; do
2426 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2427 eval ac_new_set=\$ac_env_${ac_var}_set
2428 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2429 eval ac_new_val=\$ac_env_${ac_var}_value
2430 case $ac_old_set,$ac_new_set in
2431 set,)
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2433$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2434 ac_cache_corrupted=: ;;
2435 ,set)
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2437$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2438 ac_cache_corrupted=: ;;
2439 ,);;
2440 *)
2441 if test "x$ac_old_val" != "x$ac_new_val"; then
2442 # differences in whitespace do not lead to failure.
2443 ac_old_val_w=`echo x $ac_old_val`
2444 ac_new_val_w=`echo x $ac_new_val`
2445 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2447$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2448 ac_cache_corrupted=:
2449 else
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2451$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2452 eval $ac_var=\$ac_old_val
2453 fi
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2455$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2457$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2458 fi;;
2459 esac
2460 # Pass precious variables to config.status.
2461 if test "$ac_new_set" = set; then
2462 case $ac_new_val in
2463 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2464 *) ac_arg=$ac_var=$ac_new_val ;;
2465 esac
2466 case " $ac_configure_args " in
2467 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2468 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2469 esac
2470 fi
2471done
2472if $ac_cache_corrupted; then
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2474$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2476$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2477 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2478fi
2479## -------------------- ##
2480## Main body of script. ##
2481## -------------------- ##
2482
2483ac_ext=c
2484ac_cpp='$CPP $CPPFLAGS'
2485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2487ac_compiler_gnu=$ac_cv_c_compiler_gnu
2488
2489
2490
54f0deb0
ILT
2491
2492
2493
7a938933
ILT
2494ac_config_headers="$ac_config_headers config.h"
2495
2496
1a2f01ef 2497libtool_VERSION=13:0:0
7a938933
ILT
2498
2499
2500# Default to --enable-multilib
2501# Check whether --enable-multilib was given.
2502if test "${enable_multilib+set}" = set; then :
2503 enableval=$enable_multilib; case "$enableval" in
2504 yes) multilib=yes ;;
2505 no) multilib=no ;;
2506 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2507 esac
2508else
2509 multilib=yes
2510fi
2511
2512
2513# We may get other options which we leave undocumented:
2514# --with-target-subdir, --with-multisrctop, --with-multisubdir
2515# See config-ml.in if you want the gory details.
2516
2517if test "$srcdir" = "."; then
2518 if test "$with_target_subdir" != "."; then
2519 multi_basedir="$srcdir/$with_multisrctop../.."
2520 else
2521 multi_basedir="$srcdir/$with_multisrctop.."
2522 fi
2523else
2524 multi_basedir="$srcdir/.."
2525fi
2526
2527
2528# Even if the default multilib is not a cross compilation,
2529# it may be that some of the other multilibs are.
2530if test $cross_compiling = no && test $multilib = yes \
2531 && test "x${with_multisubdir}" != x ; then
2532 cross_compiling=maybe
2533fi
2534
2535ac_config_commands="$ac_config_commands default-1"
2536
2537
2538ac_aux_dir=
2539for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2540 for ac_t in install-sh install.sh shtool; do
2541 if test -f "$ac_dir/$ac_t"; then
2542 ac_aux_dir=$ac_dir
2543 ac_install_sh="$ac_aux_dir/$ac_t -c"
2544 break 2
2545 fi
2546 done
2547done
2548if test -z "$ac_aux_dir"; then
2549 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2550fi
2551
2552# These three variables are undocumented and unsupported,
2553# and are intended to be withdrawn in a future Autoconf release.
2554# They can cause serious problems if a builder's source tree is in a directory
2555# whose full name contains unusual characters.
2556ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2557ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2558ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2559
2560
2561# Make sure we can run config.sub.
2562$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2563 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2564
2565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2566$as_echo_n "checking build system type... " >&6; }
2567if test "${ac_cv_build+set}" = set; then :
2568 $as_echo_n "(cached) " >&6
2569else
2570 ac_build_alias=$build_alias
2571test "x$ac_build_alias" = x &&
2572 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2573test "x$ac_build_alias" = x &&
2574 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2575ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2576 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2577
2578fi
2579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2580$as_echo "$ac_cv_build" >&6; }
2581case $ac_cv_build in
2582*-*-*) ;;
2583*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2584esac
2585build=$ac_cv_build
2586ac_save_IFS=$IFS; IFS='-'
2587set x $ac_cv_build
2588shift
2589build_cpu=$1
2590build_vendor=$2
2591shift; shift
2592# Remember, the first character of IFS is used to create $*,
2593# except with old shells:
2594build_os=$*
2595IFS=$ac_save_IFS
2596case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2597
2598
2599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2600$as_echo_n "checking host system type... " >&6; }
2601if test "${ac_cv_host+set}" = set; then :
2602 $as_echo_n "(cached) " >&6
2603else
2604 if test "x$host_alias" = x; then
2605 ac_cv_host=$ac_cv_build
2606else
2607 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2608 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2609fi
2610
2611fi
2612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2613$as_echo "$ac_cv_host" >&6; }
2614case $ac_cv_host in
2615*-*-*) ;;
2616*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2617esac
2618host=$ac_cv_host
2619ac_save_IFS=$IFS; IFS='-'
2620set x $ac_cv_host
2621shift
2622host_cpu=$1
2623host_vendor=$2
2624shift; shift
2625# Remember, the first character of IFS is used to create $*,
2626# except with old shells:
2627host_os=$*
2628IFS=$ac_save_IFS
2629case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2630
2631
2632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2633$as_echo_n "checking target system type... " >&6; }
2634if test "${ac_cv_target+set}" = set; then :
2635 $as_echo_n "(cached) " >&6
2636else
2637 if test "x$target_alias" = x; then
2638 ac_cv_target=$ac_cv_host
2639else
2640 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2641 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2642fi
2643
2644fi
2645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2646$as_echo "$ac_cv_target" >&6; }
2647case $ac_cv_target in
2648*-*-*) ;;
2649*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2650esac
2651target=$ac_cv_target
2652ac_save_IFS=$IFS; IFS='-'
2653set x $ac_cv_target
2654shift
2655target_cpu=$1
2656target_vendor=$2
2657shift; shift
2658# Remember, the first character of IFS is used to create $*,
2659# except with old shells:
2660target_os=$*
2661IFS=$ac_save_IFS
2662case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2663
2664
2665# The aliases save the names the user supplied, while $host etc.
2666# will get canonicalized.
2667test -n "$target_alias" &&
2668 test "$program_prefix$program_suffix$program_transform_name" = \
2669 NONENONEs,x,x, &&
2670 program_prefix=${target_alias}-
2671
2672target_alias=${target_alias-$host_alias}
2673
2674am__api_version='1.11'
2675
2676# Find a good install program. We prefer a C program (faster),
2677# so one script is as good as another. But avoid the broken or
2678# incompatible versions:
2679# SysV /etc/install, /usr/sbin/install
2680# SunOS /usr/etc/install
2681# IRIX /sbin/install
2682# AIX /bin/install
2683# AmigaOS /C/install, which installs bootblocks on floppy discs
2684# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2685# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2686# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2687# OS/2's system install, which has a completely different semantic
2688# ./install, which can be erroneously created by make from ./install.sh.
2689# Reject install programs that cannot install multiple files.
2690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2691$as_echo_n "checking for a BSD-compatible install... " >&6; }
2692if test -z "$INSTALL"; then
2693if test "${ac_cv_path_install+set}" = set; then :
2694 $as_echo_n "(cached) " >&6
2695else
2696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697for as_dir in $PATH
2698do
2699 IFS=$as_save_IFS
2700 test -z "$as_dir" && as_dir=.
2701 # Account for people who put trailing slashes in PATH elements.
2702case $as_dir/ in #((
2703 ./ | .// | /[cC]/* | \
2704 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2705 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2706 /usr/ucb/* ) ;;
2707 *)
2708 # OSF1 and SCO ODT 3.0 have their own names for install.
2709 # Don't use installbsd from OSF since it installs stuff as root
2710 # by default.
2711 for ac_prog in ginstall scoinst install; do
2712 for ac_exec_ext in '' $ac_executable_extensions; do
2713 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2714 if test $ac_prog = install &&
2715 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2716 # AIX install. It has an incompatible calling convention.
2717 :
2718 elif test $ac_prog = install &&
2719 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2720 # program-specific install script used by HP pwplus--don't use.
2721 :
2722 else
2723 rm -rf conftest.one conftest.two conftest.dir
2724 echo one > conftest.one
2725 echo two > conftest.two
2726 mkdir conftest.dir
2727 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2728 test -s conftest.one && test -s conftest.two &&
2729 test -s conftest.dir/conftest.one &&
2730 test -s conftest.dir/conftest.two
2731 then
2732 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2733 break 3
2734 fi
2735 fi
2736 fi
2737 done
2738 done
2739 ;;
2740esac
2741
2742 done
2743IFS=$as_save_IFS
2744
2745rm -rf conftest.one conftest.two conftest.dir
2746
2747fi
2748 if test "${ac_cv_path_install+set}" = set; then
2749 INSTALL=$ac_cv_path_install
2750 else
2751 # As a last resort, use the slow shell script. Don't cache a
2752 # value for INSTALL within a source directory, because that will
2753 # break other packages using the cache if that directory is
2754 # removed, or if the value is a relative name.
2755 INSTALL=$ac_install_sh
2756 fi
2757fi
2758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2759$as_echo "$INSTALL" >&6; }
2760
2761# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2762# It thinks the first close brace ends the variable substitution.
2763test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2764
2765test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2766
2767test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2768
2769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2770$as_echo_n "checking whether build environment is sane... " >&6; }
2771# Just in case
2772sleep 1
2773echo timestamp > conftest.file
2774# Reject unsafe characters in $srcdir or the absolute working directory
2775# name. Accept space and tab only in the latter.
2776am_lf='
2777'
2778case `pwd` in
2779 *[\\\"\#\$\&\'\`$am_lf]*)
2780 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2781esac
2782case $srcdir in
2783 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2784 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2785esac
2786
2787# Do `set' in a subshell so we don't clobber the current shell's
2788# arguments. Must try -L first in case configure is actually a
2789# symlink; some systems play weird games with the mod time of symlinks
2790# (eg FreeBSD returns the mod time of the symlink's containing
2791# directory).
2792if (
2793 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2794 if test "$*" = "X"; then
2795 # -L didn't work.
2796 set X `ls -t "$srcdir/configure" conftest.file`
2797 fi
2798 rm -f conftest.file
2799 if test "$*" != "X $srcdir/configure conftest.file" \
2800 && test "$*" != "X conftest.file $srcdir/configure"; then
2801
2802 # If neither matched, then we have a broken ls. This can happen
2803 # if, for instance, CONFIG_SHELL is bash and it inherits a
2804 # broken ls alias from the environment. This has actually
2805 # happened. Such a system could not be considered "sane".
2806 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2807alias in your environment" "$LINENO" 5
2808 fi
2809
2810 test "$2" = conftest.file
2811 )
2812then
2813 # Ok.
2814 :
2815else
2816 as_fn_error "newly created file is older than distributed files!
2817Check your system clock" "$LINENO" 5
2818fi
2819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2820$as_echo "yes" >&6; }
2821test "$program_prefix" != NONE &&
2822 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2823# Use a double $ so make ignores it.
2824test "$program_suffix" != NONE &&
2825 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2826# Double any \ or $.
2827# By default was `s,x,x', remove it if useless.
2828ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2829program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2830
2831# expand $ac_aux_dir to an absolute path
2832am_aux_dir=`cd $ac_aux_dir && pwd`
2833
2834if test x"${MISSING+set}" != xset; then
2835 case $am_aux_dir in
2836 *\ * | *\ *)
2837 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2838 *)
2839 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2840 esac
2841fi
2842# Use eval to expand $SHELL
2843if eval "$MISSING --run true"; then
2844 am_missing_run="$MISSING --run "
2845else
2846 am_missing_run=
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2848$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2849fi
2850
2851if test x"${install_sh}" != xset; then
2852 case $am_aux_dir in
2853 *\ * | *\ *)
2854 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2855 *)
2856 install_sh="\${SHELL} $am_aux_dir/install-sh"
2857 esac
2858fi
2859
2860# Installed binaries are usually stripped using `strip' when the user
2861# run `make install-strip'. However `strip' might not be the right
2862# tool to use in cross-compilation environments, therefore Automake
2863# will honor the `STRIP' environment variable to overrule this program.
2864if test "$cross_compiling" != no; then
2865 if test -n "$ac_tool_prefix"; then
2866 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2867set dummy ${ac_tool_prefix}strip; ac_word=$2
2868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2869$as_echo_n "checking for $ac_word... " >&6; }
2870if test "${ac_cv_prog_STRIP+set}" = set; then :
2871 $as_echo_n "(cached) " >&6
2872else
2873 if test -n "$STRIP"; then
2874 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2875else
2876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877for as_dir in $PATH
2878do
2879 IFS=$as_save_IFS
2880 test -z "$as_dir" && as_dir=.
2881 for ac_exec_ext in '' $ac_executable_extensions; do
2882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2883 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2885 break 2
2886 fi
2887done
2888 done
2889IFS=$as_save_IFS
2890
2891fi
2892fi
2893STRIP=$ac_cv_prog_STRIP
2894if test -n "$STRIP"; then
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2896$as_echo "$STRIP" >&6; }
2897else
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2899$as_echo "no" >&6; }
2900fi
2901
2902
2903fi
2904if test -z "$ac_cv_prog_STRIP"; then
2905 ac_ct_STRIP=$STRIP
2906 # Extract the first word of "strip", so it can be a program name with args.
2907set dummy strip; ac_word=$2
2908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2909$as_echo_n "checking for $ac_word... " >&6; }
2910if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2911 $as_echo_n "(cached) " >&6
2912else
2913 if test -n "$ac_ct_STRIP"; then
2914 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2915else
2916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917for as_dir in $PATH
2918do
2919 IFS=$as_save_IFS
2920 test -z "$as_dir" && as_dir=.
2921 for ac_exec_ext in '' $ac_executable_extensions; do
2922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2923 ac_cv_prog_ac_ct_STRIP="strip"
2924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2925 break 2
2926 fi
2927done
2928 done
2929IFS=$as_save_IFS
2930
2931fi
2932fi
2933ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2934if test -n "$ac_ct_STRIP"; then
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2936$as_echo "$ac_ct_STRIP" >&6; }
2937else
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2939$as_echo "no" >&6; }
2940fi
2941
2942 if test "x$ac_ct_STRIP" = x; then
2943 STRIP=":"
2944 else
2945 case $cross_compiling:$ac_tool_warned in
2946yes:)
2947{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2948$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2949ac_tool_warned=yes ;;
2950esac
2951 STRIP=$ac_ct_STRIP
2952 fi
2953else
2954 STRIP="$ac_cv_prog_STRIP"
2955fi
2956
2957fi
2958INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2959
2960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2961$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2962if test -z "$MKDIR_P"; then
2963 if test "${ac_cv_path_mkdir+set}" = set; then :
2964 $as_echo_n "(cached) " >&6
2965else
2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2968do
2969 IFS=$as_save_IFS
2970 test -z "$as_dir" && as_dir=.
2971 for ac_prog in mkdir gmkdir; do
2972 for ac_exec_ext in '' $ac_executable_extensions; do
2973 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2974 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2975 'mkdir (GNU coreutils) '* | \
2976 'mkdir (coreutils) '* | \
2977 'mkdir (fileutils) '4.1*)
2978 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2979 break 3;;
2980 esac
2981 done
2982 done
2983 done
2984IFS=$as_save_IFS
2985
2986fi
2987
2988 if test "${ac_cv_path_mkdir+set}" = set; then
2989 MKDIR_P="$ac_cv_path_mkdir -p"
2990 else
2991 # As a last resort, use the slow shell script. Don't cache a
2992 # value for MKDIR_P within a source directory, because that will
2993 # break other packages using the cache if that directory is
2994 # removed, or if the value is a relative name.
2995 test -d ./--version && rmdir ./--version
2996 MKDIR_P="$ac_install_sh -d"
2997 fi
2998fi
2999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3000$as_echo "$MKDIR_P" >&6; }
3001
3002mkdir_p="$MKDIR_P"
3003case $mkdir_p in
3004 [\\/$]* | ?:[\\/]*) ;;
3005 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3006esac
3007
3008for ac_prog in gawk mawk nawk awk
3009do
3010 # Extract the first word of "$ac_prog", so it can be a program name with args.
3011set dummy $ac_prog; ac_word=$2
3012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3013$as_echo_n "checking for $ac_word... " >&6; }
3014if test "${ac_cv_prog_AWK+set}" = set; then :
3015 $as_echo_n "(cached) " >&6
3016else
3017 if test -n "$AWK"; then
3018 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3019else
3020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021for as_dir in $PATH
3022do
3023 IFS=$as_save_IFS
3024 test -z "$as_dir" && as_dir=.
3025 for ac_exec_ext in '' $ac_executable_extensions; do
3026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3027 ac_cv_prog_AWK="$ac_prog"
3028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3029 break 2
3030 fi
3031done
3032 done
3033IFS=$as_save_IFS
3034
3035fi
3036fi
3037AWK=$ac_cv_prog_AWK
3038if test -n "$AWK"; then
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3040$as_echo "$AWK" >&6; }
3041else
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3043$as_echo "no" >&6; }
3044fi
3045
3046
3047 test -n "$AWK" && break
3048done
3049
3050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3051$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3052set x ${MAKE-make}
3053ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3054if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3055 $as_echo_n "(cached) " >&6
3056else
3057 cat >conftest.make <<\_ACEOF
3058SHELL = /bin/sh
3059all:
3060 @echo '@@@%%%=$(MAKE)=@@@%%%'
3061_ACEOF
3062# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3063case `${MAKE-make} -f conftest.make 2>/dev/null` in
3064 *@@@%%%=?*=@@@%%%*)
3065 eval ac_cv_prog_make_${ac_make}_set=yes;;
3066 *)
3067 eval ac_cv_prog_make_${ac_make}_set=no;;
3068esac
3069rm -f conftest.make
3070fi
3071if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3073$as_echo "yes" >&6; }
3074 SET_MAKE=
3075else
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077$as_echo "no" >&6; }
3078 SET_MAKE="MAKE=${MAKE-make}"
3079fi
3080
3081rm -rf .tst 2>/dev/null
3082mkdir .tst 2>/dev/null
3083if test -d .tst; then
3084 am__leading_dot=.
3085else
3086 am__leading_dot=_
3087fi
3088rmdir .tst 2>/dev/null
3089
3090if test "`cd $srcdir && pwd`" != "`pwd`"; then
3091 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3092 # is not polluted with repeated "-I."
3093 am__isrc=' -I$(srcdir)'
3094 # test to see if srcdir already configured
3095 if test -f $srcdir/config.status; then
3096 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3097 fi
3098fi
3099
3100# test whether we have cygpath
3101if test -z "$CYGPATH_W"; then
3102 if (cygpath --version) >/dev/null 2>/dev/null; then
3103 CYGPATH_W='cygpath -w'
3104 else
3105 CYGPATH_W=echo
3106 fi
3107fi
3108
3109
3110# Define the identity of the package.
3111 PACKAGE='libgo'
3112 VERSION='version-unused'
3113
3114
3115# Some tools Automake needs.
3116
3117ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3118
3119
3120AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3121
3122
3123AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3124
3125
3126AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3127
3128
3129MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3130
3131# We need awk for the "check" target. The system "awk" is bad on
3132# some platforms.
44c925bd
ILT
3133# Always define AMTAR for backward compatibility. Yes, it's still used
3134# in the wild :-( We should find a proper way to deprecate it ...
3135AMTAR='$${TAR-tar}'
7a938933 3136
44c925bd 3137am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
7a938933
ILT
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148ac_ext=c
3149ac_cpp='$CPP $CPPFLAGS'
3150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3152ac_compiler_gnu=$ac_cv_c_compiler_gnu
3153if test -n "$ac_tool_prefix"; then
3154 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3155set dummy ${ac_tool_prefix}gcc; ac_word=$2
3156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157$as_echo_n "checking for $ac_word... " >&6; }
3158if test "${ac_cv_prog_CC+set}" = set; then :
3159 $as_echo_n "(cached) " >&6
3160else
3161 if test -n "$CC"; then
3162 ac_cv_prog_CC="$CC" # Let the user override the test.
3163else
3164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165for as_dir in $PATH
3166do
3167 IFS=$as_save_IFS
3168 test -z "$as_dir" && as_dir=.
3169 for ac_exec_ext in '' $ac_executable_extensions; do
3170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3171 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3173 break 2
3174 fi
3175done
3176 done
3177IFS=$as_save_IFS
3178
3179fi
3180fi
3181CC=$ac_cv_prog_CC
3182if test -n "$CC"; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3184$as_echo "$CC" >&6; }
3185else
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187$as_echo "no" >&6; }
3188fi
3189
3190
3191fi
3192if test -z "$ac_cv_prog_CC"; then
3193 ac_ct_CC=$CC
3194 # Extract the first word of "gcc", so it can be a program name with args.
3195set dummy gcc; ac_word=$2
3196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3197$as_echo_n "checking for $ac_word... " >&6; }
3198if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3199 $as_echo_n "(cached) " >&6
3200else
3201 if test -n "$ac_ct_CC"; then
3202 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3203else
3204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3205for as_dir in $PATH
3206do
3207 IFS=$as_save_IFS
3208 test -z "$as_dir" && as_dir=.
3209 for ac_exec_ext in '' $ac_executable_extensions; do
3210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3211 ac_cv_prog_ac_ct_CC="gcc"
3212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3213 break 2
3214 fi
3215done
3216 done
3217IFS=$as_save_IFS
3218
3219fi
3220fi
3221ac_ct_CC=$ac_cv_prog_ac_ct_CC
3222if test -n "$ac_ct_CC"; then
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3224$as_echo "$ac_ct_CC" >&6; }
3225else
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227$as_echo "no" >&6; }
3228fi
3229
3230 if test "x$ac_ct_CC" = x; then
3231 CC=""
3232 else
3233 case $cross_compiling:$ac_tool_warned in
3234yes:)
3235{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3236$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3237ac_tool_warned=yes ;;
3238esac
3239 CC=$ac_ct_CC
3240 fi
3241else
3242 CC="$ac_cv_prog_CC"
3243fi
3244
3245if test -z "$CC"; then
3246 if test -n "$ac_tool_prefix"; then
3247 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3248set dummy ${ac_tool_prefix}cc; ac_word=$2
3249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3250$as_echo_n "checking for $ac_word... " >&6; }
3251if test "${ac_cv_prog_CC+set}" = set; then :
3252 $as_echo_n "(cached) " >&6
3253else
3254 if test -n "$CC"; then
3255 ac_cv_prog_CC="$CC" # Let the user override the test.
3256else
3257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3258for as_dir in $PATH
3259do
3260 IFS=$as_save_IFS
3261 test -z "$as_dir" && as_dir=.
3262 for ac_exec_ext in '' $ac_executable_extensions; do
3263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3264 ac_cv_prog_CC="${ac_tool_prefix}cc"
3265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3266 break 2
3267 fi
3268done
3269 done
3270IFS=$as_save_IFS
3271
3272fi
3273fi
3274CC=$ac_cv_prog_CC
3275if test -n "$CC"; then
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3277$as_echo "$CC" >&6; }
3278else
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280$as_echo "no" >&6; }
3281fi
3282
3283
3284 fi
3285fi
3286if test -z "$CC"; then
3287 # Extract the first word of "cc", so it can be a program name with args.
3288set dummy cc; ac_word=$2
3289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3290$as_echo_n "checking for $ac_word... " >&6; }
3291if test "${ac_cv_prog_CC+set}" = set; then :
3292 $as_echo_n "(cached) " >&6
3293else
3294 if test -n "$CC"; then
3295 ac_cv_prog_CC="$CC" # Let the user override the test.
3296else
3297 ac_prog_rejected=no
3298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299for as_dir in $PATH
3300do
3301 IFS=$as_save_IFS
3302 test -z "$as_dir" && as_dir=.
3303 for ac_exec_ext in '' $ac_executable_extensions; do
3304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3305 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3306 ac_prog_rejected=yes
3307 continue
3308 fi
3309 ac_cv_prog_CC="cc"
3310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3311 break 2
3312 fi
3313done
3314 done
3315IFS=$as_save_IFS
3316
3317if test $ac_prog_rejected = yes; then
3318 # We found a bogon in the path, so make sure we never use it.
3319 set dummy $ac_cv_prog_CC
3320 shift
3321 if test $# != 0; then
3322 # We chose a different compiler from the bogus one.
3323 # However, it has the same basename, so the bogon will be chosen
3324 # first if we set CC to just the basename; use the full file name.
3325 shift
3326 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3327 fi
3328fi
3329fi
3330fi
3331CC=$ac_cv_prog_CC
3332if test -n "$CC"; then
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3334$as_echo "$CC" >&6; }
3335else
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337$as_echo "no" >&6; }
3338fi
3339
3340
3341fi
3342if test -z "$CC"; then
3343 if test -n "$ac_tool_prefix"; then
3344 for ac_prog in cl.exe
3345 do
3346 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3347set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3349$as_echo_n "checking for $ac_word... " >&6; }
3350if test "${ac_cv_prog_CC+set}" = set; then :
3351 $as_echo_n "(cached) " >&6
3352else
3353 if test -n "$CC"; then
3354 ac_cv_prog_CC="$CC" # Let the user override the test.
3355else
3356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357for as_dir in $PATH
3358do
3359 IFS=$as_save_IFS
3360 test -z "$as_dir" && as_dir=.
3361 for ac_exec_ext in '' $ac_executable_extensions; do
3362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3363 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3365 break 2
3366 fi
3367done
3368 done
3369IFS=$as_save_IFS
3370
3371fi
3372fi
3373CC=$ac_cv_prog_CC
3374if test -n "$CC"; then
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3376$as_echo "$CC" >&6; }
3377else
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3379$as_echo "no" >&6; }
3380fi
3381
3382
3383 test -n "$CC" && break
3384 done
3385fi
3386if test -z "$CC"; then
3387 ac_ct_CC=$CC
3388 for ac_prog in cl.exe
3389do
3390 # Extract the first word of "$ac_prog", so it can be a program name with args.
3391set dummy $ac_prog; ac_word=$2
3392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3393$as_echo_n "checking for $ac_word... " >&6; }
3394if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3395 $as_echo_n "(cached) " >&6
3396else
3397 if test -n "$ac_ct_CC"; then
3398 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3399else
3400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401for as_dir in $PATH
3402do
3403 IFS=$as_save_IFS
3404 test -z "$as_dir" && as_dir=.
3405 for ac_exec_ext in '' $ac_executable_extensions; do
3406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3407 ac_cv_prog_ac_ct_CC="$ac_prog"
3408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3409 break 2
3410 fi
3411done
3412 done
3413IFS=$as_save_IFS
3414
3415fi
3416fi
3417ac_ct_CC=$ac_cv_prog_ac_ct_CC
3418if test -n "$ac_ct_CC"; then
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3420$as_echo "$ac_ct_CC" >&6; }
3421else
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3423$as_echo "no" >&6; }
3424fi
3425
3426
3427 test -n "$ac_ct_CC" && break
3428done
3429
3430 if test "x$ac_ct_CC" = x; then
3431 CC=""
3432 else
3433 case $cross_compiling:$ac_tool_warned in
3434yes:)
3435{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3436$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3437ac_tool_warned=yes ;;
3438esac
3439 CC=$ac_ct_CC
3440 fi
3441fi
3442
3443fi
3444
3445
3446test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3447$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3448as_fn_error "no acceptable C compiler found in \$PATH
3449See \`config.log' for more details." "$LINENO" 5; }
3450
3451# Provide some information about the compiler.
3452$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3453set X $ac_compile
3454ac_compiler=$2
3455for ac_option in --version -v -V -qversion; do
3456 { { ac_try="$ac_compiler $ac_option >&5"
3457case "(($ac_try" in
3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459 *) ac_try_echo=$ac_try;;
3460esac
3461eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3462$as_echo "$ac_try_echo"; } >&5
3463 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3464 ac_status=$?
3465 if test -s conftest.err; then
3466 sed '10a\
3467... rest of stderr output deleted ...
3468 10q' conftest.err >conftest.er1
3469 cat conftest.er1 >&5
3470 rm -f conftest.er1 conftest.err
3471 fi
3472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3473 test $ac_status = 0; }
3474done
3475
3476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477/* end confdefs.h. */
54f0deb0 3478
7a938933
ILT
3479int
3480main ()
3481{
3482
3483 ;
3484 return 0;
3485}
3486_ACEOF
3487ac_clean_files_save=$ac_clean_files
3488ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3489# Try to create an executable without -o first, disregard a.out.
3490# It will help us diagnose broken compilers, and finding out an intuition
3491# of exeext.
3492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3493$as_echo_n "checking for C compiler default output file name... " >&6; }
3494ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3495
3496# The possible output files:
3497ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3498
3499ac_rmfiles=
3500for ac_file in $ac_files
3501do
3502 case $ac_file in
3503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3504 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3505 esac
3506done
3507rm -f $ac_rmfiles
3508
3509if { { ac_try="$ac_link_default"
3510case "(($ac_try" in
3511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3512 *) ac_try_echo=$ac_try;;
3513esac
3514eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3515$as_echo "$ac_try_echo"; } >&5
3516 (eval "$ac_link_default") 2>&5
3517 ac_status=$?
3518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3519 test $ac_status = 0; }; then :
3520 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3521# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3522# in a Makefile. We should not override ac_cv_exeext if it was cached,
3523# so that the user can short-circuit this test for compilers unknown to
3524# Autoconf.
3525for ac_file in $ac_files ''
3526do
3527 test -f "$ac_file" || continue
3528 case $ac_file in
3529 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3530 ;;
3531 [ab].out )
3532 # We found the default executable, but exeext='' is most
3533 # certainly right.
3534 break;;
3535 *.* )
3536 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3537 then :; else
3538 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3539 fi
3540 # We set ac_cv_exeext here because the later test for it is not
3541 # safe: cross compilers may not add the suffix if given an `-o'
3542 # argument, so we may need to know it at that point already.
3543 # Even if this section looks crufty: it has the advantage of
3544 # actually working.
3545 break;;
3546 * )
3547 break;;
3548 esac
3549done
3550test "$ac_cv_exeext" = no && ac_cv_exeext=
3551
3552else
3553 ac_file=''
3554fi
3555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3556$as_echo "$ac_file" >&6; }
3557if test -z "$ac_file"; then :
3558 $as_echo "$as_me: failed program was:" >&5
3559sed 's/^/| /' conftest.$ac_ext >&5
3560
3561{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3562$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3563{ as_fn_set_status 77
3564as_fn_error "C compiler cannot create executables
3565See \`config.log' for more details." "$LINENO" 5; }; }
3566fi
3567ac_exeext=$ac_cv_exeext
3568
3569# Check that the compiler produces executables we can run. If not, either
3570# the compiler is broken, or we cross compile.
3571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3572$as_echo_n "checking whether the C compiler works... " >&6; }
3573# If not cross compiling, check that we can run a simple program.
3574if test "$cross_compiling" != yes; then
3575 if { ac_try='./$ac_file'
3576 { { case "(($ac_try" in
3577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578 *) ac_try_echo=$ac_try;;
3579esac
3580eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3581$as_echo "$ac_try_echo"; } >&5
3582 (eval "$ac_try") 2>&5
3583 ac_status=$?
3584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3585 test $ac_status = 0; }; }; then
3586 cross_compiling=no
3587 else
3588 if test "$cross_compiling" = maybe; then
3589 cross_compiling=yes
3590 else
3591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3592$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3593as_fn_error "cannot run C compiled programs.
3594If you meant to cross compile, use \`--host'.
3595See \`config.log' for more details." "$LINENO" 5; }
3596 fi
3597 fi
3598fi
3599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3600$as_echo "yes" >&6; }
3601
3602rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3603ac_clean_files=$ac_clean_files_save
3604# Check that the compiler produces executables we can run. If not, either
3605# the compiler is broken, or we cross compile.
3606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3607$as_echo_n "checking whether we are cross compiling... " >&6; }
3608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3609$as_echo "$cross_compiling" >&6; }
3610
3611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3612$as_echo_n "checking for suffix of executables... " >&6; }
3613if { { ac_try="$ac_link"
3614case "(($ac_try" in
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3617esac
3618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3619$as_echo "$ac_try_echo"; } >&5
3620 (eval "$ac_link") 2>&5
3621 ac_status=$?
3622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3623 test $ac_status = 0; }; then :
3624 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3625# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3626# work properly (i.e., refer to `conftest.exe'), while it won't with
3627# `rm'.
3628for ac_file in conftest.exe conftest conftest.*; do
3629 test -f "$ac_file" || continue
3630 case $ac_file in
3631 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3632 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3633 break;;
3634 * ) break;;
3635 esac
3636done
3637else
3638 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3639$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3640as_fn_error "cannot compute suffix of executables: cannot compile and link
3641See \`config.log' for more details." "$LINENO" 5; }
3642fi
3643rm -f conftest$ac_cv_exeext
3644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3645$as_echo "$ac_cv_exeext" >&6; }
3646
3647rm -f conftest.$ac_ext
3648EXEEXT=$ac_cv_exeext
3649ac_exeext=$EXEEXT
3650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3651$as_echo_n "checking for suffix of object files... " >&6; }
3652if test "${ac_cv_objext+set}" = set; then :
3653 $as_echo_n "(cached) " >&6
3654else
3655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656/* end confdefs.h. */
3657
3658int
3659main ()
3660{
3661
3662 ;
3663 return 0;
3664}
3665_ACEOF
3666rm -f conftest.o conftest.obj
3667if { { ac_try="$ac_compile"
3668case "(($ac_try" in
3669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670 *) ac_try_echo=$ac_try;;
3671esac
3672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3673$as_echo "$ac_try_echo"; } >&5
3674 (eval "$ac_compile") 2>&5
3675 ac_status=$?
3676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3677 test $ac_status = 0; }; then :
3678 for ac_file in conftest.o conftest.obj conftest.*; do
3679 test -f "$ac_file" || continue;
3680 case $ac_file in
3681 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3682 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3683 break;;
3684 esac
3685done
3686else
3687 $as_echo "$as_me: failed program was:" >&5
3688sed 's/^/| /' conftest.$ac_ext >&5
3689
3690{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3691$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3692as_fn_error "cannot compute suffix of object files: cannot compile
3693See \`config.log' for more details." "$LINENO" 5; }
3694fi
3695rm -f conftest.$ac_cv_objext conftest.$ac_ext
3696fi
3697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3698$as_echo "$ac_cv_objext" >&6; }
3699OBJEXT=$ac_cv_objext
3700ac_objext=$OBJEXT
3701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3702$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3703if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3704 $as_echo_n "(cached) " >&6
3705else
3706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3707/* end confdefs.h. */
3708
3709int
3710main ()
3711{
3712#ifndef __GNUC__
3713 choke me
3714#endif
3715
3716 ;
3717 return 0;
3718}
3719_ACEOF
3720if ac_fn_c_try_compile "$LINENO"; then :
3721 ac_compiler_gnu=yes
3722else
3723 ac_compiler_gnu=no
3724fi
3725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3726ac_cv_c_compiler_gnu=$ac_compiler_gnu
3727
3728fi
3729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3730$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3731if test $ac_compiler_gnu = yes; then
3732 GCC=yes
3733else
3734 GCC=
3735fi
3736ac_test_CFLAGS=${CFLAGS+set}
3737ac_save_CFLAGS=$CFLAGS
3738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3739$as_echo_n "checking whether $CC accepts -g... " >&6; }
3740if test "${ac_cv_prog_cc_g+set}" = set; then :
3741 $as_echo_n "(cached) " >&6
3742else
3743 ac_save_c_werror_flag=$ac_c_werror_flag
3744 ac_c_werror_flag=yes
3745 ac_cv_prog_cc_g=no
3746 CFLAGS="-g"
3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748/* end confdefs.h. */
3749
3750int
3751main ()
3752{
3753
3754 ;
3755 return 0;
3756}
3757_ACEOF
3758if ac_fn_c_try_compile "$LINENO"; then :
3759 ac_cv_prog_cc_g=yes
3760else
3761 CFLAGS=""
3762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763/* end confdefs.h. */
3764
3765int
3766main ()
3767{
3768
3769 ;
3770 return 0;
3771}
3772_ACEOF
3773if ac_fn_c_try_compile "$LINENO"; then :
3774
3775else
3776 ac_c_werror_flag=$ac_save_c_werror_flag
3777 CFLAGS="-g"
3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779/* end confdefs.h. */
3780
3781int
3782main ()
3783{
3784
3785 ;
3786 return 0;
3787}
3788_ACEOF
3789if ac_fn_c_try_compile "$LINENO"; then :
3790 ac_cv_prog_cc_g=yes
3791fi
3792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3793fi
3794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3795fi
3796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3797 ac_c_werror_flag=$ac_save_c_werror_flag
3798fi
3799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3800$as_echo "$ac_cv_prog_cc_g" >&6; }
3801if test "$ac_test_CFLAGS" = set; then
3802 CFLAGS=$ac_save_CFLAGS
3803elif test $ac_cv_prog_cc_g = yes; then
3804 if test "$GCC" = yes; then
3805 CFLAGS="-g -O2"
3806 else
3807 CFLAGS="-g"
3808 fi
3809else
3810 if test "$GCC" = yes; then
3811 CFLAGS="-O2"
3812 else
3813 CFLAGS=
3814 fi
3815fi
3816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3817$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3818if test "${ac_cv_prog_cc_c89+set}" = set; then :
3819 $as_echo_n "(cached) " >&6
3820else
3821 ac_cv_prog_cc_c89=no
3822ac_save_CC=$CC
3823cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3824/* end confdefs.h. */
3825#include <stdarg.h>
3826#include <stdio.h>
3827#include <sys/types.h>
3828#include <sys/stat.h>
3829/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3830struct buf { int x; };
3831FILE * (*rcsopen) (struct buf *, struct stat *, int);
3832static char *e (p, i)
3833 char **p;
3834 int i;
3835{
3836 return p[i];
3837}
3838static char *f (char * (*g) (char **, int), char **p, ...)
3839{
3840 char *s;
3841 va_list v;
3842 va_start (v,p);
3843 s = g (p, va_arg (v,int));
3844 va_end (v);
3845 return s;
3846}
3847
3848/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3849 function prototypes and stuff, but not '\xHH' hex character constants.
3850 These don't provoke an error unfortunately, instead are silently treated
3851 as 'x'. The following induces an error, until -std is added to get
3852 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3853 array size at least. It's necessary to write '\x00'==0 to get something
3854 that's true only with -std. */
3855int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3856
3857/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3858 inside strings and character constants. */
3859#define FOO(x) 'x'
3860int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3861
3862int test (int i, double x);
3863struct s1 {int (*f) (int a);};
3864struct s2 {int (*f) (double a);};
3865int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3866int argc;
3867char **argv;
3868int
3869main ()
3870{
3871return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3872 ;
3873 return 0;
3874}
3875_ACEOF
3876for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3877 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3878do
3879 CC="$ac_save_CC $ac_arg"
3880 if ac_fn_c_try_compile "$LINENO"; then :
3881 ac_cv_prog_cc_c89=$ac_arg
3882fi
3883rm -f core conftest.err conftest.$ac_objext
3884 test "x$ac_cv_prog_cc_c89" != "xno" && break
3885done
3886rm -f conftest.$ac_ext
3887CC=$ac_save_CC
3888
3889fi
3890# AC_CACHE_VAL
3891case "x$ac_cv_prog_cc_c89" in
3892 x)
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3894$as_echo "none needed" >&6; } ;;
3895 xno)
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3897$as_echo "unsupported" >&6; } ;;
3898 *)
3899 CC="$CC $ac_cv_prog_cc_c89"
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3901$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3902esac
3903if test "x$ac_cv_prog_cc_c89" != xno; then :
3904
3905fi
3906
3907ac_ext=c
3908ac_cpp='$CPP $CPPFLAGS'
3909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3911ac_compiler_gnu=$ac_cv_c_compiler_gnu
3912DEPDIR="${am__leading_dot}deps"
3913
3914ac_config_commands="$ac_config_commands depfiles"
3915
3916
3917am_make=${MAKE-make}
3918cat > confinc << 'END'
3919am__doit:
3920 @echo this is the am__doit target
3921.PHONY: am__doit
3922END
3923# If we don't find an include directive, just comment out the code.
3924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3925$as_echo_n "checking for style of include used by $am_make... " >&6; }
3926am__include="#"
3927am__quote=
3928_am_result=none
3929# First try GNU make style include.
3930echo "include confinc" > confmf
3931# Ignore all kinds of additional output from `make'.
3932case `$am_make -s -f confmf 2> /dev/null` in #(
3933*the\ am__doit\ target*)
3934 am__include=include
3935 am__quote=
3936 _am_result=GNU
3937 ;;
3938esac
3939# Now try BSD make style include.
3940if test "$am__include" = "#"; then
3941 echo '.include "confinc"' > confmf
3942 case `$am_make -s -f confmf 2> /dev/null` in #(
3943 *the\ am__doit\ target*)
3944 am__include=.include
3945 am__quote="\""
3946 _am_result=BSD
3947 ;;
3948 esac
3949fi
3950
3951
3952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3953$as_echo "$_am_result" >&6; }
3954rm -f confinc confmf
3955
3956# Check whether --enable-dependency-tracking was given.
3957if test "${enable_dependency_tracking+set}" = set; then :
3958 enableval=$enable_dependency_tracking;
3959fi
3960
3961if test "x$enable_dependency_tracking" != xno; then
3962 am_depcomp="$ac_aux_dir/depcomp"
3963 AMDEPBACKSLASH='\'
44c925bd 3964 am__nodep='_no'
7a938933
ILT
3965fi
3966 if test "x$enable_dependency_tracking" != xno; then
3967 AMDEP_TRUE=
3968 AMDEP_FALSE='#'
3969else
3970 AMDEP_TRUE='#'
3971 AMDEP_FALSE=
3972fi
3973
3974
3975
3976depcc="$CC" am_compiler_list=
3977
3978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3979$as_echo_n "checking dependency style of $depcc... " >&6; }
3980if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3981 $as_echo_n "(cached) " >&6
3982else
3983 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3984 # We make a subdir and do the tests there. Otherwise we can end up
3985 # making bogus files that we don't know about and never remove. For
3986 # instance it was reported that on HP-UX the gcc test will end up
3987 # making a dummy file named `D' -- because `-MD' means `put the output
3988 # in D'.
44c925bd 3989 rm -rf conftest.dir
7a938933
ILT
3990 mkdir conftest.dir
3991 # Copy depcomp to subdir because otherwise we won't find it if we're
3992 # using a relative directory.
3993 cp "$am_depcomp" conftest.dir
3994 cd conftest.dir
3995 # We will build objects and dependencies in a subdirectory because
3996 # it helps to detect inapplicable dependency modes. For instance
3997 # both Tru64's cc and ICC support -MD to output dependencies as a
3998 # side effect of compilation, but ICC will put the dependencies in
3999 # the current directory while Tru64 will put them in the object
4000 # directory.
4001 mkdir sub
4002
4003 am_cv_CC_dependencies_compiler_type=none
4004 if test "$am_compiler_list" = ""; then
4005 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4006 fi
4007 am__universal=false
4008 case " $depcc " in #(
4009 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4010 esac
4011
4012 for depmode in $am_compiler_list; do
4013 # Setup a source with many dependencies, because some compilers
4014 # like to wrap large dependency lists on column 80 (with \), and
4015 # we should not choose a depcomp mode which is confused by this.
4016 #
4017 # We need to recreate these files for each test, as the compiler may
4018 # overwrite some of them when testing with obscure command lines.
4019 # This happens at least with the AIX C compiler.
4020 : > sub/conftest.c
4021 for i in 1 2 3 4 5 6; do
4022 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4023 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4024 # Solaris 8's {/usr,}/bin/sh.
4025 touch sub/conftst$i.h
4026 done
4027 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4028
4029 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4030 # mode. It turns out that the SunPro C++ compiler does not properly
4031 # handle `-M -o', and we need to detect this. Also, some Intel
4032 # versions had trouble with output in subdirs
4033 am__obj=sub/conftest.${OBJEXT-o}
4034 am__minus_obj="-o $am__obj"
4035 case $depmode in
4036 gcc)
4037 # This depmode causes a compiler race in universal mode.
4038 test "$am__universal" = false || continue
4039 ;;
4040 nosideeffect)
4041 # after this tag, mechanisms are not by side-effect, so they'll
4042 # only be used when explicitly requested
4043 if test "x$enable_dependency_tracking" = xyes; then
4044 continue
4045 else
4046 break
4047 fi
4048 ;;
44c925bd 4049 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7a938933
ILT
4050 # This compiler won't grok `-c -o', but also, the minuso test has
4051 # not run yet. These depmodes are late enough in the game, and
4052 # so weak that their functioning should not be impacted.
4053 am__obj=conftest.${OBJEXT-o}
4054 am__minus_obj=
4055 ;;
4056 none) break ;;
4057 esac
4058 if depmode=$depmode \
4059 source=sub/conftest.c object=$am__obj \
4060 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4061 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4062 >/dev/null 2>conftest.err &&
4063 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4064 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4065 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4066 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4067 # icc doesn't choke on unknown options, it will just issue warnings
4068 # or remarks (even with -Werror). So we grep stderr for any message
4069 # that says an option was ignored or not supported.
4070 # When given -MP, icc 7.0 and 7.1 complain thusly:
4071 # icc: Command line warning: ignoring option '-M'; no argument required
4072 # The diagnosis changed in icc 8.0:
4073 # icc: Command line remark: option '-MP' not supported
4074 if (grep 'ignoring option' conftest.err ||
4075 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4076 am_cv_CC_dependencies_compiler_type=$depmode
4077 break
4078 fi
4079 fi
4080 done
4081
4082 cd ..
4083 rm -rf conftest.dir
4084else
4085 am_cv_CC_dependencies_compiler_type=none
4086fi
4087
4088fi
4089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4090$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4091CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4092
4093 if
4094 test "x$enable_dependency_tracking" != xno \
4095 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4096 am__fastdepCC_TRUE=
4097 am__fastdepCC_FALSE='#'
4098else
4099 am__fastdepCC_TRUE='#'
4100 am__fastdepCC_FALSE=
4101fi
4102
4103
4104ac_ext=go
4105ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
4106ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4107ac_compile_gnu=yes
4108if test -n "$ac_tool_prefix"; then
4109 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4110set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4112$as_echo_n "checking for $ac_word... " >&6; }
4113if test "${ac_cv_prog_GOC+set}" = set; then :
4114 $as_echo_n "(cached) " >&6
4115else
4116 if test -n "$GOC"; then
4117 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4118else
4119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120for as_dir in $PATH
4121do
4122 IFS=$as_save_IFS
4123 test -z "$as_dir" && as_dir=.
4124 for ac_exec_ext in '' $ac_executable_extensions; do
4125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4126 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4128 break 2
4129 fi
4130done
4131 done
4132IFS=$as_save_IFS
4133
4134fi
4135fi
4136GOC=$ac_cv_prog_GOC
4137if test -n "$GOC"; then
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4139$as_echo "$GOC" >&6; }
4140else
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4142$as_echo "no" >&6; }
4143fi
4144
4145
4146fi
4147if test -z "$ac_cv_prog_GOC"; then
4148 ac_ct_GOC=$GOC
4149 # Extract the first word of "gccgo", so it can be a program name with args.
4150set dummy gccgo; ac_word=$2
4151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4152$as_echo_n "checking for $ac_word... " >&6; }
4153if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
4154 $as_echo_n "(cached) " >&6
4155else
4156 if test -n "$ac_ct_GOC"; then
4157 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4158else
4159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160for as_dir in $PATH
4161do
4162 IFS=$as_save_IFS
4163 test -z "$as_dir" && as_dir=.
4164 for ac_exec_ext in '' $ac_executable_extensions; do
4165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4166 ac_cv_prog_ac_ct_GOC="gccgo"
4167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4168 break 2
4169 fi
4170done
4171 done
4172IFS=$as_save_IFS
4173
4174fi
4175fi
4176ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4177if test -n "$ac_ct_GOC"; then
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4179$as_echo "$ac_ct_GOC" >&6; }
4180else
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4182$as_echo "no" >&6; }
4183fi
4184
4185 if test "x$ac_ct_GOC" = x; then
4186 GOC=""
4187 else
4188 case $cross_compiling:$ac_tool_warned in
4189yes:)
4190{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4191$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4192ac_tool_warned=yes ;;
4193esac
4194 GOC=$ac_ct_GOC
4195 fi
4196else
4197 GOC="$ac_cv_prog_GOC"
4198fi
4199
4200if test -z "$GOC"; then
4201 if test -n "$ac_tool_prefix"; then
4202 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4203set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4205$as_echo_n "checking for $ac_word... " >&6; }
4206if test "${ac_cv_prog_GOC+set}" = set; then :
4207 $as_echo_n "(cached) " >&6
4208else
4209 if test -n "$GOC"; then
4210 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4211else
4212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213for as_dir in $PATH
4214do
4215 IFS=$as_save_IFS
4216 test -z "$as_dir" && as_dir=.
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4219 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4221 break 2
4222 fi
4223done
4224 done
4225IFS=$as_save_IFS
4226
4227fi
4228fi
4229GOC=$ac_cv_prog_GOC
4230if test -n "$GOC"; then
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4232$as_echo "$GOC" >&6; }
4233else
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4235$as_echo "no" >&6; }
4236fi
4237
4238
4239 fi
4240fi
4241if test -z "$GOC"; then
4242 # Extract the first word of "gccgo", so it can be a program name with args.
4243set dummy gccgo; ac_word=$2
4244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245$as_echo_n "checking for $ac_word... " >&6; }
4246if test "${ac_cv_prog_GOC+set}" = set; then :
4247 $as_echo_n "(cached) " >&6
4248else
4249 if test -n "$GOC"; then
4250 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4251else
4252 ac_prog_rejected=no
4253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254for as_dir in $PATH
4255do
4256 IFS=$as_save_IFS
4257 test -z "$as_dir" && as_dir=.
4258 for ac_exec_ext in '' $ac_executable_extensions; do
4259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4260 if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4261 ac_prog_rejected=yes
4262 continue
4263 fi
4264 ac_cv_prog_GOC="gccgo"
4265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4266 break 2
4267 fi
4268done
4269 done
4270IFS=$as_save_IFS
4271
4272if test $ac_prog_rejected = yes; then
4273 # We found a bogon in the path, so make sure we never use it.
4274 set dummy $ac_cv_prog_GOC
4275 shift
4276 if test $# != 0; then
4277 # We chose a different compiler from the bogus one.
4278 # However, it has the same basename, so the bogon will be chosen
4279 # first if we set GOC to just the basename; use the full file name.
4280 shift
4281 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4282 fi
4283fi
4284fi
4285fi
4286GOC=$ac_cv_prog_GOC
4287if test -n "$GOC"; then
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4289$as_echo "$GOC" >&6; }
4290else
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4292$as_echo "no" >&6; }
4293fi
4294
4295
4296fi
4297
4298
4299# Provide some information about the compiler.
4300$as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4301set X $ac_compile
4302ac_compiler=$2
4303{ { ac_try="$ac_compiler --version >&5"
4304case "(($ac_try" in
4305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4306 *) ac_try_echo=$ac_try;;
4307esac
4308eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4309$as_echo "$ac_try_echo"; } >&5
4310 (eval "$ac_compiler --version >&5") 2>conftest.err
4311 ac_status=$?
4312 if test -s conftest.err; then
4313 sed '10a\
4314... rest of stderr output deleted ...
4315 10q' conftest.err >conftest.er1
4316 cat conftest.er1 >&5
4317 rm -f conftest.er1 conftest.err
4318 fi
4319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4320 test $ac_status = 0; }
4321GOCFLAGS="-g -O2"
4322ac_ext=c
4323ac_cpp='$CPP $CPPFLAGS'
4324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4326ac_compiler_gnu=$ac_cv_c_compiler_gnu
4327
4328
4329
4330
4331
f163907e
ILT
4332case ${host} in
4333 *-*-aix*)
4334 # static hash tables crashes on AIX when libgo is built with O2
4335 CFLAGS="$CFLAGS -fno-section-anchors"
4336 GOCFLAGS="$GOCFLAGS -fno-section-anchors"
4337 ;;
4338esac
4339
7a938933
ILT
4340
4341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4342$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4343 # Check whether --enable-maintainer-mode was given.
4344if test "${enable_maintainer_mode+set}" = set; then :
4345 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4346else
4347 USE_MAINTAINER_MODE=no
4348fi
4349
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4351$as_echo "$USE_MAINTAINER_MODE" >&6; }
4352 if test $USE_MAINTAINER_MODE = yes; then
4353 MAINTAINER_MODE_TRUE=
4354 MAINTAINER_MODE_FALSE='#'
4355else
4356 MAINTAINER_MODE_TRUE='#'
4357 MAINTAINER_MODE_FALSE=
4358fi
4359
4360 MAINT=$MAINTAINER_MODE_TRUE
4361
4362
4363
061793a4
ILT
4364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4365$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4366if test "${ac_cv_path_SED+set}" = set; then :
7a938933
ILT
4367 $as_echo_n "(cached) " >&6
4368else
061793a4
ILT
4369 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4370 for ac_i in 1 2 3 4 5 6 7; do
4371 ac_script="$ac_script$as_nl$ac_script"
4372 done
4373 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4374 { ac_script=; unset ac_script;}
4375 if test -z "$SED"; then
4376 ac_path_SED_found=false
4377 # Loop through the user's path and test for each of PROGNAME-LIST
4378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379for as_dir in $PATH
7a938933 4380do
061793a4
ILT
4381 IFS=$as_save_IFS
4382 test -z "$as_dir" && as_dir=.
4383 for ac_prog in sed gsed; do
4384 for ac_exec_ext in '' $ac_executable_extensions; do
4385 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4386 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4387# Check for GNU ac_path_SED and select it if it is found.
4388 # Check for GNU $ac_path_SED
4389case `"$ac_path_SED" --version 2>&1` in
4390*GNU*)
4391 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4392*)
4393 ac_count=0
4394 $as_echo_n 0123456789 >"conftest.in"
4395 while :
4396 do
4397 cat "conftest.in" "conftest.in" >"conftest.tmp"
4398 mv "conftest.tmp" "conftest.in"
4399 cp "conftest.in" "conftest.nl"
4400 $as_echo '' >> "conftest.nl"
4401 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4402 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4403 as_fn_arith $ac_count + 1 && ac_count=$as_val
4404 if test $ac_count -gt ${ac_path_SED_max-0}; then
4405 # Best one so far, save it but keep looking for a better one
4406 ac_cv_path_SED="$ac_path_SED"
4407 ac_path_SED_max=$ac_count
4408 fi
4409 # 10*(2^10) chars as input seems more than enough
4410 test $ac_count -gt 10 && break
4411 done
4412 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4413esac
7a938933 4414
061793a4
ILT
4415 $ac_path_SED_found && break 3
4416 done
4417 done
4418 done
4419IFS=$as_save_IFS
4420 if test -z "$ac_cv_path_SED"; then
4421 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4422 fi
7a938933 4423else
061793a4 4424 ac_cv_path_SED=$SED
7a938933
ILT
4425fi
4426
4427fi
061793a4
ILT
4428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4429$as_echo "$ac_cv_path_SED" >&6; }
4430 SED="$ac_cv_path_SED"
4431 rm -f conftest.sed
4432
4433test -z "$SED" && SED=sed
4434Xsed="$SED -e 1s/^X//"
4435
7a938933
ILT
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4447$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4448if test "${ac_cv_path_GREP+set}" = set; then :
4449 $as_echo_n "(cached) " >&6
4450else
4451 if test -z "$GREP"; then
4452 ac_path_GREP_found=false
4453 # Loop through the user's path and test for each of PROGNAME-LIST
4454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4455for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4456do
4457 IFS=$as_save_IFS
4458 test -z "$as_dir" && as_dir=.
4459 for ac_prog in grep ggrep; do
4460 for ac_exec_ext in '' $ac_executable_extensions; do
4461 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4462 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4463# Check for GNU ac_path_GREP and select it if it is found.
4464 # Check for GNU $ac_path_GREP
4465case `"$ac_path_GREP" --version 2>&1` in
4466*GNU*)
4467 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4468*)
4469 ac_count=0
4470 $as_echo_n 0123456789 >"conftest.in"
4471 while :
4472 do
4473 cat "conftest.in" "conftest.in" >"conftest.tmp"
4474 mv "conftest.tmp" "conftest.in"
4475 cp "conftest.in" "conftest.nl"
4476 $as_echo 'GREP' >> "conftest.nl"
4477 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4478 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4479 as_fn_arith $ac_count + 1 && ac_count=$as_val
4480 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4481 # Best one so far, save it but keep looking for a better one
4482 ac_cv_path_GREP="$ac_path_GREP"
4483 ac_path_GREP_max=$ac_count
4484 fi
4485 # 10*(2^10) chars as input seems more than enough
4486 test $ac_count -gt 10 && break
4487 done
4488 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4489esac
4490
4491 $ac_path_GREP_found && break 3
4492 done
4493 done
4494 done
4495IFS=$as_save_IFS
4496 if test -z "$ac_cv_path_GREP"; then
4497 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4498 fi
4499else
4500 ac_cv_path_GREP=$GREP
4501fi
4502
4503fi
4504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4505$as_echo "$ac_cv_path_GREP" >&6; }
4506 GREP="$ac_cv_path_GREP"
4507
4508
4509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4510$as_echo_n "checking for egrep... " >&6; }
4511if test "${ac_cv_path_EGREP+set}" = set; then :
4512 $as_echo_n "(cached) " >&6
4513else
4514 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4515 then ac_cv_path_EGREP="$GREP -E"
4516 else
4517 if test -z "$EGREP"; then
4518 ac_path_EGREP_found=false
4519 # Loop through the user's path and test for each of PROGNAME-LIST
4520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4522do
4523 IFS=$as_save_IFS
4524 test -z "$as_dir" && as_dir=.
4525 for ac_prog in egrep; do
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4528 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4529# Check for GNU ac_path_EGREP and select it if it is found.
4530 # Check for GNU $ac_path_EGREP
4531case `"$ac_path_EGREP" --version 2>&1` in
4532*GNU*)
4533 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4534*)
4535 ac_count=0
4536 $as_echo_n 0123456789 >"conftest.in"
4537 while :
4538 do
4539 cat "conftest.in" "conftest.in" >"conftest.tmp"
4540 mv "conftest.tmp" "conftest.in"
4541 cp "conftest.in" "conftest.nl"
4542 $as_echo 'EGREP' >> "conftest.nl"
4543 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4544 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4545 as_fn_arith $ac_count + 1 && ac_count=$as_val
4546 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4547 # Best one so far, save it but keep looking for a better one
4548 ac_cv_path_EGREP="$ac_path_EGREP"
4549 ac_path_EGREP_max=$ac_count
4550 fi
4551 # 10*(2^10) chars as input seems more than enough
4552 test $ac_count -gt 10 && break
4553 done
4554 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4555esac
4556
4557 $ac_path_EGREP_found && break 3
4558 done
4559 done
4560 done
4561IFS=$as_save_IFS
4562 if test -z "$ac_cv_path_EGREP"; then
4563 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4564 fi
4565else
4566 ac_cv_path_EGREP=$EGREP
4567fi
4568
4569 fi
4570fi
4571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4572$as_echo "$ac_cv_path_EGREP" >&6; }
4573 EGREP="$ac_cv_path_EGREP"
4574
4575
061793a4
ILT
4576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4577$as_echo_n "checking for fgrep... " >&6; }
4578if test "${ac_cv_path_FGREP+set}" = set; then :
e02ed81e
ILT
4579 $as_echo_n "(cached) " >&6
4580else
061793a4
ILT
4581 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4582 then ac_cv_path_FGREP="$GREP -F"
4583 else
4584 if test -z "$FGREP"; then
4585 ac_path_FGREP_found=false
7a938933
ILT
4586 # Loop through the user's path and test for each of PROGNAME-LIST
4587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
061793a4 4588for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7a938933
ILT
4589do
4590 IFS=$as_save_IFS
4591 test -z "$as_dir" && as_dir=.
061793a4 4592 for ac_prog in fgrep; do
7a938933 4593 for ac_exec_ext in '' $ac_executable_extensions; do
061793a4
ILT
4594 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4595 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4596# Check for GNU ac_path_FGREP and select it if it is found.
4597 # Check for GNU $ac_path_FGREP
4598case `"$ac_path_FGREP" --version 2>&1` in
7a938933 4599*GNU*)
061793a4 4600 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7a938933
ILT
4601*)
4602 ac_count=0
4603 $as_echo_n 0123456789 >"conftest.in"
4604 while :
4605 do
4606 cat "conftest.in" "conftest.in" >"conftest.tmp"
4607 mv "conftest.tmp" "conftest.in"
4608 cp "conftest.in" "conftest.nl"
061793a4
ILT
4609 $as_echo 'FGREP' >> "conftest.nl"
4610 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7a938933
ILT
4611 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4612 as_fn_arith $ac_count + 1 && ac_count=$as_val
061793a4 4613 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7a938933 4614 # Best one so far, save it but keep looking for a better one
061793a4
ILT
4615 ac_cv_path_FGREP="$ac_path_FGREP"
4616 ac_path_FGREP_max=$ac_count
7a938933
ILT
4617 fi
4618 # 10*(2^10) chars as input seems more than enough
4619 test $ac_count -gt 10 && break
4620 done
4621 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4622esac
4623
061793a4 4624 $ac_path_FGREP_found && break 3
7a938933
ILT
4625 done
4626 done
4627 done
4628IFS=$as_save_IFS
061793a4
ILT
4629 if test -z "$ac_cv_path_FGREP"; then
4630 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7a938933
ILT
4631 fi
4632else
061793a4 4633 ac_cv_path_FGREP=$FGREP
e02ed81e
ILT
4634fi
4635
061793a4 4636 fi
7a938933
ILT
4637fi
4638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4639$as_echo "$ac_cv_path_FGREP" >&6; }
4640 FGREP="$ac_cv_path_FGREP"
4641
4642
4643test -z "$GREP" && GREP=grep
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4662ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4663ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4664
4665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4666$as_echo_n "checking how to print strings... " >&6; }
4667# Test print first, because it will be a builtin if present.
4668if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4669 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4670 ECHO='print -r --'
4671elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4672 ECHO='printf %s\n'
4673else
4674 # Use this function as a fallback that always works.
4675 func_fallback_echo ()
4676 {
4677 eval 'cat <<_LTECHO_EOF
4678$1
4679_LTECHO_EOF'
4680 }
4681 ECHO='func_fallback_echo'
4682fi
4683
4684# func_echo_all arg...
4685# Invoke $ECHO with all args, space-separated.
4686func_echo_all ()
4687{
4688 $ECHO ""
4689}
4690
4691case "$ECHO" in
4692 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4693$as_echo "printf" >&6; } ;;
4694 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4695$as_echo "print -r" >&6; } ;;
4696 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4697$as_echo "cat" >&6; } ;;
4698esac
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715# Check whether --with-gnu-ld was given.
4716if test "${with_gnu_ld+set}" = set; then :
4717 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4718else
4719 with_gnu_ld=no
4720fi
4721
4722ac_prog=ld
4723if test "$GCC" = yes; then
4724 # Check if gcc -print-prog-name=ld gives a path.
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4726$as_echo_n "checking for ld used by $CC... " >&6; }
4727 case $host in
4728 *-*-mingw*)
4729 # gcc leaves a trailing carriage return which upsets mingw
4730 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4731 *)
4732 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4733 esac
4734 case $ac_prog in
4735 # Accept absolute paths.
4736 [\\/]* | ?:[\\/]*)
4737 re_direlt='/[^/][^/]*/\.\./'
4738 # Canonicalize the pathname of ld
4739 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4740 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4741 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4742 done
4743 test -z "$LD" && LD="$ac_prog"
4744 ;;
4745 "")
4746 # If it fails, then pretend we aren't using GCC.
4747 ac_prog=ld
4748 ;;
4749 *)
4750 # If it is relative, then search for the first ld in PATH.
4751 with_gnu_ld=unknown
4752 ;;
4753 esac
4754elif test "$with_gnu_ld" = yes; then
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4756$as_echo_n "checking for GNU ld... " >&6; }
4757else
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4759$as_echo_n "checking for non-GNU ld... " >&6; }
4760fi
4761if test "${lt_cv_path_LD+set}" = set; then :
4762 $as_echo_n "(cached) " >&6
4763else
4764 if test -z "$LD"; then
4765 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4766 for ac_dir in $PATH; do
4767 IFS="$lt_save_ifs"
4768 test -z "$ac_dir" && ac_dir=.
4769 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4770 lt_cv_path_LD="$ac_dir/$ac_prog"
4771 # Check to see if the program is GNU ld. I'd rather use --version,
4772 # but apparently some variants of GNU ld only accept -v.
4773 # Break only if it was the GNU/non-GNU ld that we prefer.
4774 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4775 *GNU* | *'with BFD'*)
4776 test "$with_gnu_ld" != no && break
4777 ;;
4778 *)
4779 test "$with_gnu_ld" != yes && break
4780 ;;
4781 esac
4782 fi
4783 done
4784 IFS="$lt_save_ifs"
4785else
4786 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4787fi
4788fi
4789
4790LD="$lt_cv_path_LD"
4791if test -n "$LD"; then
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4793$as_echo "$LD" >&6; }
4794else
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4796$as_echo "no" >&6; }
4797fi
4798test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4800$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4801if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4802 $as_echo_n "(cached) " >&6
4803else
4804 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4805case `$LD -v 2>&1 </dev/null` in
4806*GNU* | *'with BFD'*)
4807 lt_cv_prog_gnu_ld=yes
4808 ;;
4809*)
4810 lt_cv_prog_gnu_ld=no
4811 ;;
4812esac
4813fi
4814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4815$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4816with_gnu_ld=$lt_cv_prog_gnu_ld
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826if test -n "$ac_tool_prefix"; then
4827 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4828set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4830$as_echo_n "checking for $ac_word... " >&6; }
4831if test "${ac_cv_prog_RANLIB+set}" = set; then :
4832 $as_echo_n "(cached) " >&6
4833else
4834 if test -n "$RANLIB"; then
4835 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4836else
4837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838for as_dir in $PATH
4839do
4840 IFS=$as_save_IFS
4841 test -z "$as_dir" && as_dir=.
4842 for ac_exec_ext in '' $ac_executable_extensions; do
4843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4844 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4846 break 2
4847 fi
4848done
4849 done
4850IFS=$as_save_IFS
4851
4852fi
4853fi
4854RANLIB=$ac_cv_prog_RANLIB
4855if test -n "$RANLIB"; then
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4857$as_echo "$RANLIB" >&6; }
4858else
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4860$as_echo "no" >&6; }
4861fi
4862
4863
4864fi
4865if test -z "$ac_cv_prog_RANLIB"; then
4866 ac_ct_RANLIB=$RANLIB
4867 # Extract the first word of "ranlib", so it can be a program name with args.
4868set dummy ranlib; ac_word=$2
4869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4870$as_echo_n "checking for $ac_word... " >&6; }
4871if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4872 $as_echo_n "(cached) " >&6
4873else
4874 if test -n "$ac_ct_RANLIB"; then
4875 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4876else
4877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878for as_dir in $PATH
4879do
4880 IFS=$as_save_IFS
4881 test -z "$as_dir" && as_dir=.
4882 for ac_exec_ext in '' $ac_executable_extensions; do
4883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4884 ac_cv_prog_ac_ct_RANLIB="ranlib"
4885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4886 break 2
4887 fi
4888done
4889 done
4890IFS=$as_save_IFS
4891
4892fi
4893fi
4894ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4895if test -n "$ac_ct_RANLIB"; then
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4897$as_echo "$ac_ct_RANLIB" >&6; }
4898else
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4900$as_echo "no" >&6; }
4901fi
4902
4903 if test "x$ac_ct_RANLIB" = x; then
4904 RANLIB=":"
4905 else
4906 case $cross_compiling:$ac_tool_warned in
4907yes:)
4908{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4909$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4910ac_tool_warned=yes ;;
4911esac
4912 RANLIB=$ac_ct_RANLIB
4913 fi
4914else
4915 RANLIB="$ac_cv_prog_RANLIB"
4916fi
4917
4918if test -n "$ac_tool_prefix"; then
4919 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4920set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4922$as_echo_n "checking for $ac_word... " >&6; }
4923if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4924 $as_echo_n "(cached) " >&6
4925else
4926 if test -n "$OBJCOPY"; then
4927 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4928else
4929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930for as_dir in $PATH
4931do
4932 IFS=$as_save_IFS
4933 test -z "$as_dir" && as_dir=.
4934 for ac_exec_ext in '' $ac_executable_extensions; do
4935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4936 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4938 break 2
4939 fi
4940done
4941 done
4942IFS=$as_save_IFS
4943
4944fi
4945fi
4946OBJCOPY=$ac_cv_prog_OBJCOPY
4947if test -n "$OBJCOPY"; then
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4949$as_echo "$OBJCOPY" >&6; }
4950else
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4952$as_echo "no" >&6; }
4953fi
4954
4955
4956fi
4957if test -z "$ac_cv_prog_OBJCOPY"; then
4958 ac_ct_OBJCOPY=$OBJCOPY
4959 # Extract the first word of "objcopy", so it can be a program name with args.
4960set dummy objcopy; ac_word=$2
4961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4962$as_echo_n "checking for $ac_word... " >&6; }
4963if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4964 $as_echo_n "(cached) " >&6
4965else
4966 if test -n "$ac_ct_OBJCOPY"; then
4967 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4968else
4969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970for as_dir in $PATH
4971do
4972 IFS=$as_save_IFS
4973 test -z "$as_dir" && as_dir=.
4974 for ac_exec_ext in '' $ac_executable_extensions; do
4975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4976 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4978 break 2
4979 fi
4980done
4981 done
4982IFS=$as_save_IFS
4983
4984fi
4985fi
4986ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4987if test -n "$ac_ct_OBJCOPY"; then
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4989$as_echo "$ac_ct_OBJCOPY" >&6; }
4990else
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4992$as_echo "no" >&6; }
4993fi
4994
4995 if test "x$ac_ct_OBJCOPY" = x; then
4996 OBJCOPY="missing-objcopy"
4997 else
4998 case $cross_compiling:$ac_tool_warned in
4999yes:)
5000{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5001$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5002ac_tool_warned=yes ;;
5003esac
5004 OBJCOPY=$ac_ct_OBJCOPY
5005 fi
5006else
5007 OBJCOPY="$ac_cv_prog_OBJCOPY"
5008fi
5009
5010
5011enable_dlopen=yes
5012
5013
5014
5015case `pwd` in
5016 *\ * | *\ *)
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5018$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5019esac
5020
5021
5022
5023macro_version='2.2.7a'
5024macro_revision='1.3134'
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038ltmain="$ac_aux_dir/ltmain.sh"
5039
5040# Backslashify metacharacters that are still active within
5041# double-quoted strings.
5042sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5043
5044# Same as above, but do not quote variable references.
5045double_quote_subst='s/\(["`\\]\)/\\\1/g'
5046
5047# Sed substitution to delay expansion of an escaped shell variable in a
5048# double_quote_subst'ed string.
5049delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5050
5051# Sed substitution to delay expansion of an escaped single quote.
5052delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5053
5054# Sed substitution to avoid accidental globbing in evaled expressions
5055no_glob_subst='s/\*/\\\*/g'
5056
5057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5058$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5059if test "${lt_cv_path_NM+set}" = set; then :
5060 $as_echo_n "(cached) " >&6
5061else
5062 if test -n "$NM"; then
5063 # Let the user override the test.
5064 lt_cv_path_NM="$NM"
5065else
5066 lt_nm_to_check="${ac_tool_prefix}nm"
5067 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5068 lt_nm_to_check="$lt_nm_to_check nm"
5069 fi
5070 for lt_tmp_nm in $lt_nm_to_check; do
5071 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5072 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5073 IFS="$lt_save_ifs"
5074 test -z "$ac_dir" && ac_dir=.
5075 tmp_nm="$ac_dir/$lt_tmp_nm"
5076 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5077 # Check to see if the nm accepts a BSD-compat flag.
5078 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5079 # nm: unknown option "B" ignored
5080 # Tru64's nm complains that /dev/null is an invalid object file
5081 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5082 */dev/null* | *'Invalid file or object type'*)
5083 lt_cv_path_NM="$tmp_nm -B"
5084 break
5085 ;;
5086 *)
5087 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5088 */dev/null*)
5089 lt_cv_path_NM="$tmp_nm -p"
5090 break
5091 ;;
5092 *)
5093 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5094 continue # so that we can try to find one that supports BSD flags
5095 ;;
5096 esac
5097 ;;
5098 esac
5099 fi
5100 done
5101 IFS="$lt_save_ifs"
5102 done
5103 : ${lt_cv_path_NM=no}
5104fi
5105fi
5106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5107$as_echo "$lt_cv_path_NM" >&6; }
5108if test "$lt_cv_path_NM" != "no"; then
5109 NM="$lt_cv_path_NM"
5110else
5111 # Didn't find any BSD compatible name lister, look for dumpbin.
5112 if test -n "$DUMPBIN"; then :
5113 # Let the user override the test.
5114 else
5115 if test -n "$ac_tool_prefix"; then
5116 for ac_prog in dumpbin "link -dump"
5117 do
5118 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5119set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5121$as_echo_n "checking for $ac_word... " >&6; }
5122if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5123 $as_echo_n "(cached) " >&6
5124else
5125 if test -n "$DUMPBIN"; then
5126 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5127else
5128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129for as_dir in $PATH
5130do
5131 IFS=$as_save_IFS
5132 test -z "$as_dir" && as_dir=.
5133 for ac_exec_ext in '' $ac_executable_extensions; do
5134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5135 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5137 break 2
5138 fi
5139done
5140 done
5141IFS=$as_save_IFS
5142
5143fi
5144fi
5145DUMPBIN=$ac_cv_prog_DUMPBIN
5146if test -n "$DUMPBIN"; then
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5148$as_echo "$DUMPBIN" >&6; }
5149else
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5151$as_echo "no" >&6; }
5152fi
5153
5154
5155 test -n "$DUMPBIN" && break
5156 done
5157fi
5158if test -z "$DUMPBIN"; then
5159 ac_ct_DUMPBIN=$DUMPBIN
5160 for ac_prog in dumpbin "link -dump"
5161do
5162 # Extract the first word of "$ac_prog", so it can be a program name with args.
5163set dummy $ac_prog; ac_word=$2
5164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5165$as_echo_n "checking for $ac_word... " >&6; }
5166if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5167 $as_echo_n "(cached) " >&6
5168else
5169 if test -n "$ac_ct_DUMPBIN"; then
5170 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5171else
5172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173for as_dir in $PATH
5174do
5175 IFS=$as_save_IFS
5176 test -z "$as_dir" && as_dir=.
5177 for ac_exec_ext in '' $ac_executable_extensions; do
5178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5179 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5181 break 2
5182 fi
5183done
5184 done
5185IFS=$as_save_IFS
5186
5187fi
5188fi
5189ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5190if test -n "$ac_ct_DUMPBIN"; then
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5192$as_echo "$ac_ct_DUMPBIN" >&6; }
5193else
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5195$as_echo "no" >&6; }
5196fi
5197
5198
5199 test -n "$ac_ct_DUMPBIN" && break
5200done
5201
5202 if test "x$ac_ct_DUMPBIN" = x; then
5203 DUMPBIN=":"
5204 else
5205 case $cross_compiling:$ac_tool_warned in
5206yes:)
5207{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5208$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5209ac_tool_warned=yes ;;
5210esac
5211 DUMPBIN=$ac_ct_DUMPBIN
5212 fi
5213fi
5214
5215 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5216 *COFF*)
5217 DUMPBIN="$DUMPBIN -symbols"
5218 ;;
5219 *)
5220 DUMPBIN=:
5221 ;;
5222 esac
5223 fi
5224
5225 if test "$DUMPBIN" != ":"; then
5226 NM="$DUMPBIN"
5227 fi
5228fi
5229test -z "$NM" && NM=nm
5230
5231
5232
5233
5234
5235
5236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5237$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5238if test "${lt_cv_nm_interface+set}" = set; then :
5239 $as_echo_n "(cached) " >&6
5240else
5241 lt_cv_nm_interface="BSD nm"
5242 echo "int some_variable = 0;" > conftest.$ac_ext
5243 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5244 (eval "$ac_compile" 2>conftest.err)
5245 cat conftest.err >&5
5246 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5247 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5248 cat conftest.err >&5
5249 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5250 cat conftest.out >&5
5251 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5252 lt_cv_nm_interface="MS dumpbin"
5253 fi
5254 rm -f conftest*
5255fi
5256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5257$as_echo "$lt_cv_nm_interface" >&6; }
5258
5259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5260$as_echo_n "checking whether ln -s works... " >&6; }
5261LN_S=$as_ln_s
5262if test "$LN_S" = "ln -s"; then
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5264$as_echo "yes" >&6; }
5265else
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5267$as_echo "no, using $LN_S" >&6; }
5268fi
5269
5270# find the maximum length of command line arguments
5271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5272$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5273if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5274 $as_echo_n "(cached) " >&6
5275else
5276 i=0
5277 teststring="ABCD"
5278
5279 case $build_os in
5280 msdosdjgpp*)
5281 # On DJGPP, this test can blow up pretty badly due to problems in libc
5282 # (any single argument exceeding 2000 bytes causes a buffer overrun
5283 # during glob expansion). Even if it were fixed, the result of this
5284 # check would be larger than it should be.
5285 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5286 ;;
5287
5288 gnu*)
5289 # Under GNU Hurd, this test is not required because there is
5290 # no limit to the length of command line arguments.
5291 # Libtool will interpret -1 as no limit whatsoever
5292 lt_cv_sys_max_cmd_len=-1;
5293 ;;
5294
5295 cygwin* | mingw* | cegcc*)
5296 # On Win9x/ME, this test blows up -- it succeeds, but takes
5297 # about 5 minutes as the teststring grows exponentially.
5298 # Worse, since 9x/ME are not pre-emptively multitasking,
5299 # you end up with a "frozen" computer, even though with patience
5300 # the test eventually succeeds (with a max line length of 256k).
5301 # Instead, let's just punt: use the minimum linelength reported by
5302 # all of the supported platforms: 8192 (on NT/2K/XP).
5303 lt_cv_sys_max_cmd_len=8192;
5304 ;;
5305
5306 mint*)
5307 # On MiNT this can take a long time and run out of memory.
5308 lt_cv_sys_max_cmd_len=8192;
5309 ;;
5310
5311 amigaos*)
5312 # On AmigaOS with pdksh, this test takes hours, literally.
5313 # So we just punt and use a minimum line length of 8192.
5314 lt_cv_sys_max_cmd_len=8192;
5315 ;;
5316
5317 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5318 # This has been around since 386BSD, at least. Likely further.
5319 if test -x /sbin/sysctl; then
5320 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5321 elif test -x /usr/sbin/sysctl; then
5322 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5323 else
5324 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5325 fi
5326 # And add a safety zone
5327 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5328 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5329 ;;
5330
5331 interix*)
5332 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5333 lt_cv_sys_max_cmd_len=196608
5334 ;;
5335
5336 osf*)
5337 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5338 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5339 # nice to cause kernel panics so lets avoid the loop below.
5340 # First set a reasonable default.
5341 lt_cv_sys_max_cmd_len=16384
5342 #
5343 if test -x /sbin/sysconfig; then
5344 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5345 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5346 esac
5347 fi
5348 ;;
5349 sco3.2v5*)
5350 lt_cv_sys_max_cmd_len=102400
5351 ;;
5352 sysv5* | sco5v6* | sysv4.2uw2*)
5353 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5354 if test -n "$kargmax"; then
5355 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5356 else
5357 lt_cv_sys_max_cmd_len=32768
5358 fi
5359 ;;
5360 *)
5361 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5362 if test -n "$lt_cv_sys_max_cmd_len"; then
5363 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5364 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5365 else
5366 # Make teststring a little bigger before we do anything with it.
5367 # a 1K string should be a reasonable start.
5368 for i in 1 2 3 4 5 6 7 8 ; do
5369 teststring=$teststring$teststring
5370 done
5371 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5372 # If test is not a shell built-in, we'll probably end up computing a
5373 # maximum length that is only half of the actual maximum length, but
5374 # we can't tell.
5375 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5376 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5377 test $i != 17 # 1/2 MB should be enough
5378 do
5379 i=`expr $i + 1`
5380 teststring=$teststring$teststring
5381 done
5382 # Only check the string length outside the loop.
5383 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5384 teststring=
5385 # Add a significant safety factor because C++ compilers can tack on
5386 # massive amounts of additional arguments before passing them to the
5387 # linker. It appears as though 1/2 is a usable value.
5388 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5389 fi
5390 ;;
5391 esac
5392
5393fi
5394
5395if test -n $lt_cv_sys_max_cmd_len ; then
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5397$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5398else
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5400$as_echo "none" >&6; }
5401fi
5402max_cmd_len=$lt_cv_sys_max_cmd_len
5403
5404
5405
5406
5407
5408
5409: ${CP="cp -f"}
5410: ${MV="mv -f"}
5411: ${RM="rm -f"}
5412
5413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5414$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5415# Try some XSI features
5416xsi_shell=no
5417( _lt_dummy="a/b/c"
5418 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5419 = c,a/b,, \
5420 && eval 'test $(( 1 + 1 )) -eq 2 \
5421 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5422 && xsi_shell=yes
5423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5424$as_echo "$xsi_shell" >&6; }
5425
5426
5427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5428$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5429lt_shell_append=no
5430( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5431 >/dev/null 2>&1 \
5432 && lt_shell_append=yes
5433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5434$as_echo "$lt_shell_append" >&6; }
5435
5436
5437if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5438 lt_unset=unset
5439else
5440 lt_unset=false
5441fi
5442
5443
5444
5445
5446
5447# test EBCDIC or ASCII
5448case `echo X|tr X '\101'` in
5449 A) # ASCII based system
5450 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5451 lt_SP2NL='tr \040 \012'
5452 lt_NL2SP='tr \015\012 \040\040'
5453 ;;
5454 *) # EBCDIC based system
5455 lt_SP2NL='tr \100 \n'
5456 lt_NL2SP='tr \r\n \100\100'
5457 ;;
5458esac
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5469$as_echo_n "checking for $LD option to reload object files... " >&6; }
5470if test "${lt_cv_ld_reload_flag+set}" = set; then :
5471 $as_echo_n "(cached) " >&6
5472else
5473 lt_cv_ld_reload_flag='-r'
5474fi
5475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5476$as_echo "$lt_cv_ld_reload_flag" >&6; }
5477reload_flag=$lt_cv_ld_reload_flag
5478case $reload_flag in
5479"" | " "*) ;;
5480*) reload_flag=" $reload_flag" ;;
5481esac
5482reload_cmds='$LD$reload_flag -o $output$reload_objs'
5483case $host_os in
5484 darwin*)
5485 if test "$GCC" = yes; then
5486 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5487 else
5488 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5489 fi
5490 ;;
5491esac
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501if test -n "$ac_tool_prefix"; then
5502 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5503set dummy ${ac_tool_prefix}objdump; ac_word=$2
5504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5505$as_echo_n "checking for $ac_word... " >&6; }
5506if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5507 $as_echo_n "(cached) " >&6
5508else
5509 if test -n "$OBJDUMP"; then
5510 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5511else
5512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513for as_dir in $PATH
5514do
5515 IFS=$as_save_IFS
5516 test -z "$as_dir" && as_dir=.
5517 for ac_exec_ext in '' $ac_executable_extensions; do
5518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5519 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5521 break 2
5522 fi
5523done
5524 done
5525IFS=$as_save_IFS
5526
5527fi
5528fi
5529OBJDUMP=$ac_cv_prog_OBJDUMP
5530if test -n "$OBJDUMP"; then
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5532$as_echo "$OBJDUMP" >&6; }
5533else
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5535$as_echo "no" >&6; }
5536fi
5537
5538
5539fi
5540if test -z "$ac_cv_prog_OBJDUMP"; then
5541 ac_ct_OBJDUMP=$OBJDUMP
5542 # Extract the first word of "objdump", so it can be a program name with args.
5543set dummy objdump; ac_word=$2
5544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5545$as_echo_n "checking for $ac_word... " >&6; }
5546if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5547 $as_echo_n "(cached) " >&6
5548else
5549 if test -n "$ac_ct_OBJDUMP"; then
5550 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5551else
5552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553for as_dir in $PATH
5554do
5555 IFS=$as_save_IFS
5556 test -z "$as_dir" && as_dir=.
5557 for ac_exec_ext in '' $ac_executable_extensions; do
5558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5559 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5561 break 2
5562 fi
5563done
5564 done
5565IFS=$as_save_IFS
5566
5567fi
5568fi
5569ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5570if test -n "$ac_ct_OBJDUMP"; then
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5572$as_echo "$ac_ct_OBJDUMP" >&6; }
5573else
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5575$as_echo "no" >&6; }
5576fi
5577
5578 if test "x$ac_ct_OBJDUMP" = x; then
5579 OBJDUMP="false"
5580 else
5581 case $cross_compiling:$ac_tool_warned in
5582yes:)
5583{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5584$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5585ac_tool_warned=yes ;;
5586esac
5587 OBJDUMP=$ac_ct_OBJDUMP
5588 fi
5589else
5590 OBJDUMP="$ac_cv_prog_OBJDUMP"
5591fi
5592
5593test -z "$OBJDUMP" && OBJDUMP=objdump
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5604$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5605if test "${lt_cv_deplibs_check_method+set}" = set; then :
5606 $as_echo_n "(cached) " >&6
5607else
5608 lt_cv_file_magic_cmd='$MAGIC_CMD'
5609lt_cv_file_magic_test_file=
5610lt_cv_deplibs_check_method='unknown'
5611# Need to set the preceding variable on all platforms that support
5612# interlibrary dependencies.
5613# 'none' -- dependencies not supported.
5614# `unknown' -- same as none, but documents that we really don't know.
5615# 'pass_all' -- all dependencies passed with no checks.
5616# 'test_compile' -- check by making test program.
5617# 'file_magic [[regex]]' -- check by looking for files in library path
5618# which responds to the $file_magic_cmd with a given extended regex.
5619# If you have `file' or equivalent on your system and you're not sure
5620# whether `pass_all' will *always* work, you probably want this one.
5621
5622case $host_os in
5623aix[4-9]*)
5624 lt_cv_deplibs_check_method=pass_all
5625 ;;
5626
5627beos*)
5628 lt_cv_deplibs_check_method=pass_all
5629 ;;
5630
5631bsdi[45]*)
5632 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5633 lt_cv_file_magic_cmd='/usr/bin/file -L'
5634 lt_cv_file_magic_test_file=/shlib/libc.so
5635 ;;
5636
5637cygwin*)
5638 # func_win32_libid is a shell function defined in ltmain.sh
5639 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5640 lt_cv_file_magic_cmd='func_win32_libid'
5641 ;;
5642
5643mingw* | pw32*)
5644 # Base MSYS/MinGW do not provide the 'file' command needed by
5645 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5646 # unless we find 'file', for example because we are cross-compiling.
5647 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5648 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5649 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5650 lt_cv_file_magic_cmd='func_win32_libid'
5651 else
5652 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5653 lt_cv_file_magic_cmd='$OBJDUMP -f'
5654 fi
5655 ;;
5656
5657cegcc*)
5658 # use the weaker test based on 'objdump'. See mingw*.
5659 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5660 lt_cv_file_magic_cmd='$OBJDUMP -f'
5661 ;;
5662
5663darwin* | rhapsody*)
5664 lt_cv_deplibs_check_method=pass_all
5665 ;;
5666
5667freebsd* | dragonfly*)
5668 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5669 case $host_cpu in
5670 i*86 )
5671 # Not sure whether the presence of OpenBSD here was a mistake.
5672 # Let's accept both of them until this is cleared up.
5673 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5674 lt_cv_file_magic_cmd=/usr/bin/file
5675 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5676 ;;
5677 esac
5678 else
5679 lt_cv_deplibs_check_method=pass_all
5680 fi
5681 ;;
5682
5683gnu*)
5684 lt_cv_deplibs_check_method=pass_all
5685 ;;
5686
5687haiku*)
5688 lt_cv_deplibs_check_method=pass_all
5689 ;;
5690
5691hpux10.20* | hpux11*)
5692 lt_cv_file_magic_cmd=/usr/bin/file
5693 case $host_cpu in
5694 ia64*)
5695 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5696 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5697 ;;
5698 hppa*64*)
5699 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]'
5700 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5701 ;;
5702 *)
5703 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5704 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5705 ;;
5706 esac
5707 ;;
5708
5709interix[3-9]*)
5710 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5711 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5712 ;;
5713
5714irix5* | irix6* | nonstopux*)
5715 case $LD in
5716 *-32|*"-32 ") libmagic=32-bit;;
5717 *-n32|*"-n32 ") libmagic=N32;;
5718 *-64|*"-64 ") libmagic=64-bit;;
5719 *) libmagic=never-match;;
5720 esac
5721 lt_cv_deplibs_check_method=pass_all
5722 ;;
5723
5724# This must be Linux ELF.
5725linux* | k*bsd*-gnu | kopensolaris*-gnu)
5726 lt_cv_deplibs_check_method=pass_all
5727 ;;
5728
5729netbsd*)
5730 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5731 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5732 else
5733 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5734 fi
5735 ;;
5736
5737newos6*)
5738 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5739 lt_cv_file_magic_cmd=/usr/bin/file
5740 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5741 ;;
5742
5743*nto* | *qnx*)
5744 lt_cv_deplibs_check_method=pass_all
5745 ;;
5746
5747openbsd*)
5748 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5749 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5750 else
5751 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5752 fi
5753 ;;
5754
5755osf3* | osf4* | osf5*)
5756 lt_cv_deplibs_check_method=pass_all
5757 ;;
5758
5759rdos*)
5760 lt_cv_deplibs_check_method=pass_all
5761 ;;
5762
5763solaris*)
5764 lt_cv_deplibs_check_method=pass_all
5765 ;;
5766
5767sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5768 lt_cv_deplibs_check_method=pass_all
5769 ;;
5770
5771sysv4 | sysv4.3*)
5772 case $host_vendor in
5773 motorola)
5774 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]'
5775 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5776 ;;
5777 ncr)
5778 lt_cv_deplibs_check_method=pass_all
5779 ;;
5780 sequent)
5781 lt_cv_file_magic_cmd='/bin/file'
5782 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5783 ;;
5784 sni)
5785 lt_cv_file_magic_cmd='/bin/file'
5786 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5787 lt_cv_file_magic_test_file=/lib/libc.so
5788 ;;
5789 siemens)
5790 lt_cv_deplibs_check_method=pass_all
5791 ;;
5792 pc)
5793 lt_cv_deplibs_check_method=pass_all
5794 ;;
5795 esac
5796 ;;
5797
5798tpf*)
5799 lt_cv_deplibs_check_method=pass_all
5800 ;;
5801esac
5802
5803fi
5804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5805$as_echo "$lt_cv_deplibs_check_method" >&6; }
5806file_magic_cmd=$lt_cv_file_magic_cmd
5807deplibs_check_method=$lt_cv_deplibs_check_method
5808test -z "$deplibs_check_method" && deplibs_check_method=unknown
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821if test -n "$ac_tool_prefix"; then
5822 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5823set dummy ${ac_tool_prefix}ar; ac_word=$2
5824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5825$as_echo_n "checking for $ac_word... " >&6; }
5826if test "${ac_cv_prog_AR+set}" = set; then :
5827 $as_echo_n "(cached) " >&6
5828else
5829 if test -n "$AR"; then
5830 ac_cv_prog_AR="$AR" # Let the user override the test.
5831else
5832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833for as_dir in $PATH
5834do
5835 IFS=$as_save_IFS
5836 test -z "$as_dir" && as_dir=.
5837 for ac_exec_ext in '' $ac_executable_extensions; do
5838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5839 ac_cv_prog_AR="${ac_tool_prefix}ar"
5840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5841 break 2
5842 fi
5843done
5844 done
5845IFS=$as_save_IFS
5846
5847fi
5848fi
5849AR=$ac_cv_prog_AR
5850if test -n "$AR"; then
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5852$as_echo "$AR" >&6; }
5853else
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5855$as_echo "no" >&6; }
5856fi
5857
5858
5859fi
5860if test -z "$ac_cv_prog_AR"; then
5861 ac_ct_AR=$AR
5862 # Extract the first word of "ar", so it can be a program name with args.
5863set dummy ar; ac_word=$2
5864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5865$as_echo_n "checking for $ac_word... " >&6; }
5866if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5867 $as_echo_n "(cached) " >&6
5868else
5869 if test -n "$ac_ct_AR"; then
5870 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5871else
5872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873for as_dir in $PATH
5874do
5875 IFS=$as_save_IFS
5876 test -z "$as_dir" && as_dir=.
5877 for ac_exec_ext in '' $ac_executable_extensions; do
5878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5879 ac_cv_prog_ac_ct_AR="ar"
5880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5881 break 2
5882 fi
5883done
5884 done
5885IFS=$as_save_IFS
5886
5887fi
5888fi
5889ac_ct_AR=$ac_cv_prog_ac_ct_AR
5890if test -n "$ac_ct_AR"; then
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5892$as_echo "$ac_ct_AR" >&6; }
5893else
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5895$as_echo "no" >&6; }
5896fi
5897
5898 if test "x$ac_ct_AR" = x; then
5899 AR="false"
5900 else
5901 case $cross_compiling:$ac_tool_warned in
5902yes:)
5903{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5904$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5905ac_tool_warned=yes ;;
5906esac
5907 AR=$ac_ct_AR
5908 fi
5909else
5910 AR="$ac_cv_prog_AR"
5911fi
5912
5913test -z "$AR" && AR=ar
5914test -z "$AR_FLAGS" && AR_FLAGS=cru
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926if test -n "$ac_tool_prefix"; then
5927 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5928set dummy ${ac_tool_prefix}strip; ac_word=$2
5929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5930$as_echo_n "checking for $ac_word... " >&6; }
5931if test "${ac_cv_prog_STRIP+set}" = set; then :
5932 $as_echo_n "(cached) " >&6
5933else
5934 if test -n "$STRIP"; then
5935 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5936else
5937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938for as_dir in $PATH
5939do
5940 IFS=$as_save_IFS
5941 test -z "$as_dir" && as_dir=.
5942 for ac_exec_ext in '' $ac_executable_extensions; do
5943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5944 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5946 break 2
5947 fi
5948done
5949 done
5950IFS=$as_save_IFS
5951
5952fi
5953fi
5954STRIP=$ac_cv_prog_STRIP
5955if test -n "$STRIP"; then
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5957$as_echo "$STRIP" >&6; }
5958else
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5960$as_echo "no" >&6; }
5961fi
5962
5963
5964fi
5965if test -z "$ac_cv_prog_STRIP"; then
5966 ac_ct_STRIP=$STRIP
5967 # Extract the first word of "strip", so it can be a program name with args.
5968set dummy strip; ac_word=$2
5969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5970$as_echo_n "checking for $ac_word... " >&6; }
5971if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5972 $as_echo_n "(cached) " >&6
5973else
5974 if test -n "$ac_ct_STRIP"; then
5975 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5976else
5977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978for as_dir in $PATH
5979do
5980 IFS=$as_save_IFS
5981 test -z "$as_dir" && as_dir=.
5982 for ac_exec_ext in '' $ac_executable_extensions; do
5983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5984 ac_cv_prog_ac_ct_STRIP="strip"
5985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5986 break 2
5987 fi
5988done
5989 done
5990IFS=$as_save_IFS
5991
5992fi
5993fi
5994ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5995if test -n "$ac_ct_STRIP"; then
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5997$as_echo "$ac_ct_STRIP" >&6; }
5998else
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6000$as_echo "no" >&6; }
6001fi
6002
6003 if test "x$ac_ct_STRIP" = x; then
6004 STRIP=":"
6005 else
6006 case $cross_compiling:$ac_tool_warned in
6007yes:)
6008{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6009$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6010ac_tool_warned=yes ;;
6011esac
6012 STRIP=$ac_ct_STRIP
6013 fi
6014else
6015 STRIP="$ac_cv_prog_STRIP"
6016fi
6017
6018test -z "$STRIP" && STRIP=:
6019
6020
6021
6022
6023
6024
6025if test -n "$ac_tool_prefix"; then
6026 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6027set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6029$as_echo_n "checking for $ac_word... " >&6; }
6030if test "${ac_cv_prog_RANLIB+set}" = set; then :
6031 $as_echo_n "(cached) " >&6
6032else
6033 if test -n "$RANLIB"; then
6034 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6035else
6036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037for as_dir in $PATH
6038do
6039 IFS=$as_save_IFS
6040 test -z "$as_dir" && as_dir=.
6041 for ac_exec_ext in '' $ac_executable_extensions; do
6042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6043 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6045 break 2
6046 fi
6047done
6048 done
6049IFS=$as_save_IFS
6050
6051fi
6052fi
6053RANLIB=$ac_cv_prog_RANLIB
6054if test -n "$RANLIB"; then
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6056$as_echo "$RANLIB" >&6; }
6057else
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6059$as_echo "no" >&6; }
6060fi
6061
6062
6063fi
6064if test -z "$ac_cv_prog_RANLIB"; then
6065 ac_ct_RANLIB=$RANLIB
6066 # Extract the first word of "ranlib", so it can be a program name with args.
6067set dummy ranlib; ac_word=$2
6068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6069$as_echo_n "checking for $ac_word... " >&6; }
6070if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6071 $as_echo_n "(cached) " >&6
6072else
6073 if test -n "$ac_ct_RANLIB"; then
6074 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6075else
6076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6077for as_dir in $PATH
6078do
6079 IFS=$as_save_IFS
6080 test -z "$as_dir" && as_dir=.
6081 for ac_exec_ext in '' $ac_executable_extensions; do
6082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6083 ac_cv_prog_ac_ct_RANLIB="ranlib"
6084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6085 break 2
6086 fi
6087done
6088 done
6089IFS=$as_save_IFS
6090
6091fi
6092fi
6093ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6094if test -n "$ac_ct_RANLIB"; then
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6096$as_echo "$ac_ct_RANLIB" >&6; }
6097else
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6099$as_echo "no" >&6; }
6100fi
6101
6102 if test "x$ac_ct_RANLIB" = x; then
6103 RANLIB=":"
6104 else
6105 case $cross_compiling:$ac_tool_warned in
6106yes:)
6107{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6108$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6109ac_tool_warned=yes ;;
6110esac
6111 RANLIB=$ac_ct_RANLIB
6112 fi
6113else
6114 RANLIB="$ac_cv_prog_RANLIB"
6115fi
6116
6117test -z "$RANLIB" && RANLIB=:
6118
6119
6120
6121
6122
6123
6124# Determine commands to create old-style static archives.
6125old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6126old_postinstall_cmds='chmod 644 $oldlib'
6127old_postuninstall_cmds=
6128
6129if test -n "$RANLIB"; then
6130 case $host_os in
6131 openbsd*)
6132 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6133 ;;
6134 *)
6135 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6136 ;;
6137 esac
6138 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6139fi
6140
6141case $host_os in
6142 darwin*)
6143 lock_old_archive_extraction=yes ;;
6144 *)
6145 lock_old_archive_extraction=no ;;
6146esac
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
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186# If no C compiler was specified, use CC.
6187LTCC=${LTCC-"$CC"}
6188
6189# If no C compiler flags were specified, use CFLAGS.
6190LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6191
6192# Allow CC to be a program name with arguments.
6193compiler=$CC
6194
6195
6196# Check for command to grab the raw symbol name followed by C symbol from nm.
6197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6198$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6199if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6200 $as_echo_n "(cached) " >&6
6201else
6202
6203# These are sane defaults that work on at least a few old systems.
6204# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6205
6206# Character class describing NM global symbol codes.
6207symcode='[BCDEGRST]'
6208
6209# Regexp to match symbols that can be accessed directly from C.
6210sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6211
6212# Define system-specific variables.
6213case $host_os in
6214aix*)
6215 symcode='[BCDT]'
6216 ;;
6217cygwin* | mingw* | pw32* | cegcc*)
6218 symcode='[ABCDGISTW]'
6219 ;;
6220hpux*)
6221 if test "$host_cpu" = ia64; then
6222 symcode='[ABCDEGRST]'
6223 fi
6224 ;;
6225irix* | nonstopux*)
6226 symcode='[BCDEGRST]'
6227 ;;
6228osf*)
6229 symcode='[BCDEGQRST]'
6230 ;;
6231solaris*)
6232 symcode='[BDRT]'
6233 ;;
6234sco3.2v5*)
6235 symcode='[DT]'
6236 ;;
6237sysv4.2uw2*)
6238 symcode='[DT]'
6239 ;;
6240sysv5* | sco5v6* | unixware* | OpenUNIX*)
6241 symcode='[ABDT]'
6242 ;;
6243sysv4)
6244 symcode='[DFNSTU]'
6245 ;;
6246esac
6247
6248# If we're using GNU nm, then use its standard symbol codes.
6249case `$NM -V 2>&1` in
6250*GNU* | *'with BFD'*)
6251 symcode='[ABCDGIRSTW]' ;;
6252esac
6253
6254# Transform an extracted symbol line into a proper C declaration.
6255# Some systems (esp. on ia64) link data and code symbols differently,
6256# so use this general approach.
6257lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6258
6259# Transform an extracted symbol line into symbol name and symbol address
6260lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6261lt_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'"
6262
6263# Handle CRLF in mingw tool chain
6264opt_cr=
6265case $build_os in
6266mingw*)
6267 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6268 ;;
6269esac
6270
6271# Try without a prefix underscore, then with it.
6272for ac_symprfx in "" "_"; do
6273
6274 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6275 symxfrm="\\1 $ac_symprfx\\2 \\2"
6276
6277 # Write the raw and C identifiers.
6278 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6279 # Fake it for dumpbin and say T for any non-static function
6280 # and D for any global variable.
6281 # Also find C++ and __fastcall symbols from MSVC++,
6282 # which start with @ or ?.
6283 lt_cv_sys_global_symbol_pipe="$AWK '"\
6284" {last_section=section; section=\$ 3};"\
6285" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6286" \$ 0!~/External *\|/{next};"\
6287" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6288" {if(hide[section]) next};"\
6289" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6290" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6291" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6292" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6293" ' prfx=^$ac_symprfx"
6294 else
6295 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6296 fi
6297
6298 # Check to see that the pipe works correctly.
6299 pipe_works=no
6300
6301 rm -f conftest*
6302 cat > conftest.$ac_ext <<_LT_EOF
6303#ifdef __cplusplus
6304extern "C" {
6305#endif
6306char nm_test_var;
6307void nm_test_func(void);
6308void nm_test_func(void){}
6309#ifdef __cplusplus
6310}
6311#endif
6312int main(){nm_test_var='a';nm_test_func();return(0);}
6313_LT_EOF
6314
6315 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6316 (eval $ac_compile) 2>&5
6317 ac_status=$?
6318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6319 test $ac_status = 0; }; then
6320 # Now try to grab the symbols.
6321 nlist=conftest.nm
6322 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6323 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6324 ac_status=$?
6325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6326 test $ac_status = 0; } && test -s "$nlist"; then
6327 # Try sorting and uniquifying the output.
6328 if sort "$nlist" | uniq > "$nlist"T; then
6329 mv -f "$nlist"T "$nlist"
6330 else
6331 rm -f "$nlist"T
6332 fi
6333
6334 # Make sure that we snagged all the symbols we need.
6335 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6336 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6337 cat <<_LT_EOF > conftest.$ac_ext
6338#ifdef __cplusplus
6339extern "C" {
6340#endif
6341
6342_LT_EOF
6343 # Now generate the symbol file.
6344 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6345
6346 cat <<_LT_EOF >> conftest.$ac_ext
6347
6348/* The mapping between symbol names and symbols. */
6349const struct {
6350 const char *name;
6351 void *address;
6352}
6353lt__PROGRAM__LTX_preloaded_symbols[] =
6354{
6355 { "@PROGRAM@", (void *) 0 },
6356_LT_EOF
6357 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6358 cat <<\_LT_EOF >> conftest.$ac_ext
6359 {0, (void *) 0}
6360};
6361
6362/* This works around a problem in FreeBSD linker */
6363#ifdef FREEBSD_WORKAROUND
6364static const void *lt_preloaded_setup() {
6365 return lt__PROGRAM__LTX_preloaded_symbols;
6366}
6367#endif
6368
6369#ifdef __cplusplus
6370}
6371#endif
6372_LT_EOF
6373 # Now try linking the two files.
6374 mv conftest.$ac_objext conftstm.$ac_objext
6375 lt_save_LIBS="$LIBS"
6376 lt_save_CFLAGS="$CFLAGS"
6377 LIBS="conftstm.$ac_objext"
6378 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6379 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6380 (eval $ac_link) 2>&5
6381 ac_status=$?
6382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6383 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6384 pipe_works=yes
6385 fi
6386 LIBS="$lt_save_LIBS"
6387 CFLAGS="$lt_save_CFLAGS"
6388 else
6389 echo "cannot find nm_test_func in $nlist" >&5
6390 fi
6391 else
6392 echo "cannot find nm_test_var in $nlist" >&5
6393 fi
6394 else
6395 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6396 fi
6397 else
6398 echo "$progname: failed program was:" >&5
6399 cat conftest.$ac_ext >&5
6400 fi
6401 rm -rf conftest* conftst*
6402
6403 # Do not use the global_symbol_pipe unless it works.
6404 if test "$pipe_works" = yes; then
6405 break
6406 else
6407 lt_cv_sys_global_symbol_pipe=
6408 fi
6409done
6410
6411fi
6412
6413if test -z "$lt_cv_sys_global_symbol_pipe"; then
6414 lt_cv_sys_global_symbol_to_cdecl=
6415fi
6416if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6418$as_echo "failed" >&6; }
6419else
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6421$as_echo "ok" >&6; }
6422fi
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
061793a4 6443
7a938933
ILT
6444
6445
6446# Check whether --enable-libtool-lock was given.
6447if test "${enable_libtool_lock+set}" = set; then :
6448 enableval=$enable_libtool_lock;
6449fi
6450
6451test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6452
6453# Some flags need to be propagated to the compiler or linker for good
6454# libtool support.
6455case $host in
6456ia64-*-hpux*)
6457 # Find out which ABI we are using.
6458 echo 'int i;' > conftest.$ac_ext
6459 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6460 (eval $ac_compile) 2>&5
6461 ac_status=$?
6462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6463 test $ac_status = 0; }; then
6464 case `/usr/bin/file conftest.$ac_objext` in
6465 *ELF-32*)
6466 HPUX_IA64_MODE="32"
6467 ;;
6468 *ELF-64*)
6469 HPUX_IA64_MODE="64"
6470 ;;
6471 esac
6472 fi
6473 rm -rf conftest*
6474 ;;
6475*-*-irix6*)
6476 # Find out which ABI we are using.
6477 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6479 (eval $ac_compile) 2>&5
6480 ac_status=$?
6481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6482 test $ac_status = 0; }; then
6483 if test "$lt_cv_prog_gnu_ld" = yes; then
6484 case `/usr/bin/file conftest.$ac_objext` in
6485 *32-bit*)
6486 LD="${LD-ld} -melf32bsmip"
6487 ;;
6488 *N32*)
6489 LD="${LD-ld} -melf32bmipn32"
6490 ;;
6491 *64-bit*)
6492 LD="${LD-ld} -melf64bmip"
6493 ;;
6494 esac
6495 else
6496 case `/usr/bin/file conftest.$ac_objext` in
6497 *32-bit*)
6498 LD="${LD-ld} -32"
6499 ;;
6500 *N32*)
6501 LD="${LD-ld} -n32"
6502 ;;
6503 *64-bit*)
6504 LD="${LD-ld} -64"
6505 ;;
6506 esac
6507 fi
6508 fi
6509 rm -rf conftest*
6510 ;;
6511
6e6bbb60 6512x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7a938933
ILT
6513s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6514 # Find out which ABI we are using.
6515 echo 'int i;' > conftest.$ac_ext
6516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6517 (eval $ac_compile) 2>&5
6518 ac_status=$?
6519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6520 test $ac_status = 0; }; then
6521 case `/usr/bin/file conftest.o` in
6522 *32-bit*)
6523 case $host in
6524 x86_64-*kfreebsd*-gnu)
6525 LD="${LD-ld} -m elf_i386_fbsd"
6526 ;;
6527 x86_64-*linux*)
327a26a3
ILT
6528 case `/usr/bin/file conftest.o` in
6529 *x86-64*)
6530 LD="${LD-ld} -m elf32_x86_64"
6531 ;;
6532 *)
6533 LD="${LD-ld} -m elf_i386"
6534 ;;
6535 esac
7a938933 6536 ;;
42c447c0 6537 powerpc64le-*linux*)
6e6bbb60
ILT
6538 LD="${LD-ld} -m elf32lppclinux"
6539 ;;
42c447c0 6540 powerpc64-*linux*)
7a938933
ILT
6541 LD="${LD-ld} -m elf32ppclinux"
6542 ;;
6543 s390x-*linux*)
6544 LD="${LD-ld} -m elf_s390"
6545 ;;
6546 sparc64-*linux*)
6547 LD="${LD-ld} -m elf32_sparc"
6548 ;;
6549 esac
6550 ;;
6551 *64-bit*)
6552 case $host in
6553 x86_64-*kfreebsd*-gnu)
6554 LD="${LD-ld} -m elf_x86_64_fbsd"
6555 ;;
6556 x86_64-*linux*)
6557 LD="${LD-ld} -m elf_x86_64"
6558 ;;
42c447c0 6559 powerpcle-*linux*)
6e6bbb60
ILT
6560 LD="${LD-ld} -m elf64lppc"
6561 ;;
42c447c0 6562 powerpc-*linux*)
7a938933
ILT
6563 LD="${LD-ld} -m elf64ppc"
6564 ;;
6565 s390*-*linux*|s390*-*tpf*)
6566 LD="${LD-ld} -m elf64_s390"
6567 ;;
6568 sparc*-*linux*)
6569 LD="${LD-ld} -m elf64_sparc"
6570 ;;
6571 esac
6572 ;;
6573 esac
6574 fi
6575 rm -rf conftest*
6576 ;;
6577
6578*-*-sco3.2v5*)
6579 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6580 SAVE_CFLAGS="$CFLAGS"
6581 CFLAGS="$CFLAGS -belf"
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6583$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6584if test "${lt_cv_cc_needs_belf+set}" = set; then :
6585 $as_echo_n "(cached) " >&6
6586else
6587 ac_ext=c
6588ac_cpp='$CPP $CPPFLAGS'
6589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6591ac_compiler_gnu=$ac_cv_c_compiler_gnu
6592
6593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6594/* end confdefs.h. */
6595
6596int
6597main ()
6598{
6599
6600 ;
6601 return 0;
6602}
6603_ACEOF
6604if ac_fn_c_try_link "$LINENO"; then :
6605 lt_cv_cc_needs_belf=yes
6606else
6607 lt_cv_cc_needs_belf=no
6608fi
6609rm -f core conftest.err conftest.$ac_objext \
6610 conftest$ac_exeext conftest.$ac_ext
6611 ac_ext=c
6612ac_cpp='$CPP $CPPFLAGS'
6613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6615ac_compiler_gnu=$ac_cv_c_compiler_gnu
6616
6617fi
6618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6619$as_echo "$lt_cv_cc_needs_belf" >&6; }
6620 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6621 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6622 CFLAGS="$SAVE_CFLAGS"
6623 fi
6624 ;;
327a26a3 6625sparc*-*solaris*)
7a938933
ILT
6626 # Find out which ABI we are using.
6627 echo 'int i;' > conftest.$ac_ext
6628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6629 (eval $ac_compile) 2>&5
6630 ac_status=$?
6631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6632 test $ac_status = 0; }; then
6633 case `/usr/bin/file conftest.o` in
6634 *64-bit*)
6635 case $lt_cv_prog_gnu_ld in
327a26a3 6636 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7a938933
ILT
6637 *)
6638 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6639 LD="${LD-ld} -64"
6640 fi
6641 ;;
6642 esac
6643 ;;
6644 esac
6645 fi
6646 rm -rf conftest*
6647 ;;
6648esac
6649
6650need_locks="$enable_libtool_lock"
6651
6652
6653 case $host_os in
6654 rhapsody* | darwin*)
6655 if test -n "$ac_tool_prefix"; then
6656 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6657set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6659$as_echo_n "checking for $ac_word... " >&6; }
6660if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6661 $as_echo_n "(cached) " >&6
6662else
6663 if test -n "$DSYMUTIL"; then
6664 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6665else
6666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667for as_dir in $PATH
6668do
6669 IFS=$as_save_IFS
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
6672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6673 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6675 break 2
6676 fi
6677done
6678 done
6679IFS=$as_save_IFS
6680
6681fi
6682fi
6683DSYMUTIL=$ac_cv_prog_DSYMUTIL
6684if test -n "$DSYMUTIL"; then
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6686$as_echo "$DSYMUTIL" >&6; }
6687else
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6689$as_echo "no" >&6; }
6690fi
6691
6692
6693fi
6694if test -z "$ac_cv_prog_DSYMUTIL"; then
6695 ac_ct_DSYMUTIL=$DSYMUTIL
6696 # Extract the first word of "dsymutil", so it can be a program name with args.
6697set dummy dsymutil; ac_word=$2
6698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6699$as_echo_n "checking for $ac_word... " >&6; }
6700if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6701 $as_echo_n "(cached) " >&6
6702else
6703 if test -n "$ac_ct_DSYMUTIL"; then
6704 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6705else
6706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707for as_dir in $PATH
6708do
6709 IFS=$as_save_IFS
6710 test -z "$as_dir" && as_dir=.
6711 for ac_exec_ext in '' $ac_executable_extensions; do
6712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6713 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6715 break 2
6716 fi
6717done
6718 done
6719IFS=$as_save_IFS
6720
6721fi
6722fi
6723ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6724if test -n "$ac_ct_DSYMUTIL"; then
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6726$as_echo "$ac_ct_DSYMUTIL" >&6; }
6727else
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6729$as_echo "no" >&6; }
6730fi
6731
6732 if test "x$ac_ct_DSYMUTIL" = x; then
6733 DSYMUTIL=":"
6734 else
6735 case $cross_compiling:$ac_tool_warned in
6736yes:)
6737{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6738$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6739ac_tool_warned=yes ;;
6740esac
6741 DSYMUTIL=$ac_ct_DSYMUTIL
6742 fi
6743else
6744 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6745fi
6746
6747 if test -n "$ac_tool_prefix"; then
6748 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6749set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6751$as_echo_n "checking for $ac_word... " >&6; }
6752if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6753 $as_echo_n "(cached) " >&6
6754else
6755 if test -n "$NMEDIT"; then
6756 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6757else
6758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759for as_dir in $PATH
6760do
6761 IFS=$as_save_IFS
6762 test -z "$as_dir" && as_dir=.
6763 for ac_exec_ext in '' $ac_executable_extensions; do
6764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6765 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6767 break 2
6768 fi
6769done
6770 done
6771IFS=$as_save_IFS
6772
6773fi
6774fi
6775NMEDIT=$ac_cv_prog_NMEDIT
6776if test -n "$NMEDIT"; then
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6778$as_echo "$NMEDIT" >&6; }
6779else
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6781$as_echo "no" >&6; }
6782fi
6783
6784
6785fi
6786if test -z "$ac_cv_prog_NMEDIT"; then
6787 ac_ct_NMEDIT=$NMEDIT
6788 # Extract the first word of "nmedit", so it can be a program name with args.
6789set dummy nmedit; ac_word=$2
6790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6791$as_echo_n "checking for $ac_word... " >&6; }
6792if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6793 $as_echo_n "(cached) " >&6
6794else
6795 if test -n "$ac_ct_NMEDIT"; then
6796 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6797else
6798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799for as_dir in $PATH
6800do
6801 IFS=$as_save_IFS
6802 test -z "$as_dir" && as_dir=.
6803 for ac_exec_ext in '' $ac_executable_extensions; do
6804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6805 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6807 break 2
6808 fi
6809done
6810 done
6811IFS=$as_save_IFS
6812
6813fi
6814fi
6815ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6816if test -n "$ac_ct_NMEDIT"; then
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6818$as_echo "$ac_ct_NMEDIT" >&6; }
6819else
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6821$as_echo "no" >&6; }
6822fi
6823
6824 if test "x$ac_ct_NMEDIT" = x; then
6825 NMEDIT=":"
6826 else
6827 case $cross_compiling:$ac_tool_warned in
6828yes:)
6829{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6830$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6831ac_tool_warned=yes ;;
6832esac
6833 NMEDIT=$ac_ct_NMEDIT
6834 fi
6835else
6836 NMEDIT="$ac_cv_prog_NMEDIT"
6837fi
6838
6839 if test -n "$ac_tool_prefix"; then
6840 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6841set dummy ${ac_tool_prefix}lipo; ac_word=$2
6842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6843$as_echo_n "checking for $ac_word... " >&6; }
6844if test "${ac_cv_prog_LIPO+set}" = set; then :
6845 $as_echo_n "(cached) " >&6
6846else
6847 if test -n "$LIPO"; then
6848 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6849else
6850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851for as_dir in $PATH
6852do
6853 IFS=$as_save_IFS
6854 test -z "$as_dir" && as_dir=.
6855 for ac_exec_ext in '' $ac_executable_extensions; do
6856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6857 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6859 break 2
6860 fi
6861done
6862 done
6863IFS=$as_save_IFS
6864
6865fi
6866fi
6867LIPO=$ac_cv_prog_LIPO
6868if test -n "$LIPO"; then
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6870$as_echo "$LIPO" >&6; }
6871else
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6873$as_echo "no" >&6; }
6874fi
6875
6876
6877fi
6878if test -z "$ac_cv_prog_LIPO"; then
6879 ac_ct_LIPO=$LIPO
6880 # Extract the first word of "lipo", so it can be a program name with args.
6881set dummy lipo; ac_word=$2
6882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6883$as_echo_n "checking for $ac_word... " >&6; }
6884if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6885 $as_echo_n "(cached) " >&6
6886else
6887 if test -n "$ac_ct_LIPO"; then
6888 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6889else
6890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891for as_dir in $PATH
6892do
6893 IFS=$as_save_IFS
6894 test -z "$as_dir" && as_dir=.
6895 for ac_exec_ext in '' $ac_executable_extensions; do
6896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6897 ac_cv_prog_ac_ct_LIPO="lipo"
6898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6899 break 2
6900 fi
6901done
6902 done
6903IFS=$as_save_IFS
6904
6905fi
6906fi
6907ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6908if test -n "$ac_ct_LIPO"; then
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6910$as_echo "$ac_ct_LIPO" >&6; }
6911else
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6913$as_echo "no" >&6; }
6914fi
6915
6916 if test "x$ac_ct_LIPO" = x; then
6917 LIPO=":"
6918 else
6919 case $cross_compiling:$ac_tool_warned in
6920yes:)
6921{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6922$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6923ac_tool_warned=yes ;;
6924esac
6925 LIPO=$ac_ct_LIPO
6926 fi
6927else
6928 LIPO="$ac_cv_prog_LIPO"
6929fi
6930
6931 if test -n "$ac_tool_prefix"; then
6932 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6933set dummy ${ac_tool_prefix}otool; ac_word=$2
6934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935$as_echo_n "checking for $ac_word... " >&6; }
6936if test "${ac_cv_prog_OTOOL+set}" = set; then :
6937 $as_echo_n "(cached) " >&6
6938else
6939 if test -n "$OTOOL"; then
6940 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6941else
6942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943for as_dir in $PATH
6944do
6945 IFS=$as_save_IFS
6946 test -z "$as_dir" && as_dir=.
6947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6949 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6951 break 2
6952 fi
6953done
6954 done
6955IFS=$as_save_IFS
6956
6957fi
6958fi
6959OTOOL=$ac_cv_prog_OTOOL
6960if test -n "$OTOOL"; then
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6962$as_echo "$OTOOL" >&6; }
6963else
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965$as_echo "no" >&6; }
6966fi
6967
6968
6969fi
6970if test -z "$ac_cv_prog_OTOOL"; then
6971 ac_ct_OTOOL=$OTOOL
6972 # Extract the first word of "otool", so it can be a program name with args.
6973set dummy otool; ac_word=$2
6974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6975$as_echo_n "checking for $ac_word... " >&6; }
6976if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6977 $as_echo_n "(cached) " >&6
6978else
6979 if test -n "$ac_ct_OTOOL"; then
6980 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6981else
6982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983for as_dir in $PATH
6984do
6985 IFS=$as_save_IFS
6986 test -z "$as_dir" && as_dir=.
6987 for ac_exec_ext in '' $ac_executable_extensions; do
6988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6989 ac_cv_prog_ac_ct_OTOOL="otool"
6990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6991 break 2
6992 fi
6993done
6994 done
6995IFS=$as_save_IFS
6996
6997fi
6998fi
6999ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7000if test -n "$ac_ct_OTOOL"; then
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7002$as_echo "$ac_ct_OTOOL" >&6; }
7003else
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7005$as_echo "no" >&6; }
7006fi
7007
7008 if test "x$ac_ct_OTOOL" = x; then
7009 OTOOL=":"
7010 else
7011 case $cross_compiling:$ac_tool_warned in
7012yes:)
7013{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7014$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7015ac_tool_warned=yes ;;
7016esac
7017 OTOOL=$ac_ct_OTOOL
7018 fi
7019else
7020 OTOOL="$ac_cv_prog_OTOOL"
7021fi
7022
7023 if test -n "$ac_tool_prefix"; then
7024 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7025set dummy ${ac_tool_prefix}otool64; ac_word=$2
7026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7027$as_echo_n "checking for $ac_word... " >&6; }
7028if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7029 $as_echo_n "(cached) " >&6
7030else
7031 if test -n "$OTOOL64"; then
7032 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7033else
7034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035for as_dir in $PATH
7036do
7037 IFS=$as_save_IFS
7038 test -z "$as_dir" && as_dir=.
7039 for ac_exec_ext in '' $ac_executable_extensions; do
7040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7041 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7043 break 2
7044 fi
7045done
7046 done
7047IFS=$as_save_IFS
7048
7049fi
7050fi
7051OTOOL64=$ac_cv_prog_OTOOL64
7052if test -n "$OTOOL64"; then
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7054$as_echo "$OTOOL64" >&6; }
7055else
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057$as_echo "no" >&6; }
7058fi
7059
7060
7061fi
7062if test -z "$ac_cv_prog_OTOOL64"; then
7063 ac_ct_OTOOL64=$OTOOL64
7064 # Extract the first word of "otool64", so it can be a program name with args.
7065set dummy otool64; ac_word=$2
7066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7067$as_echo_n "checking for $ac_word... " >&6; }
7068if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7069 $as_echo_n "(cached) " >&6
7070else
7071 if test -n "$ac_ct_OTOOL64"; then
7072 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7073else
7074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075for as_dir in $PATH
7076do
7077 IFS=$as_save_IFS
7078 test -z "$as_dir" && as_dir=.
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7081 ac_cv_prog_ac_ct_OTOOL64="otool64"
7082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7083 break 2
7084 fi
7085done
7086 done
7087IFS=$as_save_IFS
7088
7089fi
7090fi
7091ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7092if test -n "$ac_ct_OTOOL64"; then
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7094$as_echo "$ac_ct_OTOOL64" >&6; }
7095else
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7097$as_echo "no" >&6; }
7098fi
7099
7100 if test "x$ac_ct_OTOOL64" = x; then
7101 OTOOL64=":"
7102 else
7103 case $cross_compiling:$ac_tool_warned in
7104yes:)
7105{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7106$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7107ac_tool_warned=yes ;;
7108esac
7109 OTOOL64=$ac_ct_OTOOL64
7110 fi
7111else
e02ed81e 7112 OTOOL64="$ac_cv_prog_OTOOL64"
7a938933
ILT
7113fi
7114
7a938933
ILT
7115
7116
7a938933 7117
7a938933 7118
7a938933 7119
7a938933 7120
7a938933 7121
7a938933 7122
7a938933 7123
7a938933 7124
7a938933 7125
7a938933 7126
7a938933 7127
e02ed81e
ILT
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7142$as_echo_n "checking for -single_module linker flag... " >&6; }
7143if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7144 $as_echo_n "(cached) " >&6
7a938933 7145else
e02ed81e
ILT
7146 lt_cv_apple_cc_single_mod=no
7147 if test -z "${LT_MULTI_MODULE}"; then
7148 # By default we will add the -single_module flag. You can override
7149 # by either setting the environment variable LT_MULTI_MODULE
7150 # non-empty at configure time, or by adding -multi_module to the
7151 # link flags.
7152 rm -rf libconftest.dylib*
7153 echo "int foo(void){return 1;}" > conftest.c
7154 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7155-dynamiclib -Wl,-single_module conftest.c" >&5
7156 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7157 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7158 _lt_result=$?
7159 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7160 lt_cv_apple_cc_single_mod=yes
7161 else
7162 cat conftest.err >&5
7163 fi
7164 rm -rf libconftest.dylib*
7165 rm -f conftest.*
7166 fi
7167fi
7168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7169$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7171$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7172if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7173 $as_echo_n "(cached) " >&6
7174else
7175 lt_cv_ld_exported_symbols_list=no
7176 save_LDFLAGS=$LDFLAGS
7177 echo "_main" > conftest.sym
7178 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7a938933 7180/* end confdefs.h. */
7a938933 7181
7a938933
ILT
7182int
7183main ()
7184{
e02ed81e
ILT
7185
7186 ;
7a938933
ILT
7187 return 0;
7188}
7189_ACEOF
e02ed81e
ILT
7190if ac_fn_c_try_link "$LINENO"; then :
7191 lt_cv_ld_exported_symbols_list=yes
7a938933 7192else
e02ed81e 7193 lt_cv_ld_exported_symbols_list=no
7a938933 7194fi
e02ed81e
ILT
7195rm -f core conftest.err conftest.$ac_objext \
7196 conftest$ac_exeext conftest.$ac_ext
7197 LDFLAGS="$save_LDFLAGS"
7a938933
ILT
7198
7199fi
e02ed81e
ILT
7200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7201$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7203$as_echo_n "checking for -force_load linker flag... " >&6; }
7204if test "${lt_cv_ld_force_load+set}" = set; then :
7205 $as_echo_n "(cached) " >&6
7206else
7207 lt_cv_ld_force_load=no
7208 cat > conftest.c << _LT_EOF
7209int forced_loaded() { return 2;}
7210_LT_EOF
7211 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7212 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7213 echo "$AR cru libconftest.a conftest.o" >&5
7214 $AR cru libconftest.a conftest.o 2>&5
7215 cat > conftest.c << _LT_EOF
7216int main() { return 0;}
7217_LT_EOF
7218 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7219 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7220 _lt_result=$?
7221 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7222 lt_cv_ld_force_load=yes
7223 else
7224 cat conftest.err >&5
7225 fi
7226 rm -f conftest.err libconftest.a conftest conftest.c
7227 rm -rf conftest.dSYM
7a938933
ILT
7228
7229fi
e02ed81e
ILT
7230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7231$as_echo "$lt_cv_ld_force_load" >&6; }
7232 case $host_os in
7233 rhapsody* | darwin1.[012])
7234 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7235 darwin1.*)
7236 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7237 darwin*) # darwin 5.x on
7238 # if running on 10.5 or later, the deployment target defaults
7239 # to the OS version, if on x86, and 10.4, the deployment
7240 # target defaults to 10.4. Don't you love it?
7241 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7242 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7243 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
327a26a3 7244 10.[012][,.]*)
e02ed81e
ILT
7245 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7246 10.*)
7247 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7248 esac
7249 ;;
7250 esac
7251 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7252 _lt_dar_single_mod='$single_module'
7253 fi
7254 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7255 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7256 else
7257 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7258 fi
7259 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7260 _lt_dsymutil='~$DSYMUTIL $lib || :'
7261 else
7262 _lt_dsymutil=
7263 fi
7264 ;;
7265 esac
7a938933 7266
061793a4
ILT
7267ac_ext=c
7268ac_cpp='$CPP $CPPFLAGS'
7269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7271ac_compiler_gnu=$ac_cv_c_compiler_gnu
7272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7273$as_echo_n "checking how to run the C preprocessor... " >&6; }
7274# On Suns, sometimes $CPP names a directory.
7275if test -n "$CPP" && test -d "$CPP"; then
7276 CPP=
7277fi
7278if test -z "$CPP"; then
7279 if test "${ac_cv_prog_CPP+set}" = set; then :
7280 $as_echo_n "(cached) " >&6
7281else
7282 # Double quotes because CPP needs to be expanded
7283 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7284 do
7285 ac_preproc_ok=false
7286for ac_c_preproc_warn_flag in '' yes
7287do
7288 # Use a header file that comes with gcc, so configuring glibc
7289 # with a fresh cross-compiler works.
7290 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7291 # <limits.h> exists even on freestanding compilers.
7292 # On the NeXT, cc -E runs the code through the compiler's parser,
7293 # not just through cpp. "Syntax error" is here to catch this case.
7294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7295/* end confdefs.h. */
7296#ifdef __STDC__
7297# include <limits.h>
7298#else
7299# include <assert.h>
7300#endif
7301 Syntax error
7302_ACEOF
7303if ac_fn_c_try_cpp "$LINENO"; then :
7304
7305else
7306 # Broken: fails on valid input.
7307continue
7308fi
7309rm -f conftest.err conftest.$ac_ext
7310
7311 # OK, works on sane cases. Now check whether nonexistent headers
7312 # can be detected and how.
7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314/* end confdefs.h. */
7315#include <ac_nonexistent.h>
7316_ACEOF
7317if ac_fn_c_try_cpp "$LINENO"; then :
7318 # Broken: success on invalid input.
7319continue
7320else
7321 # Passes both tests.
7322ac_preproc_ok=:
7323break
7324fi
7325rm -f conftest.err conftest.$ac_ext
7326
7327done
7328# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7329rm -f conftest.err conftest.$ac_ext
7330if $ac_preproc_ok; then :
7331 break
7332fi
7333
7334 done
7335 ac_cv_prog_CPP=$CPP
7336
7337fi
7338 CPP=$ac_cv_prog_CPP
7339else
7340 ac_cv_prog_CPP=$CPP
7341fi
7342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7343$as_echo "$CPP" >&6; }
7344ac_preproc_ok=false
7345for ac_c_preproc_warn_flag in '' yes
7346do
7347 # Use a header file that comes with gcc, so configuring glibc
7348 # with a fresh cross-compiler works.
7349 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7350 # <limits.h> exists even on freestanding compilers.
7351 # On the NeXT, cc -E runs the code through the compiler's parser,
7352 # not just through cpp. "Syntax error" is here to catch this case.
7353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7354/* end confdefs.h. */
7355#ifdef __STDC__
7356# include <limits.h>
7357#else
7358# include <assert.h>
7359#endif
7360 Syntax error
7361_ACEOF
7362if ac_fn_c_try_cpp "$LINENO"; then :
7363
7364else
7365 # Broken: fails on valid input.
7366continue
7367fi
7368rm -f conftest.err conftest.$ac_ext
7369
7370 # OK, works on sane cases. Now check whether nonexistent headers
7371 # can be detected and how.
7372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7373/* end confdefs.h. */
7374#include <ac_nonexistent.h>
7375_ACEOF
7376if ac_fn_c_try_cpp "$LINENO"; then :
7377 # Broken: success on invalid input.
7378continue
7379else
7380 # Passes both tests.
7381ac_preproc_ok=:
7382break
7383fi
7384rm -f conftest.err conftest.$ac_ext
7385
7386done
7387# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7388rm -f conftest.err conftest.$ac_ext
7389if $ac_preproc_ok; then :
7390
7391else
7392 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7393$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7394as_fn_error "C preprocessor \"$CPP\" fails sanity check
7395See \`config.log' for more details." "$LINENO" 5; }
7396fi
7397
7398ac_ext=c
7399ac_cpp='$CPP $CPPFLAGS'
7400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7402ac_compiler_gnu=$ac_cv_c_compiler_gnu
7403
7404
7405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7406$as_echo_n "checking for ANSI C header files... " >&6; }
7407if test "${ac_cv_header_stdc+set}" = set; then :
7408 $as_echo_n "(cached) " >&6
7409else
7410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7411/* end confdefs.h. */
7412#include <stdlib.h>
7413#include <stdarg.h>
7414#include <string.h>
7415#include <float.h>
7416
7417int
7418main ()
7419{
7420
7421 ;
7422 return 0;
7423}
7424_ACEOF
7425if ac_fn_c_try_compile "$LINENO"; then :
7426 ac_cv_header_stdc=yes
7427else
7428 ac_cv_header_stdc=no
7429fi
7430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7431
7432if test $ac_cv_header_stdc = yes; then
7433 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7435/* end confdefs.h. */
7436#include <string.h>
7437
7438_ACEOF
7439if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7440 $EGREP "memchr" >/dev/null 2>&1; then :
7441
7442else
7443 ac_cv_header_stdc=no
7444fi
7445rm -f conftest*
7446
7447fi
7448
7449if test $ac_cv_header_stdc = yes; then
7450 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7452/* end confdefs.h. */
7453#include <stdlib.h>
7454
7455_ACEOF
7456if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7457 $EGREP "free" >/dev/null 2>&1; then :
7458
7459else
7460 ac_cv_header_stdc=no
7461fi
7462rm -f conftest*
7463
7464fi
7465
7466if test $ac_cv_header_stdc = yes; then
7467 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7468 if test "$cross_compiling" = yes; then :
7469 :
7470else
7471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7472/* end confdefs.h. */
7473#include <ctype.h>
7474#include <stdlib.h>
7475#if ((' ' & 0x0FF) == 0x020)
7476# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7477# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7478#else
7479# define ISLOWER(c) \
7480 (('a' <= (c) && (c) <= 'i') \
7481 || ('j' <= (c) && (c) <= 'r') \
7482 || ('s' <= (c) && (c) <= 'z'))
7483# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7484#endif
7485
7486#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7487int
7488main ()
7489{
7490 int i;
7491 for (i = 0; i < 256; i++)
7492 if (XOR (islower (i), ISLOWER (i))
7493 || toupper (i) != TOUPPER (i))
7494 return 2;
7495 return 0;
7496}
7497_ACEOF
7498if ac_fn_c_try_run "$LINENO"; then :
7499
7500else
7501 ac_cv_header_stdc=no
7502fi
7503rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7504 conftest.$ac_objext conftest.beam conftest.$ac_ext
7505fi
7506
7507fi
7508fi
7509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7510$as_echo "$ac_cv_header_stdc" >&6; }
7511if test $ac_cv_header_stdc = yes; then
7512
7513$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7514
7515fi
7516
7517# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7518for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7519 inttypes.h stdint.h unistd.h
7520do :
7521 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7522ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7523"
7524eval as_val=\$$as_ac_Header
7525 if test "x$as_val" = x""yes; then :
7526 cat >>confdefs.h <<_ACEOF
7527#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7528_ACEOF
7529
7530fi
7531
7532done
7533
7534
7a938933
ILT
7535for ac_header in dlfcn.h
7536do :
7537 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7538"
7539if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7540 cat >>confdefs.h <<_ACEOF
7541#define HAVE_DLFCN_H 1
7542_ACEOF
7543
7544fi
7545
7546done
7547
7548if test -n "$ac_tool_prefix"; then
7549 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7550set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7552$as_echo_n "checking for $ac_word... " >&6; }
7553if test "${ac_cv_prog_GOC+set}" = set; then :
7554 $as_echo_n "(cached) " >&6
7555else
7556 if test -n "$GOC"; then
7557 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7558else
7559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560for as_dir in $PATH
7561do
7562 IFS=$as_save_IFS
7563 test -z "$as_dir" && as_dir=.
7564 for ac_exec_ext in '' $ac_executable_extensions; do
7565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7566 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7568 break 2
7569 fi
7570done
7571 done
7572IFS=$as_save_IFS
7573
7574fi
7575fi
7576GOC=$ac_cv_prog_GOC
7577if test -n "$GOC"; then
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7579$as_echo "$GOC" >&6; }
7580else
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7582$as_echo "no" >&6; }
7583fi
7584
7585
7586fi
7587if test -z "$ac_cv_prog_GOC"; then
7588 ac_ct_GOC=$GOC
7589 # Extract the first word of "gccgo", so it can be a program name with args.
7590set dummy gccgo; ac_word=$2
7591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7592$as_echo_n "checking for $ac_word... " >&6; }
7593if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7594 $as_echo_n "(cached) " >&6
7595else
7596 if test -n "$ac_ct_GOC"; then
7597 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7598else
7599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600for as_dir in $PATH
7601do
7602 IFS=$as_save_IFS
7603 test -z "$as_dir" && as_dir=.
7604 for ac_exec_ext in '' $ac_executable_extensions; do
7605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7606 ac_cv_prog_ac_ct_GOC="gccgo"
7607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7608 break 2
7609 fi
7610done
7611 done
7612IFS=$as_save_IFS
7613
7614fi
7615fi
7616ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7617if test -n "$ac_ct_GOC"; then
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7619$as_echo "$ac_ct_GOC" >&6; }
7620else
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7622$as_echo "no" >&6; }
7623fi
7624
7625 if test "x$ac_ct_GOC" = x; then
7626 GOC=""
7627 else
7628 case $cross_compiling:$ac_tool_warned in
7629yes:)
7630{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7631$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7632ac_tool_warned=yes ;;
7633esac
7634 GOC=$ac_ct_GOC
7635 fi
7636else
7637 GOC="$ac_cv_prog_GOC"
7638fi
7639
7640
7641
7642
7643
7644
7645# Set options
7646
7647
7648
7649
7650 enable_win32_dll=no
7651
7652
7653 # Check whether --enable-shared was given.
7654if test "${enable_shared+set}" = set; then :
7655 enableval=$enable_shared; p=${PACKAGE-default}
7656 case $enableval in
7657 yes) enable_shared=yes ;;
7658 no) enable_shared=no ;;
7659 *)
7660 enable_shared=no
7661 # Look at the argument we got. We use all the common list separators.
7662 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7663 for pkg in $enableval; do
7664 IFS="$lt_save_ifs"
7665 if test "X$pkg" = "X$p"; then
7666 enable_shared=yes
7667 fi
7668 done
7669 IFS="$lt_save_ifs"
7670 ;;
7671 esac
7672else
7673 enable_shared=yes
7674fi
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684 # Check whether --enable-static was given.
7685if test "${enable_static+set}" = set; then :
7686 enableval=$enable_static; p=${PACKAGE-default}
7687 case $enableval in
7688 yes) enable_static=yes ;;
7689 no) enable_static=no ;;
7690 *)
7691 enable_static=no
7692 # Look at the argument we got. We use all the common list separators.
7693 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7694 for pkg in $enableval; do
7695 IFS="$lt_save_ifs"
7696 if test "X$pkg" = "X$p"; then
7697 enable_static=yes
7698 fi
7699 done
7700 IFS="$lt_save_ifs"
7701 ;;
7702 esac
7703else
7704 enable_static=yes
7705fi
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716# Check whether --with-pic was given.
7717if test "${with_pic+set}" = set; then :
7718 withval=$with_pic; pic_mode="$withval"
7719else
7720 pic_mode=default
7721fi
7722
7723
7724test -z "$pic_mode" && pic_mode=default
7725
7726
7727
7728
7729
7730
7731
7732 # Check whether --enable-fast-install was given.
7733if test "${enable_fast_install+set}" = set; then :
7734 enableval=$enable_fast_install; p=${PACKAGE-default}
7735 case $enableval in
7736 yes) enable_fast_install=yes ;;
7737 no) enable_fast_install=no ;;
7738 *)
7739 enable_fast_install=no
7740 # Look at the argument we got. We use all the common list separators.
7741 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7742 for pkg in $enableval; do
7743 IFS="$lt_save_ifs"
7744 if test "X$pkg" = "X$p"; then
7745 enable_fast_install=yes
7746 fi
7747 done
7748 IFS="$lt_save_ifs"
7749 ;;
7750 esac
7751else
7752 enable_fast_install=yes
7753fi
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765# This can be used to rebuild libtool when needed
7766LIBTOOL_DEPS="$ltmain"
7767
7768# Always use our own libtool.
7769LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796test -z "$LN_S" && LN_S="ln -s"
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811if test -n "${ZSH_VERSION+set}" ; then
7812 setopt NO_GLOB_SUBST
7813fi
7814
7815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7816$as_echo_n "checking for objdir... " >&6; }
7817if test "${lt_cv_objdir+set}" = set; then :
7818 $as_echo_n "(cached) " >&6
7819else
7820 rm -f .libs 2>/dev/null
7821mkdir .libs 2>/dev/null
7822if test -d .libs; then
7823 lt_cv_objdir=.libs
7824else
7825 # MS-DOS does not allow filenames that begin with a dot.
7826 lt_cv_objdir=_libs
7827fi
7828rmdir .libs 2>/dev/null
7829fi
7830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7831$as_echo "$lt_cv_objdir" >&6; }
7832objdir=$lt_cv_objdir
7833
7834
7835
7836
7837
7838cat >>confdefs.h <<_ACEOF
7839#define LT_OBJDIR "$lt_cv_objdir/"
7840_ACEOF
7841
7842
7843
7844
7845case $host_os in
7846aix3*)
7847 # AIX sometimes has problems with the GCC collect2 program. For some
7848 # reason, if we set the COLLECT_NAMES environment variable, the problems
7849 # vanish in a puff of smoke.
7850 if test "X${COLLECT_NAMES+set}" != Xset; then
7851 COLLECT_NAMES=
7852 export COLLECT_NAMES
7853 fi
7854 ;;
7855esac
7856
7857# Global variables:
7858ofile=libtool
7859can_build_shared=yes
7860
7861# All known linkers require a `.a' archive for static linking (except MSVC,
7862# which needs '.lib').
7863libext=a
7864
7865with_gnu_ld="$lt_cv_prog_gnu_ld"
7866
7867old_CC="$CC"
7868old_CFLAGS="$CFLAGS"
7869
7870# Set sane defaults for various variables
7871test -z "$CC" && CC=cc
7872test -z "$LTCC" && LTCC=$CC
7873test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7874test -z "$LD" && LD=ld
7875test -z "$ac_objext" && ac_objext=o
7876
7877for cc_temp in $compiler""; do
7878 case $cc_temp in
7879 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7880 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7881 \-*) ;;
7882 *) break;;
7883 esac
7884done
7885cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7886
7887
7888# Only perform the check for file, if the check method requires it
7889test -z "$MAGIC_CMD" && MAGIC_CMD=file
7890case $deplibs_check_method in
7891file_magic*)
7892 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7894$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7895if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7896 $as_echo_n "(cached) " >&6
7897else
7898 case $MAGIC_CMD in
7899[\\/*] | ?:[\\/]*)
7900 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7901 ;;
7902*)
7903 lt_save_MAGIC_CMD="$MAGIC_CMD"
7904 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7905 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7906 for ac_dir in $ac_dummy; do
7907 IFS="$lt_save_ifs"
7908 test -z "$ac_dir" && ac_dir=.
7909 if test -f $ac_dir/${ac_tool_prefix}file; then
7910 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7911 if test -n "$file_magic_test_file"; then
7912 case $deplibs_check_method in
7913 "file_magic "*)
7914 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7915 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7916 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7917 $EGREP "$file_magic_regex" > /dev/null; then
7918 :
7919 else
7920 cat <<_LT_EOF 1>&2
7921
7922*** Warning: the command libtool uses to detect shared libraries,
7923*** $file_magic_cmd, produces output that libtool cannot recognize.
7924*** The result is that libtool may fail to recognize shared libraries
7925*** as such. This will affect the creation of libtool libraries that
7926*** depend on shared libraries, but programs linked with such libtool
7927*** libraries will work regardless of this problem. Nevertheless, you
7928*** may want to report the problem to your system manager and/or to
7929*** bug-libtool@gnu.org
7930
7931_LT_EOF
7932 fi ;;
7933 esac
7934 fi
7935 break
7936 fi
7937 done
7938 IFS="$lt_save_ifs"
7939 MAGIC_CMD="$lt_save_MAGIC_CMD"
7940 ;;
7941esac
7942fi
7943
7944MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7945if test -n "$MAGIC_CMD"; then
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7947$as_echo "$MAGIC_CMD" >&6; }
7948else
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7950$as_echo "no" >&6; }
7951fi
7952
7953
7954
7955
7956
7957if test -z "$lt_cv_path_MAGIC_CMD"; then
7958 if test -n "$ac_tool_prefix"; then
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7960$as_echo_n "checking for file... " >&6; }
7961if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7962 $as_echo_n "(cached) " >&6
7963else
7964 case $MAGIC_CMD in
7965[\\/*] | ?:[\\/]*)
7966 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7967 ;;
7968*)
7969 lt_save_MAGIC_CMD="$MAGIC_CMD"
7970 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7971 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7972 for ac_dir in $ac_dummy; do
7973 IFS="$lt_save_ifs"
7974 test -z "$ac_dir" && ac_dir=.
7975 if test -f $ac_dir/file; then
7976 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7977 if test -n "$file_magic_test_file"; then
7978 case $deplibs_check_method in
7979 "file_magic "*)
7980 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7981 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7982 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7983 $EGREP "$file_magic_regex" > /dev/null; then
7984 :
7985 else
7986 cat <<_LT_EOF 1>&2
7987
7988*** Warning: the command libtool uses to detect shared libraries,
7989*** $file_magic_cmd, produces output that libtool cannot recognize.
7990*** The result is that libtool may fail to recognize shared libraries
7991*** as such. This will affect the creation of libtool libraries that
7992*** depend on shared libraries, but programs linked with such libtool
7993*** libraries will work regardless of this problem. Nevertheless, you
7994*** may want to report the problem to your system manager and/or to
7995*** bug-libtool@gnu.org
7996
7997_LT_EOF
7998 fi ;;
7999 esac
8000 fi
8001 break
8002 fi
8003 done
8004 IFS="$lt_save_ifs"
8005 MAGIC_CMD="$lt_save_MAGIC_CMD"
8006 ;;
8007esac
8008fi
8009
8010MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8011if test -n "$MAGIC_CMD"; then
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8013$as_echo "$MAGIC_CMD" >&6; }
8014else
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8016$as_echo "no" >&6; }
8017fi
8018
8019
8020 else
8021 MAGIC_CMD=:
8022 fi
8023fi
8024
8025 fi
8026 ;;
8027esac
8028
8029# Use C for the default configuration in the libtool script
8030
8031lt_save_CC="$CC"
8032ac_ext=c
8033ac_cpp='$CPP $CPPFLAGS'
8034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8036ac_compiler_gnu=$ac_cv_c_compiler_gnu
8037
8038
8039# Source file extension for C test sources.
8040ac_ext=c
8041
8042# Object file extension for compiled C test sources.
8043objext=o
8044objext=$objext
8045
8046# Code to be used in simple compile tests
8047lt_simple_compile_test_code="int some_variable = 0;"
8048
8049# Code to be used in simple link tests
8050lt_simple_link_test_code='int main(){return(0);}'
8051
8052
8053
8054
8055
8056
8057
8058# If no C compiler was specified, use CC.
8059LTCC=${LTCC-"$CC"}
8060
8061# If no C compiler flags were specified, use CFLAGS.
8062LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8063
8064# Allow CC to be a program name with arguments.
8065compiler=$CC
8066
8067# Save the default compiler, since it gets overwritten when the other
8068# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8069compiler_DEFAULT=$CC
8070
8071# save warnings/boilerplate of simple test code
8072ac_outfile=conftest.$ac_objext
8073echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8074eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8075_lt_compiler_boilerplate=`cat conftest.err`
8076$RM conftest*
8077
8078ac_outfile=conftest.$ac_objext
8079echo "$lt_simple_link_test_code" >conftest.$ac_ext
8080eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8081_lt_linker_boilerplate=`cat conftest.err`
8082$RM -r conftest*
8083
8084
8085## CAVEAT EMPTOR:
8086## There is no encapsulation within the following macros, do not change
8087## the running order or otherwise move them around unless you know exactly
8088## what you are doing...
8089if test -n "$compiler"; then
8090
8091lt_prog_compiler_no_builtin_flag=
8092
8093if test "$GCC" = yes; then
8094 case $cc_basename in
8095 nvcc*)
8096 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8097 *)
8098 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8099 esac
8100
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8102$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8103if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8104 $as_echo_n "(cached) " >&6
8105else
8106 lt_cv_prog_compiler_rtti_exceptions=no
8107 ac_outfile=conftest.$ac_objext
8108 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8109 lt_compiler_flag="-fno-rtti -fno-exceptions"
8110 # Insert the option either (1) after the last *FLAGS variable, or
8111 # (2) before a word containing "conftest.", or (3) at the end.
8112 # Note that $ac_compile itself does not contain backslashes and begins
8113 # with a dollar sign (not a hyphen), so the echo should work correctly.
8114 # The option is referenced via a variable to avoid confusing sed.
8115 lt_compile=`echo "$ac_compile" | $SED \
8116 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8117 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8118 -e 's:$: $lt_compiler_flag:'`
8119 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8120 (eval "$lt_compile" 2>conftest.err)
8121 ac_status=$?
8122 cat conftest.err >&5
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 if (exit $ac_status) && test -s "$ac_outfile"; then
8125 # The compiler can only warn and ignore the option if not recognized
8126 # So say no if there are warnings other than the usual output.
8127 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8128 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8129 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8130 lt_cv_prog_compiler_rtti_exceptions=yes
8131 fi
8132 fi
8133 $RM conftest*
8134
8135fi
8136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8137$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8138
8139if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8140 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8141else
8142 :
8143fi
8144
8145fi
8146
8147
8148
8149
8150
8151
8152 lt_prog_compiler_wl=
8153lt_prog_compiler_pic=
8154lt_prog_compiler_static=
8155
8156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8157$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8158
8159 if test "$GCC" = yes; then
8160 lt_prog_compiler_wl='-Wl,'
8161 lt_prog_compiler_static='-static'
8162
8163 case $host_os in
8164 aix*)
8165 # All AIX code is PIC.
8166 if test "$host_cpu" = ia64; then
8167 # AIX 5 now supports IA64 processor
8168 lt_prog_compiler_static='-Bstatic'
8169 fi
327a26a3 8170 lt_prog_compiler_pic='-fPIC'
7a938933
ILT
8171 ;;
8172
8173 amigaos*)
8174 case $host_cpu in
8175 powerpc)
8176 # see comment about AmigaOS4 .so support
8177 lt_prog_compiler_pic='-fPIC'
8178 ;;
8179 m68k)
8180 # FIXME: we need at least 68020 code to build shared libraries, but
8181 # adding the `-m68020' flag to GCC prevents building anything better,
8182 # like `-m68040'.
8183 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8184 ;;
8185 esac
8186 ;;
8187
8188 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8189 # PIC is the default for these OSes.
8190 ;;
8191
8192 mingw* | cygwin* | pw32* | os2* | cegcc*)
8193 # This hack is so that the source file can tell whether it is being
8194 # built for inclusion in a dll (and should export symbols for example).
8195 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8196 # (--disable-auto-import) libraries
8197 lt_prog_compiler_pic='-DDLL_EXPORT'
8198 ;;
8199
8200 darwin* | rhapsody*)
8201 # PIC is the default on this platform
8202 # Common symbols not allowed in MH_DYLIB files
8203 lt_prog_compiler_pic='-fno-common'
8204 ;;
8205
8206 haiku*)
8207 # PIC is the default for Haiku.
8208 # The "-static" flag exists, but is broken.
8209 lt_prog_compiler_static=
8210 ;;
8211
8212 hpux*)
8213 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8214 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8215 # sets the default TLS model and affects inlining.
8216 case $host_cpu in
8217 hppa*64*)
8218 # +Z the default
8219 ;;
8220 *)
8221 lt_prog_compiler_pic='-fPIC'
8222 ;;
8223 esac
8224 ;;
8225
8226 interix[3-9]*)
8227 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8228 # Instead, we relocate shared libraries at runtime.
8229 ;;
8230
8231 msdosdjgpp*)
8232 # Just because we use GCC doesn't mean we suddenly get shared libraries
8233 # on systems that don't support them.
8234 lt_prog_compiler_can_build_shared=no
8235 enable_shared=no
8236 ;;
8237
8238 *nto* | *qnx*)
8239 # QNX uses GNU C++, but need to define -shared option too, otherwise
8240 # it will coredump.
8241 lt_prog_compiler_pic='-fPIC -shared'
8242 ;;
8243
8244 sysv4*MP*)
8245 if test -d /usr/nec; then
8246 lt_prog_compiler_pic=-Kconform_pic
8247 fi
8248 ;;
8249
8250 *)
8251 lt_prog_compiler_pic='-fPIC'
8252 ;;
8253 esac
8254
8255 case $cc_basename in
8256 nvcc*) # Cuda Compiler Driver 2.2
8257 lt_prog_compiler_wl='-Xlinker '
8258 lt_prog_compiler_pic='-Xcompiler -fPIC'
8259 ;;
8260 esac
8261 else
8262 # PORTME Check for flag to pass linker flags through the system compiler.
8263 case $host_os in
8264 aix*)
8265 lt_prog_compiler_wl='-Wl,'
8266 if test "$host_cpu" = ia64; then
8267 # AIX 5 now supports IA64 processor
8268 lt_prog_compiler_static='-Bstatic'
8269 else
8270 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8271 fi
8272 ;;
8273
8274 mingw* | cygwin* | pw32* | os2* | cegcc*)
8275 # This hack is so that the source file can tell whether it is being
8276 # built for inclusion in a dll (and should export symbols for example).
8277 lt_prog_compiler_pic='-DDLL_EXPORT'
8278 ;;
8279
8280 hpux9* | hpux10* | hpux11*)
8281 lt_prog_compiler_wl='-Wl,'
8282 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8283 # not for PA HP-UX.
8284 case $host_cpu in
8285 hppa*64*|ia64*)
8286 # +Z the default
8287 ;;
8288 *)
8289 lt_prog_compiler_pic='+Z'
8290 ;;
8291 esac
8292 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8293 lt_prog_compiler_static='${wl}-a ${wl}archive'
8294 ;;
8295
8296 irix5* | irix6* | nonstopux*)
8297 lt_prog_compiler_wl='-Wl,'
8298 # PIC (with -KPIC) is the default.
8299 lt_prog_compiler_static='-non_shared'
8300 ;;
8301
8302 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8303 case $cc_basename in
8304 # old Intel for x86_64 which still supported -KPIC.
8305 ecc*)
8306 lt_prog_compiler_wl='-Wl,'
8307 lt_prog_compiler_pic='-KPIC'
8308 lt_prog_compiler_static='-static'
8309 ;;
8310 # icc used to be incompatible with GCC.
8311 # ICC 10 doesn't accept -KPIC any more.
8312 icc* | ifort*)
8313 lt_prog_compiler_wl='-Wl,'
8314 lt_prog_compiler_pic='-fPIC'
8315 lt_prog_compiler_static='-static'
8316 ;;
8317 # Lahey Fortran 8.1.
8318 lf95*)
8319 lt_prog_compiler_wl='-Wl,'
8320 lt_prog_compiler_pic='--shared'
8321 lt_prog_compiler_static='--static'
8322 ;;
8323 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8324 # Portland Group compilers (*not* the Pentium gcc compiler,
8325 # which looks to be a dead project)
8326 lt_prog_compiler_wl='-Wl,'
8327 lt_prog_compiler_pic='-fpic'
8328 lt_prog_compiler_static='-Bstatic'
8329 ;;
8330 ccc*)
8331 lt_prog_compiler_wl='-Wl,'
8332 # All Alpha code is PIC.
8333 lt_prog_compiler_static='-non_shared'
8334 ;;
8335 xl* | bgxl* | bgf* | mpixl*)
8336 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8337 lt_prog_compiler_wl='-Wl,'
8338 lt_prog_compiler_pic='-qpic'
8339 lt_prog_compiler_static='-qstaticlink'
8340 ;;
8341 *)
8342 case `$CC -V 2>&1 | sed 5q` in
8343 *Sun\ F* | *Sun*Fortran*)
8344 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8345 lt_prog_compiler_pic='-KPIC'
8346 lt_prog_compiler_static='-Bstatic'
8347 lt_prog_compiler_wl=''
8348 ;;
8349 *Sun\ C*)
8350 # Sun C 5.9
8351 lt_prog_compiler_pic='-KPIC'
8352 lt_prog_compiler_static='-Bstatic'
8353 lt_prog_compiler_wl='-Wl,'
8354 ;;
8355 esac
8356 ;;
8357 esac
8358 ;;
8359
8360 newsos6)
8361 lt_prog_compiler_pic='-KPIC'
8362 lt_prog_compiler_static='-Bstatic'
8363 ;;
8364
8365 *nto* | *qnx*)
8366 # QNX uses GNU C++, but need to define -shared option too, otherwise
8367 # it will coredump.
8368 lt_prog_compiler_pic='-fPIC -shared'
8369 ;;
8370
8371 osf3* | osf4* | osf5*)
8372 lt_prog_compiler_wl='-Wl,'
8373 # All OSF/1 code is PIC.
8374 lt_prog_compiler_static='-non_shared'
8375 ;;
8376
8377 rdos*)
8378 lt_prog_compiler_static='-non_shared'
8379 ;;
8380
8381 solaris*)
8382 lt_prog_compiler_pic='-KPIC'
8383 lt_prog_compiler_static='-Bstatic'
8384 case $cc_basename in
8385 f77* | f90* | f95*)
8386 lt_prog_compiler_wl='-Qoption ld ';;
8387 *)
8388 lt_prog_compiler_wl='-Wl,';;
8389 esac
8390 ;;
8391
8392 sunos4*)
8393 lt_prog_compiler_wl='-Qoption ld '
8394 lt_prog_compiler_pic='-PIC'
8395 lt_prog_compiler_static='-Bstatic'
8396 ;;
8397
8398 sysv4 | sysv4.2uw2* | sysv4.3*)
8399 lt_prog_compiler_wl='-Wl,'
8400 lt_prog_compiler_pic='-KPIC'
8401 lt_prog_compiler_static='-Bstatic'
8402 ;;
8403
8404 sysv4*MP*)
8405 if test -d /usr/nec ;then
8406 lt_prog_compiler_pic='-Kconform_pic'
8407 lt_prog_compiler_static='-Bstatic'
8408 fi
8409 ;;
8410
8411 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8412 lt_prog_compiler_wl='-Wl,'
8413 lt_prog_compiler_pic='-KPIC'
8414 lt_prog_compiler_static='-Bstatic'
8415 ;;
8416
8417 unicos*)
8418 lt_prog_compiler_wl='-Wl,'
8419 lt_prog_compiler_can_build_shared=no
8420 ;;
8421
8422 uts4*)
8423 lt_prog_compiler_pic='-pic'
8424 lt_prog_compiler_static='-Bstatic'
8425 ;;
8426
8427 *)
8428 lt_prog_compiler_can_build_shared=no
8429 ;;
8430 esac
8431 fi
8432
8433case $host_os in
8434 # For platforms which do not support PIC, -DPIC is meaningless:
8435 *djgpp*)
8436 lt_prog_compiler_pic=
8437 ;;
8438 *)
8439 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8440 ;;
8441esac
8442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8443$as_echo "$lt_prog_compiler_pic" >&6; }
8444
8445
8446
8447
8448
8449
8450#
8451# Check to make sure the PIC flag actually works.
8452#
8453if test -n "$lt_prog_compiler_pic"; then
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8455$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8456if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8457 $as_echo_n "(cached) " >&6
8458else
8459 lt_cv_prog_compiler_pic_works=no
8460 ac_outfile=conftest.$ac_objext
8461 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8462 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8463 # Insert the option either (1) after the last *FLAGS variable, or
8464 # (2) before a word containing "conftest.", or (3) at the end.
8465 # Note that $ac_compile itself does not contain backslashes and begins
8466 # with a dollar sign (not a hyphen), so the echo should work correctly.
8467 # The option is referenced via a variable to avoid confusing sed.
8468 lt_compile=`echo "$ac_compile" | $SED \
8469 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8470 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8471 -e 's:$: $lt_compiler_flag:'`
8472 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8473 (eval "$lt_compile" 2>conftest.err)
8474 ac_status=$?
8475 cat conftest.err >&5
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 if (exit $ac_status) && test -s "$ac_outfile"; then
8478 # The compiler can only warn and ignore the option if not recognized
8479 # So say no if there are warnings other than the usual output.
8480 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8481 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8482 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8483 lt_cv_prog_compiler_pic_works=yes
8484 fi
8485 fi
8486 $RM conftest*
8487
8488fi
8489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8490$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8491
8492if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8493 case $lt_prog_compiler_pic in
8494 "" | " "*) ;;
8495 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8496 esac
8497else
8498 lt_prog_compiler_pic=
8499 lt_prog_compiler_can_build_shared=no
8500fi
8501
8502fi
8503
8504
8505
8506
8507
8508
8509#
8510# Check to make sure the static flag actually works.
8511#
8512wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8514$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8515if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8516 $as_echo_n "(cached) " >&6
8517else
8518 lt_cv_prog_compiler_static_works=no
8519 save_LDFLAGS="$LDFLAGS"
8520 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8521 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8522 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8523 # The linker can only warn and ignore the option if not recognized
8524 # So say no if there are warnings
8525 if test -s conftest.err; then
8526 # Append any errors to the config.log.
8527 cat conftest.err 1>&5
8528 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8529 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8530 if diff conftest.exp conftest.er2 >/dev/null; then
8531 lt_cv_prog_compiler_static_works=yes
8532 fi
8533 else
8534 lt_cv_prog_compiler_static_works=yes
8535 fi
8536 fi
8537 $RM -r conftest*
8538 LDFLAGS="$save_LDFLAGS"
8539
8540fi
8541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8542$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8543
8544if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8545 :
8546else
8547 lt_prog_compiler_static=
8548fi
8549
8550
8551
8552
8553
8554
8555
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8557$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8558if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8559 $as_echo_n "(cached) " >&6
8560else
8561 lt_cv_prog_compiler_c_o=no
8562 $RM -r conftest 2>/dev/null
8563 mkdir conftest
8564 cd conftest
8565 mkdir out
8566 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8567
8568 lt_compiler_flag="-o out/conftest2.$ac_objext"
8569 # Insert the option either (1) after the last *FLAGS variable, or
8570 # (2) before a word containing "conftest.", or (3) at the end.
8571 # Note that $ac_compile itself does not contain backslashes and begins
8572 # with a dollar sign (not a hyphen), so the echo should work correctly.
8573 lt_compile=`echo "$ac_compile" | $SED \
8574 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8575 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8576 -e 's:$: $lt_compiler_flag:'`
8577 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8578 (eval "$lt_compile" 2>out/conftest.err)
8579 ac_status=$?
8580 cat out/conftest.err >&5
8581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8583 then
8584 # The compiler can only warn and ignore the option if not recognized
8585 # So say no if there are warnings
8586 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8587 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8588 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8589 lt_cv_prog_compiler_c_o=yes
8590 fi
8591 fi
8592 chmod u+w . 2>&5
8593 $RM conftest*
8594 # SGI C++ compiler will create directory out/ii_files/ for
8595 # template instantiation
8596 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8597 $RM out/* && rmdir out
8598 cd ..
8599 $RM -r conftest
8600 $RM conftest*
8601
8602fi
8603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8604$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8605
8606
8607
8608
8609
8610
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8612$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8613if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8614 $as_echo_n "(cached) " >&6
8615else
8616 lt_cv_prog_compiler_c_o=no
8617 $RM -r conftest 2>/dev/null
8618 mkdir conftest
8619 cd conftest
8620 mkdir out
8621 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8622
8623 lt_compiler_flag="-o out/conftest2.$ac_objext"
8624 # Insert the option either (1) after the last *FLAGS variable, or
8625 # (2) before a word containing "conftest.", or (3) at the end.
8626 # Note that $ac_compile itself does not contain backslashes and begins
8627 # with a dollar sign (not a hyphen), so the echo should work correctly.
8628 lt_compile=`echo "$ac_compile" | $SED \
8629 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8630 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8631 -e 's:$: $lt_compiler_flag:'`
8632 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8633 (eval "$lt_compile" 2>out/conftest.err)
8634 ac_status=$?
8635 cat out/conftest.err >&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8638 then
8639 # The compiler can only warn and ignore the option if not recognized
8640 # So say no if there are warnings
8641 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8642 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8643 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8644 lt_cv_prog_compiler_c_o=yes
8645 fi
8646 fi
8647 chmod u+w . 2>&5
8648 $RM conftest*
8649 # SGI C++ compiler will create directory out/ii_files/ for
8650 # template instantiation
8651 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8652 $RM out/* && rmdir out
8653 cd ..
8654 $RM -r conftest
8655 $RM conftest*
8656
8657fi
8658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8659$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8660
8661
8662
8663
8664hard_links="nottested"
8665if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8666 # do not overwrite the value of need_locks provided by the user
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8668$as_echo_n "checking if we can lock with hard links... " >&6; }
8669 hard_links=yes
8670 $RM conftest*
8671 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8672 touch conftest.a
8673 ln conftest.a conftest.b 2>&5 || hard_links=no
8674 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8676$as_echo "$hard_links" >&6; }
8677 if test "$hard_links" = no; then
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8679$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8680 need_locks=warn
8681 fi
8682else
8683 need_locks=no
8684fi
8685
8686
8687
8688
8689
8690
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8692$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8693
8694 runpath_var=
8695 allow_undefined_flag=
8696 always_export_symbols=no
8697 archive_cmds=
8698 archive_expsym_cmds=
8699 compiler_needs_object=no
8700 enable_shared_with_static_runtimes=no
8701 export_dynamic_flag_spec=
8702 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8703 hardcode_automatic=no
8704 hardcode_direct=no
8705 hardcode_direct_absolute=no
8706 hardcode_libdir_flag_spec=
8707 hardcode_libdir_flag_spec_ld=
8708 hardcode_libdir_separator=
8709 hardcode_minus_L=no
8710 hardcode_shlibpath_var=unsupported
8711 inherit_rpath=no
8712 link_all_deplibs=unknown
8713 module_cmds=
8714 module_expsym_cmds=
8715 old_archive_from_new_cmds=
8716 old_archive_from_expsyms_cmds=
8717 thread_safe_flag_spec=
8718 whole_archive_flag_spec=
8719 # include_expsyms should be a list of space-separated symbols to be *always*
8720 # included in the symbol list
8721 include_expsyms=
8722 # exclude_expsyms can be an extended regexp of symbols to exclude
8723 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8724 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8725 # as well as any symbol that contains `d'.
8726 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8727 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8728 # platforms (ab)use it in PIC code, but their linkers get confused if
8729 # the symbol is explicitly referenced. Since portable code cannot
8730 # rely on this symbol name, it's probably fine to never include it in
8731 # preloaded symbol tables.
8732 # Exclude shared library initialization/finalization symbols.
8733 extract_expsyms_cmds=
8734
8735 case $host_os in
8736 cygwin* | mingw* | pw32* | cegcc*)
8737 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8738 # When not using gcc, we currently assume that we are using
8739 # Microsoft Visual C++.
8740 if test "$GCC" != yes; then
8741 with_gnu_ld=no
8742 fi
8743 ;;
8744 interix*)
8745 # we just hope/assume this is gcc and not c89 (= MSVC++)
8746 with_gnu_ld=yes
8747 ;;
8748 openbsd*)
8749 with_gnu_ld=no
8750 ;;
8751 esac
8752
8753 ld_shlibs=yes
8754
8755 # On some targets, GNU ld is compatible enough with the native linker
8756 # that we're better off using the native interface for both.
8757 lt_use_gnu_ld_interface=no
8758 if test "$with_gnu_ld" = yes; then
8759 case $host_os in
8760 aix*)
8761 # The AIX port of GNU ld has always aspired to compatibility
8762 # with the native linker. However, as the warning in the GNU ld
8763 # block says, versions before 2.19.5* couldn't really create working
8764 # shared libraries, regardless of the interface used.
8765 case `$LD -v 2>&1` in
8766 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8767 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8768 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8769 *)
8770 lt_use_gnu_ld_interface=yes
8771 ;;
8772 esac
8773 ;;
8774 *)
8775 lt_use_gnu_ld_interface=yes
8776 ;;
8777 esac
8778 fi
8779
8780 if test "$lt_use_gnu_ld_interface" = yes; then
8781 # If archive_cmds runs LD, not CC, wlarc should be empty
8782 wlarc='${wl}'
8783
8784 # Set some defaults for GNU ld with shared library support. These
8785 # are reset later if shared libraries are not supported. Putting them
8786 # here allows them to be overridden if necessary.
8787 runpath_var=LD_RUN_PATH
8788 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8789 export_dynamic_flag_spec='${wl}--export-dynamic'
8790 # ancient GNU ld didn't support --whole-archive et. al.
8791 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8792 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8793 else
8794 whole_archive_flag_spec=
8795 fi
8796 supports_anon_versioning=no
8797 case `$LD -v 2>&1` in
8798 *GNU\ gold*) supports_anon_versioning=yes ;;
8799 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8800 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8801 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8802 *\ 2.11.*) ;; # other 2.11 versions
8803 *) supports_anon_versioning=yes ;;
8804 esac
8805
8806 # See if GNU ld supports shared libraries.
8807 case $host_os in
8808 aix[3-9]*)
8809 # On AIX/PPC, the GNU linker is very broken
8810 if test "$host_cpu" != ia64; then
8811 ld_shlibs=no
8812 cat <<_LT_EOF 1>&2
8813
8814*** Warning: the GNU linker, at least up to release 2.19, is reported
8815*** to be unable to reliably create shared libraries on AIX.
8816*** Therefore, libtool is disabling shared libraries support. If you
8817*** really care for shared libraries, you may want to install binutils
8818*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8819*** You will then need to restart the configuration process.
8820
8821_LT_EOF
8822 fi
8823 ;;
8824
8825 amigaos*)
8826 case $host_cpu in
8827 powerpc)
8828 # see comment about AmigaOS4 .so support
8829 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8830 archive_expsym_cmds=''
8831 ;;
8832 m68k)
8833 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)'
8834 hardcode_libdir_flag_spec='-L$libdir'
8835 hardcode_minus_L=yes
8836 ;;
8837 esac
8838 ;;
8839
8840 beos*)
8841 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8842 allow_undefined_flag=unsupported
8843 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8844 # support --undefined. This deserves some investigation. FIXME
8845 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8846 else
8847 ld_shlibs=no
8848 fi
8849 ;;
8850
8851 cygwin* | mingw* | pw32* | cegcc*)
8852 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8853 # as there is no search path for DLLs.
8854 hardcode_libdir_flag_spec='-L$libdir'
8855 export_dynamic_flag_spec='${wl}--export-all-symbols'
8856 allow_undefined_flag=unsupported
8857 always_export_symbols=no
8858 enable_shared_with_static_runtimes=yes
8859 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8860
8861 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8862 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8863 # If the export-symbols file already is a .def file (1st line
8864 # is EXPORTS), use it as is; otherwise, prepend...
8865 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8866 cp $export_symbols $output_objdir/$soname.def;
8867 else
8868 echo EXPORTS > $output_objdir/$soname.def;
8869 cat $export_symbols >> $output_objdir/$soname.def;
8870 fi~
8871 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8872 else
8873 ld_shlibs=no
8874 fi
8875 ;;
8876
8877 haiku*)
8878 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8879 link_all_deplibs=yes
8880 ;;
8881
8882 interix[3-9]*)
8883 hardcode_direct=no
8884 hardcode_shlibpath_var=no
8885 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8886 export_dynamic_flag_spec='${wl}-E'
8887 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8888 # Instead, shared libraries are loaded at an image base (0x10000000 by
8889 # default) and relocated if they conflict, which is a slow very memory
8890 # consuming and fragmenting process. To avoid this, we pick a random,
8891 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8892 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8893 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8894 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'
8895 ;;
8896
8897 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8898 tmp_diet=no
8899 if test "$host_os" = linux-dietlibc; then
8900 case $cc_basename in
8901 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8902 esac
8903 fi
8904 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8905 && test "$tmp_diet" = no
8906 then
8907 tmp_addflag=
8908 tmp_sharedflag='-shared'
8909 case $cc_basename,$host_cpu in
8910 pgcc*) # Portland Group C compiler
8911 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'
8912 tmp_addflag=' $pic_flag'
8913 ;;
8914 pgf77* | pgf90* | pgf95* | pgfortran*)
8915 # Portland Group f77 and f90 compilers
8916 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'
8917 tmp_addflag=' $pic_flag -Mnomain' ;;
8918 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8919 tmp_addflag=' -i_dynamic' ;;
8920 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8921 tmp_addflag=' -i_dynamic -nofor_main' ;;
8922 ifc* | ifort*) # Intel Fortran compiler
8923 tmp_addflag=' -nofor_main' ;;
8924 lf95*) # Lahey Fortran 8.1
8925 whole_archive_flag_spec=
8926 tmp_sharedflag='--shared' ;;
8927 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8928 tmp_sharedflag='-qmkshrobj'
8929 tmp_addflag= ;;
8930 nvcc*) # Cuda Compiler Driver 2.2
8931 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'
8932 compiler_needs_object=yes
8933 ;;
8934 esac
8935 case `$CC -V 2>&1 | sed 5q` in
8936 *Sun\ C*) # Sun C 5.9
8937 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'
8938 compiler_needs_object=yes
8939 tmp_sharedflag='-G' ;;
8940 *Sun\ F*) # Sun Fortran 8.3
8941 tmp_sharedflag='-G' ;;
8942 esac
8943 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8944
8945 if test "x$supports_anon_versioning" = xyes; then
8946 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8947 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8948 echo "local: *; };" >> $output_objdir/$libname.ver~
8949 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8950 fi
8951
8952 case $cc_basename in
8953 xlf* | bgf* | bgxlf* | mpixlf*)
8954 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8955 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8956 hardcode_libdir_flag_spec=
8957 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8958 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8959 if test "x$supports_anon_versioning" = xyes; then
8960 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8961 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8962 echo "local: *; };" >> $output_objdir/$libname.ver~
8963 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8964 fi
8965 ;;
8966 esac
8967 else
8968 ld_shlibs=no
8969 fi
8970 ;;
8971
8972 netbsd*)
8973 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8974 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8975 wlarc=
8976 else
8977 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8978 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8979 fi
8980 ;;
8981
8982 solaris*)
8983 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8984 ld_shlibs=no
8985 cat <<_LT_EOF 1>&2
8986
8987*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8988*** create shared libraries on Solaris systems. Therefore, libtool
8989*** is disabling shared libraries support. We urge you to upgrade GNU
8990*** binutils to release 2.9.1 or newer. Another option is to modify
8991*** your PATH or compiler configuration so that the native linker is
8992*** used, and then restart.
8993
8994_LT_EOF
8995 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8996 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8997 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8998 else
8999 ld_shlibs=no
9000 fi
9001 ;;
9002
9003 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9004 case `$LD -v 2>&1` in
9005 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9006 ld_shlibs=no
9007 cat <<_LT_EOF 1>&2
9008
9009*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9010*** reliably create shared libraries on SCO systems. Therefore, libtool
9011*** is disabling shared libraries support. We urge you to upgrade GNU
9012*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9013*** your PATH or compiler configuration so that the native linker is
9014*** used, and then restart.
9015
9016_LT_EOF
9017 ;;
9018 *)
9019 # For security reasons, it is highly recommended that you always
9020 # use absolute paths for naming shared libraries, and exclude the
9021 # DT_RUNPATH tag from executables and libraries. But doing so
9022 # requires that you compile everything twice, which is a pain.
9023 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9024 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9025 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9026 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9027 else
9028 ld_shlibs=no
9029 fi
9030 ;;
9031 esac
9032 ;;
9033
9034 sunos4*)
9035 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9036 wlarc=
9037 hardcode_direct=yes
9038 hardcode_shlibpath_var=no
9039 ;;
9040
9041 *)
9042 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9043 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9044 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9045 else
9046 ld_shlibs=no
9047 fi
9048 ;;
9049 esac
9050
9051 if test "$ld_shlibs" = no; then
9052 runpath_var=
9053 hardcode_libdir_flag_spec=
9054 export_dynamic_flag_spec=
9055 whole_archive_flag_spec=
9056 fi
9057 else
9058 # PORTME fill in a description of your system's linker (not GNU ld)
9059 case $host_os in
9060 aix3*)
9061 allow_undefined_flag=unsupported
9062 always_export_symbols=yes
9063 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'
9064 # Note: this linker hardcodes the directories in LIBPATH if there
9065 # are no directories specified by -L.
9066 hardcode_minus_L=yes
9067 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9068 # Neither direct hardcoding nor static linking is supported with a
9069 # broken collect2.
9070 hardcode_direct=unsupported
9071 fi
9072 ;;
9073
9074 aix[4-9]*)
9075 if test "$host_cpu" = ia64; then
9076 # On IA64, the linker does run time linking by default, so we don't
9077 # have to do anything special.
9078 aix_use_runtimelinking=no
9079 exp_sym_flag='-Bexport'
9080 no_entry_flag=""
9081 else
9082 # If we're using GNU nm, then we don't want the "-C" option.
9083 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9084 # Also, AIX nm treats weak defined symbols like other global
9085 # defined symbols, whereas GNU nm marks them as "W".
9086 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9087 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'
9088 else
9089 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'
9090 fi
9091 aix_use_runtimelinking=no
9092
9093 # Test if we are trying to use run time linking or normal
9094 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9095 # need to do runtime linking.
9096 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9097 for ld_flag in $LDFLAGS; do
9098 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9099 aix_use_runtimelinking=yes
9100 break
9101 fi
9102 done
9103 ;;
9104 esac
9105
9106 exp_sym_flag='-bexport'
9107 no_entry_flag='-bnoentry'
9108 fi
9109
9110 # When large executables or shared objects are built, AIX ld can
9111 # have problems creating the table of contents. If linking a library
9112 # or program results in "error TOC overflow" add -mminimal-toc to
9113 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9114 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9115
9116 archive_cmds=''
9117 hardcode_direct=yes
9118 hardcode_direct_absolute=yes
9119 hardcode_libdir_separator=':'
9120 link_all_deplibs=yes
9121 file_list_spec='${wl}-f,'
9122
9123 if test "$GCC" = yes; then
9124 case $host_os in aix4.[012]|aix4.[012].*)
9125 # We only want to do this on AIX 4.2 and lower, the check
9126 # below for broken collect2 doesn't work under 4.3+
9127 collect2name=`${CC} -print-prog-name=collect2`
9128 if test -f "$collect2name" &&
9129 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9130 then
9131 # We have reworked collect2
9132 :
9133 else
9134 # We have old collect2
9135 hardcode_direct=unsupported
9136 # It fails to find uninstalled libraries when the uninstalled
9137 # path is not listed in the libpath. Setting hardcode_minus_L
9138 # to unsupported forces relinking
9139 hardcode_minus_L=yes
9140 hardcode_libdir_flag_spec='-L$libdir'
9141 hardcode_libdir_separator=
9142 fi
9143 ;;
9144 esac
9145 shared_flag='-shared'
9146 if test "$aix_use_runtimelinking" = yes; then
9147 shared_flag="$shared_flag "'${wl}-G'
9148 fi
9149 else
9150 # not using gcc
9151 if test "$host_cpu" = ia64; then
9152 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9153 # chokes on -Wl,-G. The following line is correct:
9154 shared_flag='-G'
9155 else
9156 if test "$aix_use_runtimelinking" = yes; then
9157 shared_flag='${wl}-G'
9158 else
9159 shared_flag='${wl}-bM:SRE'
9160 fi
9161 fi
9162 fi
9163
9164 export_dynamic_flag_spec='${wl}-bexpall'
9165 # It seems that -bexpall does not export symbols beginning with
9166 # underscore (_), so it is better to generate a list of symbols to export.
9167 always_export_symbols=yes
9168 if test "$aix_use_runtimelinking" = yes; then
9169 # Warning - without using the other runtime loading flags (-brtl),
9170 # -berok will link without error, but may produce a broken library.
9171 allow_undefined_flag='-berok'
9172 # Determine the default libpath from the value encoded in an
9173 # empty executable.
9174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9175/* end confdefs.h. */
9176
9177int
9178main ()
9179{
9180
9181 ;
9182 return 0;
9183}
9184_ACEOF
9185if ac_fn_c_try_link "$LINENO"; then :
9186
9187lt_aix_libpath_sed='
9188 /Import File Strings/,/^$/ {
9189 /^0/ {
9190 s/^0 *\(.*\)$/\1/
9191 p
9192 }
9193 }'
9194aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9195# Check for a 64-bit object if we didn't find anything.
9196if test -z "$aix_libpath"; then
9197 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9198fi
9199fi
9200rm -f core conftest.err conftest.$ac_objext \
9201 conftest$ac_exeext conftest.$ac_ext
9202if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9203
9204 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9205 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"
9206 else
9207 if test "$host_cpu" = ia64; then
9208 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9209 allow_undefined_flag="-z nodefs"
9210 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"
9211 else
9212 # Determine the default libpath from the value encoded in an
9213 # empty executable.
9214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9215/* end confdefs.h. */
9216
9217int
9218main ()
9219{
9220
9221 ;
9222 return 0;
9223}
9224_ACEOF
9225if ac_fn_c_try_link "$LINENO"; then :
9226
9227lt_aix_libpath_sed='
9228 /Import File Strings/,/^$/ {
9229 /^0/ {
9230 s/^0 *\(.*\)$/\1/
9231 p
9232 }
9233 }'
9234aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9235# Check for a 64-bit object if we didn't find anything.
9236if test -z "$aix_libpath"; then
9237 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9238fi
9239fi
9240rm -f core conftest.err conftest.$ac_objext \
9241 conftest$ac_exeext conftest.$ac_ext
9242if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9243
9244 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9245 # Warning - without using the other run time loading flags,
9246 # -berok will link without error, but may produce a broken library.
9247 no_undefined_flag=' ${wl}-bernotok'
9248 allow_undefined_flag=' ${wl}-berok'
9249 if test "$with_gnu_ld" = yes; then
9250 # We only use this code for GNU lds that support --whole-archive.
9251 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9252 else
9253 # Exported symbols can be pulled into shared objects from archives
9254 whole_archive_flag_spec='$convenience'
9255 fi
9256 archive_cmds_need_lc=yes
9257 # This is similar to how AIX traditionally builds its shared libraries.
9258 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'
9259 fi
9260 fi
9261 ;;
9262
9263 amigaos*)
9264 case $host_cpu in
9265 powerpc)
9266 # see comment about AmigaOS4 .so support
9267 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9268 archive_expsym_cmds=''
9269 ;;
9270 m68k)
9271 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)'
9272 hardcode_libdir_flag_spec='-L$libdir'
9273 hardcode_minus_L=yes
9274 ;;
9275 esac
9276 ;;
9277
9278 bsdi[45]*)
9279 export_dynamic_flag_spec=-rdynamic
9280 ;;
9281
9282 cygwin* | mingw* | pw32* | cegcc*)
9283 # When not using gcc, we currently assume that we are using
9284 # Microsoft Visual C++.
9285 # hardcode_libdir_flag_spec is actually meaningless, as there is
9286 # no search path for DLLs.
9287 hardcode_libdir_flag_spec=' '
9288 allow_undefined_flag=unsupported
9289 # Tell ltmain to make .lib files, not .a files.
9290 libext=lib
9291 # Tell ltmain to make .dll files, not .so files.
9292 shrext_cmds=".dll"
9293 # FIXME: Setting linknames here is a bad hack.
9294 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9295 # The linker will automatically build a .lib file if we build a DLL.
9296 old_archive_from_new_cmds='true'
9297 # FIXME: Should let the user specify the lib program.
9298 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9299 fix_srcfile_path='`cygpath -w "$srcfile"`'
9300 enable_shared_with_static_runtimes=yes
9301 ;;
9302
9303 darwin* | rhapsody*)
9304
9305
9306 archive_cmds_need_lc=no
9307 hardcode_direct=no
9308 hardcode_automatic=yes
9309 hardcode_shlibpath_var=unsupported
9310 if test "$lt_cv_ld_force_load" = "yes"; then
9311 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\"`'
9312 else
9313 whole_archive_flag_spec=''
9314 fi
9315 link_all_deplibs=yes
9316 allow_undefined_flag="$_lt_dar_allow_undefined"
9317 case $cc_basename in
9318 ifort*) _lt_dar_can_shared=yes ;;
9319 *) _lt_dar_can_shared=$GCC ;;
9320 esac
9321 if test "$_lt_dar_can_shared" = "yes"; then
9322 output_verbose_link_cmd=func_echo_all
9323 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9324 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9325 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}"
9326 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}"
9327
9328 else
9329 ld_shlibs=no
9330 fi
9331
9332 ;;
9333
9334 dgux*)
9335 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9336 hardcode_libdir_flag_spec='-L$libdir'
9337 hardcode_shlibpath_var=no
9338 ;;
9339
7a938933
ILT
9340 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9341 # support. Future versions do this automatically, but an explicit c++rt0.o
9342 # does not break anything, and helps significantly (at the cost of a little
9343 # extra space).
9344 freebsd2.2*)
9345 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9346 hardcode_libdir_flag_spec='-R$libdir'
9347 hardcode_direct=yes
9348 hardcode_shlibpath_var=no
9349 ;;
9350
9351 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
327a26a3 9352 freebsd2.*)
7a938933
ILT
9353 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9354 hardcode_direct=yes
9355 hardcode_minus_L=yes
9356 hardcode_shlibpath_var=no
9357 ;;
9358
9359 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9360 freebsd* | dragonfly*)
9361 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9362 hardcode_libdir_flag_spec='-R$libdir'
9363 hardcode_direct=yes
9364 hardcode_shlibpath_var=no
9365 ;;
9366
9367 hpux9*)
9368 if test "$GCC" = yes; then
9369 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'
9370 else
9371 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'
9372 fi
9373 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9374 hardcode_libdir_separator=:
9375 hardcode_direct=yes
9376
9377 # hardcode_minus_L: Not really in the search PATH,
9378 # but as the default location of the library.
9379 hardcode_minus_L=yes
9380 export_dynamic_flag_spec='${wl}-E'
9381 ;;
9382
9383 hpux10*)
9384 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9385 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9386 else
9387 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9388 fi
9389 if test "$with_gnu_ld" = no; then
9390 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9391 hardcode_libdir_flag_spec_ld='+b $libdir'
9392 hardcode_libdir_separator=:
9393 hardcode_direct=yes
9394 hardcode_direct_absolute=yes
9395 export_dynamic_flag_spec='${wl}-E'
9396 # hardcode_minus_L: Not really in the search PATH,
9397 # but as the default location of the library.
9398 hardcode_minus_L=yes
9399 fi
9400 ;;
9401
9402 hpux11*)
9403 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9404 case $host_cpu in
9405 hppa*64*)
9406 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9407 ;;
9408 ia64*)
9409 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9410 ;;
9411 *)
9412 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9413 ;;
9414 esac
9415 else
9416 case $host_cpu in
9417 hppa*64*)
9418 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9419 ;;
9420 ia64*)
9421 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9422 ;;
9423 *)
9424
9425 # Older versions of the 11.00 compiler do not understand -b yet
9426 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9428$as_echo_n "checking if $CC understands -b... " >&6; }
9429if test "${lt_cv_prog_compiler__b+set}" = set; then :
9430 $as_echo_n "(cached) " >&6
9431else
9432 lt_cv_prog_compiler__b=no
9433 save_LDFLAGS="$LDFLAGS"
9434 LDFLAGS="$LDFLAGS -b"
9435 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9436 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9437 # The linker can only warn and ignore the option if not recognized
9438 # So say no if there are warnings
9439 if test -s conftest.err; then
9440 # Append any errors to the config.log.
9441 cat conftest.err 1>&5
9442 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9443 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9444 if diff conftest.exp conftest.er2 >/dev/null; then
9445 lt_cv_prog_compiler__b=yes
9446 fi
9447 else
9448 lt_cv_prog_compiler__b=yes
9449 fi
9450 fi
9451 $RM -r conftest*
9452 LDFLAGS="$save_LDFLAGS"
9453
9454fi
9455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9456$as_echo "$lt_cv_prog_compiler__b" >&6; }
9457
9458if test x"$lt_cv_prog_compiler__b" = xyes; then
9459 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9460else
9461 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9462fi
9463
9464 ;;
9465 esac
9466 fi
9467 if test "$with_gnu_ld" = no; then
9468 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9469 hardcode_libdir_separator=:
9470
9471 case $host_cpu in
9472 hppa*64*|ia64*)
9473 hardcode_direct=no
9474 hardcode_shlibpath_var=no
9475 ;;
9476 *)
9477 hardcode_direct=yes
9478 hardcode_direct_absolute=yes
9479 export_dynamic_flag_spec='${wl}-E'
9480
9481 # hardcode_minus_L: Not really in the search PATH,
9482 # but as the default location of the library.
9483 hardcode_minus_L=yes
9484 ;;
9485 esac
9486 fi
9487 ;;
9488
9489 irix5* | irix6* | nonstopux*)
9490 if test "$GCC" = yes; then
9491 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'
9492 # Try to use the -exported_symbol ld option, if it does not
9493 # work, assume that -exports_file does not work either and
9494 # implicitly export all symbols.
9495 save_LDFLAGS="$LDFLAGS"
9496 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9498/* end confdefs.h. */
9499int foo(void) {}
9500_ACEOF
9501if ac_fn_c_try_link "$LINENO"; then :
9502 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'
9503
9504fi
9505rm -f core conftest.err conftest.$ac_objext \
9506 conftest$ac_exeext conftest.$ac_ext
9507 LDFLAGS="$save_LDFLAGS"
9508 else
9509 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'
9510 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'
9511 fi
9512 archive_cmds_need_lc='no'
9513 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9514 hardcode_libdir_separator=:
9515 inherit_rpath=yes
9516 link_all_deplibs=yes
9517 ;;
9518
9519 netbsd*)
9520 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9521 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9522 else
9523 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9524 fi
9525 hardcode_libdir_flag_spec='-R$libdir'
9526 hardcode_direct=yes
9527 hardcode_shlibpath_var=no
9528 ;;
9529
9530 newsos6)
9531 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9532 hardcode_direct=yes
9533 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9534 hardcode_libdir_separator=:
9535 hardcode_shlibpath_var=no
9536 ;;
9537
9538 *nto* | *qnx*)
9539 ;;
9540
9541 openbsd*)
9542 if test -f /usr/libexec/ld.so; then
9543 hardcode_direct=yes
9544 hardcode_shlibpath_var=no
9545 hardcode_direct_absolute=yes
9546 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9547 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9548 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9549 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9550 export_dynamic_flag_spec='${wl}-E'
9551 else
9552 case $host_os in
9553 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9554 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9555 hardcode_libdir_flag_spec='-R$libdir'
9556 ;;
9557 *)
9558 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9559 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9560 ;;
9561 esac
9562 fi
9563 else
9564 ld_shlibs=no
9565 fi
9566 ;;
9567
9568 os2*)
9569 hardcode_libdir_flag_spec='-L$libdir'
9570 hardcode_minus_L=yes
9571 allow_undefined_flag=unsupported
9572 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'
9573 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9574 ;;
9575
9576 osf3*)
9577 if test "$GCC" = yes; then
9578 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9579 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'
9580 else
9581 allow_undefined_flag=' -expect_unresolved \*'
9582 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'
9583 fi
9584 archive_cmds_need_lc='no'
9585 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9586 hardcode_libdir_separator=:
9587 ;;
9588
9589 osf4* | osf5*) # as osf3* with the addition of -msym flag
9590 if test "$GCC" = yes; then
9591 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9592 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'
9593 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9594 else
9595 allow_undefined_flag=' -expect_unresolved \*'
9596 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'
9597 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~
9598 $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'
9599
9600 # Both c and cxx compiler support -rpath directly
9601 hardcode_libdir_flag_spec='-rpath $libdir'
9602 fi
9603 archive_cmds_need_lc='no'
9604 hardcode_libdir_separator=:
9605 ;;
9606
9607 solaris*)
9608 no_undefined_flag=' -z defs'
9609 if test "$GCC" = yes; then
9610 wlarc='${wl}'
9611 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9612 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9613 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9614 else
9615 case `$CC -V 2>&1` in
9616 *"Compilers 5.0"*)
9617 wlarc=''
9618 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9619 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9620 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9621 ;;
9622 *)
9623 wlarc='${wl}'
9624 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9625 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9626 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9627 ;;
9628 esac
9629 fi
9630 hardcode_libdir_flag_spec='-R$libdir'
9631 hardcode_shlibpath_var=no
9632 case $host_os in
9633 solaris2.[0-5] | solaris2.[0-5].*) ;;
9634 *)
9635 # The compiler driver will combine and reorder linker options,
9636 # but understands `-z linker_flag'. GCC discards it without `$wl',
9637 # but is careful enough not to reorder.
9638 # Supported since Solaris 2.6 (maybe 2.5.1?)
9639 if test "$GCC" = yes; then
9640 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9641 else
9642 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9643 fi
9644 ;;
9645 esac
9646 link_all_deplibs=yes
9647 ;;
9648
9649 sunos4*)
9650 if test "x$host_vendor" = xsequent; then
9651 # Use $CC to link under sequent, because it throws in some extra .o
9652 # files that make .init and .fini sections work.
9653 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9654 else
9655 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9656 fi
9657 hardcode_libdir_flag_spec='-L$libdir'
9658 hardcode_direct=yes
9659 hardcode_minus_L=yes
9660 hardcode_shlibpath_var=no
9661 ;;
9662
9663 sysv4)
9664 case $host_vendor in
9665 sni)
9666 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9667 hardcode_direct=yes # is this really true???
9668 ;;
9669 siemens)
9670 ## LD is ld it makes a PLAMLIB
9671 ## CC just makes a GrossModule.
9672 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9673 reload_cmds='$CC -r -o $output$reload_objs'
9674 hardcode_direct=no
9675 ;;
9676 motorola)
9677 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9678 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9679 ;;
9680 esac
9681 runpath_var='LD_RUN_PATH'
9682 hardcode_shlibpath_var=no
9683 ;;
9684
9685 sysv4.3*)
9686 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9687 hardcode_shlibpath_var=no
9688 export_dynamic_flag_spec='-Bexport'
9689 ;;
9690
9691 sysv4*MP*)
9692 if test -d /usr/nec; then
9693 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9694 hardcode_shlibpath_var=no
9695 runpath_var=LD_RUN_PATH
9696 hardcode_runpath_var=yes
9697 ld_shlibs=yes
9698 fi
9699 ;;
9700
9701 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9702 no_undefined_flag='${wl}-z,text'
9703 archive_cmds_need_lc=no
9704 hardcode_shlibpath_var=no
9705 runpath_var='LD_RUN_PATH'
9706
9707 if test "$GCC" = yes; then
9708 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9709 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9710 else
9711 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9712 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9713 fi
9714 ;;
9715
9716 sysv5* | sco3.2v5* | sco5v6*)
9717 # Note: We can NOT use -z defs as we might desire, because we do not
9718 # link with -lc, and that would cause any symbols used from libc to
9719 # always be unresolved, which means just about no library would
9720 # ever link correctly. If we're not using GNU ld we use -z text
9721 # though, which does catch some bad symbols but isn't as heavy-handed
9722 # as -z defs.
9723 no_undefined_flag='${wl}-z,text'
9724 allow_undefined_flag='${wl}-z,nodefs'
9725 archive_cmds_need_lc=no
9726 hardcode_shlibpath_var=no
9727 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9728 hardcode_libdir_separator=':'
9729 link_all_deplibs=yes
9730 export_dynamic_flag_spec='${wl}-Bexport'
9731 runpath_var='LD_RUN_PATH'
9732
9733 if test "$GCC" = yes; then
9734 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9735 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9736 else
9737 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9738 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9739 fi
9740 ;;
9741
9742 uts4*)
9743 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9744 hardcode_libdir_flag_spec='-L$libdir'
9745 hardcode_shlibpath_var=no
9746 ;;
9747
9748 *)
9749 ld_shlibs=no
9750 ;;
9751 esac
9752
9753 if test x$host_vendor = xsni; then
9754 case $host in
9755 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9756 export_dynamic_flag_spec='${wl}-Blargedynsym'
9757 ;;
9758 esac
9759 fi
9760 fi
9761
9762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9763$as_echo "$ld_shlibs" >&6; }
9764test "$ld_shlibs" = no && can_build_shared=no
9765
9766with_gnu_ld=$with_gnu_ld
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782#
9783# Do we need to explicitly link libc?
9784#
9785case "x$archive_cmds_need_lc" in
9786x|xyes)
9787 # Assume -lc should be added
9788 archive_cmds_need_lc=yes
9789
9790 if test "$enable_shared" = yes && test "$GCC" = yes; then
9791 case $archive_cmds in
9792 *'~'*)
9793 # FIXME: we may have to deal with multi-command sequences.
9794 ;;
9795 '$CC '*)
9796 # Test whether the compiler implicitly links with -lc since on some
9797 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9798 # to ld, don't add -lc before -lgcc.
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9800$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9801if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9802 $as_echo_n "(cached) " >&6
9803else
9804 $RM conftest*
9805 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9806
9807 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9808 (eval $ac_compile) 2>&5
9809 ac_status=$?
9810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9811 test $ac_status = 0; } 2>conftest.err; then
9812 soname=conftest
9813 lib=conftest
9814 libobjs=conftest.$ac_objext
9815 deplibs=
9816 wl=$lt_prog_compiler_wl
9817 pic_flag=$lt_prog_compiler_pic
9818 compiler_flags=-v
9819 linker_flags=-v
9820 verstring=
9821 output_objdir=.
9822 libname=conftest
9823 lt_save_allow_undefined_flag=$allow_undefined_flag
9824 allow_undefined_flag=
9825 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9826 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9827 ac_status=$?
9828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9829 test $ac_status = 0; }
9830 then
9831 lt_cv_archive_cmds_need_lc=no
9832 else
9833 lt_cv_archive_cmds_need_lc=yes
9834 fi
9835 allow_undefined_flag=$lt_save_allow_undefined_flag
9836 else
9837 cat conftest.err 1>&5
9838 fi
9839 $RM conftest*
9840
9841fi
9842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9843$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9844 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9845 ;;
9846 esac
9847 fi
9848 ;;
9849esac
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
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10008$as_echo_n "checking dynamic linker characteristics... " >&6; }
10009
10010if test "$GCC" = yes; then
10011 case $host_os in
10012 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10013 *) lt_awk_arg="/^libraries:/" ;;
10014 esac
10015 case $host_os in
10016 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10017 *) lt_sed_strip_eq="s,=/,/,g" ;;
10018 esac
10019 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10020 case $lt_search_path_spec in
10021 *\;*)
10022 # if the path contains ";" then we assume it to be the separator
10023 # otherwise default to the standard path separator (i.e. ":") - it is
10024 # assumed that no part of a normal pathname contains ";" but that should
10025 # okay in the real world where ";" in dirpaths is itself problematic.
10026 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10027 ;;
10028 *)
10029 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10030 ;;
10031 esac
10032 # Ok, now we have the path, separated by spaces, we can step through it
10033 # and add multilib dir if necessary.
10034 lt_tmp_lt_search_path_spec=
10035 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10036 for lt_sys_path in $lt_search_path_spec; do
10037 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10038 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10039 else
10040 test -d "$lt_sys_path" && \
10041 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10042 fi
10043 done
10044 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10045BEGIN {RS=" "; FS="/|\n";} {
10046 lt_foo="";
10047 lt_count=0;
10048 for (lt_i = NF; lt_i > 0; lt_i--) {
10049 if ($lt_i != "" && $lt_i != ".") {
10050 if ($lt_i == "..") {
10051 lt_count++;
10052 } else {
10053 if (lt_count == 0) {
10054 lt_foo="/" $lt_i lt_foo;
10055 } else {
10056 lt_count--;
10057 }
10058 }
10059 }
10060 }
10061 if (lt_foo != "") { lt_freq[lt_foo]++; }
10062 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10063}'`
10064 # AWK program above erroneously prepends '/' to C:/dos/paths
10065 # for these hosts.
10066 case $host_os in
10067 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10068 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10069 esac
10070 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10071else
10072 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10073fi
10074library_names_spec=
10075libname_spec='lib$name'
10076soname_spec=
10077shrext_cmds=".so"
10078postinstall_cmds=
10079postuninstall_cmds=
10080finish_cmds=
10081finish_eval=
10082shlibpath_var=
10083shlibpath_overrides_runpath=unknown
10084version_type=none
10085dynamic_linker="$host_os ld.so"
10086sys_lib_dlsearch_path_spec="/lib /usr/lib"
10087need_lib_prefix=unknown
10088hardcode_into_libs=no
10089
10090# when you set need_version to no, make sure it does not cause -set_version
10091# flags to be left without arguments
10092need_version=unknown
10093
10094case $host_os in
10095aix3*)
10096 version_type=linux
10097 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10098 shlibpath_var=LIBPATH
10099
10100 # AIX 3 has no versioning support, so we append a major version to the name.
10101 soname_spec='${libname}${release}${shared_ext}$major'
10102 ;;
10103
10104aix[4-9]*)
10105 version_type=linux
10106 need_lib_prefix=no
10107 need_version=no
10108 hardcode_into_libs=yes
10109 if test "$host_cpu" = ia64; then
10110 # AIX 5 supports IA64
10111 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10112 shlibpath_var=LD_LIBRARY_PATH
10113 else
10114 # With GCC up to 2.95.x, collect2 would create an import file
10115 # for dependence libraries. The import file would start with
10116 # the line `#! .'. This would cause the generated library to
10117 # depend on `.', always an invalid library. This was fixed in
10118 # development snapshots of GCC prior to 3.0.
10119 case $host_os in
10120 aix4 | aix4.[01] | aix4.[01].*)
10121 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10122 echo ' yes '
10123 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10124 :
10125 else
10126 can_build_shared=no
10127 fi
10128 ;;
10129 esac
10130 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10131 # soname into executable. Probably we can add versioning support to
10132 # collect2, so additional links can be useful in future.
10133 if test "$aix_use_runtimelinking" = yes; then
10134 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10135 # instead of lib<name>.a to let people know that these are not
10136 # typical AIX shared libraries.
10137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10138 else
10139 # We preserve .a as extension for shared libraries through AIX4.2
10140 # and later when we are not doing run time linking.
10141 library_names_spec='${libname}${release}.a $libname.a'
10142 soname_spec='${libname}${release}${shared_ext}$major'
10143 fi
10144 shlibpath_var=LIBPATH
10145 fi
10146 ;;
10147
10148amigaos*)
10149 case $host_cpu in
10150 powerpc)
10151 # Since July 2007 AmigaOS4 officially supports .so libraries.
10152 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10154 ;;
10155 m68k)
10156 library_names_spec='$libname.ixlibrary $libname.a'
10157 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10158 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'
10159 ;;
10160 esac
10161 ;;
10162
10163beos*)
10164 library_names_spec='${libname}${shared_ext}'
10165 dynamic_linker="$host_os ld.so"
10166 shlibpath_var=LIBRARY_PATH
10167 ;;
10168
10169bsdi[45]*)
10170 version_type=linux
10171 need_version=no
10172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10173 soname_spec='${libname}${release}${shared_ext}$major'
10174 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10175 shlibpath_var=LD_LIBRARY_PATH
10176 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10177 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10178 # the default ld.so.conf also contains /usr/contrib/lib and
10179 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10180 # libtool to hard-code these into programs
10181 ;;
10182
10183cygwin* | mingw* | pw32* | cegcc*)
10184 version_type=windows
10185 shrext_cmds=".dll"
10186 need_version=no
10187 need_lib_prefix=no
10188
10189 case $GCC,$host_os in
10190 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10191 library_names_spec='$libname.dll.a'
10192 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10193 postinstall_cmds='base_file=`basename \${file}`~
10194 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10195 dldir=$destdir/`dirname \$dlpath`~
10196 test -d \$dldir || mkdir -p \$dldir~
10197 $install_prog $dir/$dlname \$dldir/$dlname~
10198 chmod a+x \$dldir/$dlname~
10199 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10200 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10201 fi'
10202 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10203 dlpath=$dir/\$dldll~
10204 $RM \$dlpath'
10205 shlibpath_overrides_runpath=yes
10206
10207 case $host_os in
10208 cygwin*)
10209 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10210 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10211
10212 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10213 ;;
10214 mingw* | cegcc*)
10215 # MinGW DLLs use traditional 'lib' prefix
10216 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10217 ;;
10218 pw32*)
10219 # pw32 DLLs use 'pw' prefix rather than 'lib'
10220 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10221 ;;
10222 esac
10223 ;;
10224
10225 *)
10226 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10227 ;;
10228 esac
10229 dynamic_linker='Win32 ld.exe'
10230 # FIXME: first we should search . and the directory the executable is in
10231 shlibpath_var=PATH
10232 ;;
10233
10234darwin* | rhapsody*)
10235 dynamic_linker="$host_os dyld"
10236 version_type=darwin
10237 need_lib_prefix=no
10238 need_version=no
10239 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10240 soname_spec='${libname}${release}${major}$shared_ext'
10241 shlibpath_overrides_runpath=yes
10242 shlibpath_var=DYLD_LIBRARY_PATH
10243 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10244
10245 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10246 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10247 ;;
10248
10249dgux*)
10250 version_type=linux
10251 need_lib_prefix=no
10252 need_version=no
10253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10254 soname_spec='${libname}${release}${shared_ext}$major'
10255 shlibpath_var=LD_LIBRARY_PATH
10256 ;;
10257
7a938933
ILT
10258freebsd* | dragonfly*)
10259 # DragonFly does not have aout. When/if they implement a new
10260 # versioning mechanism, adjust this.
10261 if test -x /usr/bin/objformat; then
10262 objformat=`/usr/bin/objformat`
10263 else
10264 case $host_os in
327a26a3 10265 freebsd[23].*) objformat=aout ;;
7a938933
ILT
10266 *) objformat=elf ;;
10267 esac
10268 fi
10269 version_type=freebsd-$objformat
10270 case $version_type in
10271 freebsd-elf*)
10272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10273 need_version=no
10274 need_lib_prefix=no
10275 ;;
10276 freebsd-*)
10277 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10278 need_version=yes
10279 ;;
10280 esac
10281 shlibpath_var=LD_LIBRARY_PATH
10282 case $host_os in
327a26a3 10283 freebsd2.*)
7a938933
ILT
10284 shlibpath_overrides_runpath=yes
10285 ;;
10286 freebsd3.[01]* | freebsdelf3.[01]*)
10287 shlibpath_overrides_runpath=yes
10288 hardcode_into_libs=yes
10289 ;;
10290 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10291 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10292 shlibpath_overrides_runpath=no
10293 hardcode_into_libs=yes
10294 ;;
10295 *) # from 4.6 on, and DragonFly
10296 shlibpath_overrides_runpath=yes
10297 hardcode_into_libs=yes
10298 ;;
10299 esac
10300 ;;
10301
10302gnu*)
10303 version_type=linux
10304 need_lib_prefix=no
10305 need_version=no
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=LD_LIBRARY_PATH
10309 hardcode_into_libs=yes
10310 ;;
10311
10312haiku*)
10313 version_type=linux
10314 need_lib_prefix=no
10315 need_version=no
10316 dynamic_linker="$host_os runtime_loader"
10317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10318 soname_spec='${libname}${release}${shared_ext}$major'
10319 shlibpath_var=LIBRARY_PATH
10320 shlibpath_overrides_runpath=yes
10321 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10322 hardcode_into_libs=yes
10323 ;;
10324
10325hpux9* | hpux10* | hpux11*)
10326 # Give a soname corresponding to the major version so that dld.sl refuses to
10327 # link against other versions.
10328 version_type=sunos
10329 need_lib_prefix=no
10330 need_version=no
10331 case $host_cpu in
10332 ia64*)
10333 shrext_cmds='.so'
10334 hardcode_into_libs=yes
10335 dynamic_linker="$host_os dld.so"
10336 shlibpath_var=LD_LIBRARY_PATH
10337 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10339 soname_spec='${libname}${release}${shared_ext}$major'
10340 if test "X$HPUX_IA64_MODE" = X32; then
10341 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10342 else
10343 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10344 fi
10345 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10346 ;;
10347 hppa*64*)
10348 shrext_cmds='.sl'
10349 hardcode_into_libs=yes
10350 dynamic_linker="$host_os dld.sl"
10351 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10352 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10354 soname_spec='${libname}${release}${shared_ext}$major'
10355 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10356 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10357 ;;
10358 *)
10359 shrext_cmds='.sl'
10360 dynamic_linker="$host_os dld.sl"
10361 shlibpath_var=SHLIB_PATH
10362 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10364 soname_spec='${libname}${release}${shared_ext}$major'
10365 ;;
10366 esac
10367 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10368 postinstall_cmds='chmod 555 $lib'
10369 # or fails outright, so override atomically:
10370 install_override_mode=555
10371 ;;
10372
10373interix[3-9]*)
10374 version_type=linux
10375 need_lib_prefix=no
10376 need_version=no
10377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10378 soname_spec='${libname}${release}${shared_ext}$major'
10379 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10380 shlibpath_var=LD_LIBRARY_PATH
10381 shlibpath_overrides_runpath=no
10382 hardcode_into_libs=yes
10383 ;;
10384
10385irix5* | irix6* | nonstopux*)
10386 case $host_os in
10387 nonstopux*) version_type=nonstopux ;;
10388 *)
10389 if test "$lt_cv_prog_gnu_ld" = yes; then
10390 version_type=linux
10391 else
10392 version_type=irix
10393 fi ;;
10394 esac
10395 need_lib_prefix=no
10396 need_version=no
10397 soname_spec='${libname}${release}${shared_ext}$major'
10398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10399 case $host_os in
10400 irix5* | nonstopux*)
10401 libsuff= shlibsuff=
10402 ;;
10403 *)
10404 case $LD in # libtool.m4 will add one of these switches to LD
10405 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10406 libsuff= shlibsuff= libmagic=32-bit;;
10407 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10408 libsuff=32 shlibsuff=N32 libmagic=N32;;
10409 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10410 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10411 *) libsuff= shlibsuff= libmagic=never-match;;
10412 esac
10413 ;;
10414 esac
10415 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10416 shlibpath_overrides_runpath=no
10417 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10418 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10419 hardcode_into_libs=yes
10420 ;;
10421
10422# No shared lib support for Linux oldld, aout, or coff.
10423linux*oldld* | linux*aout* | linux*coff*)
10424 dynamic_linker=no
10425 ;;
10426
10427# This must be Linux ELF.
10428linux* | k*bsd*-gnu | kopensolaris*-gnu)
10429 version_type=linux
10430 need_lib_prefix=no
10431 need_version=no
10432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10433 soname_spec='${libname}${release}${shared_ext}$major'
10434 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10435 shlibpath_var=LD_LIBRARY_PATH
10436 shlibpath_overrides_runpath=no
10437
10438 # Some binutils ld are patched to set DT_RUNPATH
10439 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10440 $as_echo_n "(cached) " >&6
10441else
10442 lt_cv_shlibpath_overrides_runpath=no
10443 save_LDFLAGS=$LDFLAGS
10444 save_libdir=$libdir
10445 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10446 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10448/* end confdefs.h. */
10449
10450int
10451main ()
10452{
10453
10454 ;
10455 return 0;
10456}
10457_ACEOF
10458if ac_fn_c_try_link "$LINENO"; then :
10459 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10460 lt_cv_shlibpath_overrides_runpath=yes
10461fi
10462fi
10463rm -f core conftest.err conftest.$ac_objext \
10464 conftest$ac_exeext conftest.$ac_ext
10465 LDFLAGS=$save_LDFLAGS
10466 libdir=$save_libdir
10467
10468fi
10469
10470 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10471
10472 # This implies no fast_install, which is unacceptable.
10473 # Some rework will be needed to allow for fast_install
10474 # before this can be enabled.
10475 hardcode_into_libs=yes
10476
10477 # Append ld.so.conf contents to the search path
10478 if test -f /etc/ld.so.conf; then
10479 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' ' '`
10480 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10481 fi
10482
10483 # We used to test for /lib/ld.so.1 and disable shared libraries on
10484 # powerpc, because MkLinux only supported shared libraries with the
10485 # GNU dynamic linker. Since this was broken with cross compilers,
10486 # most powerpc-linux boxes support dynamic linking these days and
10487 # people can always --disable-shared, the test was removed, and we
10488 # assume the GNU/Linux dynamic linker is in use.
10489 dynamic_linker='GNU/Linux ld.so'
10490 ;;
10491
10492netbsd*)
10493 version_type=sunos
10494 need_lib_prefix=no
10495 need_version=no
10496 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10498 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10499 dynamic_linker='NetBSD (a.out) ld.so'
10500 else
10501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10502 soname_spec='${libname}${release}${shared_ext}$major'
10503 dynamic_linker='NetBSD ld.elf_so'
10504 fi
10505 shlibpath_var=LD_LIBRARY_PATH
10506 shlibpath_overrides_runpath=yes
10507 hardcode_into_libs=yes
10508 ;;
10509
10510newsos6)
10511 version_type=linux
10512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10513 shlibpath_var=LD_LIBRARY_PATH
10514 shlibpath_overrides_runpath=yes
10515 ;;
10516
10517*nto* | *qnx*)
10518 version_type=qnx
10519 need_lib_prefix=no
10520 need_version=no
10521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10522 soname_spec='${libname}${release}${shared_ext}$major'
10523 shlibpath_var=LD_LIBRARY_PATH
10524 shlibpath_overrides_runpath=no
10525 hardcode_into_libs=yes
10526 dynamic_linker='ldqnx.so'
10527 ;;
10528
10529openbsd*)
10530 version_type=sunos
10531 sys_lib_dlsearch_path_spec="/usr/lib"
10532 need_lib_prefix=no
10533 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10534 case $host_os in
10535 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10536 *) need_version=no ;;
10537 esac
10538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10539 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10540 shlibpath_var=LD_LIBRARY_PATH
10541 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10542 case $host_os in
10543 openbsd2.[89] | openbsd2.[89].*)
10544 shlibpath_overrides_runpath=no
10545 ;;
10546 *)
10547 shlibpath_overrides_runpath=yes
10548 ;;
10549 esac
10550 else
10551 shlibpath_overrides_runpath=yes
10552 fi
10553 ;;
10554
10555os2*)
10556 libname_spec='$name'
10557 shrext_cmds=".dll"
10558 need_lib_prefix=no
10559 library_names_spec='$libname${shared_ext} $libname.a'
10560 dynamic_linker='OS/2 ld.exe'
10561 shlibpath_var=LIBPATH
10562 ;;
10563
10564osf3* | osf4* | osf5*)
10565 version_type=osf
10566 need_lib_prefix=no
10567 need_version=no
10568 soname_spec='${libname}${release}${shared_ext}$major'
10569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10570 shlibpath_var=LD_LIBRARY_PATH
10571 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10572 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10573 ;;
10574
10575rdos*)
10576 dynamic_linker=no
10577 ;;
10578
10579solaris*)
10580 version_type=linux
10581 need_lib_prefix=no
10582 need_version=no
10583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10584 soname_spec='${libname}${release}${shared_ext}$major'
10585 shlibpath_var=LD_LIBRARY_PATH
10586 shlibpath_overrides_runpath=yes
10587 hardcode_into_libs=yes
10588 # ldd complains unless libraries are executable
10589 postinstall_cmds='chmod +x $lib'
10590 ;;
10591
10592sunos4*)
10593 version_type=sunos
10594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10595 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10596 shlibpath_var=LD_LIBRARY_PATH
10597 shlibpath_overrides_runpath=yes
10598 if test "$with_gnu_ld" = yes; then
10599 need_lib_prefix=no
10600 fi
10601 need_version=yes
10602 ;;
10603
10604sysv4 | sysv4.3*)
10605 version_type=linux
10606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10607 soname_spec='${libname}${release}${shared_ext}$major'
10608 shlibpath_var=LD_LIBRARY_PATH
10609 case $host_vendor in
10610 sni)
10611 shlibpath_overrides_runpath=no
10612 need_lib_prefix=no
10613 runpath_var=LD_RUN_PATH
10614 ;;
10615 siemens)
10616 need_lib_prefix=no
10617 ;;
10618 motorola)
10619 need_lib_prefix=no
10620 need_version=no
10621 shlibpath_overrides_runpath=no
10622 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10623 ;;
10624 esac
10625 ;;
10626
10627sysv4*MP*)
10628 if test -d /usr/nec ;then
10629 version_type=linux
10630 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10631 soname_spec='$libname${shared_ext}.$major'
10632 shlibpath_var=LD_LIBRARY_PATH
10633 fi
10634 ;;
10635
10636sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10637 version_type=freebsd-elf
10638 need_lib_prefix=no
10639 need_version=no
10640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10641 soname_spec='${libname}${release}${shared_ext}$major'
10642 shlibpath_var=LD_LIBRARY_PATH
10643 shlibpath_overrides_runpath=yes
10644 hardcode_into_libs=yes
10645 if test "$with_gnu_ld" = yes; then
10646 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10647 else
10648 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10649 case $host_os in
10650 sco3.2v5*)
10651 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10652 ;;
10653 esac
10654 fi
10655 sys_lib_dlsearch_path_spec='/usr/lib'
10656 ;;
10657
10658tpf*)
10659 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10660 version_type=linux
10661 need_lib_prefix=no
10662 need_version=no
10663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10664 shlibpath_var=LD_LIBRARY_PATH
10665 shlibpath_overrides_runpath=no
10666 hardcode_into_libs=yes
10667 ;;
10668
10669uts4*)
10670 version_type=linux
10671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10672 soname_spec='${libname}${release}${shared_ext}$major'
10673 shlibpath_var=LD_LIBRARY_PATH
10674 ;;
10675
10676*)
10677 dynamic_linker=no
10678 ;;
10679esac
10680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10681$as_echo "$dynamic_linker" >&6; }
10682test "$dynamic_linker" = no && can_build_shared=no
10683
10684variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10685if test "$GCC" = yes; then
10686 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10687fi
10688
10689if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10690 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10691fi
10692if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10693 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10694fi
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
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10788$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10789hardcode_action=
10790if test -n "$hardcode_libdir_flag_spec" ||
10791 test -n "$runpath_var" ||
10792 test "X$hardcode_automatic" = "Xyes" ; then
10793
10794 # We can hardcode non-existent directories.
10795 if test "$hardcode_direct" != no &&
10796 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10797 # have to relink, otherwise we might link with an installed library
10798 # when we should be linking with a yet-to-be-installed one
10799 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10800 test "$hardcode_minus_L" != no; then
10801 # Linking always hardcodes the temporary library directory.
10802 hardcode_action=relink
10803 else
10804 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10805 hardcode_action=immediate
10806 fi
10807else
10808 # We cannot hardcode anything, or else we can only hardcode existing
10809 # directories.
10810 hardcode_action=unsupported
10811fi
10812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10813$as_echo "$hardcode_action" >&6; }
10814
10815if test "$hardcode_action" = relink ||
10816 test "$inherit_rpath" = yes; then
10817 # Fast installation is not supported
10818 enable_fast_install=no
10819elif test "$shlibpath_overrides_runpath" = yes ||
10820 test "$enable_shared" = no; then
10821 # Fast installation is not necessary
10822 enable_fast_install=needless
10823fi
10824
10825
10826
10827
10828
10829
10830 if test "x$enable_dlopen" != xyes; then
10831 enable_dlopen=unknown
10832 enable_dlopen_self=unknown
10833 enable_dlopen_self_static=unknown
10834else
10835 lt_cv_dlopen=no
10836 lt_cv_dlopen_libs=
10837
10838 case $host_os in
10839 beos*)
10840 lt_cv_dlopen="load_add_on"
10841 lt_cv_dlopen_libs=
10842 lt_cv_dlopen_self=yes
10843 ;;
10844
10845 mingw* | pw32* | cegcc*)
10846 lt_cv_dlopen="LoadLibrary"
10847 lt_cv_dlopen_libs=
10848 ;;
10849
10850 cygwin*)
10851 lt_cv_dlopen="dlopen"
10852 lt_cv_dlopen_libs=
10853 ;;
10854
10855 darwin*)
10856 # if libdl is installed we need to link against it
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10858$as_echo_n "checking for dlopen in -ldl... " >&6; }
10859if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10860 $as_echo_n "(cached) " >&6
10861else
10862 ac_check_lib_save_LIBS=$LIBS
10863LIBS="-ldl $LIBS"
10864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10865/* end confdefs.h. */
10866
10867/* Override any GCC internal prototype to avoid an error.
10868 Use char because int might match the return type of a GCC
10869 builtin and then its argument prototype would still apply. */
10870#ifdef __cplusplus
10871extern "C"
10872#endif
10873char dlopen ();
10874int
10875main ()
10876{
10877return dlopen ();
10878 ;
10879 return 0;
10880}
10881_ACEOF
10882if ac_fn_c_try_link "$LINENO"; then :
10883 ac_cv_lib_dl_dlopen=yes
10884else
10885 ac_cv_lib_dl_dlopen=no
10886fi
10887rm -f core conftest.err conftest.$ac_objext \
10888 conftest$ac_exeext conftest.$ac_ext
10889LIBS=$ac_check_lib_save_LIBS
10890fi
10891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10892$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10893if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10894 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10895else
10896
10897 lt_cv_dlopen="dyld"
10898 lt_cv_dlopen_libs=
10899 lt_cv_dlopen_self=yes
10900
10901fi
10902
10903 ;;
10904
10905 *)
10906 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10907if test "x$ac_cv_func_shl_load" = x""yes; then :
10908 lt_cv_dlopen="shl_load"
10909else
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10911$as_echo_n "checking for shl_load in -ldld... " >&6; }
10912if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10913 $as_echo_n "(cached) " >&6
10914else
10915 ac_check_lib_save_LIBS=$LIBS
10916LIBS="-ldld $LIBS"
10917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10918/* end confdefs.h. */
10919
10920/* Override any GCC internal prototype to avoid an error.
10921 Use char because int might match the return type of a GCC
10922 builtin and then its argument prototype would still apply. */
10923#ifdef __cplusplus
10924extern "C"
10925#endif
10926char shl_load ();
10927int
10928main ()
10929{
10930return shl_load ();
10931 ;
10932 return 0;
10933}
10934_ACEOF
10935if ac_fn_c_try_link "$LINENO"; then :
10936 ac_cv_lib_dld_shl_load=yes
10937else
10938 ac_cv_lib_dld_shl_load=no
10939fi
10940rm -f core conftest.err conftest.$ac_objext \
10941 conftest$ac_exeext conftest.$ac_ext
10942LIBS=$ac_check_lib_save_LIBS
10943fi
10944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10945$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10946if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10947 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10948else
10949 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10950if test "x$ac_cv_func_dlopen" = x""yes; then :
10951 lt_cv_dlopen="dlopen"
10952else
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10954$as_echo_n "checking for dlopen in -ldl... " >&6; }
10955if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10956 $as_echo_n "(cached) " >&6
10957else
10958 ac_check_lib_save_LIBS=$LIBS
10959LIBS="-ldl $LIBS"
10960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10961/* end confdefs.h. */
10962
10963/* Override any GCC internal prototype to avoid an error.
10964 Use char because int might match the return type of a GCC
10965 builtin and then its argument prototype would still apply. */
10966#ifdef __cplusplus
10967extern "C"
10968#endif
10969char dlopen ();
10970int
10971main ()
10972{
10973return dlopen ();
10974 ;
10975 return 0;
10976}
10977_ACEOF
10978if ac_fn_c_try_link "$LINENO"; then :
10979 ac_cv_lib_dl_dlopen=yes
10980else
10981 ac_cv_lib_dl_dlopen=no
10982fi
10983rm -f core conftest.err conftest.$ac_objext \
10984 conftest$ac_exeext conftest.$ac_ext
10985LIBS=$ac_check_lib_save_LIBS
10986fi
10987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10988$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10989if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10990 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10991else
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10993$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10994if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10995 $as_echo_n "(cached) " >&6
10996else
10997 ac_check_lib_save_LIBS=$LIBS
10998LIBS="-lsvld $LIBS"
10999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11000/* end confdefs.h. */
11001
11002/* Override any GCC internal prototype to avoid an error.
11003 Use char because int might match the return type of a GCC
11004 builtin and then its argument prototype would still apply. */
11005#ifdef __cplusplus
11006extern "C"
11007#endif
11008char dlopen ();
11009int
11010main ()
11011{
11012return dlopen ();
11013 ;
11014 return 0;
11015}
11016_ACEOF
11017if ac_fn_c_try_link "$LINENO"; then :
11018 ac_cv_lib_svld_dlopen=yes
11019else
11020 ac_cv_lib_svld_dlopen=no
11021fi
11022rm -f core conftest.err conftest.$ac_objext \
11023 conftest$ac_exeext conftest.$ac_ext
11024LIBS=$ac_check_lib_save_LIBS
11025fi
11026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11027$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11028if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11029 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11030else
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11032$as_echo_n "checking for dld_link in -ldld... " >&6; }
11033if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11034 $as_echo_n "(cached) " >&6
11035else
11036 ac_check_lib_save_LIBS=$LIBS
11037LIBS="-ldld $LIBS"
11038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11039/* end confdefs.h. */
11040
11041/* Override any GCC internal prototype to avoid an error.
11042 Use char because int might match the return type of a GCC
11043 builtin and then its argument prototype would still apply. */
11044#ifdef __cplusplus
11045extern "C"
11046#endif
11047char dld_link ();
11048int
11049main ()
11050{
11051return dld_link ();
11052 ;
11053 return 0;
11054}
11055_ACEOF
11056if ac_fn_c_try_link "$LINENO"; then :
11057 ac_cv_lib_dld_dld_link=yes
11058else
11059 ac_cv_lib_dld_dld_link=no
11060fi
11061rm -f core conftest.err conftest.$ac_objext \
11062 conftest$ac_exeext conftest.$ac_ext
11063LIBS=$ac_check_lib_save_LIBS
11064fi
11065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11066$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11067if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11068 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11069fi
11070
11071
11072fi
11073
11074
11075fi
11076
11077
11078fi
11079
11080
11081fi
11082
11083
11084fi
11085
11086 ;;
11087 esac
11088
11089 if test "x$lt_cv_dlopen" != xno; then
11090 enable_dlopen=yes
11091 else
11092 enable_dlopen=no
11093 fi
11094
11095 case $lt_cv_dlopen in
11096 dlopen)
11097 save_CPPFLAGS="$CPPFLAGS"
11098 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11099
11100 save_LDFLAGS="$LDFLAGS"
11101 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11102
11103 save_LIBS="$LIBS"
11104 LIBS="$lt_cv_dlopen_libs $LIBS"
11105
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11107$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11108if test "${lt_cv_dlopen_self+set}" = set; then :
11109 $as_echo_n "(cached) " >&6
11110else
11111 if test "$cross_compiling" = yes; then :
11112 lt_cv_dlopen_self=cross
11113else
11114 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11115 lt_status=$lt_dlunknown
11116 cat > conftest.$ac_ext <<_LT_EOF
f021f1d3 11117#line 11118 "configure"
7a938933
ILT
11118#include "confdefs.h"
11119
11120#if HAVE_DLFCN_H
11121#include <dlfcn.h>
11122#endif
11123
11124#include <stdio.h>
11125
11126#ifdef RTLD_GLOBAL
11127# define LT_DLGLOBAL RTLD_GLOBAL
11128#else
11129# ifdef DL_GLOBAL
11130# define LT_DLGLOBAL DL_GLOBAL
11131# else
11132# define LT_DLGLOBAL 0
11133# endif
11134#endif
11135
11136/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11137 find out it does not work in some platform. */
11138#ifndef LT_DLLAZY_OR_NOW
11139# ifdef RTLD_LAZY
11140# define LT_DLLAZY_OR_NOW RTLD_LAZY
11141# else
11142# ifdef DL_LAZY
11143# define LT_DLLAZY_OR_NOW DL_LAZY
11144# else
11145# ifdef RTLD_NOW
11146# define LT_DLLAZY_OR_NOW RTLD_NOW
11147# else
11148# ifdef DL_NOW
11149# define LT_DLLAZY_OR_NOW DL_NOW
11150# else
11151# define LT_DLLAZY_OR_NOW 0
11152# endif
11153# endif
11154# endif
11155# endif
11156#endif
11157
11158/* When -fvisbility=hidden is used, assume the code has been annotated
11159 correspondingly for the symbols needed. */
11160#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11161void fnord () __attribute__((visibility("default")));
11162#endif
11163
11164void fnord () { int i=42; }
11165int main ()
11166{
11167 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11168 int status = $lt_dlunknown;
11169
11170 if (self)
11171 {
11172 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11173 else
11174 {
11175 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11176 else puts (dlerror ());
11177 }
11178 /* dlclose (self); */
11179 }
11180 else
11181 puts (dlerror ());
11182
11183 return status;
11184}
11185_LT_EOF
11186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11187 (eval $ac_link) 2>&5
11188 ac_status=$?
11189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11190 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11191 (./conftest; exit; ) >&5 2>/dev/null
11192 lt_status=$?
11193 case x$lt_status in
11194 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11195 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11196 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11197 esac
11198 else :
11199 # compilation failed
11200 lt_cv_dlopen_self=no
11201 fi
11202fi
11203rm -fr conftest*
11204
11205
11206fi
11207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11208$as_echo "$lt_cv_dlopen_self" >&6; }
11209
11210 if test "x$lt_cv_dlopen_self" = xyes; then
11211 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11213$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11214if test "${lt_cv_dlopen_self_static+set}" = set; then :
11215 $as_echo_n "(cached) " >&6
11216else
11217 if test "$cross_compiling" = yes; then :
11218 lt_cv_dlopen_self_static=cross
11219else
11220 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11221 lt_status=$lt_dlunknown
11222 cat > conftest.$ac_ext <<_LT_EOF
f021f1d3 11223#line 11224 "configure"
7a938933
ILT
11224#include "confdefs.h"
11225
11226#if HAVE_DLFCN_H
11227#include <dlfcn.h>
11228#endif
11229
11230#include <stdio.h>
11231
11232#ifdef RTLD_GLOBAL
11233# define LT_DLGLOBAL RTLD_GLOBAL
11234#else
11235# ifdef DL_GLOBAL
11236# define LT_DLGLOBAL DL_GLOBAL
11237# else
11238# define LT_DLGLOBAL 0
11239# endif
11240#endif
11241
11242/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11243 find out it does not work in some platform. */
11244#ifndef LT_DLLAZY_OR_NOW
11245# ifdef RTLD_LAZY
11246# define LT_DLLAZY_OR_NOW RTLD_LAZY
11247# else
11248# ifdef DL_LAZY
11249# define LT_DLLAZY_OR_NOW DL_LAZY
11250# else
11251# ifdef RTLD_NOW
11252# define LT_DLLAZY_OR_NOW RTLD_NOW
11253# else
11254# ifdef DL_NOW
11255# define LT_DLLAZY_OR_NOW DL_NOW
11256# else
11257# define LT_DLLAZY_OR_NOW 0
11258# endif
11259# endif
11260# endif
11261# endif
11262#endif
11263
11264/* When -fvisbility=hidden is used, assume the code has been annotated
11265 correspondingly for the symbols needed. */
11266#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11267void fnord () __attribute__((visibility("default")));
11268#endif
11269
11270void fnord () { int i=42; }
11271int main ()
11272{
11273 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11274 int status = $lt_dlunknown;
11275
11276 if (self)
11277 {
11278 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11279 else
11280 {
11281 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11282 else puts (dlerror ());
11283 }
11284 /* dlclose (self); */
11285 }
11286 else
11287 puts (dlerror ());
11288
11289 return status;
11290}
11291_LT_EOF
11292 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11293 (eval $ac_link) 2>&5
11294 ac_status=$?
11295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11296 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11297 (./conftest; exit; ) >&5 2>/dev/null
11298 lt_status=$?
11299 case x$lt_status in
11300 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11301 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11302 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11303 esac
11304 else :
11305 # compilation failed
11306 lt_cv_dlopen_self_static=no
11307 fi
11308fi
11309rm -fr conftest*
11310
11311
11312fi
11313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11314$as_echo "$lt_cv_dlopen_self_static" >&6; }
11315 fi
11316
11317 CPPFLAGS="$save_CPPFLAGS"
11318 LDFLAGS="$save_LDFLAGS"
11319 LIBS="$save_LIBS"
11320 ;;
11321 esac
11322
11323 case $lt_cv_dlopen_self in
11324 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11325 *) enable_dlopen_self=unknown ;;
11326 esac
11327
11328 case $lt_cv_dlopen_self_static in
11329 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11330 *) enable_dlopen_self_static=unknown ;;
11331 esac
11332fi
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350striplib=
11351old_striplib=
11352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11353$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11354if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11355 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11356 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11358$as_echo "yes" >&6; }
11359else
11360# FIXME - insert some real tests, host_os isn't really good enough
11361 case $host_os in
11362 darwin*)
11363 if test -n "$STRIP" ; then
11364 striplib="$STRIP -x"
11365 old_striplib="$STRIP -S"
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11367$as_echo "yes" >&6; }
11368 else
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11370$as_echo "no" >&6; }
11371 fi
11372 ;;
11373 *)
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11375$as_echo "no" >&6; }
11376 ;;
11377 esac
11378fi
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391 # Report which library types will actually be built
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11393$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11395$as_echo "$can_build_shared" >&6; }
11396
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11398$as_echo_n "checking whether to build shared libraries... " >&6; }
11399 test "$can_build_shared" = "no" && enable_shared=no
11400
11401 # On AIX, shared libraries and static libraries use the same namespace, and
11402 # are all built from PIC.
11403 case $host_os in
11404 aix3*)
11405 test "$enable_shared" = yes && enable_static=no
11406 if test -n "$RANLIB"; then
11407 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11408 postinstall_cmds='$RANLIB $lib'
11409 fi
11410 ;;
11411
11412 aix[4-9]*)
11413 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11414 test "$enable_shared" = yes && enable_static=no
11415 fi
11416 ;;
11417 esac
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11419$as_echo "$enable_shared" >&6; }
11420
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11422$as_echo_n "checking whether to build static libraries... " >&6; }
11423 # Make sure either enable_shared or enable_static is yes.
11424 test "$enable_shared" = yes || enable_static=yes
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11426$as_echo "$enable_static" >&6; }
11427
11428
11429
11430
11431fi
11432ac_ext=c
11433ac_cpp='$CPP $CPPFLAGS'
11434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11436ac_compiler_gnu=$ac_cv_c_compiler_gnu
11437
11438CC="$lt_save_CC"
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452# Source file extension for Go test sources.
11453ac_ext=go
11454
11455# Object file extension for compiled Go test sources.
11456objext=o
11457objext_GO=$objext
11458
11459# Code to be used in simple compile tests
11460lt_simple_compile_test_code="package main; func main() { }"
11461
11462# Code to be used in simple link tests
11463lt_simple_link_test_code='package main; func main() { }'
11464
11465# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11466
11467
11468
11469
11470
11471
11472# If no C compiler was specified, use CC.
11473LTCC=${LTCC-"$CC"}
11474
11475# If no C compiler flags were specified, use CFLAGS.
11476LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11477
11478# Allow CC to be a program name with arguments.
11479compiler=$CC
11480
11481
11482# save warnings/boilerplate of simple test code
11483ac_outfile=conftest.$ac_objext
11484echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11485eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11486_lt_compiler_boilerplate=`cat conftest.err`
11487$RM conftest*
11488
11489ac_outfile=conftest.$ac_objext
11490echo "$lt_simple_link_test_code" >conftest.$ac_ext
11491eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11492_lt_linker_boilerplate=`cat conftest.err`
11493$RM -r conftest*
11494
11495
11496# Allow CC to be a program name with arguments.
11497lt_save_CC="$CC"
11498lt_save_GCC="$GCC"
11499GCC=yes
11500CC=${GOC-"gccgo"}
11501compiler=$CC
11502compiler_GO=$CC
11503LD_GO="$LD"
11504for cc_temp in $compiler""; do
11505 case $cc_temp in
11506 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11507 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11508 \-*) ;;
11509 *) break;;
11510 esac
11511done
11512cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11513
11514
11515# Go did not exist at the time GCC didn't implicitly link libc in.
11516archive_cmds_need_lc_GO=no
11517
11518old_archive_cmds_GO=$old_archive_cmds
11519
11520## CAVEAT EMPTOR:
11521## There is no encapsulation within the following macros, do not change
11522## the running order or otherwise move them around unless you know exactly
11523## what you are doing...
11524if test -n "$compiler"; then
11525
11526lt_prog_compiler_no_builtin_flag_GO=
11527
11528if test "$GCC" = yes; then
11529 case $cc_basename in
11530 nvcc*)
11531 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11532 *)
11533 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11534 esac
11535
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11537$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11538if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11539 $as_echo_n "(cached) " >&6
11540else
11541 lt_cv_prog_compiler_rtti_exceptions=no
11542 ac_outfile=conftest.$ac_objext
11543 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11544 lt_compiler_flag="-fno-rtti -fno-exceptions"
11545 # Insert the option either (1) after the last *FLAGS variable, or
11546 # (2) before a word containing "conftest.", or (3) at the end.
11547 # Note that $ac_compile itself does not contain backslashes and begins
11548 # with a dollar sign (not a hyphen), so the echo should work correctly.
11549 # The option is referenced via a variable to avoid confusing sed.
11550 lt_compile=`echo "$ac_compile" | $SED \
11551 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11552 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11553 -e 's:$: $lt_compiler_flag:'`
11554 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11555 (eval "$lt_compile" 2>conftest.err)
11556 ac_status=$?
11557 cat conftest.err >&5
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 if (exit $ac_status) && test -s "$ac_outfile"; then
11560 # The compiler can only warn and ignore the option if not recognized
11561 # So say no if there are warnings other than the usual output.
11562 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11563 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11564 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11565 lt_cv_prog_compiler_rtti_exceptions=yes
11566 fi
11567 fi
11568 $RM conftest*
11569
11570fi
11571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11572$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11573
11574if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11575 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11576else
11577 :
11578fi
11579
11580fi
11581
11582
11583
11584 lt_prog_compiler_wl_GO=
11585lt_prog_compiler_pic_GO=
11586lt_prog_compiler_static_GO=
11587
11588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11589$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11590
11591 if test "$GCC" = yes; then
11592 lt_prog_compiler_wl_GO='-Wl,'
11593 lt_prog_compiler_static_GO='-static'
11594
11595 case $host_os in
11596 aix*)
11597 # All AIX code is PIC.
11598 if test "$host_cpu" = ia64; then
11599 # AIX 5 now supports IA64 processor
11600 lt_prog_compiler_static_GO='-Bstatic'
11601 fi
327a26a3 11602 lt_prog_compiler_pic_GO='-fPIC'
7a938933
ILT
11603 ;;
11604
11605 amigaos*)
11606 case $host_cpu in
11607 powerpc)
11608 # see comment about AmigaOS4 .so support
11609 lt_prog_compiler_pic_GO='-fPIC'
11610 ;;
11611 m68k)
11612 # FIXME: we need at least 68020 code to build shared libraries, but
11613 # adding the `-m68020' flag to GCC prevents building anything better,
11614 # like `-m68040'.
11615 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11616 ;;
11617 esac
11618 ;;
11619
11620 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11621 # PIC is the default for these OSes.
11622 ;;
11623
11624 mingw* | cygwin* | pw32* | os2* | cegcc*)
11625 # This hack is so that the source file can tell whether it is being
11626 # built for inclusion in a dll (and should export symbols for example).
11627 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11628 # (--disable-auto-import) libraries
11629 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11630 ;;
11631
11632 darwin* | rhapsody*)
11633 # PIC is the default on this platform
11634 # Common symbols not allowed in MH_DYLIB files
11635 lt_prog_compiler_pic_GO='-fno-common'
11636 ;;
11637
11638 haiku*)
11639 # PIC is the default for Haiku.
11640 # The "-static" flag exists, but is broken.
11641 lt_prog_compiler_static_GO=
11642 ;;
11643
11644 hpux*)
11645 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11646 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11647 # sets the default TLS model and affects inlining.
11648 case $host_cpu in
11649 hppa*64*)
11650 # +Z the default
11651 ;;
11652 *)
11653 lt_prog_compiler_pic_GO='-fPIC'
11654 ;;
11655 esac
11656 ;;
11657
11658 interix[3-9]*)
11659 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11660 # Instead, we relocate shared libraries at runtime.
11661 ;;
11662
11663 msdosdjgpp*)
11664 # Just because we use GCC doesn't mean we suddenly get shared libraries
11665 # on systems that don't support them.
11666 lt_prog_compiler_can_build_shared_GO=no
11667 enable_shared=no
11668 ;;
11669
11670 *nto* | *qnx*)
11671 # QNX uses GNU C++, but need to define -shared option too, otherwise
11672 # it will coredump.
11673 lt_prog_compiler_pic_GO='-fPIC -shared'
11674 ;;
11675
11676 sysv4*MP*)
11677 if test -d /usr/nec; then
11678 lt_prog_compiler_pic_GO=-Kconform_pic
11679 fi
11680 ;;
11681
11682 *)
11683 lt_prog_compiler_pic_GO='-fPIC'
11684 ;;
11685 esac
11686
11687 case $cc_basename in
11688 nvcc*) # Cuda Compiler Driver 2.2
11689 lt_prog_compiler_wl_GO='-Xlinker '
11690 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11691 ;;
11692 esac
11693 else
11694 # PORTME Check for flag to pass linker flags through the system compiler.
11695 case $host_os in
11696 aix*)
11697 lt_prog_compiler_wl_GO='-Wl,'
11698 if test "$host_cpu" = ia64; then
11699 # AIX 5 now supports IA64 processor
11700 lt_prog_compiler_static_GO='-Bstatic'
11701 else
11702 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11703 fi
11704 ;;
11705
11706 mingw* | cygwin* | pw32* | os2* | cegcc*)
11707 # This hack is so that the source file can tell whether it is being
11708 # built for inclusion in a dll (and should export symbols for example).
11709 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11710 ;;
11711
11712 hpux9* | hpux10* | hpux11*)
11713 lt_prog_compiler_wl_GO='-Wl,'
11714 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11715 # not for PA HP-UX.
11716 case $host_cpu in
11717 hppa*64*|ia64*)
11718 # +Z the default
11719 ;;
11720 *)
11721 lt_prog_compiler_pic_GO='+Z'
11722 ;;
11723 esac
11724 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11725 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11726 ;;
11727
11728 irix5* | irix6* | nonstopux*)
11729 lt_prog_compiler_wl_GO='-Wl,'
11730 # PIC (with -KPIC) is the default.
11731 lt_prog_compiler_static_GO='-non_shared'
11732 ;;
11733
11734 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11735 case $cc_basename in
11736 # old Intel for x86_64 which still supported -KPIC.
11737 ecc*)
11738 lt_prog_compiler_wl_GO='-Wl,'
11739 lt_prog_compiler_pic_GO='-KPIC'
11740 lt_prog_compiler_static_GO='-static'
11741 ;;
11742 # icc used to be incompatible with GCC.
11743 # ICC 10 doesn't accept -KPIC any more.
11744 icc* | ifort*)
11745 lt_prog_compiler_wl_GO='-Wl,'
11746 lt_prog_compiler_pic_GO='-fPIC'
11747 lt_prog_compiler_static_GO='-static'
11748 ;;
11749 # Lahey Fortran 8.1.
11750 lf95*)
11751 lt_prog_compiler_wl_GO='-Wl,'
11752 lt_prog_compiler_pic_GO='--shared'
11753 lt_prog_compiler_static_GO='--static'
11754 ;;
11755 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11756 # Portland Group compilers (*not* the Pentium gcc compiler,
11757 # which looks to be a dead project)
11758 lt_prog_compiler_wl_GO='-Wl,'
11759 lt_prog_compiler_pic_GO='-fpic'
11760 lt_prog_compiler_static_GO='-Bstatic'
11761 ;;
11762 ccc*)
11763 lt_prog_compiler_wl_GO='-Wl,'
11764 # All Alpha code is PIC.
11765 lt_prog_compiler_static_GO='-non_shared'
11766 ;;
11767 xl* | bgxl* | bgf* | mpixl*)
11768 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11769 lt_prog_compiler_wl_GO='-Wl,'
11770 lt_prog_compiler_pic_GO='-qpic'
11771 lt_prog_compiler_static_GO='-qstaticlink'
11772 ;;
11773 *)
11774 case `$CC -V 2>&1 | sed 5q` in
11775 *Sun\ F* | *Sun*Fortran*)
11776 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11777 lt_prog_compiler_pic_GO='-KPIC'
11778 lt_prog_compiler_static_GO='-Bstatic'
11779 lt_prog_compiler_wl_GO=''
11780 ;;
11781 *Sun\ C*)
11782 # Sun C 5.9
11783 lt_prog_compiler_pic_GO='-KPIC'
11784 lt_prog_compiler_static_GO='-Bstatic'
11785 lt_prog_compiler_wl_GO='-Wl,'
11786 ;;
11787 esac
11788 ;;
11789 esac
11790 ;;
11791
11792 newsos6)
11793 lt_prog_compiler_pic_GO='-KPIC'
11794 lt_prog_compiler_static_GO='-Bstatic'
11795 ;;
11796
11797 *nto* | *qnx*)
11798 # QNX uses GNU C++, but need to define -shared option too, otherwise
11799 # it will coredump.
11800 lt_prog_compiler_pic_GO='-fPIC -shared'
11801 ;;
11802
11803 osf3* | osf4* | osf5*)
11804 lt_prog_compiler_wl_GO='-Wl,'
11805 # All OSF/1 code is PIC.
11806 lt_prog_compiler_static_GO='-non_shared'
11807 ;;
11808
11809 rdos*)
11810 lt_prog_compiler_static_GO='-non_shared'
11811 ;;
11812
11813 solaris*)
11814 lt_prog_compiler_pic_GO='-KPIC'
11815 lt_prog_compiler_static_GO='-Bstatic'
11816 case $cc_basename in
11817 f77* | f90* | f95*)
11818 lt_prog_compiler_wl_GO='-Qoption ld ';;
11819 *)
11820 lt_prog_compiler_wl_GO='-Wl,';;
11821 esac
11822 ;;
11823
11824 sunos4*)
11825 lt_prog_compiler_wl_GO='-Qoption ld '
11826 lt_prog_compiler_pic_GO='-PIC'
11827 lt_prog_compiler_static_GO='-Bstatic'
11828 ;;
11829
11830 sysv4 | sysv4.2uw2* | sysv4.3*)
11831 lt_prog_compiler_wl_GO='-Wl,'
11832 lt_prog_compiler_pic_GO='-KPIC'
11833 lt_prog_compiler_static_GO='-Bstatic'
11834 ;;
11835
11836 sysv4*MP*)
11837 if test -d /usr/nec ;then
11838 lt_prog_compiler_pic_GO='-Kconform_pic'
11839 lt_prog_compiler_static_GO='-Bstatic'
11840 fi
11841 ;;
11842
11843 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11844 lt_prog_compiler_wl_GO='-Wl,'
11845 lt_prog_compiler_pic_GO='-KPIC'
11846 lt_prog_compiler_static_GO='-Bstatic'
11847 ;;
11848
11849 unicos*)
11850 lt_prog_compiler_wl_GO='-Wl,'
11851 lt_prog_compiler_can_build_shared_GO=no
11852 ;;
11853
11854 uts4*)
11855 lt_prog_compiler_pic_GO='-pic'
11856 lt_prog_compiler_static_GO='-Bstatic'
11857 ;;
11858
11859 *)
11860 lt_prog_compiler_can_build_shared_GO=no
11861 ;;
11862 esac
11863 fi
11864
11865case $host_os in
11866 # For platforms which do not support PIC, -DPIC is meaningless:
11867 *djgpp*)
11868 lt_prog_compiler_pic_GO=
11869 ;;
11870 *)
11871 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11872 ;;
11873esac
11874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11875$as_echo "$lt_prog_compiler_pic_GO" >&6; }
11876
11877
11878
11879#
11880# Check to make sure the PIC flag actually works.
11881#
11882if test -n "$lt_prog_compiler_pic_GO"; then
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11884$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11885if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11886 $as_echo_n "(cached) " >&6
11887else
11888 lt_cv_prog_compiler_pic_works_GO=no
11889 ac_outfile=conftest.$ac_objext
11890 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11891 lt_compiler_flag="$lt_prog_compiler_pic_GO"
11892 # Insert the option either (1) after the last *FLAGS variable, or
11893 # (2) before a word containing "conftest.", or (3) at the end.
11894 # Note that $ac_compile itself does not contain backslashes and begins
11895 # with a dollar sign (not a hyphen), so the echo should work correctly.
11896 # The option is referenced via a variable to avoid confusing sed.
11897 lt_compile=`echo "$ac_compile" | $SED \
11898 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11899 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11900 -e 's:$: $lt_compiler_flag:'`
11901 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11902 (eval "$lt_compile" 2>conftest.err)
11903 ac_status=$?
11904 cat conftest.err >&5
11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 if (exit $ac_status) && test -s "$ac_outfile"; then
11907 # The compiler can only warn and ignore the option if not recognized
11908 # So say no if there are warnings other than the usual output.
11909 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11910 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11911 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11912 lt_cv_prog_compiler_pic_works_GO=yes
11913 fi
11914 fi
11915 $RM conftest*
11916
11917fi
11918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11919$as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11920
11921if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11922 case $lt_prog_compiler_pic_GO in
11923 "" | " "*) ;;
11924 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11925 esac
11926else
11927 lt_prog_compiler_pic_GO=
11928 lt_prog_compiler_can_build_shared_GO=no
11929fi
11930
11931fi
11932
11933
11934
11935#
11936# Check to make sure the static flag actually works.
11937#
11938wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11940$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11941if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11942 $as_echo_n "(cached) " >&6
11943else
11944 lt_cv_prog_compiler_static_works_GO=no
11945 save_LDFLAGS="$LDFLAGS"
11946 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11947 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11948 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11949 # The linker can only warn and ignore the option if not recognized
11950 # So say no if there are warnings
11951 if test -s conftest.err; then
11952 # Append any errors to the config.log.
11953 cat conftest.err 1>&5
11954 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11955 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11956 if diff conftest.exp conftest.er2 >/dev/null; then
11957 lt_cv_prog_compiler_static_works_GO=yes
11958 fi
11959 else
11960 lt_cv_prog_compiler_static_works_GO=yes
11961 fi
11962 fi
11963 $RM -r conftest*
11964 LDFLAGS="$save_LDFLAGS"
11965
11966fi
11967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11968$as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11969
11970if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11971 :
11972else
11973 lt_prog_compiler_static_GO=
11974fi
11975
11976
11977
11978
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11980$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11981if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11982 $as_echo_n "(cached) " >&6
11983else
11984 lt_cv_prog_compiler_c_o_GO=no
11985 $RM -r conftest 2>/dev/null
11986 mkdir conftest
11987 cd conftest
11988 mkdir out
11989 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11990
11991 lt_compiler_flag="-o out/conftest2.$ac_objext"
11992 # Insert the option either (1) after the last *FLAGS variable, or
11993 # (2) before a word containing "conftest.", or (3) at the end.
11994 # Note that $ac_compile itself does not contain backslashes and begins
11995 # with a dollar sign (not a hyphen), so the echo should work correctly.
11996 lt_compile=`echo "$ac_compile" | $SED \
11997 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11998 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11999 -e 's:$: $lt_compiler_flag:'`
12000 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12001 (eval "$lt_compile" 2>out/conftest.err)
12002 ac_status=$?
12003 cat out/conftest.err >&5
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12006 then
12007 # The compiler can only warn and ignore the option if not recognized
12008 # So say no if there are warnings
12009 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12010 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12011 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12012 lt_cv_prog_compiler_c_o_GO=yes
12013 fi
12014 fi
12015 chmod u+w . 2>&5
12016 $RM conftest*
12017 # SGI C++ compiler will create directory out/ii_files/ for
12018 # template instantiation
12019 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12020 $RM out/* && rmdir out
12021 cd ..
12022 $RM -r conftest
12023 $RM conftest*
12024
12025fi
12026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12027$as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12028
12029
12030
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12032$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12033if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
12034 $as_echo_n "(cached) " >&6
12035else
12036 lt_cv_prog_compiler_c_o_GO=no
12037 $RM -r conftest 2>/dev/null
12038 mkdir conftest
12039 cd conftest
12040 mkdir out
12041 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12042
12043 lt_compiler_flag="-o out/conftest2.$ac_objext"
12044 # Insert the option either (1) after the last *FLAGS variable, or
12045 # (2) before a word containing "conftest.", or (3) at the end.
12046 # Note that $ac_compile itself does not contain backslashes and begins
12047 # with a dollar sign (not a hyphen), so the echo should work correctly.
12048 lt_compile=`echo "$ac_compile" | $SED \
12049 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12050 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12051 -e 's:$: $lt_compiler_flag:'`
12052 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12053 (eval "$lt_compile" 2>out/conftest.err)
12054 ac_status=$?
12055 cat out/conftest.err >&5
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12058 then
12059 # The compiler can only warn and ignore the option if not recognized
12060 # So say no if there are warnings
12061 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12062 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12063 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12064 lt_cv_prog_compiler_c_o_GO=yes
12065 fi
12066 fi
12067 chmod u+w . 2>&5
12068 $RM conftest*
12069 # SGI C++ compiler will create directory out/ii_files/ for
12070 # template instantiation
12071 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12072 $RM out/* && rmdir out
12073 cd ..
12074 $RM -r conftest
12075 $RM conftest*
12076
12077fi
12078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12079$as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12080
12081
12082
12083
12084hard_links="nottested"
12085if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
12086 # do not overwrite the value of need_locks provided by the user
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12088$as_echo_n "checking if we can lock with hard links... " >&6; }
12089 hard_links=yes
12090 $RM conftest*
12091 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12092 touch conftest.a
12093 ln conftest.a conftest.b 2>&5 || hard_links=no
12094 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12096$as_echo "$hard_links" >&6; }
12097 if test "$hard_links" = no; then
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12099$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12100 need_locks=warn
12101 fi
12102else
12103 need_locks=no
12104fi
12105
12106
12107
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12109$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12110
12111 runpath_var=
12112 allow_undefined_flag_GO=
12113 always_export_symbols_GO=no
12114 archive_cmds_GO=
12115 archive_expsym_cmds_GO=
12116 compiler_needs_object_GO=no
12117 enable_shared_with_static_runtimes_GO=no
12118 export_dynamic_flag_spec_GO=
12119 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12120 hardcode_automatic_GO=no
12121 hardcode_direct_GO=no
12122 hardcode_direct_absolute_GO=no
12123 hardcode_libdir_flag_spec_GO=
12124 hardcode_libdir_flag_spec_ld_GO=
12125 hardcode_libdir_separator_GO=
12126 hardcode_minus_L_GO=no
12127 hardcode_shlibpath_var_GO=unsupported
12128 inherit_rpath_GO=no
12129 link_all_deplibs_GO=unknown
12130 module_cmds_GO=
12131 module_expsym_cmds_GO=
12132 old_archive_from_new_cmds_GO=
12133 old_archive_from_expsyms_cmds_GO=
12134 thread_safe_flag_spec_GO=
12135 whole_archive_flag_spec_GO=
12136 # include_expsyms should be a list of space-separated symbols to be *always*
12137 # included in the symbol list
12138 include_expsyms_GO=
12139 # exclude_expsyms can be an extended regexp of symbols to exclude
12140 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12141 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12142 # as well as any symbol that contains `d'.
12143 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12144 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12145 # platforms (ab)use it in PIC code, but their linkers get confused if
12146 # the symbol is explicitly referenced. Since portable code cannot
12147 # rely on this symbol name, it's probably fine to never include it in
12148 # preloaded symbol tables.
12149 # Exclude shared library initialization/finalization symbols.
12150 extract_expsyms_cmds=
12151
12152 case $host_os in
12153 cygwin* | mingw* | pw32* | cegcc*)
12154 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12155 # When not using gcc, we currently assume that we are using
12156 # Microsoft Visual C++.
12157 if test "$GCC" != yes; then
12158 with_gnu_ld=no
12159 fi
12160 ;;
12161 interix*)
12162 # we just hope/assume this is gcc and not c89 (= MSVC++)
12163 with_gnu_ld=yes
12164 ;;
12165 openbsd*)
12166 with_gnu_ld=no
12167 ;;
12168 esac
12169
12170 ld_shlibs_GO=yes
12171
12172 # On some targets, GNU ld is compatible enough with the native linker
12173 # that we're better off using the native interface for both.
12174 lt_use_gnu_ld_interface=no
12175 if test "$with_gnu_ld" = yes; then
12176 case $host_os in
12177 aix*)
12178 # The AIX port of GNU ld has always aspired to compatibility
12179 # with the native linker. However, as the warning in the GNU ld
12180 # block says, versions before 2.19.5* couldn't really create working
12181 # shared libraries, regardless of the interface used.
12182 case `$LD -v 2>&1` in
12183 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12184 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12185 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12186 *)
12187 lt_use_gnu_ld_interface=yes
12188 ;;
12189 esac
12190 ;;
12191 *)
12192 lt_use_gnu_ld_interface=yes
12193 ;;
12194 esac
12195 fi
12196
12197 if test "$lt_use_gnu_ld_interface" = yes; then
12198 # If archive_cmds runs LD, not CC, wlarc should be empty
12199 wlarc='${wl}'
12200
12201 # Set some defaults for GNU ld with shared library support. These
12202 # are reset later if shared libraries are not supported. Putting them
12203 # here allows them to be overridden if necessary.
12204 runpath_var=LD_RUN_PATH
12205 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12206 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12207 # ancient GNU ld didn't support --whole-archive et. al.
12208 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12209 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12210 else
12211 whole_archive_flag_spec_GO=
12212 fi
12213 supports_anon_versioning=no
12214 case `$LD -v 2>&1` in
12215 *GNU\ gold*) supports_anon_versioning=yes ;;
12216 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12217 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12218 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12219 *\ 2.11.*) ;; # other 2.11 versions
12220 *) supports_anon_versioning=yes ;;
12221 esac
12222
12223 # See if GNU ld supports shared libraries.
12224 case $host_os in
12225 aix[3-9]*)
12226 # On AIX/PPC, the GNU linker is very broken
12227 if test "$host_cpu" != ia64; then
12228 ld_shlibs_GO=no
12229 cat <<_LT_EOF 1>&2
12230
12231*** Warning: the GNU linker, at least up to release 2.19, is reported
12232*** to be unable to reliably create shared libraries on AIX.
12233*** Therefore, libtool is disabling shared libraries support. If you
12234*** really care for shared libraries, you may want to install binutils
12235*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12236*** You will then need to restart the configuration process.
12237
12238_LT_EOF
12239 fi
12240 ;;
12241
12242 amigaos*)
12243 case $host_cpu in
12244 powerpc)
12245 # see comment about AmigaOS4 .so support
12246 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12247 archive_expsym_cmds_GO=''
12248 ;;
12249 m68k)
12250 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)'
12251 hardcode_libdir_flag_spec_GO='-L$libdir'
12252 hardcode_minus_L_GO=yes
12253 ;;
12254 esac
12255 ;;
12256
12257 beos*)
12258 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12259 allow_undefined_flag_GO=unsupported
12260 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12261 # support --undefined. This deserves some investigation. FIXME
12262 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12263 else
12264 ld_shlibs_GO=no
12265 fi
12266 ;;
12267
12268 cygwin* | mingw* | pw32* | cegcc*)
12269 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12270 # as there is no search path for DLLs.
12271 hardcode_libdir_flag_spec_GO='-L$libdir'
12272 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12273 allow_undefined_flag_GO=unsupported
12274 always_export_symbols_GO=no
12275 enable_shared_with_static_runtimes_GO=yes
12276 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12277
12278 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12279 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12280 # If the export-symbols file already is a .def file (1st line
12281 # is EXPORTS), use it as is; otherwise, prepend...
12282 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12283 cp $export_symbols $output_objdir/$soname.def;
12284 else
12285 echo EXPORTS > $output_objdir/$soname.def;
12286 cat $export_symbols >> $output_objdir/$soname.def;
12287 fi~
12288 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12289 else
12290 ld_shlibs_GO=no
12291 fi
12292 ;;
12293
12294 haiku*)
12295 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12296 link_all_deplibs_GO=yes
12297 ;;
12298
12299 interix[3-9]*)
12300 hardcode_direct_GO=no
12301 hardcode_shlibpath_var_GO=no
12302 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12303 export_dynamic_flag_spec_GO='${wl}-E'
12304 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12305 # Instead, shared libraries are loaded at an image base (0x10000000 by
12306 # default) and relocated if they conflict, which is a slow very memory
12307 # consuming and fragmenting process. To avoid this, we pick a random,
12308 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12309 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12310 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'
12311 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'
12312 ;;
12313
12314 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12315 tmp_diet=no
12316 if test "$host_os" = linux-dietlibc; then
12317 case $cc_basename in
12318 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12319 esac
12320 fi
12321 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12322 && test "$tmp_diet" = no
12323 then
12324 tmp_addflag=
12325 tmp_sharedflag='-shared'
12326 case $cc_basename,$host_cpu in
12327 pgcc*) # Portland Group C compiler
12328 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'
12329 tmp_addflag=' $pic_flag'
12330 ;;
12331 pgf77* | pgf90* | pgf95* | pgfortran*)
12332 # Portland Group f77 and f90 compilers
12333 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'
12334 tmp_addflag=' $pic_flag -Mnomain' ;;
12335 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12336 tmp_addflag=' -i_dynamic' ;;
12337 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12338 tmp_addflag=' -i_dynamic -nofor_main' ;;
12339 ifc* | ifort*) # Intel Fortran compiler
12340 tmp_addflag=' -nofor_main' ;;
12341 lf95*) # Lahey Fortran 8.1
12342 whole_archive_flag_spec_GO=
12343 tmp_sharedflag='--shared' ;;
12344 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12345 tmp_sharedflag='-qmkshrobj'
12346 tmp_addflag= ;;
12347 nvcc*) # Cuda Compiler Driver 2.2
12348 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'
12349 compiler_needs_object_GO=yes
12350 ;;
12351 esac
12352 case `$CC -V 2>&1 | sed 5q` in
12353 *Sun\ C*) # Sun C 5.9
12354 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'
12355 compiler_needs_object_GO=yes
12356 tmp_sharedflag='-G' ;;
12357 *Sun\ F*) # Sun Fortran 8.3
12358 tmp_sharedflag='-G' ;;
12359 esac
12360 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12361
12362 if test "x$supports_anon_versioning" = xyes; then
12363 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12364 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12365 echo "local: *; };" >> $output_objdir/$libname.ver~
12366 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12367 fi
12368
12369 case $cc_basename in
12370 xlf* | bgf* | bgxlf* | mpixlf*)
12371 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12372 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12373 hardcode_libdir_flag_spec_GO=
12374 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12375 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12376 if test "x$supports_anon_versioning" = xyes; then
12377 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12378 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12379 echo "local: *; };" >> $output_objdir/$libname.ver~
12380 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12381 fi
12382 ;;
12383 esac
12384 else
12385 ld_shlibs_GO=no
12386 fi
12387 ;;
12388
12389 netbsd*)
12390 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12391 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12392 wlarc=
12393 else
12394 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12395 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12396 fi
12397 ;;
12398
12399 solaris*)
12400 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12401 ld_shlibs_GO=no
12402 cat <<_LT_EOF 1>&2
12403
12404*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12405*** create shared libraries on Solaris systems. Therefore, libtool
12406*** is disabling shared libraries support. We urge you to upgrade GNU
12407*** binutils to release 2.9.1 or newer. Another option is to modify
12408*** your PATH or compiler configuration so that the native linker is
12409*** used, and then restart.
12410
12411_LT_EOF
12412 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12413 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12414 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12415 else
12416 ld_shlibs_GO=no
12417 fi
12418 ;;
12419
12420 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12421 case `$LD -v 2>&1` in
12422 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12423 ld_shlibs_GO=no
12424 cat <<_LT_EOF 1>&2
12425
12426*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12427*** reliably create shared libraries on SCO systems. Therefore, libtool
12428*** is disabling shared libraries support. We urge you to upgrade GNU
12429*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12430*** your PATH or compiler configuration so that the native linker is
12431*** used, and then restart.
12432
12433_LT_EOF
12434 ;;
12435 *)
12436 # For security reasons, it is highly recommended that you always
12437 # use absolute paths for naming shared libraries, and exclude the
12438 # DT_RUNPATH tag from executables and libraries. But doing so
12439 # requires that you compile everything twice, which is a pain.
12440 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12441 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12442 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12443 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12444 else
12445 ld_shlibs_GO=no
12446 fi
12447 ;;
12448 esac
12449 ;;
12450
12451 sunos4*)
12452 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12453 wlarc=
12454 hardcode_direct_GO=yes
12455 hardcode_shlibpath_var_GO=no
12456 ;;
12457
12458 *)
12459 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12460 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12461 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12462 else
12463 ld_shlibs_GO=no
12464 fi
12465 ;;
12466 esac
12467
12468 if test "$ld_shlibs_GO" = no; then
12469 runpath_var=
12470 hardcode_libdir_flag_spec_GO=
12471 export_dynamic_flag_spec_GO=
12472 whole_archive_flag_spec_GO=
12473 fi
12474 else
12475 # PORTME fill in a description of your system's linker (not GNU ld)
12476 case $host_os in
12477 aix3*)
12478 allow_undefined_flag_GO=unsupported
12479 always_export_symbols_GO=yes
12480 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'
12481 # Note: this linker hardcodes the directories in LIBPATH if there
12482 # are no directories specified by -L.
12483 hardcode_minus_L_GO=yes
12484 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12485 # Neither direct hardcoding nor static linking is supported with a
12486 # broken collect2.
12487 hardcode_direct_GO=unsupported
12488 fi
12489 ;;
12490
12491 aix[4-9]*)
12492 if test "$host_cpu" = ia64; then
12493 # On IA64, the linker does run time linking by default, so we don't
12494 # have to do anything special.
12495 aix_use_runtimelinking=no
12496 exp_sym_flag='-Bexport'
12497 no_entry_flag=""
12498 else
12499 # If we're using GNU nm, then we don't want the "-C" option.
12500 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12501 # Also, AIX nm treats weak defined symbols like other global
12502 # defined symbols, whereas GNU nm marks them as "W".
12503 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12504 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'
12505 else
12506 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'
12507 fi
12508 aix_use_runtimelinking=no
12509
12510 # Test if we are trying to use run time linking or normal
12511 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12512 # need to do runtime linking.
12513 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12514 for ld_flag in $LDFLAGS; do
12515 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12516 aix_use_runtimelinking=yes
12517 break
12518 fi
12519 done
12520 ;;
12521 esac
12522
12523 exp_sym_flag='-bexport'
12524 no_entry_flag='-bnoentry'
12525 fi
12526
12527 # When large executables or shared objects are built, AIX ld can
12528 # have problems creating the table of contents. If linking a library
12529 # or program results in "error TOC overflow" add -mminimal-toc to
12530 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12531 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12532
12533 archive_cmds_GO=''
12534 hardcode_direct_GO=yes
12535 hardcode_direct_absolute_GO=yes
12536 hardcode_libdir_separator_GO=':'
12537 link_all_deplibs_GO=yes
12538 file_list_spec_GO='${wl}-f,'
12539
12540 if test "$GCC" = yes; then
12541 case $host_os in aix4.[012]|aix4.[012].*)
12542 # We only want to do this on AIX 4.2 and lower, the check
12543 # below for broken collect2 doesn't work under 4.3+
12544 collect2name=`${CC} -print-prog-name=collect2`
12545 if test -f "$collect2name" &&
12546 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12547 then
12548 # We have reworked collect2
12549 :
12550 else
12551 # We have old collect2
12552 hardcode_direct_GO=unsupported
12553 # It fails to find uninstalled libraries when the uninstalled
12554 # path is not listed in the libpath. Setting hardcode_minus_L
12555 # to unsupported forces relinking
12556 hardcode_minus_L_GO=yes
12557 hardcode_libdir_flag_spec_GO='-L$libdir'
12558 hardcode_libdir_separator_GO=
12559 fi
12560 ;;
12561 esac
12562 shared_flag='-shared'
12563 if test "$aix_use_runtimelinking" = yes; then
12564 shared_flag="$shared_flag "'${wl}-G'
12565 fi
12566 else
12567 # not using gcc
12568 if test "$host_cpu" = ia64; then
12569 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12570 # chokes on -Wl,-G. The following line is correct:
12571 shared_flag='-G'
12572 else
12573 if test "$aix_use_runtimelinking" = yes; then
12574 shared_flag='${wl}-G'
12575 else
12576 shared_flag='${wl}-bM:SRE'
12577 fi
12578 fi
12579 fi
12580
12581 export_dynamic_flag_spec_GO='${wl}-bexpall'
12582 # It seems that -bexpall does not export symbols beginning with
12583 # underscore (_), so it is better to generate a list of symbols to export.
12584 always_export_symbols_GO=yes
12585 if test "$aix_use_runtimelinking" = yes; then
12586 # Warning - without using the other runtime loading flags (-brtl),
12587 # -berok will link without error, but may produce a broken library.
12588 allow_undefined_flag_GO='-berok'
12589 # Determine the default libpath from the value encoded in an
12590 # empty executable.
12591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12592/* end confdefs.h. */
12593
12594int
12595main ()
12596{
12597
12598 ;
12599 return 0;
12600}
12601_ACEOF
12602if ac_fn_c_try_link "$LINENO"; then :
12603
12604lt_aix_libpath_sed='
12605 /Import File Strings/,/^$/ {
12606 /^0/ {
12607 s/^0 *\(.*\)$/\1/
12608 p
12609 }
12610 }'
12611aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12612# Check for a 64-bit object if we didn't find anything.
12613if test -z "$aix_libpath"; then
12614 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12615fi
12616fi
12617rm -f core conftest.err conftest.$ac_objext \
12618 conftest$ac_exeext conftest.$ac_ext
12619if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12620
12621 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12622 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"
12623 else
12624 if test "$host_cpu" = ia64; then
12625 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12626 allow_undefined_flag_GO="-z nodefs"
12627 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"
12628 else
12629 # Determine the default libpath from the value encoded in an
12630 # empty executable.
12631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12632/* end confdefs.h. */
12633
12634int
12635main ()
12636{
12637
12638 ;
12639 return 0;
12640}
12641_ACEOF
12642if ac_fn_c_try_link "$LINENO"; then :
12643
12644lt_aix_libpath_sed='
12645 /Import File Strings/,/^$/ {
12646 /^0/ {
12647 s/^0 *\(.*\)$/\1/
12648 p
12649 }
12650 }'
12651aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12652# Check for a 64-bit object if we didn't find anything.
12653if test -z "$aix_libpath"; then
12654 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12655fi
12656fi
12657rm -f core conftest.err conftest.$ac_objext \
12658 conftest$ac_exeext conftest.$ac_ext
12659if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12660
12661 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12662 # Warning - without using the other run time loading flags,
12663 # -berok will link without error, but may produce a broken library.
12664 no_undefined_flag_GO=' ${wl}-bernotok'
12665 allow_undefined_flag_GO=' ${wl}-berok'
12666 if test "$with_gnu_ld" = yes; then
12667 # We only use this code for GNU lds that support --whole-archive.
12668 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12669 else
12670 # Exported symbols can be pulled into shared objects from archives
12671 whole_archive_flag_spec_GO='$convenience'
12672 fi
12673 archive_cmds_need_lc_GO=yes
12674 # This is similar to how AIX traditionally builds its shared libraries.
12675 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'
12676 fi
12677 fi
12678 ;;
12679
12680 amigaos*)
12681 case $host_cpu in
12682 powerpc)
12683 # see comment about AmigaOS4 .so support
12684 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12685 archive_expsym_cmds_GO=''
12686 ;;
12687 m68k)
12688 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)'
12689 hardcode_libdir_flag_spec_GO='-L$libdir'
12690 hardcode_minus_L_GO=yes
12691 ;;
12692 esac
12693 ;;
12694
12695 bsdi[45]*)
12696 export_dynamic_flag_spec_GO=-rdynamic
12697 ;;
12698
12699 cygwin* | mingw* | pw32* | cegcc*)
12700 # When not using gcc, we currently assume that we are using
12701 # Microsoft Visual C++.
12702 # hardcode_libdir_flag_spec is actually meaningless, as there is
12703 # no search path for DLLs.
12704 hardcode_libdir_flag_spec_GO=' '
12705 allow_undefined_flag_GO=unsupported
12706 # Tell ltmain to make .lib files, not .a files.
12707 libext=lib
12708 # Tell ltmain to make .dll files, not .so files.
12709 shrext_cmds=".dll"
12710 # FIXME: Setting linknames here is a bad hack.
12711 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12712 # The linker will automatically build a .lib file if we build a DLL.
12713 old_archive_from_new_cmds_GO='true'
12714 # FIXME: Should let the user specify the lib program.
12715 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12716 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12717 enable_shared_with_static_runtimes_GO=yes
12718 ;;
12719
12720 darwin* | rhapsody*)
12721
12722
12723 archive_cmds_need_lc_GO=no
12724 hardcode_direct_GO=no
12725 hardcode_automatic_GO=yes
12726 hardcode_shlibpath_var_GO=unsupported
12727 if test "$lt_cv_ld_force_load" = "yes"; then
12728 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\"`'
12729 else
12730 whole_archive_flag_spec_GO=''
12731 fi
12732 link_all_deplibs_GO=yes
12733 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12734 case $cc_basename in
12735 ifort*) _lt_dar_can_shared=yes ;;
12736 *) _lt_dar_can_shared=$GCC ;;
12737 esac
12738 if test "$_lt_dar_can_shared" = "yes"; then
12739 output_verbose_link_cmd=func_echo_all
12740 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}"
12741 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12742 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}"
12743 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}"
12744
12745 else
12746 ld_shlibs_GO=no
12747 fi
12748
12749 ;;
12750
12751 dgux*)
12752 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12753 hardcode_libdir_flag_spec_GO='-L$libdir'
12754 hardcode_shlibpath_var_GO=no
12755 ;;
12756
7a938933
ILT
12757 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12758 # support. Future versions do this automatically, but an explicit c++rt0.o
12759 # does not break anything, and helps significantly (at the cost of a little
12760 # extra space).
12761 freebsd2.2*)
12762 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12763 hardcode_libdir_flag_spec_GO='-R$libdir'
12764 hardcode_direct_GO=yes
12765 hardcode_shlibpath_var_GO=no
12766 ;;
12767
12768 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
327a26a3 12769 freebsd2.*)
7a938933
ILT
12770 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12771 hardcode_direct_GO=yes
12772 hardcode_minus_L_GO=yes
12773 hardcode_shlibpath_var_GO=no
12774 ;;
12775
12776 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12777 freebsd* | dragonfly*)
12778 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12779 hardcode_libdir_flag_spec_GO='-R$libdir'
12780 hardcode_direct_GO=yes
12781 hardcode_shlibpath_var_GO=no
12782 ;;
12783
12784 hpux9*)
12785 if test "$GCC" = yes; then
12786 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'
12787 else
12788 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'
12789 fi
12790 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12791 hardcode_libdir_separator_GO=:
12792 hardcode_direct_GO=yes
12793
12794 # hardcode_minus_L: Not really in the search PATH,
12795 # but as the default location of the library.
12796 hardcode_minus_L_GO=yes
12797 export_dynamic_flag_spec_GO='${wl}-E'
12798 ;;
12799
12800 hpux10*)
12801 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12802 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12803 else
12804 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12805 fi
12806 if test "$with_gnu_ld" = no; then
12807 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12808 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12809 hardcode_libdir_separator_GO=:
12810 hardcode_direct_GO=yes
12811 hardcode_direct_absolute_GO=yes
12812 export_dynamic_flag_spec_GO='${wl}-E'
12813 # hardcode_minus_L: Not really in the search PATH,
12814 # but as the default location of the library.
12815 hardcode_minus_L_GO=yes
12816 fi
12817 ;;
12818
12819 hpux11*)
12820 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12821 case $host_cpu in
12822 hppa*64*)
12823 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12824 ;;
12825 ia64*)
12826 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12827 ;;
12828 *)
12829 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12830 ;;
12831 esac
12832 else
12833 case $host_cpu in
12834 hppa*64*)
12835 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12836 ;;
12837 ia64*)
12838 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12839 ;;
12840 *)
12841 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12842 ;;
12843 esac
12844 fi
12845 if test "$with_gnu_ld" = no; then
12846 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12847 hardcode_libdir_separator_GO=:
12848
12849 case $host_cpu in
12850 hppa*64*|ia64*)
12851 hardcode_direct_GO=no
12852 hardcode_shlibpath_var_GO=no
12853 ;;
12854 *)
12855 hardcode_direct_GO=yes
12856 hardcode_direct_absolute_GO=yes
12857 export_dynamic_flag_spec_GO='${wl}-E'
12858
12859 # hardcode_minus_L: Not really in the search PATH,
12860 # but as the default location of the library.
12861 hardcode_minus_L_GO=yes
12862 ;;
12863 esac
12864 fi
12865 ;;
12866
12867 irix5* | irix6* | nonstopux*)
12868 if test "$GCC" = yes; then
12869 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'
12870 # Try to use the -exported_symbol ld option, if it does not
12871 # work, assume that -exports_file does not work either and
12872 # implicitly export all symbols.
12873 save_LDFLAGS="$LDFLAGS"
12874 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12876/* end confdefs.h. */
12877int foo(void) {}
12878_ACEOF
12879if ac_fn_c_try_link "$LINENO"; then :
12880 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'
12881
12882fi
12883rm -f core conftest.err conftest.$ac_objext \
12884 conftest$ac_exeext conftest.$ac_ext
12885 LDFLAGS="$save_LDFLAGS"
12886 else
12887 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'
12888 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'
12889 fi
12890 archive_cmds_need_lc_GO='no'
12891 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12892 hardcode_libdir_separator_GO=:
12893 inherit_rpath_GO=yes
12894 link_all_deplibs_GO=yes
12895 ;;
12896
12897 netbsd*)
12898 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12899 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12900 else
12901 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12902 fi
12903 hardcode_libdir_flag_spec_GO='-R$libdir'
12904 hardcode_direct_GO=yes
12905 hardcode_shlibpath_var_GO=no
12906 ;;
12907
12908 newsos6)
12909 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12910 hardcode_direct_GO=yes
12911 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12912 hardcode_libdir_separator_GO=:
12913 hardcode_shlibpath_var_GO=no
12914 ;;
12915
12916 *nto* | *qnx*)
12917 ;;
12918
12919 openbsd*)
12920 if test -f /usr/libexec/ld.so; then
12921 hardcode_direct_GO=yes
12922 hardcode_shlibpath_var_GO=no
12923 hardcode_direct_absolute_GO=yes
12924 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12925 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12926 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12927 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12928 export_dynamic_flag_spec_GO='${wl}-E'
12929 else
12930 case $host_os in
12931 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12932 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12933 hardcode_libdir_flag_spec_GO='-R$libdir'
12934 ;;
12935 *)
12936 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12937 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12938 ;;
12939 esac
12940 fi
12941 else
12942 ld_shlibs_GO=no
12943 fi
12944 ;;
12945
12946 os2*)
12947 hardcode_libdir_flag_spec_GO='-L$libdir'
12948 hardcode_minus_L_GO=yes
12949 allow_undefined_flag_GO=unsupported
12950 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'
12951 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12952 ;;
12953
12954 osf3*)
12955 if test "$GCC" = yes; then
12956 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12957 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'
12958 else
12959 allow_undefined_flag_GO=' -expect_unresolved \*'
12960 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'
12961 fi
12962 archive_cmds_need_lc_GO='no'
12963 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12964 hardcode_libdir_separator_GO=:
12965 ;;
12966
12967 osf4* | osf5*) # as osf3* with the addition of -msym flag
12968 if test "$GCC" = yes; then
12969 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12970 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'
12971 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12972 else
12973 allow_undefined_flag_GO=' -expect_unresolved \*'
12974 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'
12975 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~
12976 $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'
12977
12978 # Both c and cxx compiler support -rpath directly
12979 hardcode_libdir_flag_spec_GO='-rpath $libdir'
12980 fi
12981 archive_cmds_need_lc_GO='no'
12982 hardcode_libdir_separator_GO=:
12983 ;;
12984
12985 solaris*)
12986 no_undefined_flag_GO=' -z defs'
12987 if test "$GCC" = yes; then
12988 wlarc='${wl}'
12989 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12990 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12991 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12992 else
12993 case `$CC -V 2>&1` in
12994 *"Compilers 5.0"*)
12995 wlarc=''
12996 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12997 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12998 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12999 ;;
13000 *)
13001 wlarc='${wl}'
13002 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13003 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13004 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13005 ;;
13006 esac
13007 fi
13008 hardcode_libdir_flag_spec_GO='-R$libdir'
13009 hardcode_shlibpath_var_GO=no
13010 case $host_os in
13011 solaris2.[0-5] | solaris2.[0-5].*) ;;
13012 *)
13013 # The compiler driver will combine and reorder linker options,
13014 # but understands `-z linker_flag'. GCC discards it without `$wl',
13015 # but is careful enough not to reorder.
13016 # Supported since Solaris 2.6 (maybe 2.5.1?)
13017 if test "$GCC" = yes; then
13018 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13019 else
13020 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
13021 fi
13022 ;;
13023 esac
13024 link_all_deplibs_GO=yes
13025 ;;
13026
13027 sunos4*)
13028 if test "x$host_vendor" = xsequent; then
13029 # Use $CC to link under sequent, because it throws in some extra .o
13030 # files that make .init and .fini sections work.
13031 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13032 else
13033 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13034 fi
13035 hardcode_libdir_flag_spec_GO='-L$libdir'
13036 hardcode_direct_GO=yes
13037 hardcode_minus_L_GO=yes
13038 hardcode_shlibpath_var_GO=no
13039 ;;
13040
13041 sysv4)
13042 case $host_vendor in
13043 sni)
13044 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13045 hardcode_direct_GO=yes # is this really true???
13046 ;;
13047 siemens)
13048 ## LD is ld it makes a PLAMLIB
13049 ## CC just makes a GrossModule.
13050 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13051 reload_cmds_GO='$CC -r -o $output$reload_objs'
13052 hardcode_direct_GO=no
13053 ;;
13054 motorola)
13055 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13056 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
13057 ;;
13058 esac
13059 runpath_var='LD_RUN_PATH'
13060 hardcode_shlibpath_var_GO=no
13061 ;;
13062
13063 sysv4.3*)
13064 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13065 hardcode_shlibpath_var_GO=no
13066 export_dynamic_flag_spec_GO='-Bexport'
13067 ;;
13068
13069 sysv4*MP*)
13070 if test -d /usr/nec; then
13071 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13072 hardcode_shlibpath_var_GO=no
13073 runpath_var=LD_RUN_PATH
13074 hardcode_runpath_var=yes
13075 ld_shlibs_GO=yes
13076 fi
13077 ;;
13078
13079 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13080 no_undefined_flag_GO='${wl}-z,text'
13081 archive_cmds_need_lc_GO=no
13082 hardcode_shlibpath_var_GO=no
13083 runpath_var='LD_RUN_PATH'
13084
13085 if test "$GCC" = yes; then
13086 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13087 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13088 else
13089 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13090 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13091 fi
13092 ;;
13093
13094 sysv5* | sco3.2v5* | sco5v6*)
13095 # Note: We can NOT use -z defs as we might desire, because we do not
13096 # link with -lc, and that would cause any symbols used from libc to
13097 # always be unresolved, which means just about no library would
13098 # ever link correctly. If we're not using GNU ld we use -z text
13099 # though, which does catch some bad symbols but isn't as heavy-handed
13100 # as -z defs.
13101 no_undefined_flag_GO='${wl}-z,text'
13102 allow_undefined_flag_GO='${wl}-z,nodefs'
13103 archive_cmds_need_lc_GO=no
13104 hardcode_shlibpath_var_GO=no
13105 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
13106 hardcode_libdir_separator_GO=':'
13107 link_all_deplibs_GO=yes
13108 export_dynamic_flag_spec_GO='${wl}-Bexport'
13109 runpath_var='LD_RUN_PATH'
13110
13111 if test "$GCC" = yes; then
13112 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13113 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13114 else
13115 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13116 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13117 fi
13118 ;;
13119
13120 uts4*)
13121 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13122 hardcode_libdir_flag_spec_GO='-L$libdir'
13123 hardcode_shlibpath_var_GO=no
13124 ;;
13125
13126 *)
13127 ld_shlibs_GO=no
13128 ;;
13129 esac
13130
13131 if test x$host_vendor = xsni; then
13132 case $host in
13133 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13134 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
13135 ;;
13136 esac
13137 fi
13138 fi
13139
13140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13141$as_echo "$ld_shlibs_GO" >&6; }
13142test "$ld_shlibs_GO" = no && can_build_shared=no
13143
13144with_gnu_ld_GO=$with_gnu_ld
13145
13146
13147
13148
13149
13150
13151#
13152# Do we need to explicitly link libc?
13153#
13154case "x$archive_cmds_need_lc_GO" in
13155x|xyes)
13156 # Assume -lc should be added
13157 archive_cmds_need_lc_GO=yes
13158
13159 if test "$enable_shared" = yes && test "$GCC" = yes; then
13160 case $archive_cmds_GO in
13161 *'~'*)
13162 # FIXME: we may have to deal with multi-command sequences.
13163 ;;
13164 '$CC '*)
13165 # Test whether the compiler implicitly links with -lc since on some
13166 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13167 # to ld, don't add -lc before -lgcc.
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13169$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13170if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
13171 $as_echo_n "(cached) " >&6
13172else
13173 $RM conftest*
13174 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13175
13176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13177 (eval $ac_compile) 2>&5
13178 ac_status=$?
13179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13180 test $ac_status = 0; } 2>conftest.err; then
13181 soname=conftest
13182 lib=conftest
13183 libobjs=conftest.$ac_objext
13184 deplibs=
13185 wl=$lt_prog_compiler_wl_GO
13186 pic_flag=$lt_prog_compiler_pic_GO
13187 compiler_flags=-v
13188 linker_flags=-v
13189 verstring=
13190 output_objdir=.
13191 libname=conftest
13192 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
13193 allow_undefined_flag_GO=
13194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13195 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13196 ac_status=$?
13197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13198 test $ac_status = 0; }
13199 then
13200 lt_cv_archive_cmds_need_lc_GO=no
13201 else
13202 lt_cv_archive_cmds_need_lc_GO=yes
13203 fi
13204 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13205 else
13206 cat conftest.err 1>&5
13207 fi
13208 $RM conftest*
13209
13210fi
13211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13212$as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13213 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13214 ;;
13215 esac
13216 fi
13217 ;;
13218esac
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
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13284$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13285hardcode_action_GO=
13286if test -n "$hardcode_libdir_flag_spec_GO" ||
13287 test -n "$runpath_var_GO" ||
13288 test "X$hardcode_automatic_GO" = "Xyes" ; then
13289
13290 # We can hardcode non-existent directories.
13291 if test "$hardcode_direct_GO" != no &&
13292 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13293 # have to relink, otherwise we might link with an installed library
13294 # when we should be linking with a yet-to-be-installed one
13295 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13296 test "$hardcode_minus_L_GO" != no; then
13297 # Linking always hardcodes the temporary library directory.
13298 hardcode_action_GO=relink
13299 else
13300 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13301 hardcode_action_GO=immediate
13302 fi
13303else
13304 # We cannot hardcode anything, or else we can only hardcode existing
13305 # directories.
13306 hardcode_action_GO=unsupported
13307fi
13308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13309$as_echo "$hardcode_action_GO" >&6; }
13310
13311if test "$hardcode_action_GO" = relink ||
13312 test "$inherit_rpath_GO" = yes; then
13313 # Fast installation is not supported
13314 enable_fast_install=no
13315elif test "$shlibpath_overrides_runpath" = yes ||
13316 test "$enable_shared" = no; then
13317 # Fast installation is not necessary
13318 enable_fast_install=needless
13319fi
13320
13321
13322
13323
13324
13325
13326
13327fi
13328
13329ac_ext=c
13330ac_cpp='$CPP $CPPFLAGS'
13331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13333ac_compiler_gnu=$ac_cv_c_compiler_gnu
13334
13335
13336GCC=$lt_save_GCC
13337CC="$lt_save_CC"
13338
13339
13340
13341
13342 ac_config_commands="$ac_config_commands libtool"
13343
13344
13345
13346
13347# Only expand once:
13348
13349
13350
13351
13352
d983a802
ILT
13353CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13354
13355
de27caac
ILT
13356for ac_prog in gawk mawk nawk awk
13357do
13358 # Extract the first word of "$ac_prog", so it can be a program name with args.
13359set dummy $ac_prog; ac_word=$2
13360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13361$as_echo_n "checking for $ac_word... " >&6; }
13362if test "${ac_cv_prog_AWK+set}" = set; then :
13363 $as_echo_n "(cached) " >&6
13364else
13365 if test -n "$AWK"; then
13366 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13367else
13368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13369for as_dir in $PATH
13370do
13371 IFS=$as_save_IFS
13372 test -z "$as_dir" && as_dir=.
13373 for ac_exec_ext in '' $ac_executable_extensions; do
13374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13375 ac_cv_prog_AWK="$ac_prog"
13376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13377 break 2
13378 fi
13379done
13380 done
13381IFS=$as_save_IFS
13382
13383fi
13384fi
13385AWK=$ac_cv_prog_AWK
13386if test -n "$AWK"; then
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13388$as_echo "$AWK" >&6; }
13389else
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13391$as_echo "no" >&6; }
13392fi
13393
13394
13395 test -n "$AWK" && break
13396done
13397
13398
7a938933
ILT
13399WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13400
13401
0d4668c1
ILT
13402# Check whether --enable-werror was given.
13403if test "${enable_werror+set}" = set; then :
13404 enableval=$enable_werror;
13405fi
13406
13407if test "x$enable_werror" != "xno"; then
13408 WERROR="-Werror"
13409fi
7a938933
ILT
13410
13411
13412glibgo_toolexecdir=no
13413glibgo_toolexeclibdir=no
7a938933
ILT
13414
13415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13416$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13417# Check whether --enable-version-specific-runtime-libs was given.
13418if test "${enable_version_specific_runtime_libs+set}" = set; then :
13419 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13420 yes) version_specific_libs=yes ;;
13421 no) version_specific_libs=no ;;
13422 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13423 esac
13424else
13425 version_specific_libs=no
13426fi
13427
13428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13429$as_echo "$version_specific_libs" >&6; }
13430
13431# Version-specific runtime libs processing.
13432if test $version_specific_libs = yes; then
13433 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13434 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13435fi
13436
13437# Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13438# Install a library built with a cross compiler in tooldir, not libdir.
317ea7c0
ILT
13439if test -n "$with_cross_host" &&
13440 test x"$with_cross_host" != x"no"; then
13441 nover_glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13442 nover_glibgo_toolexeclibdir='${toolexecdir}/lib'
13443else
13444 nover_glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13445 nover_glibgo_toolexeclibdir='${libdir}'
13446fi
6c76a95d 13447multi_os_directory=`$GOC -print-multi-os-directory`
317ea7c0
ILT
13448case $multi_os_directory in
13449 .) ;; # Avoid trailing /.
13450 *) nover_glibgo_toolexeclibdir=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;;
13451esac
13452
7a938933 13453if test x"$glibgo_toolexecdir" = x"no"; then
317ea7c0
ILT
13454 glibgo_toolexecdir="${nover_glibgo_toolexecdir}"
13455 glibgo_toolexeclibdir="${nover_glibgo_toolexeclibdir}"
7a938933
ILT
13456fi
13457
13458
13459
13460
13461
13462# See if the user wants to configure without libffi. Some
13463# architectures don't support it. FIXME: We should set a default
13464# based on the host.
13465
13466# Check whether --with-libffi was given.
13467if test "${with_libffi+set}" = set; then :
13468 withval=$with_libffi; :
13469else
13470 with_libffi=${with_libffi_default-yes}
13471fi
13472
13473
13474LIBFFI=
13475LIBFFIINCS=
13476if test "$with_libffi" != no; then
13477
13478$as_echo "#define USE_LIBFFI 1" >>confdefs.h
13479
13480 LIBFFI=../libffi/libffi_convenience.la
13481 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13482fi
13483
13484
5302cd02
ILT
13485 if test "$with_liffi" != "no"; then
13486 USE_LIBFFI_TRUE=
13487 USE_LIBFFI_FALSE='#'
13488else
13489 USE_LIBFFI_TRUE='#'
13490 USE_LIBFFI_FALSE=
13491fi
13492
7a938933 13493
9a85ed03
ILT
13494# See if the user wants to configure without libatomic. This is useful if we are
13495# on an architecture for which libgo does not need an atomic support library and
13496# libatomic does not support our C compiler.
13497
13498# Check whether --with-libatomic was given.
13499if test "${with_libatomic+set}" = set; then :
13500 withval=$with_libatomic; :
13501else
13502 with_libatomic=${with_libatomic_default-yes}
13503fi
13504
13505
13506LIBATOMIC=
13507if test "$with_libatomic" != no; then
13508 LIBATOMIC=../libatomic/libatomic_convenience.la
13509fi
13510
13511
18c70075
ILT
13512# Used to tell GNU make to include a file without telling automake to
13513# include it.
13514go_include="-include"
13515
13516
a8464243
ILT
13517# All known GOOS values. This is the union of all operating systems
13518# supported by the gofrontend and all operating systems supported by
13519# the gc toolchain.
f163907e 13520ALLGOOS="aix android darwin dragonfly freebsd irix linux netbsd openbsd plan9 rtems solaris windows"
a8464243 13521
7a938933
ILT
13522is_darwin=no
13523is_freebsd=no
654d2ec0 13524is_irix=no
7a938933 13525is_linux=no
1efa38d1 13526is_netbsd=no
4ccad563 13527is_openbsd=no
f038dae6 13528is_dragonfly=no
7a938933 13529is_rtems=no
f2ee78b8 13530is_solaris=no
f163907e 13531is_aix=no
c3b5b97b 13532GOOS=unknown
7a938933 13533case ${host} in
f2ee78b8
ILT
13534 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13535 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
654d2ec0 13536 *-*-irix6*) is_irix=yes; GOOS=irix ;;
f2ee78b8 13537 *-*-linux*) is_linux=yes; GOOS=linux ;;
df4aa89a 13538 *-*-netbsd*) is_netbsd=yes; GOOS=netbsd ;;
4ccad563 13539 *-*-openbsd*) is_openbsd=yes; GOOS=openbsd ;;
f038dae6 13540 *-*-dragonfly*) is_dragonfly=yes; GOOS=dragonfly ;;
f2ee78b8
ILT
13541 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13542 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
f163907e 13543 *-*-aix*) is_aix=yes; GOOS=aix ;;
7a938933
ILT
13544esac
13545 if test $is_darwin = yes; then
13546 LIBGO_IS_DARWIN_TRUE=
13547 LIBGO_IS_DARWIN_FALSE='#'
13548else
13549 LIBGO_IS_DARWIN_TRUE='#'
13550 LIBGO_IS_DARWIN_FALSE=
13551fi
13552
13553 if test $is_freebsd = yes; then
13554 LIBGO_IS_FREEBSD_TRUE=
13555 LIBGO_IS_FREEBSD_FALSE='#'
13556else
13557 LIBGO_IS_FREEBSD_TRUE='#'
13558 LIBGO_IS_FREEBSD_FALSE=
13559fi
13560
654d2ec0
ILT
13561 if test $is_irix = yes; then
13562 LIBGO_IS_IRIX_TRUE=
13563 LIBGO_IS_IRIX_FALSE='#'
13564else
13565 LIBGO_IS_IRIX_TRUE='#'
13566 LIBGO_IS_IRIX_FALSE=
13567fi
13568
7a938933
ILT
13569 if test $is_linux = yes; then
13570 LIBGO_IS_LINUX_TRUE=
13571 LIBGO_IS_LINUX_FALSE='#'
13572else
13573 LIBGO_IS_LINUX_TRUE='#'
13574 LIBGO_IS_LINUX_FALSE=
13575fi
13576
df4aa89a
ILT
13577 if test $is_netbsd = yes; then
13578 LIBGO_IS_NETBSD_TRUE=
13579 LIBGO_IS_NETBSD_FALSE='#'
13580else
13581 LIBGO_IS_NETBSD_TRUE='#'
13582 LIBGO_IS_NETBSD_FALSE=
13583fi
13584
4ccad563
ILT
13585 if test $is_openbsd = yes; then
13586 LIBGO_IS_OPENBSD_TRUE=
13587 LIBGO_IS_OPENBSD_FALSE='#'
13588else
13589 LIBGO_IS_OPENBSD_TRUE='#'
13590 LIBGO_IS_OPENBSD_FALSE=
13591fi
13592
824393bd 13593 if test $is_dragonfly = yes; then
f038dae6
ILT
13594 LIBGO_IS_DRAGONFLY_TRUE=
13595 LIBGO_IS_DRAGONFLY_FALSE='#'
13596else
13597 LIBGO_IS_DRAGONFLY_TRUE='#'
13598 LIBGO_IS_DRAGONFLY_FALSE=
13599fi
13600
7a938933
ILT
13601 if test $is_rtems = yes; then
13602 LIBGO_IS_RTEMS_TRUE=
13603 LIBGO_IS_RTEMS_FALSE='#'
13604else
13605 LIBGO_IS_RTEMS_TRUE='#'
13606 LIBGO_IS_RTEMS_FALSE=
13607fi
13608
f2ee78b8
ILT
13609 if test $is_solaris = yes; then
13610 LIBGO_IS_SOLARIS_TRUE=
13611 LIBGO_IS_SOLARIS_FALSE='#'
13612else
13613 LIBGO_IS_SOLARIS_TRUE='#'
13614 LIBGO_IS_SOLARIS_FALSE=
13615fi
13616
f163907e
ILT
13617 if test $is_aix = yes; then
13618 LIBGO_IS_AIX_TRUE=
13619 LIBGO_IS_AIX_FALSE='#'
13620else
13621 LIBGO_IS_AIX_TRUE='#'
13622 LIBGO_IS_AIX_FALSE=
13623fi
13624
22b955cc
ILT
13625 if test $is_darwin = yes -o $is_dragonfly = yes -o $is_freebsd = yes -o $is_netbsd = yes -o $is_openbsd = yes; then
13626 LIBGO_IS_BSD_TRUE=
13627 LIBGO_IS_BSD_FALSE='#'
13628else
13629 LIBGO_IS_BSD_TRUE='#'
13630 LIBGO_IS_BSD_FALSE=
13631fi
13632
7a938933 13633
c3b5b97b 13634
a8464243 13635
7134cf28
ILT
13636USE_DEJAGNU=no
13637case ${host} in
13638 *-*-rtems*) USE_DEJAGNU=yes ;;
553752e1 13639 ${build}) ;;
7134cf28
ILT
13640 *) USE_DEJAGNU=yes ;;
13641esac
13642
13643
a8464243
ILT
13644# All known GOARCH values. This is the union of all architectures
13645# supported by the gofrontend and all architectures supported by the
13646# gc toolchain.
13647# N.B. Keep in sync with gcc/testsuite/go.test/go-test.exp (go-set-goarch).
fd0c1dd1 13648ALLGOARCH="386 alpha amd64 amd64p32 arm armbe arm64 arm64be ia64 m68k mips mipsle mips64 mips64le mips64p32 mips64p32le ppc ppc64 ppc64le s390 s390x sh shbe sparc sparc64"
a8464243
ILT
13649
13650# All known GOARCH_FAMILY values.
fd0c1dd1 13651ALLGOARCHFAMILY="I386 ALPHA AMD64 ARM ARM64 IA64 M68K MIPS MIPS64 PPC PPC64 S390 S390X SH SPARC SPARC64"
a8464243 13652
c3b5b97b 13653GOARCH=unknown
a8464243 13654GOARCH_FAMILY=unknown
1a2f01ef 13655GOARCH_BIGENDIAN=false
a8464243
ILT
13656GOARCH_CACHELINESIZE=64
13657GOARCH_PHYSPAGESIZE=4096
13658GOARCH_PCQUANTUM=1
13659GOARCH_INT64ALIGN=8
13660GOARCH_HUGEPAGESIZE=0
13661GOARCH_MINFRAMESIZE=0
7a938933 13662case ${host} in
e59b9171 13663 alpha*-*-*)
e59b9171 13664 GOARCH=alpha
a8464243
ILT
13665 GOARCH_FAMILY=ALPHA
13666 GOARCH_PHYSPAGESIZE=8192
13667 GOARCH_PCQUANTUM=4
e59b9171 13668 ;;
71d0d50a 13669 aarch64-*-*)
71d0d50a 13670 GOARCH=arm64
a8464243
ILT
13671 GOARCH_FAMILY=ARM64
13672 GOARCH_CACHELINESIZE=32
13673 GOARCH_PHYSPAGESIZE=65536
f6c7d678 13674 GOARCH_PCQUANTUM=4
a8464243 13675 GOARCH_MINFRAMESIZE=8
71d0d50a 13676 ;;
ca11cc98 13677 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
ca11cc98 13678 GOARCH=arm
a8464243
ILT
13679 GOARCH_FAMILY=ARM
13680 GOARCH_CACHELINESIZE=32
13681 GOARCH_PCQUANTUM=4
a8464243 13682 GOARCH_MINFRAMESIZE=4
1a2f01ef
ILT
13683 case ${host} in
13684 arm*b*-*-*)
13685 GOARCH=armbe
13686 GOARCH_BIGENDIAN=true
13687 ;;
13688 esac
ca11cc98 13689 ;;
c3b5b97b
ILT
13690 i[34567]86-*-* | x86_64-*-*)
13691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13692/* end confdefs.h. */
13693
13694#ifdef __x86_64__
13695#error 64-bit
13696#endif
13697_ACEOF
4a299bf4 13698if ac_fn_c_try_compile "$LINENO"; then :
a8464243
ILT
13699 GOARCH=386
13700GOARCH_FAMILY=I386
13701GOARCH_INT64ALIGN=4
13702GOARCH_HUGEPAGESIZE="1 << 21"
13703
c3b5b97b 13704else
a8464243
ILT
13705 GOARCH=amd64
13706GOARCH_FAMILY=AMD64
13707GOARCH_HUGEPAGESIZE="1 << 21"
13708
c3b5b97b 13709fi
4a299bf4 13710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7a938933 13711 ;;
4f8e688a 13712 ia64-*-*)
4f8e688a 13713 GOARCH=ia64
a8464243 13714 GOARCH_FAMILY=IA64
319e41dc 13715 GOARCH_CACHELINESIZE=128
307dde6f 13716 GOARCH_PHYSPAGESIZE=65536
4f8e688a 13717 ;;
ca11cc98 13718 m68k*-*-*)
ca11cc98 13719 GOARCH=m68k
a8464243 13720 GOARCH_FAMILY=M68K
1a2f01ef 13721 GOARCH_BIGENDIAN=true
a8464243
ILT
13722 GOARCH_CACHELINESIZE=16
13723 GOARCH_PCQUANTUM=4
0f366729 13724 GOARCH_INT64ALIGN=2
ca11cc98
ILT
13725 ;;
13726 mips*-*-*)
13727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13728/* end confdefs.h. */
13729
85a09210
ILT
13730#if _MIPS_SIM != _ABIO32
13731#error not o32
13732#endif
13733_ACEOF
13734if ac_fn_c_try_compile "$LINENO"; then :
13735 mips_abi="o32"
13736else
13737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13738/* end confdefs.h. */
13739
13740#if _MIPS_SIM != _ABIN32
13741#error not n32
ca11cc98
ILT
13742#endif
13743_ACEOF
4a299bf4 13744if ac_fn_c_try_compile "$LINENO"; then :
85a09210 13745 mips_abi="n32"
ca11cc98 13746else
85a09210
ILT
13747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13748/* end confdefs.h. */
13749
13750#if _MIPS_SIM != _ABI64
13751#error not n64
13752#endif
13753_ACEOF
13754if ac_fn_c_try_compile "$LINENO"; then :
13755 mips_abi="n64"
85a09210
ILT
13756else
13757 as_fn_error "unknown MIPS ABI" "$LINENO" 5
13758mips_abi="n32"
ca11cc98 13759fi
4a299bf4 13760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
85a09210
ILT
13761fi
13762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13763fi
85a09210
ILT
13764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13765 case "$mips_abi" in
1701a9d8
ILT
13766 "o32") GOARCH=mips ;;
13767 "n32") GOARCH=mips64p32 ;;
13768 "n64") GOARCH=mips64 ;;
85a09210 13769 esac
a8464243
ILT
13770 case "$mips_abi" in
13771 "o32" | "n32")
13772 GOARCH_FAMILY=MIPS
a8464243
ILT
13773 GOARCH_MINFRAMESIZE=4
13774 ;;
b95cd48b 13775 "n64")
a8464243
ILT
13776 GOARCH_FAMILY=MIPS64
13777 GOARCH_MINFRAMESIZE=8
13778 ;;
13779 esac
13780 case "${host}" in
1701a9d8 13781 mips*el-*-*)
f30d2091 13782 GOARCH="${GOARCH}le"
a8464243
ILT
13783 ;;
13784 *)
1a2f01ef 13785 GOARCH_BIGENDIAN=true
a8464243
ILT
13786 ;;
13787 esac
13788 GOARCH_CACHELINESIZE=32
13789 GOARCH_PHYSPAGESIZE=16384
13790 GOARCH_PCQUANTUM=4
ca11cc98
ILT
13791 ;;
13792 rs6000*-*-* | powerpc*-*-*)
13793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13794/* end confdefs.h. */
13795
13796#ifdef _ARCH_PPC64
13797#error 64-bit
13798#endif
13799_ACEOF
4a299bf4 13800if ac_fn_c_try_compile "$LINENO"; then :
a8464243
ILT
13801 GOARCH=ppc
13802GOARCH_FAMILY=PPC
1a2f01ef 13803GOARCH_BIGENDIAN=true
a8464243 13804
6f7ccafa 13805else
a8464243
ILT
13806
13807GOARCH_FAMILY=PPC64
13808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6f7ccafa
ILT
13809/* end confdefs.h. */
13810
13811#if defined(_BIG_ENDIAN) || defined(__BIG_ENDIAN__)
13812#error 64be
13813#endif
13814_ACEOF
13815if ac_fn_c_try_compile "$LINENO"; then :
a8464243
ILT
13816 GOARCH=ppc64le
13817
ca11cc98 13818else
a8464243 13819 GOARCH=ppc64
1a2f01ef 13820GOARCH_BIGENDIAN=true
a8464243 13821
ca11cc98 13822fi
6f7ccafa
ILT
13823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13824fi
4a299bf4 13825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a8464243
ILT
13826 GOARCH_PHYSPAGESIZE=65536
13827 GOARCH_PCQUANTUM=4
13828 GOARCH_MINFRAMESIZE=32
7a938933 13829 ;;
1fec5f52
ILT
13830 s390*-*-*)
13831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13832/* end confdefs.h. */
13833
13834#if defined(__s390x__)
13835#error 64-bit
13836#endif
13837_ACEOF
13838if ac_fn_c_try_compile "$LINENO"; then :
a8464243
ILT
13839 GOARCH=s390
13840GOARCH_FAMILY=S390
a8464243
ILT
13841GOARCH_MINFRAMESIZE=4
13842
1fec5f52 13843else
a8464243
ILT
13844 GOARCH=s390x
13845GOARCH_FAMILY=S390X
13846GOARCH_MINFRAMESIZE=8
13847
1fec5f52
ILT
13848fi
13849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1a2f01ef 13850 GOARCH_BIGENDIAN=true
a8464243
ILT
13851 GOARCH_CACHELINESIZE=256
13852 GOARCH_PCQUANTUM=2
1fec5f52 13853 ;;
fd0c1dd1
ILT
13854 sh3eb*-*-*)
13855 GOARCH=shbe
13856 GOARCH_FAMILY=SH
13857 GOARCH_BIGENDIAN=true
13858 GOARCH_CACHELINESIZE=16
13859 GOARCH_PCQUANTUM=2
13860 GOARCH_MINFRAMESIZE=4
13861 ;;
13862 sh3*-*-*)
13863 GOARCH=sh
13864 GOARCH_FAMILY=SH
13865 GOARCH_CACHELINESIZE=16
13866 GOARCH_PCQUANTUM=2
13867 GOARCH_MINFRAMESIZE=4
13868 ;;
13869 sh4eb*-*-*)
13870 GOARCH=shbe
13871 GOARCH_FAMILY=SH
13872 GOARCH_BIGENDIAN=true
13873 GOARCH_CACHELINESIZE=32
13874 GOARCH_PCQUANTUM=2
13875 GOARCH_MINFRAMESIZE=4
13876 ;;
13877 sh4*-*-*)
13878 GOARCH=sh
13879 GOARCH_FAMILY=SH
13880 GOARCH_CACHELINESIZE=32
13881 GOARCH_PCQUANTUM=2
13882 GOARCH_MINFRAMESIZE=4
13883 ;;
f2ee78b8
ILT
13884 sparc*-*-*)
13885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13886/* end confdefs.h. */
13887
13888#if defined(__sparcv9) || defined(__arch64__)
13889#error 64-bit
13890#endif
13891_ACEOF
4a299bf4 13892if ac_fn_c_try_compile "$LINENO"; then :
a8464243
ILT
13893 GOARCH=sparc
13894GOARCH_FAMILY=SPARC
a8464243 13895
f2ee78b8 13896else
a8464243
ILT
13897 GOARCH=sparc64
13898GOARCH_FAMILY=SPARC64
13899
f2ee78b8 13900fi
4a299bf4 13901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1a2f01ef 13902 GOARCH_BIGENDIAN=true
a8464243
ILT
13903 GOARCH_PHYSPAGESIZE=8192
13904 GOARCH_PCQUANTUM=4
f2ee78b8 13905 ;;
7a938933 13906esac
85a09210 13907
ca11cc98 13908
f98dd1a3 13909
ca11cc98 13910
ca11cc98 13911
6f7ccafa 13912
1fec5f52 13913
1fec5f52 13914
f2ee78b8 13915
f2ee78b8 13916
7a938933 13917
c3b5b97b 13918
de27caac
ILT
13919GO_LIBCALL_OS_FILE=
13920GO_LIBCALL_OS_ARCH_FILE=
13921GO_SYSCALL_OS_FILE=
13922GO_SYSCALL_OS_ARCH_FILE=
204b9fc2
ILT
13923if test -f "${srcdir}/go/syscall/libcall_${GOOS}.go"; then
13924 GO_LIBCALL_OS_FILE="go/syscall/libcall_${GOOS}.go"
ca11cc98 13925fi
204b9fc2
ILT
13926if test -f "${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go"; then
13927 GO_LIBCALL_OS_ARCH_FILE="go/syscall/libcall_${GOOS}_${GOARCH}.go"
de27caac 13928fi
204b9fc2
ILT
13929if test -f "${srcdir}/go/syscall/syscall_${GOOS}.go"; then
13930 GO_SYSCALL_OS_FILE="go/syscall/syscall_${GOOS}.go"
de27caac 13931fi
204b9fc2
ILT
13932if test -f "${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go"; then
13933 GO_SYSCALL_OS_ARCH_FILE="go/syscall/syscall_${GOOS}_${GOARCH}.go"
de27caac
ILT
13934fi
13935
13936
13937
ca11cc98
ILT
13938
13939
d48be5df 13940OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
90630d19 13941case "$target" in
9f3b1e6c
ILT
13942 mips-sgi-irix6.5*)
13943 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
13944 # msghdr in <sys/socket.h>.
d48be5df 13945 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
9f3b1e6c 13946 ;;
90630d19
ILT
13947 *-*-solaris2.1[01])
13948 # Solaris 10+ needs this so struct msghdr gets the msg_control
bbe847a1 13949 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
90630d19 13950 # above doesn't work with C99.
bbe847a1 13951 OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
90630d19
ILT
13952 ;;
13953esac
13954
13955
c3c54e0f 13956
08934aed 13957 test -z "$HWCAP_CFLAGS" && HWCAP_CFLAGS=''
c3c54e0f 13958
08934aed
ILT
13959 # Restrict the test to Solaris, other assemblers (e.g. AIX as) have -nH
13960 # with a different meaning.
13961 case ${target_os} in
13962 solaris2*)
13963 ac_save_CFLAGS="$CFLAGS"
13964 CFLAGS="$CFLAGS -Wa,-nH"
c3c54e0f 13965
08934aed
ILT
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as that supports -Wa,-nH" >&5
13967$as_echo_n "checking for as that supports -Wa,-nH... " >&6; }
13968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3c54e0f
ILT
13969/* end confdefs.h. */
13970
13971int
13972main ()
13973{
13974return 0;
13975 ;
13976 return 0;
13977}
13978_ACEOF
08934aed
ILT
13979if ac_fn_c_try_compile "$LINENO"; then :
13980 ac_hwcap_flags=yes
c3c54e0f 13981else
08934aed 13982 ac_hwcap_flags=no
c3c54e0f 13983fi
08934aed
ILT
13984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13985 if test "$ac_hwcap_flags" = "yes"; then
13986 HWCAP_CFLAGS="-Wa,-nH $HWCAP_CFLAGS"
13987 fi
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_flags" >&5
13989$as_echo "$ac_hwcap_flags" >&6; }
c3c54e0f 13990
08934aed
ILT
13991 CFLAGS="$ac_save_CFLAGS"
13992 ;;
13993 esac
c3c54e0f
ILT
13994
13995
c3c54e0f
ILT
13996
13997
7a938933
ILT
13998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13999$as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
f2ee78b8 14000if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
7a938933
ILT
14001 $as_echo_n "(cached) " >&6
14002else
14003 CFLAGS_hold=$CFLAGS
14004CFLAGS="$CFLAGS -fsplit-stack"
14005cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14006/* end confdefs.h. */
14007int i;
14008_ACEOF
14009if ac_fn_c_try_compile "$LINENO"; then :
f2ee78b8 14010 libgo_cv_c_split_stack_supported=yes
7a938933 14011else
f2ee78b8 14012 libgo_cv_c_split_stack_supported=no
7a938933
ILT
14013fi
14014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14015CFLAGS=$CFLAGS_hold
14016fi
f2ee78b8
ILT
14017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
14018$as_echo "$libgo_cv_c_split_stack_supported" >&6; }
c33c18cd
ILT
14019
14020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split/non-split linked together" >&5
14021$as_echo_n "checking whether linker supports split/non-split linked together... " >&6; }
14022if test "${libgo_cv_c_linker_split_non_split+set}" = set; then :
14023 $as_echo_n "(cached) " >&6
14024else
14025 cat > conftest1.c << EOF
14026extern void f();
14027int main() { f(); return 0; }
14028EOF
14029cat > conftest2.c << EOF
14030void f() {}
14031EOF
207f844e
ILT
14032$CC -c -fsplit-stack $CFLAGS $CPPFLAGS conftest1.c >/dev/null 2>&1
14033$CC -c $CFLAGS $CPPFLAGS conftest2.c > /dev/null 2>&1
14034if $CC -o conftest conftest1.$ac_objext conftest2.$ac_objext > /dev/null 2>&1; then
c33c18cd
ILT
14035 libgo_cv_c_linker_split_non_split=yes
14036else
14037 libgo_cv_c_linker_split_non_split=no
14038fi
14039rm -f conftest1.* conftest2.* conftest
14040fi
14041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_split_non_split" >&5
14042$as_echo "$libgo_cv_c_linker_split_non_split" >&6; }
14043
14044if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
7a938933
ILT
14045 SPLIT_STACK=-fsplit-stack
14046
14047$as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
14048
14049else
14050 SPLIT_STACK=
14051fi
14052
c33c18cd 14053 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
7a938933
ILT
14054 USING_SPLIT_STACK_TRUE=
14055 USING_SPLIT_STACK_FALSE='#'
14056else
14057 USING_SPLIT_STACK_TRUE='#'
14058 USING_SPLIT_STACK_FALSE=
14059fi
14060
14061
a2bf11d1
ILT
14062if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = no; then
14063 GO_SPLIT_STACK=-fno-split-stack
14064else
14065 GO_SPLIT_STACK=
14066fi
14067
14068
7a938933
ILT
14069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
14070$as_echo_n "checking whether linker supports split stack... " >&6; }
f2ee78b8 14071if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
7a938933
ILT
14072 $as_echo_n "(cached) " >&6
14073else
f2ee78b8 14074 libgo_cv_c_linker_supports_split_stack=no
f56c5dd1 14075if $GOC -Wl,--help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
f2ee78b8 14076 libgo_cv_c_linker_supports_split_stack=yes
7a938933
ILT
14077fi
14078fi
f2ee78b8
ILT
14079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
14080$as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
14081if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
7a938933
ILT
14082
14083$as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
14084
14085fi
14086
4c46b5f0
ILT
14087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is llgo" >&5
14088$as_echo_n "checking whether compiler is llgo... " >&6; }
14089if test "${libgo_cv_c_goc_is_llgo+set}" = set; then :
14090 $as_echo_n "(cached) " >&6
14091else
14092 libgo_cv_c_goc_is_llgo=no
14093if $GOC -dumpversion 2>/dev/null | grep llgo >/dev/null 2>&1; then
14094 libgo_cv_c_goc_is_llgo=yes
14095fi
14096fi
14097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_goc_is_llgo" >&5
14098$as_echo "$libgo_cv_c_goc_is_llgo" >&6; }
14099 if test "$libgo_cv_c_goc_is_llgo" = yes; then
14100 GOC_IS_LLGO_TRUE=
14101 GOC_IS_LLGO_FALSE='#'
14102else
14103 GOC_IS_LLGO_TRUE='#'
14104 GOC_IS_LLGO_FALSE=
14105fi
14106
14107
505b439a
ILT
14108MATH_LIBS=
14109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14110$as_echo_n "checking for sqrt in -lm... " >&6; }
14111if test "${ac_cv_lib_m_sqrt+set}" = set; then :
14112 $as_echo_n "(cached) " >&6
14113else
14114 ac_check_lib_save_LIBS=$LIBS
14115LIBS="-lm $LIBS"
14116cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14117/* end confdefs.h. */
14118
14119/* Override any GCC internal prototype to avoid an error.
14120 Use char because int might match the return type of a GCC
14121 builtin and then its argument prototype would still apply. */
14122#ifdef __cplusplus
14123extern "C"
14124#endif
14125char sqrt ();
14126int
14127main ()
14128{
14129return sqrt ();
14130 ;
14131 return 0;
14132}
14133_ACEOF
14134if ac_fn_c_try_link "$LINENO"; then :
14135 ac_cv_lib_m_sqrt=yes
14136else
14137 ac_cv_lib_m_sqrt=no
14138fi
14139rm -f core conftest.err conftest.$ac_objext \
14140 conftest$ac_exeext conftest.$ac_ext
14141LIBS=$ac_check_lib_save_LIBS
14142fi
14143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14144$as_echo "$ac_cv_lib_m_sqrt" >&6; }
14145if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
14146 MATH_LIBS=-lm
14147fi
14148
14149
14150
f2ee78b8
ILT
14151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14152$as_echo_n "checking for socket libraries... " >&6; }
14153if test "${libgo_cv_lib_sockets+set}" = set; then :
14154 $as_echo_n "(cached) " >&6
14155else
14156 libgo_cv_lib_sockets=
14157 libgo_check_both=no
14158 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14159if test "x$ac_cv_func_connect" = x""yes; then :
14160 libgo_check_socket=no
14161else
14162 libgo_check_socket=yes
14163fi
14164
14165 if test "$libgo_check_socket" = "yes"; then
14166 unset ac_cv_func_connect
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14168$as_echo_n "checking for main in -lsocket... " >&6; }
14169if test "${ac_cv_lib_socket_main+set}" = set; then :
14170 $as_echo_n "(cached) " >&6
14171else
14172 ac_check_lib_save_LIBS=$LIBS
14173LIBS="-lsocket $LIBS"
14174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14175/* end confdefs.h. */
14176
14177
14178int
14179main ()
14180{
14181return main ();
14182 ;
14183 return 0;
14184}
14185_ACEOF
14186if ac_fn_c_try_link "$LINENO"; then :
14187 ac_cv_lib_socket_main=yes
14188else
14189 ac_cv_lib_socket_main=no
14190fi
14191rm -f core conftest.err conftest.$ac_objext \
14192 conftest$ac_exeext conftest.$ac_ext
14193LIBS=$ac_check_lib_save_LIBS
14194fi
14195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14196$as_echo "$ac_cv_lib_socket_main" >&6; }
14197if test "x$ac_cv_lib_socket_main" = x""yes; then :
14198 libgo_cv_lib_sockets="-lsocket"
14199else
14200 libgo_check_both=yes
14201fi
14202
14203 fi
14204 if test "$libgo_check_both" = "yes"; then
14205 libgo_old_libs=$LIBS
14206 LIBS="$LIBS -lsocket -lnsl"
14207 unset ac_cv_func_accept
14208 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14209if test "x$ac_cv_func_accept" = x""yes; then :
14210 libgo_check_nsl=no
14211 libgo_cv_lib_sockets="-lsocket -lnsl"
14212fi
14213
14214 unset ac_cv_func_accept
14215 LIBS=$libgo_old_libs
14216 fi
14217 unset ac_cv_func_gethostbyname
14218 libgo_old_libs="$LIBS"
14219 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14220if test "x$ac_cv_func_gethostbyname" = x""yes; then :
14221
14222else
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14224$as_echo_n "checking for main in -lnsl... " >&6; }
14225if test "${ac_cv_lib_nsl_main+set}" = set; then :
14226 $as_echo_n "(cached) " >&6
14227else
14228 ac_check_lib_save_LIBS=$LIBS
14229LIBS="-lnsl $LIBS"
14230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14231/* end confdefs.h. */
14232
14233
14234int
14235main ()
14236{
14237return main ();
14238 ;
14239 return 0;
14240}
14241_ACEOF
14242if ac_fn_c_try_link "$LINENO"; then :
14243 ac_cv_lib_nsl_main=yes
14244else
14245 ac_cv_lib_nsl_main=no
14246fi
14247rm -f core conftest.err conftest.$ac_objext \
14248 conftest$ac_exeext conftest.$ac_ext
14249LIBS=$ac_check_lib_save_LIBS
14250fi
14251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14252$as_echo "$ac_cv_lib_nsl_main" >&6; }
14253if test "x$ac_cv_lib_nsl_main" = x""yes; then :
14254 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
14255fi
14256
14257fi
14258
14259 unset ac_cv_func_gethostbyname
88cf4de8
ILT
14260 ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
14261if test "x$ac_cv_func_sendfile" = x""yes; then :
14262
14263else
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsendfile" >&5
14265$as_echo_n "checking for main in -lsendfile... " >&6; }
14266if test "${ac_cv_lib_sendfile_main+set}" = set; then :
14267 $as_echo_n "(cached) " >&6
14268else
14269 ac_check_lib_save_LIBS=$LIBS
14270LIBS="-lsendfile $LIBS"
14271cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14272/* end confdefs.h. */
14273
14274
14275int
14276main ()
14277{
14278return main ();
14279 ;
14280 return 0;
14281}
14282_ACEOF
14283if ac_fn_c_try_link "$LINENO"; then :
14284 ac_cv_lib_sendfile_main=yes
14285else
14286 ac_cv_lib_sendfile_main=no
14287fi
14288rm -f core conftest.err conftest.$ac_objext \
14289 conftest$ac_exeext conftest.$ac_ext
14290LIBS=$ac_check_lib_save_LIBS
14291fi
14292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_main" >&5
14293$as_echo "$ac_cv_lib_sendfile_main" >&6; }
14294if test "x$ac_cv_lib_sendfile_main" = x""yes; then :
14295 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lsendfile"
14296fi
14297
14298fi
14299
f2ee78b8
ILT
14300 LIBS=$libgo_old_libs
14301
14302fi
14303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14304$as_echo "$libgo_cv_lib_sockets" >&6; }
14305NET_LIBS="$libgo_cv_lib_sockets"
14306
14307
6c94a9fa
ILT
14308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14309$as_echo_n "checking whether -pthread is supported... " >&6; }
f2ee78b8 14310if test "${libgo_cv_lib_pthread+set}" = set; then :
6c94a9fa
ILT
14311 $as_echo_n "(cached) " >&6
14312else
14313 CFLAGS_hold=$CFLAGS
14314CFLAGS="$CFLAGS -pthread"
14315cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14316/* end confdefs.h. */
14317int i;
14318_ACEOF
14319if ac_fn_c_try_compile "$LINENO"; then :
f2ee78b8 14320 libgo_cv_lib_pthread=yes
6c94a9fa 14321else
f2ee78b8 14322 libgo_cv_lib_pthread=no
6c94a9fa
ILT
14323fi
14324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14325CFLAGS=$CFLAGS_hold
14326fi
f2ee78b8
ILT
14327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14328$as_echo "$libgo_cv_lib_pthread" >&6; }
6c94a9fa 14329PTHREAD_CFLAGS=
f2ee78b8 14330if test "$libgo_cv_lib_pthread" = yes; then
6c94a9fa
ILT
14331 PTHREAD_CFLAGS=-pthread
14332fi
14333
14334
14335PTHREAD_LIBS=
14336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14337$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14338if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
14339 $as_echo_n "(cached) " >&6
14340else
14341 ac_check_lib_save_LIBS=$LIBS
14342LIBS="-lpthread $LIBS"
14343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14344/* end confdefs.h. */
14345
14346/* Override any GCC internal prototype to avoid an error.
14347 Use char because int might match the return type of a GCC
14348 builtin and then its argument prototype would still apply. */
14349#ifdef __cplusplus
14350extern "C"
14351#endif
14352char pthread_create ();
14353int
14354main ()
14355{
14356return pthread_create ();
14357 ;
14358 return 0;
14359}
14360_ACEOF
14361if ac_fn_c_try_link "$LINENO"; then :
14362 ac_cv_lib_pthread_pthread_create=yes
14363else
14364 ac_cv_lib_pthread_pthread_create=no
14365fi
14366rm -f core conftest.err conftest.$ac_objext \
14367 conftest$ac_exeext conftest.$ac_ext
14368LIBS=$ac_check_lib_save_LIBS
14369fi
14370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14371$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14372if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
14373 PTHREAD_LIBS=-lpthread
14374fi
14375
14376
14377
ed4ebabc
ILT
14378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14379$as_echo_n "checking for library containing sched_yield... " >&6; }
14380if test "${ac_cv_search_sched_yield+set}" = set; then :
14381 $as_echo_n "(cached) " >&6
14382else
14383 ac_func_search_save_LIBS=$LIBS
14384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14385/* end confdefs.h. */
14386
14387/* Override any GCC internal prototype to avoid an error.
14388 Use char because int might match the return type of a GCC
14389 builtin and then its argument prototype would still apply. */
14390#ifdef __cplusplus
14391extern "C"
14392#endif
14393char sched_yield ();
14394int
14395main ()
14396{
14397return sched_yield ();
14398 ;
14399 return 0;
14400}
14401_ACEOF
14402for ac_lib in '' rt; do
14403 if test -z "$ac_lib"; then
14404 ac_res="none required"
14405 else
14406 ac_res=-l$ac_lib
14407 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14408 fi
14409 if ac_fn_c_try_link "$LINENO"; then :
14410 ac_cv_search_sched_yield=$ac_res
14411fi
14412rm -f core conftest.err conftest.$ac_objext \
14413 conftest$ac_exeext
14414 if test "${ac_cv_search_sched_yield+set}" = set; then :
14415 break
14416fi
14417done
14418if test "${ac_cv_search_sched_yield+set}" = set; then :
14419
14420else
14421 ac_cv_search_sched_yield=no
14422fi
14423rm conftest.$ac_ext
14424LIBS=$ac_func_search_save_LIBS
14425fi
14426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14427$as_echo "$ac_cv_search_sched_yield" >&6; }
14428ac_res=$ac_cv_search_sched_yield
14429if test "$ac_res" != no; then :
14430 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14431
ae135907
ILT
14432fi
14433
14434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14435$as_echo_n "checking for library containing nanosleep... " >&6; }
14436if test "${ac_cv_search_nanosleep+set}" = set; then :
14437 $as_echo_n "(cached) " >&6
14438else
14439 ac_func_search_save_LIBS=$LIBS
14440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14441/* end confdefs.h. */
14442
14443/* Override any GCC internal prototype to avoid an error.
14444 Use char because int might match the return type of a GCC
14445 builtin and then its argument prototype would still apply. */
14446#ifdef __cplusplus
14447extern "C"
14448#endif
14449char nanosleep ();
14450int
14451main ()
14452{
14453return nanosleep ();
14454 ;
14455 return 0;
14456}
14457_ACEOF
14458for ac_lib in '' rt; do
14459 if test -z "$ac_lib"; then
14460 ac_res="none required"
14461 else
14462 ac_res=-l$ac_lib
14463 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14464 fi
14465 if ac_fn_c_try_link "$LINENO"; then :
14466 ac_cv_search_nanosleep=$ac_res
14467fi
14468rm -f core conftest.err conftest.$ac_objext \
14469 conftest$ac_exeext
14470 if test "${ac_cv_search_nanosleep+set}" = set; then :
14471 break
14472fi
14473done
14474if test "${ac_cv_search_nanosleep+set}" = set; then :
14475
14476else
14477 ac_cv_search_nanosleep=no
14478fi
14479rm conftest.$ac_ext
14480LIBS=$ac_func_search_save_LIBS
14481fi
14482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14483$as_echo "$ac_cv_search_nanosleep" >&6; }
14484ac_res=$ac_cv_search_nanosleep
14485if test "$ac_res" != no; then :
14486 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14487
bbbe8b33
ILT
14488fi
14489
14490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14491$as_echo_n "checking for library containing clock_gettime... " >&6; }
14492if test "${ac_cv_search_clock_gettime+set}" = set; then :
14493 $as_echo_n "(cached) " >&6
14494else
14495 ac_func_search_save_LIBS=$LIBS
14496cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14497/* end confdefs.h. */
14498
14499/* Override any GCC internal prototype to avoid an error.
14500 Use char because int might match the return type of a GCC
14501 builtin and then its argument prototype would still apply. */
14502#ifdef __cplusplus
14503extern "C"
14504#endif
14505char clock_gettime ();
14506int
14507main ()
14508{
14509return clock_gettime ();
14510 ;
14511 return 0;
14512}
14513_ACEOF
14514for ac_lib in '' rt; do
14515 if test -z "$ac_lib"; then
14516 ac_res="none required"
14517 else
14518 ac_res=-l$ac_lib
14519 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14520 fi
14521 if ac_fn_c_try_link "$LINENO"; then :
14522 ac_cv_search_clock_gettime=$ac_res
14523fi
14524rm -f core conftest.err conftest.$ac_objext \
14525 conftest$ac_exeext
14526 if test "${ac_cv_search_clock_gettime+set}" = set; then :
14527 break
14528fi
14529done
14530if test "${ac_cv_search_clock_gettime+set}" = set; then :
14531
14532else
14533 ac_cv_search_clock_gettime=no
14534fi
14535rm conftest.$ac_ext
14536LIBS=$ac_func_search_save_LIBS
14537fi
14538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14539$as_echo "$ac_cv_search_clock_gettime" >&6; }
14540ac_res=$ac_cv_search_clock_gettime
14541if test "$ac_res" != no; then :
14542 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14543
ed4ebabc
ILT
14544fi
14545
14546
7a938933
ILT
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14548$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14549if test "${ac_cv_c_bigendian+set}" = set; then :
14550 $as_echo_n "(cached) " >&6
14551else
14552 ac_cv_c_bigendian=unknown
14553 # See if we're dealing with a universal compiler.
14554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14555/* end confdefs.h. */
14556#ifndef __APPLE_CC__
14557 not a universal capable compiler
14558 #endif
14559 typedef int dummy;
14560
14561_ACEOF
14562if ac_fn_c_try_compile "$LINENO"; then :
14563
14564 # Check for potential -arch flags. It is not universal unless
14565 # there are at least two -arch flags with different values.
14566 ac_arch=
14567 ac_prev=
14568 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14569 if test -n "$ac_prev"; then
14570 case $ac_word in
14571 i?86 | x86_64 | ppc | ppc64)
14572 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14573 ac_arch=$ac_word
14574 else
14575 ac_cv_c_bigendian=universal
14576 break
14577 fi
14578 ;;
14579 esac
14580 ac_prev=
14581 elif test "x$ac_word" = "x-arch"; then
14582 ac_prev=arch
14583 fi
14584 done
14585fi
14586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14587 if test $ac_cv_c_bigendian = unknown; then
14588 # See if sys/param.h defines the BYTE_ORDER macro.
14589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14590/* end confdefs.h. */
14591#include <sys/types.h>
14592 #include <sys/param.h>
14593
14594int
14595main ()
14596{
14597#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14598 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14599 && LITTLE_ENDIAN)
14600 bogus endian macros
14601 #endif
14602
14603 ;
14604 return 0;
14605}
14606_ACEOF
14607if ac_fn_c_try_compile "$LINENO"; then :
14608 # It does; now see whether it defined to BIG_ENDIAN or not.
14609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14610/* end confdefs.h. */
14611#include <sys/types.h>
14612 #include <sys/param.h>
14613
14614int
14615main ()
14616{
14617#if BYTE_ORDER != BIG_ENDIAN
14618 not big endian
14619 #endif
14620
14621 ;
14622 return 0;
14623}
14624_ACEOF
14625if ac_fn_c_try_compile "$LINENO"; then :
14626 ac_cv_c_bigendian=yes
14627else
14628 ac_cv_c_bigendian=no
14629fi
14630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14631fi
14632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14633 fi
14634 if test $ac_cv_c_bigendian = unknown; then
14635 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14637/* end confdefs.h. */
14638#include <limits.h>
14639
14640int
14641main ()
14642{
14643#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14644 bogus endian macros
14645 #endif
14646
14647 ;
14648 return 0;
14649}
14650_ACEOF
14651if ac_fn_c_try_compile "$LINENO"; then :
14652 # It does; now see whether it defined to _BIG_ENDIAN or not.
14653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14654/* end confdefs.h. */
14655#include <limits.h>
14656
14657int
14658main ()
14659{
14660#ifndef _BIG_ENDIAN
14661 not big endian
14662 #endif
14663
14664 ;
14665 return 0;
14666}
14667_ACEOF
14668if ac_fn_c_try_compile "$LINENO"; then :
14669 ac_cv_c_bigendian=yes
14670else
14671 ac_cv_c_bigendian=no
14672fi
14673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14674fi
14675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14676 fi
14677 if test $ac_cv_c_bigendian = unknown; then
14678 # Compile a test program.
14679 if test "$cross_compiling" = yes; then :
14680 # Try to guess by grepping values from an object file.
14681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14682/* end confdefs.h. */
14683short int ascii_mm[] =
14684 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14685 short int ascii_ii[] =
14686 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14687 int use_ascii (int i) {
14688 return ascii_mm[i] + ascii_ii[i];
14689 }
14690 short int ebcdic_ii[] =
14691 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14692 short int ebcdic_mm[] =
14693 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14694 int use_ebcdic (int i) {
14695 return ebcdic_mm[i] + ebcdic_ii[i];
14696 }
14697 extern int foo;
14698
14699int
14700main ()
14701{
14702return use_ascii (foo) == use_ebcdic (foo);
14703 ;
14704 return 0;
14705}
14706_ACEOF
14707if ac_fn_c_try_compile "$LINENO"; then :
14708 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14709 ac_cv_c_bigendian=yes
14710 fi
14711 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14712 if test "$ac_cv_c_bigendian" = unknown; then
14713 ac_cv_c_bigendian=no
14714 else
14715 # finding both strings is unlikely to happen, but who knows?
14716 ac_cv_c_bigendian=unknown
14717 fi
14718 fi
14719fi
14720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14721else
14722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14723/* end confdefs.h. */
14724$ac_includes_default
14725int
14726main ()
14727{
14728
14729 /* Are we little or big endian? From Harbison&Steele. */
14730 union
14731 {
14732 long int l;
14733 char c[sizeof (long int)];
14734 } u;
14735 u.l = 1;
14736 return u.c[sizeof (long int) - 1] == 1;
14737
14738 ;
14739 return 0;
14740}
14741_ACEOF
14742if ac_fn_c_try_run "$LINENO"; then :
14743 ac_cv_c_bigendian=no
14744else
14745 ac_cv_c_bigendian=yes
14746fi
14747rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14748 conftest.$ac_objext conftest.beam conftest.$ac_ext
14749fi
14750
14751 fi
14752fi
14753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14754$as_echo "$ac_cv_c_bigendian" >&6; }
14755 case $ac_cv_c_bigendian in #(
14756 yes)
14757 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14758;; #(
14759 no)
14760 ;; #(
14761 universal)
14762
14763$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14764
14765 ;; #(
14766 *)
14767 as_fn_error "unknown endianness
14768 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14769 esac
14770
14771
54f0deb0
ILT
14772
14773
14774# Check whether --with-system-libunwind was given.
14775if test "${with_system_libunwind+set}" = set; then :
14776 withval=$with_system_libunwind;
14777fi
14778
14779 # If system-libunwind was not specifically set, pick a default setting.
14780 if test x$with_system_libunwind = x; then
14781 case ${target} in
14782 ia64-*-hpux*) with_system_libunwind=yes ;;
14783 *) with_system_libunwind=no ;;
14784 esac
14785 fi
14786 # Based on system-libunwind and target, do we have ipinfo?
14787 if test x$with_system_libunwind = xyes; then
14788 case ${target} in
14789 ia64-*-*) have_unwind_getipinfo=no ;;
14790 *) have_unwind_getipinfo=yes ;;
14791 esac
14792 else
14793 # Darwin before version 9 does not have _Unwind_GetIPInfo.
14794
14795 case ${target} in
14796 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14797 *) have_unwind_getipinfo=yes ;;
14798 esac
14799
14800 fi
14801
14802 if test x$have_unwind_getipinfo = xyes; then
14803
14804$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14805
14806 fi
14807
7a938933 14808
6222bddc 14809for 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/ptrace.h linux/reboot.h netinet/in_syst.h netinet/ip.h netinet/ip_mroute.h netinet/if_ether.h
7a938933
ILT
14810do :
14811 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14812ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14813eval as_val=\$$as_ac_Header
14814 if test "x$as_val" = x""yes; then :
14815 cat >>confdefs.h <<_ACEOF
14816#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14817_ACEOF
14818
14819fi
14820
14821done
14822
adb0401d 14823
6222bddc
ILT
14824for ac_header in netinet/icmp6.h
14825do :
14826 ac_fn_c_check_header_compile "$LINENO" "netinet/icmp6.h" "ac_cv_header_netinet_icmp6_h" "#include <netinet/in.h>
14827
14828"
14829if test "x$ac_cv_header_netinet_icmp6_h" = x""yes; then :
14830 cat >>confdefs.h <<_ACEOF
14831#define HAVE_NETINET_ICMP6_H 1
14832_ACEOF
14833
14834fi
14835
14836done
14837
14838
1410c222 14839for ac_header in linux/filter.h linux/if_addr.h linux/if_ether.h linux/if_tun.h linux/netlink.h linux/rtnetlink.h
adb0401d
ILT
14840do :
14841 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14842ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
14843#include <sys/socket.h>
14844#endif
14845
14846"
14847eval as_val=\$$as_ac_Header
14848 if test "x$as_val" = x""yes; then :
14849 cat >>confdefs.h <<_ACEOF
14850#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14851_ACEOF
14852
14853fi
14854
14855done
14856
14857
2aeaf0fb
ILT
14858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <ustat.h> can be used" >&5
14859$as_echo_n "checking whether <ustat.h> can be used... " >&6; }
14860if test "${libgo_cv_c_ustat_h+set}" = set; then :
14861 $as_echo_n "(cached) " >&6
14862else
dbe1e4a5
ILT
14863 CFLAGS_hold=$CFLAGS
14864CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE $OSCFLAGS"
14865cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2aeaf0fb
ILT
14866/* end confdefs.h. */
14867
14868#include <sys/types.h>
14869#ifdef HAVE_LINUX_FILTER_H
14870#include <linux/filter.h>
14871#endif
14872#include <ustat.h>
14873
14874_ACEOF
14875if ac_fn_c_try_compile "$LINENO"; then :
14876 libgo_cv_c_ustat_h=yes
14877else
14878 libgo_cv_c_ustat_h=no
14879fi
14880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
dbe1e4a5 14881CFLAGS=$CFLAGS_hold
2aeaf0fb
ILT
14882fi
14883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_ustat_h" >&5
14884$as_echo "$libgo_cv_c_ustat_h" >&6; }
14885if test $libgo_cv_c_ustat_h = yes; then
14886
14887$as_echo "#define HAVE_USTAT_H 1" >>confdefs.h
14888
14889fi
14890
7a938933
ILT
14891 if test "$ac_cv_header_sys_mman_h" = yes; then
14892 HAVE_SYS_MMAN_H_TRUE=
14893 HAVE_SYS_MMAN_H_FALSE='#'
14894else
14895 HAVE_SYS_MMAN_H_TRUE='#'
14896 HAVE_SYS_MMAN_H_FALSE=
14897fi
14898
8955c80a 14899
f8d9fa9e 14900for ac_func in strerror_r strsignal wait4 mincore setenv unsetenv dl_iterate_phdr
7a938933
ILT
14901do :
14902 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14903ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14904eval as_val=\$$as_ac_var
14905 if test "x$as_val" = x""yes; then :
14906 cat >>confdefs.h <<_ACEOF
14907#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14908_ACEOF
14909
14910fi
14911done
14912
8955c80a
ILT
14913 if test "$ac_cv_func_strerror_r" = yes; then
14914 HAVE_STRERROR_R_TRUE=
14915 HAVE_STRERROR_R_FALSE='#'
14916else
14917 HAVE_STRERROR_R_TRUE='#'
14918 HAVE_STRERROR_R_FALSE=
14919fi
14920
0b3189e7
ILT
14921 if test "$ac_cv_func_wait4" = yes; then
14922 HAVE_WAIT4_TRUE=
14923 HAVE_WAIT4_FALSE='#'
14924else
14925 HAVE_WAIT4_TRUE='#'
14926 HAVE_WAIT4_FALSE=
14927fi
14928
7a938933 14929
f163907e 14930for 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 syscall tee unlinkat unshare utimensat
e02ed81e
ILT
14931do :
14932 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14933ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14934eval as_val=\$$as_ac_var
14935 if test "x$as_val" = x""yes; then :
14936 cat >>confdefs.h <<_ACEOF
14937#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14938_ACEOF
14939
14940fi
14941done
14942
5d46bf05
ILT
14943ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14944if test "x$ac_cv_type_off_t" = x""yes; then :
14945
14946else
14947
14948cat >>confdefs.h <<_ACEOF
14949#define off_t long int
14950_ACEOF
14951
14952fi
14953
e02ed81e
ILT
14954ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
14955if test "x$ac_cv_type_loff_t" = x""yes; then :
14956
14957cat >>confdefs.h <<_ACEOF
14958#define HAVE_LOFF_T 1
14959_ACEOF
14960
14961
14962fi
14963
14964
324612b3
ILT
14965LIBS_hold="$LIBS"
14966LIBS="$LIBS -lm"
14967for ac_func in cosl expl logl sinl tanl acosl asinl atanl atan2l expm1l ldexpl log10l log1pl
14968do :
14969 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14970ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14971eval as_val=\$$as_ac_var
14972 if test "x$as_val" = x""yes; then :
14973 cat >>confdefs.h <<_ACEOF
14974#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14975_ACEOF
14976
14977fi
14978done
14979
14980LIBS="$LIBS_hold"
14981
08ee945e
ILT
14982CFLAGS_hold="$CFLAGS"
14983CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14984LIBS_hold="$LIBS"
14985LIBS="$LIBS $PTHREAD_LIBS"
14986for ac_func in sem_timedwait
14987do :
14988 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
14989if test "x$ac_cv_func_sem_timedwait" = x""yes; then :
14990 cat >>confdefs.h <<_ACEOF
14991#define HAVE_SEM_TIMEDWAIT 1
14992_ACEOF
14993
14994fi
14995done
14996
14997CFLAGS="$CFLAGS_hold"
14998LIBS="$LIBS_hold"
14999
d2b480bc
ILT
15000LIBS_hold="$LIBS"
15001LIBS="$LIBS $MATH_LIBS"
15002for ac_func in matherr
15003do :
15004 ac_fn_c_check_func "$LINENO" "matherr" "ac_cv_func_matherr"
15005if test "x$ac_cv_func_matherr" = x""yes; then :
15006 cat >>confdefs.h <<_ACEOF
15007#define HAVE_MATHERR 1
15008_ACEOF
15009
15010fi
15011done
15012
15013LIBS="$LIBS_hold"
15014
a7c48c8e
ILT
15015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
15016$as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
15017if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
15018 $as_echo_n "(cached) " >&6
15019else
15020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15021/* end confdefs.h. */
15022
15023typedef unsigned int uint32 __attribute__ ((mode (SI)));
15024uint32 i;
15025int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
15026
15027_ACEOF
15028if ac_fn_c_try_link "$LINENO"; then :
15029 libgo_cv_func___sync_bool_compare_and_swap_4=yes
15030else
15031 libgo_cv_func___sync_bool_compare_and_swap_4=no
15032fi
15033rm -f core conftest.err conftest.$ac_objext \
15034 conftest$ac_exeext conftest.$ac_ext
15035fi
15036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
15037$as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
15038if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
932e3237
ILT
15039
15040$as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
a7c48c8e
ILT
15041
15042fi
15043
12e3c396
ILT
15044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_8" >&5
15045$as_echo_n "checking for __sync_bool_compare_and_swap_8... " >&6; }
15046if test "${libgo_cv_func___sync_bool_compare_and_swap_8+set}" = set; then :
15047 $as_echo_n "(cached) " >&6
15048else
15049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15050/* end confdefs.h. */
15051
15052typedef unsigned int uint64 __attribute__ ((mode (DI)));
15053uint64 i;
15054int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
15055
15056_ACEOF
15057if ac_fn_c_try_link "$LINENO"; then :
15058 libgo_cv_func___sync_bool_compare_and_swap_8=yes
15059else
15060 libgo_cv_func___sync_bool_compare_and_swap_8=no
15061fi
15062rm -f core conftest.err conftest.$ac_objext \
15063 conftest$ac_exeext conftest.$ac_ext
15064fi
15065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_8" >&5
15066$as_echo "$libgo_cv_func___sync_bool_compare_and_swap_8" >&6; }
15067if test "$libgo_cv_func___sync_bool_compare_and_swap_8" = "yes"; then
15068
15069$as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_8 1" >>confdefs.h
15070
15071fi
15072
084996f1
ILT
15073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
15074$as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
15075if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
15076 $as_echo_n "(cached) " >&6
15077else
15078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15079/* end confdefs.h. */
15080
15081typedef unsigned int uint32 __attribute__ ((mode (SI)));
15082uint32 i;
15083int main() { return __sync_fetch_and_add (&i, 1); }
15084
15085_ACEOF
15086if ac_fn_c_try_link "$LINENO"; then :
15087 libgo_cv_func___sync_fetch_and_add_4=yes
15088else
15089 libgo_cv_func___sync_fetch_and_add_4=no
15090fi
15091rm -f core conftest.err conftest.$ac_objext \
15092 conftest$ac_exeext conftest.$ac_ext
15093fi
15094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
15095$as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
15096if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
15097
15098$as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
15099
15100fi
15101
12e3c396
ILT
15102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_add_and_fetch_8" >&5
15103$as_echo_n "checking for __sync_add_and_fetch_8... " >&6; }
15104if test "${libgo_cv_func___sync_add_and_fetch_8+set}" = set; then :
15105 $as_echo_n "(cached) " >&6
15106else
15107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15108/* end confdefs.h. */
15109
15110typedef unsigned int uint64 __attribute__ ((mode (DI)));
15111uint64 i;
15112int main() { return __sync_add_and_fetch (&i, 1); }
15113
15114_ACEOF
15115if ac_fn_c_try_link "$LINENO"; then :
15116 libgo_cv_func___sync_add_and_fetch_8=yes
15117else
15118 libgo_cv_func___sync_add_and_fetch_8=no
15119fi
15120rm -f core conftest.err conftest.$ac_objext \
15121 conftest$ac_exeext conftest.$ac_ext
15122fi
15123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_add_and_fetch_8" >&5
15124$as_echo "$libgo_cv_func___sync_add_and_fetch_8" >&6; }
15125if test "$libgo_cv_func___sync_add_and_fetch_8" = "yes"; then
15126
15127$as_echo "#define HAVE_SYNC_ADD_AND_FETCH_8 1" >>confdefs.h
15128
15129fi
15130
7a938933
ILT
15131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
15132$as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
f2ee78b8 15133if test "${libgo_cv_c_stringops+set}" = set; then :
7a938933
ILT
15134 $as_echo_n "(cached) " >&6
15135else
15136 CFLAGS_hold=$CFLAGS
15137CFLAGS="$CFLAGS -minline-all-stringops"
15138cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15139/* end confdefs.h. */
15140int i;
15141_ACEOF
15142if ac_fn_c_try_compile "$LINENO"; then :
f2ee78b8 15143 libgo_cv_c_stringops=yes
7a938933 15144else
f2ee78b8 15145 libgo_cv_c_stringops=no
7a938933
ILT
15146fi
15147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15148CFLAGS=$CFLAGS_hold
15149fi
f2ee78b8
ILT
15150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
15151$as_echo "$libgo_cv_c_stringops" >&6; }
7a938933 15152STRINGOPS_FLAG=
f2ee78b8 15153if test "$libgo_cv_c_stringops" = yes; then
7a938933
ILT
15154 STRINGOPS_FLAG=-minline-all-stringops
15155fi
15156
15157
9d465faf
ILT
15158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5
15159$as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; }
15160if test "${libgo_cv_c_fancymath+set}" = set; then :
15161 $as_echo_n "(cached) " >&6
15162else
15163 CFLAGS_hold=$CFLAGS
15164CFLAGS="$CFLAGS -mfancy-math-387"
15165cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15166/* end confdefs.h. */
15167int i;
15168_ACEOF
15169if ac_fn_c_try_compile "$LINENO"; then :
15170 libgo_cv_c_fancymath=yes
15171else
15172 libgo_cv_c_fancymath=no
15173fi
15174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15175CFLAGS=$CFLAGS_hold
15176fi
15177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5
15178$as_echo "$libgo_cv_c_fancymath" >&6; }
15179MATH_FLAG=
15180if test "$libgo_cv_c_fancymath" = yes; then
1a2f01ef 15181 MATH_FLAG="-mfancy-math-387 -funsafe-math-optimizations -fno-math-errno"
33a9145b
ILT
15182else
15183 MATH_FLAG="-ffp-contract=off"
9d465faf
ILT
15184fi
15185
15186
7a938933
ILT
15187CFLAGS_hold=$CFLAGS
15188CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
15189ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
15190if test "x$ac_cv_type_off64_t" = x""yes; then :
15191
15192cat >>confdefs.h <<_ACEOF
15193#define HAVE_OFF64_T 1
15194_ACEOF
15195
15196
15197fi
15198
15199CFLAGS=$CFLAGS_hold
15200
207c35fa
ILT
15201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
15202$as_echo_n "checking epoll_event size... " >&6; }
15203if test "${libgo_cv_c_epoll_event_size+set}" = set; then :
15204 $as_echo_n "(cached) " >&6
15205else
15206 if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then :
15207
15208else
15209 libgo_cv_c_epoll_event_size=0
15210fi
15211
15212fi
15213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
15214$as_echo "$libgo_cv_c_epoll_event_size" >&6; }
15215SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size}
15216
15217
15218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
15219$as_echo_n "checking epoll_event data.fd offset... " >&6; }
15220if test "${libgo_cv_c_epoll_event_fd_offset+set}" = set; then :
15221 $as_echo_n "(cached) " >&6
15222else
15223 if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h>
15224#include <sys/epoll.h>"; then :
15225
15226else
15227 libgo_cv_c_epoll_event_fd_offset=0
15228fi
15229
15230fi
15231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
15232$as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
15233STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset}
15234
15235
476013d6
ILT
15236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15237/* end confdefs.h. */
15238#include <sys/stat.h>
15239
15240_ACEOF
15241if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15242 $EGREP "timespec_t.*st_atim" >/dev/null 2>&1; then :
15243 have_stat_timespec=yes
15244else
15245 have_stat_timespec=no
15246fi
15247rm -f conftest*
15248
15249 if test $have_stat_timespec = yes; then
15250 HAVE_STAT_TIMESPEC_TRUE=
15251 HAVE_STAT_TIMESPEC_FALSE='#'
15252else
15253 HAVE_STAT_TIMESPEC_TRUE='#'
15254 HAVE_STAT_TIMESPEC_FALSE=
15255fi
15256
15257
d2b480bc
ILT
15258ac_fn_c_check_type "$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include <math.h>
15259"
15260if test "x$ac_cv_type_struct_exception" = x""yes; then :
15261 libgo_has_struct_exception=yes
15262else
15263 libgo_has_struct_exception=no
15264fi
15265
15266if test "$libgo_has_struct_exception" = "yes"; then
15267
15268$as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
15269
15270fi
15271
7f57843f
ILT
15272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5
15273$as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; }
15274if test "${libgo_cv_lib_setcontext_clobbers_tls+set}" = set; then :
15275 $as_echo_n "(cached) " >&6
15276else
e6c5817d
ILT
15277 CFLAGS_hold="$CFLAGS"
15278CFLAGS="$PTHREAD_CFLAGS"
15279LIBS_hold="$LIBS"
7f57843f 15280LIBS="$LIBS $PTHREAD_LIBS"
e6c5817d
ILT
15281# The cast to long int works around a bug in the HP C Compiler
15282# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15283# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15284# This bug is HP SR number 8606223364.
15285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15286$as_echo_n "checking size of void *... " >&6; }
15287if test "${ac_cv_sizeof_void_p+set}" = set; then :
15288 $as_echo_n "(cached) " >&6
15289else
15290 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15291
15292else
15293 if test "$ac_cv_type_void_p" = yes; then
15294 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15295$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15296{ as_fn_set_status 77
15297as_fn_error "cannot compute sizeof (void *)
15298See \`config.log' for more details." "$LINENO" 5; }; }
15299 else
15300 ac_cv_sizeof_void_p=0
15301 fi
15302fi
15303
15304fi
15305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15306$as_echo "$ac_cv_sizeof_void_p" >&6; }
15307
15308
15309
15310cat >>confdefs.h <<_ACEOF
15311#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15312_ACEOF
15313
15314
15315as_fn_arith $ac_cv_sizeof_void_p \* 8 && ptr_type_size=$as_val
7f57843f 15316if test "$cross_compiling" = yes; then :
e6c5817d
ILT
15317 case "$target:$ptr_type_size" in
15318 i?86-*-solaris2.1[01]:64 | x86_64*-*-solaris2.1[01]:64)
15319 libgo_cv_lib_setcontext_clobbers_tls=yes ;;
15320 *)
15321 libgo_cv_lib_setcontext_clobbers_tls=no ;;
7f57843f
ILT
15322 esac
15323
15324else
15325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15326/* end confdefs.h. */
15327
15328#include <pthread.h>
15329#include <stdlib.h>
15330#include <ucontext.h>
15331#include <unistd.h>
15332
15333__thread int tls;
15334
15335static char stack[10 * 1024 * 1024];
15336static ucontext_t c;
15337
15338/* Called via makecontext/setcontext. */
15339
15340static void
15341cfn (void)
15342{
15343 exit (tls);
15344}
15345
15346/* Called via pthread_create. */
15347
15348static void *
15349tfn (void *dummy)
15350{
15351 /* The thread should still see this value after calling
15352 setcontext. */
15353 tls = 0;
15354
15355 setcontext (&c);
15356
15357 /* The call to setcontext should not return. */
15358 abort ();
15359}
15360
15361int
15362main ()
15363{
15364 pthread_t tid;
15365
15366 /* The thread should not see this value. */
15367 tls = 1;
15368
15369 if (getcontext (&c) < 0)
15370 abort ();
15371
15372 c.uc_stack.ss_sp = stack;
ca59d219
ILT
15373#ifdef MAKECONTEXT_STACK_TOP
15374 c.uc_stack.ss_sp += sizeof stack;
15375#endif
7f57843f
ILT
15376 c.uc_stack.ss_flags = 0;
15377 c.uc_stack.ss_size = sizeof stack;
15378 c.uc_link = NULL;
15379 makecontext (&c, cfn, 0);
15380
15381 if (pthread_create (&tid, NULL, tfn, NULL) != 0)
15382 abort ();
15383
15384 if (pthread_join (tid, NULL) != 0)
15385 abort ();
15386
15387 /* The thread should have called exit. */
15388 abort ();
15389}
15390
15391_ACEOF
15392if ac_fn_c_try_run "$LINENO"; then :
15393 libgo_cv_lib_setcontext_clobbers_tls=no
15394else
15395 libgo_cv_lib_setcontext_clobbers_tls=yes
15396fi
15397rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15398 conftest.$ac_objext conftest.beam conftest.$ac_ext
15399fi
15400
e6c5817d 15401CFLAGS="$CFLAGS_hold"
7f57843f
ILT
15402LIBS="$LIBS_hold"
15403
15404fi
15405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5
15406$as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; }
15407if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
15408
15409$as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h
15410
15411fi
15412
cc1a9ac8
ILT
15413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
15414$as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
15415if test "${libgo_cv_ro_eh_frame+set}" = set; then :
15416 $as_echo_n "(cached) " >&6
15417else
15418
15419libgo_cv_ro_eh_frame=no
15420echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
15421if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
15422 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
15423 libgo_cv_ro_eh_frame=yes
15424 elif grep '.section.*eh_frame.*#alloc' conftest.c \
15425 | grep -v '#write' > /dev/null; then
15426 libgo_cv_ro_eh_frame=yes
15427 fi
15428fi
15429rm -f conftest.*
15430
15431fi
15432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ro_eh_frame" >&5
15433$as_echo "$libgo_cv_ro_eh_frame" >&6; }
15434if test "x$libgo_cv_ro_eh_frame" = xyes; then
15435
15436$as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
15437
15438else
15439
15440$as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
15441
15442fi
15443
a819231d
ILT
15444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Qunused-arguments" >&5
15445$as_echo_n "checking if compiler supports -Qunused-arguments... " >&6; }
15446if test "${libgo_cv_c_unused_arguments+set}" = set; then :
15447 $as_echo_n "(cached) " >&6
15448else
15449 CFLAGS_hold=$CFLAGS
15450CFLAGS="$CFLAGS -Qunused-arguments"
15451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15452/* end confdefs.h. */
15453int i;
15454_ACEOF
15455if ac_fn_c_try_compile "$LINENO"; then :
15456 libgo_cv_c_unused_arguments=yes
15457else
15458 libgo_cv_c_unused_arguments=no
15459fi
15460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15461CFLAGS=$CFLAGS_hold
15462fi
15463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_unused_arguments" >&5
15464$as_echo "$libgo_cv_c_unused_arguments" >&6; }
15465
cc1a9ac8
ILT
15466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports GNU comdat group syntax" >&5
15467$as_echo_n "checking if assembler supports GNU comdat group syntax... " >&6; }
15468if test "${libgo_cv_as_comdat_gnu+set}" = set; then :
15469 $as_echo_n "(cached) " >&6
15470else
15471
15472echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
a819231d
ILT
15473CFLAGS_hold=$CFLAGS
15474if test "$libgo_cv_c_unused_arguments" = yes; then
15475 CFLAGS="$CFLAGS -Qunused-arguments"
15476fi
cc1a9ac8
ILT
15477if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
15478 libgo_cv_as_comdat_gnu=yes
15479else
15480 libgo_cv_as_comdat_gnu=no
15481fi
a819231d 15482CFLAGS=$CFLAGS_hold
cc1a9ac8
ILT
15483
15484fi
15485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_comdat_gnu" >&5
15486$as_echo "$libgo_cv_as_comdat_gnu" >&6; }
15487if test "x$libgo_cv_as_comdat_gnu" = xyes; then
15488
15489$as_echo "#define HAVE_AS_COMDAT_GAS 1" >>confdefs.h
15490
15491fi
15492
15493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15494$as_echo_n "checking assembler supports pc related relocs... " >&6; }
15495if test "${libgo_cv_as_x86_pcrel+set}" = set; then :
15496 $as_echo_n "(cached) " >&6
15497else
15498
15499libgo_cv_as_x86_pcrel=yes
15500echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
a819231d
ILT
15501CFLAGS_hold=$CFLAGS
15502if test "$libgo_cv_c_unused_arguments" = yes; then
15503 CFLAGS="$CFLAGS -Qunused-arguments"
15504fi
cc1a9ac8
ILT
15505if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
15506 libgo_cv_as_x86_pcrel=no
15507fi
a819231d 15508CFLAGS=$CFLAGS_hold
cc1a9ac8
ILT
15509
15510fi
15511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_pcrel" >&5
15512$as_echo "$libgo_cv_as_x86_pcrel" >&6; }
15513if test "x$libgo_cv_as_x86_pcrel" = xyes; then
15514
15515$as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
15516
15517fi
15518
15519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
15520$as_echo_n "checking assembler supports unwind section type... " >&6; }
15521if test "${libgo_cv_as_x86_64_unwind_section_type+set}" = set; then :
15522 $as_echo_n "(cached) " >&6
15523else
15524
15525libgo_cv_as_x86_64_unwind_section_type=yes
15526echo '.section .eh_frame,"a",@unwind' > conftest.s
a819231d
ILT
15527CFLAGS_hold=$CFLAGS
15528if test "$libgo_cv_c_unused_arguments" = yes; then
15529 CFLAGS="$CFLAGS -Qunused-arguments"
15530fi
cc1a9ac8
ILT
15531if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
15532 libgo_cv_as_x86_64_unwind_section_type=no
15533fi
a819231d 15534CFLAGS=$CFLAGS_hold
cc1a9ac8
ILT
15535
15536fi
15537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_64_unwind_section_type" >&5
15538$as_echo "$libgo_cv_as_x86_64_unwind_section_type" >&6; }
15539if test "x$libgo_cv_as_x86_64_unwind_section_type" = xyes; then
15540
15541$as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
15542
15543fi
15544
b379f8d8
ILT
15545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports AES instructions" >&5
15546$as_echo_n "checking assembler supports AES instructions... " >&6; }
15547if test "${libgo_cv_as_x86_aes+set}" = set; then :
15548 $as_echo_n "(cached) " >&6
15549else
15550
15551libgo_cv_as_x86_aes=yes
15552echo 'aesenc %xmm0, %xmm1' > conftest.s
15553CFLAGS_hold=$CFLAGS
15554if test "$libgo_cv_c_unused_arguments" = yes; then
15555 CFLAGS="$CFLAGS -Qunused-arguments"
15556fi
15557if $CC $CFLAGS -c conftest.s 2>&1 | grep -i error > /dev/null; then
15558 libgo_cv_as_x86_aes=no
15559fi
15560CFLAGS=$CFLAGS_hold
15561
15562fi
15563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_aes" >&5
15564$as_echo "$libgo_cv_as_x86_aes" >&6; }
15565if test "x$libgo_cv_as_x86_aes" = xyes; then
15566
15567$as_echo "#define HAVE_AS_X86_AES 1" >>confdefs.h
15568
15569fi
15570
7a938933
ILT
15571cat >confcache <<\_ACEOF
15572# This file is a shell script that caches the results of configure
15573# tests run on this system so they can be shared between configure
15574# scripts and configure runs, see configure's option --config-cache.
15575# It is not useful on other systems. If it contains results you don't
15576# want to keep, you may remove or edit it.
15577#
15578# config.status only pays attention to the cache file if you give it
15579# the --recheck option to rerun configure.
15580#
15581# `ac_cv_env_foo' variables (set or unset) will be overridden when
15582# loading this file, other *unset* `ac_cv_foo' will be assigned the
15583# following values.
15584
15585_ACEOF
15586
15587# The following way of writing the cache mishandles newlines in values,
15588# but we know of no workaround that is simple, portable, and efficient.
15589# So, we kill variables containing newlines.
15590# Ultrix sh set writes to stderr and can't be redirected directly,
15591# and sets the high bit in the cache file unless we assign to the vars.
15592(
15593 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15594 eval ac_val=\$$ac_var
15595 case $ac_val in #(
15596 *${as_nl}*)
15597 case $ac_var in #(
15598 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15599$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15600 esac
15601 case $ac_var in #(
15602 _ | IFS | as_nl) ;; #(
15603 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15604 *) { eval $ac_var=; unset $ac_var;} ;;
15605 esac ;;
15606 esac
15607 done
15608
15609 (set) 2>&1 |
15610 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15611 *${as_nl}ac_space=\ *)
15612 # `set' does not quote correctly, so add quotes: double-quote
15613 # substitution turns \\\\ into \\, and sed turns \\ into \.
15614 sed -n \
15615 "s/'/'\\\\''/g;
15616 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15617 ;; #(
15618 *)
15619 # `set' quotes correctly as required by POSIX, so do not add quotes.
15620 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15621 ;;
15622 esac |
15623 sort
15624) |
15625 sed '
15626 /^ac_cv_env_/b end
15627 t clear
15628 :clear
15629 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15630 t end
15631 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15632 :end' >>confcache
15633if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15634 if test -w "$cache_file"; then
15635 test "x$cache_file" != "x/dev/null" &&
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15637$as_echo "$as_me: updating cache $cache_file" >&6;}
15638 cat confcache >$cache_file
15639 else
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15641$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15642 fi
15643fi
15644rm -f confcache
15645
15646if test ${multilib} = yes; then
15647 multilib_arg="--enable-multilib"
15648else
15649 multilib_arg=
15650fi
15651
15652ac_config_files="$ac_config_files Makefile testsuite/Makefile"
15653
15654
15655ac_config_commands="$ac_config_commands default"
15656
15657
15658cat >confcache <<\_ACEOF
15659# This file is a shell script that caches the results of configure
15660# tests run on this system so they can be shared between configure
15661# scripts and configure runs, see configure's option --config-cache.
15662# It is not useful on other systems. If it contains results you don't
15663# want to keep, you may remove or edit it.
15664#
15665# config.status only pays attention to the cache file if you give it
15666# the --recheck option to rerun configure.
15667#
15668# `ac_cv_env_foo' variables (set or unset) will be overridden when
15669# loading this file, other *unset* `ac_cv_foo' will be assigned the
15670# following values.
15671
15672_ACEOF
15673
15674# The following way of writing the cache mishandles newlines in values,
15675# but we know of no workaround that is simple, portable, and efficient.
15676# So, we kill variables containing newlines.
15677# Ultrix sh set writes to stderr and can't be redirected directly,
15678# and sets the high bit in the cache file unless we assign to the vars.
15679(
15680 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15681 eval ac_val=\$$ac_var
15682 case $ac_val in #(
15683 *${as_nl}*)
15684 case $ac_var in #(
15685 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15686$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15687 esac
15688 case $ac_var in #(
15689 _ | IFS | as_nl) ;; #(
15690 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15691 *) { eval $ac_var=; unset $ac_var;} ;;
15692 esac ;;
15693 esac
15694 done
15695
15696 (set) 2>&1 |
15697 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15698 *${as_nl}ac_space=\ *)
15699 # `set' does not quote correctly, so add quotes: double-quote
15700 # substitution turns \\\\ into \\, and sed turns \\ into \.
15701 sed -n \
15702 "s/'/'\\\\''/g;
15703 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15704 ;; #(
15705 *)
15706 # `set' quotes correctly as required by POSIX, so do not add quotes.
15707 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15708 ;;
15709 esac |
15710 sort
15711) |
15712 sed '
15713 /^ac_cv_env_/b end
15714 t clear
15715 :clear
15716 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15717 t end
15718 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15719 :end' >>confcache
15720if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15721 if test -w "$cache_file"; then
15722 test "x$cache_file" != "x/dev/null" &&
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15724$as_echo "$as_me: updating cache $cache_file" >&6;}
15725 cat confcache >$cache_file
15726 else
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15728$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15729 fi
15730fi
15731rm -f confcache
15732
15733test "x$prefix" = xNONE && prefix=$ac_default_prefix
15734# Let make expand exec_prefix.
15735test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15736
15737DEFS=-DHAVE_CONFIG_H
15738
15739ac_libobjs=
15740ac_ltlibobjs=
15741for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15742 # 1. Remove the extension, and $U if already installed.
15743 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15744 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15745 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15746 # will be set to the directory where LIBOBJS objects are built.
15747 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15748 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15749done
15750LIBOBJS=$ac_libobjs
15751
15752LTLIBOBJS=$ac_ltlibobjs
15753
15754
15755 if test -n "$EXEEXT"; then
15756 am__EXEEXT_TRUE=
15757 am__EXEEXT_FALSE='#'
15758else
15759 am__EXEEXT_TRUE='#'
15760 am__EXEEXT_FALSE=
15761fi
15762
15763if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15764 as_fn_error "conditional \"AMDEP\" was never defined.
15765Usually this means the macro was only invoked conditionally." "$LINENO" 5
15766fi
15767if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15768 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15769Usually this means the macro was only invoked conditionally." "$LINENO" 5
15770fi
15771if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15772 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15773Usually this means the macro was only invoked conditionally." "$LINENO" 5
15774fi
5302cd02
ILT
15775if test -z "${USE_LIBFFI_TRUE}" && test -z "${USE_LIBFFI_FALSE}"; then
15776 as_fn_error "conditional \"USE_LIBFFI\" was never defined.
15777Usually this means the macro was only invoked conditionally." "$LINENO" 5
15778fi
7a938933
ILT
15779if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
15780 as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
15781Usually this means the macro was only invoked conditionally." "$LINENO" 5
15782fi
15783if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
15784 as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
15785Usually this means the macro was only invoked conditionally." "$LINENO" 5
654d2ec0
ILT
15786fi
15787if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
15788 as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined.
15789Usually this means the macro was only invoked conditionally." "$LINENO" 5
7a938933
ILT
15790fi
15791if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
15792 as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
15793Usually this means the macro was only invoked conditionally." "$LINENO" 5
15794fi
df4aa89a
ILT
15795if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
15796 as_fn_error "conditional \"LIBGO_IS_NETBSD\" was never defined.
15797Usually this means the macro was only invoked conditionally." "$LINENO" 5
15798fi
4ccad563
ILT
15799if test -z "${LIBGO_IS_OPENBSD_TRUE}" && test -z "${LIBGO_IS_OPENBSD_FALSE}"; then
15800 as_fn_error "conditional \"LIBGO_IS_OPENBSD\" was never defined.
15801Usually this means the macro was only invoked conditionally." "$LINENO" 5
15802fi
f038dae6
ILT
15803if test -z "${LIBGO_IS_DRAGONFLY_TRUE}" && test -z "${LIBGO_IS_DRAGONFLY_FALSE}"; then
15804 as_fn_error "conditional \"LIBGO_IS_DRAGONFLY\" was never defined.
15805Usually this means the macro was only invoked conditionally." "$LINENO" 5
15806fi
7a938933
ILT
15807if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
15808 as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
15809Usually this means the macro was only invoked conditionally." "$LINENO" 5
15810fi
f2ee78b8
ILT
15811if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
15812 as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
7a938933
ILT
15813Usually this means the macro was only invoked conditionally." "$LINENO" 5
15814fi
f163907e
ILT
15815if test -z "${LIBGO_IS_AIX_TRUE}" && test -z "${LIBGO_IS_AIX_FALSE}"; then
15816 as_fn_error "conditional \"LIBGO_IS_AIX\" was never defined.
15817Usually this means the macro was only invoked conditionally." "$LINENO" 5
15818fi
22b955cc
ILT
15819if test -z "${LIBGO_IS_BSD_TRUE}" && test -z "${LIBGO_IS_BSD_FALSE}"; then
15820 as_fn_error "conditional \"LIBGO_IS_BSD\" was never defined.
15821Usually this means the macro was only invoked conditionally." "$LINENO" 5
15822fi
7a938933
ILT
15823if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
15824 as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
15825Usually this means the macro was only invoked conditionally." "$LINENO" 5
4c46b5f0
ILT
15826fi
15827if test -z "${GOC_IS_LLGO_TRUE}" && test -z "${GOC_IS_LLGO_FALSE}"; then
15828 as_fn_error "conditional \"GOC_IS_LLGO\" was never defined.
15829Usually this means the macro was only invoked conditionally." "$LINENO" 5
7a938933
ILT
15830fi
15831
15832if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
15833 as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
15834Usually this means the macro was only invoked conditionally." "$LINENO" 5
15835fi
8955c80a
ILT
15836if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
15837 as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined.
15838Usually this means the macro was only invoked conditionally." "$LINENO" 5
15839fi
0b3189e7
ILT
15840if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
15841 as_fn_error "conditional \"HAVE_WAIT4\" was never defined.
15842Usually this means the macro was only invoked conditionally." "$LINENO" 5
15843fi
476013d6
ILT
15844if test -z "${HAVE_STAT_TIMESPEC_TRUE}" && test -z "${HAVE_STAT_TIMESPEC_FALSE}"; then
15845 as_fn_error "conditional \"HAVE_STAT_TIMESPEC\" was never defined.
15846Usually this means the macro was only invoked conditionally." "$LINENO" 5
15847fi
7a938933
ILT
15848
15849: ${CONFIG_STATUS=./config.status}
15850ac_write_fail=0
15851ac_clean_files_save=$ac_clean_files
15852ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15853{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15854$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15855as_write_fail=0
15856cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15857#! $SHELL
15858# Generated by $as_me.
15859# Run this file to recreate the current configuration.
15860# Compiler output produced by configure, useful for debugging
15861# configure, is in config.log if it exists.
15862
15863debug=false
15864ac_cs_recheck=false
15865ac_cs_silent=false
15866
15867SHELL=\${CONFIG_SHELL-$SHELL}
15868export SHELL
15869_ASEOF
15870cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15871## -------------------- ##
15872## M4sh Initialization. ##
15873## -------------------- ##
15874
15875# Be more Bourne compatible
15876DUALCASE=1; export DUALCASE # for MKS sh
15877if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15878 emulate sh
15879 NULLCMD=:
15880 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15881 # is contrary to our usage. Disable this feature.
15882 alias -g '${1+"$@"}'='"$@"'
15883 setopt NO_GLOB_SUBST
15884else
15885 case `(set -o) 2>/dev/null` in #(
15886 *posix*) :
15887 set -o posix ;; #(
15888 *) :
15889 ;;
15890esac
15891fi
15892
15893
15894as_nl='
15895'
15896export as_nl
15897# Printing a long string crashes Solaris 7 /usr/bin/printf.
15898as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15899as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15900as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15901# Prefer a ksh shell builtin over an external printf program on Solaris,
15902# but without wasting forks for bash or zsh.
15903if test -z "$BASH_VERSION$ZSH_VERSION" \
15904 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15905 as_echo='print -r --'
15906 as_echo_n='print -rn --'
15907elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15908 as_echo='printf %s\n'
15909 as_echo_n='printf %s'
15910else
15911 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15912 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15913 as_echo_n='/usr/ucb/echo -n'
15914 else
15915 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15916 as_echo_n_body='eval
15917 arg=$1;
15918 case $arg in #(
15919 *"$as_nl"*)
15920 expr "X$arg" : "X\\(.*\\)$as_nl";
15921 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15922 esac;
15923 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15924 '
15925 export as_echo_n_body
15926 as_echo_n='sh -c $as_echo_n_body as_echo'
15927 fi
15928 export as_echo_body
15929 as_echo='sh -c $as_echo_body as_echo'
15930fi
15931
15932# The user is always right.
15933if test "${PATH_SEPARATOR+set}" != set; then
15934 PATH_SEPARATOR=:
15935 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15936 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15937 PATH_SEPARATOR=';'
15938 }
15939fi
15940
15941
15942# IFS
15943# We need space, tab and new line, in precisely that order. Quoting is
15944# there to prevent editors from complaining about space-tab.
15945# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15946# splitting by setting IFS to empty value.)
15947IFS=" "" $as_nl"
15948
15949# Find who we are. Look in the path if we contain no directory separator.
15950case $0 in #((
15951 *[\\/]* ) as_myself=$0 ;;
15952 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15953for as_dir in $PATH
15954do
15955 IFS=$as_save_IFS
15956 test -z "$as_dir" && as_dir=.
15957 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15958 done
15959IFS=$as_save_IFS
15960
15961 ;;
15962esac
15963# We did not find ourselves, most probably we were run as `sh COMMAND'
15964# in which case we are not to be found in the path.
15965if test "x$as_myself" = x; then
15966 as_myself=$0
15967fi
15968if test ! -f "$as_myself"; then
15969 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15970 exit 1
15971fi
15972
15973# Unset variables that we do not need and which cause bugs (e.g. in
15974# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15975# suppresses any "Segmentation fault" message there. '((' could
15976# trigger a bug in pdksh 5.2.14.
15977for as_var in BASH_ENV ENV MAIL MAILPATH
15978do eval test x\${$as_var+set} = xset \
15979 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15980done
15981PS1='$ '
15982PS2='> '
15983PS4='+ '
15984
15985# NLS nuisances.
15986LC_ALL=C
15987export LC_ALL
15988LANGUAGE=C
15989export LANGUAGE
15990
15991# CDPATH.
15992(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15993
15994
15995# as_fn_error ERROR [LINENO LOG_FD]
15996# ---------------------------------
15997# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15998# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15999# script with status $?, using 1 if that was 0.
16000as_fn_error ()
16001{
16002 as_status=$?; test $as_status -eq 0 && as_status=1
16003 if test "$3"; then
16004 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16005 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16006 fi
16007 $as_echo "$as_me: error: $1" >&2
16008 as_fn_exit $as_status
16009} # as_fn_error
16010
16011
16012# as_fn_set_status STATUS
16013# -----------------------
16014# Set $? to STATUS, without forking.
16015as_fn_set_status ()
16016{
16017 return $1
16018} # as_fn_set_status
16019
16020# as_fn_exit STATUS
16021# -----------------
16022# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16023as_fn_exit ()
16024{
16025 set +e
16026 as_fn_set_status $1
16027 exit $1
16028} # as_fn_exit
16029
16030# as_fn_unset VAR
16031# ---------------
16032# Portably unset VAR.
16033as_fn_unset ()
16034{
16035 { eval $1=; unset $1;}
16036}
16037as_unset=as_fn_unset
16038# as_fn_append VAR VALUE
16039# ----------------------
16040# Append the text in VALUE to the end of the definition contained in VAR. Take
16041# advantage of any shell optimizations that allow amortized linear growth over
16042# repeated appends, instead of the typical quadratic growth present in naive
16043# implementations.
16044if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16045 eval 'as_fn_append ()
16046 {
16047 eval $1+=\$2
16048 }'
16049else
16050 as_fn_append ()
16051 {
16052 eval $1=\$$1\$2
16053 }
16054fi # as_fn_append
16055
16056# as_fn_arith ARG...
16057# ------------------
16058# Perform arithmetic evaluation on the ARGs, and store the result in the
16059# global $as_val. Take advantage of shells that can avoid forks. The arguments
16060# must be portable across $(()) and expr.
16061if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16062 eval 'as_fn_arith ()
16063 {
16064 as_val=$(( $* ))
16065 }'
16066else
16067 as_fn_arith ()
16068 {
16069 as_val=`expr "$@" || test $? -eq 1`
16070 }
16071fi # as_fn_arith
16072
16073
16074if expr a : '\(a\)' >/dev/null 2>&1 &&
16075 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16076 as_expr=expr
16077else
16078 as_expr=false
16079fi
16080
16081if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16082 as_basename=basename
16083else
16084 as_basename=false
16085fi
16086
16087if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16088 as_dirname=dirname
16089else
16090 as_dirname=false
16091fi
16092
16093as_me=`$as_basename -- "$0" ||
16094$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16095 X"$0" : 'X\(//\)$' \| \
16096 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16097$as_echo X/"$0" |
16098 sed '/^.*\/\([^/][^/]*\)\/*$/{
16099 s//\1/
16100 q
16101 }
16102 /^X\/\(\/\/\)$/{
16103 s//\1/
16104 q
16105 }
16106 /^X\/\(\/\).*/{
16107 s//\1/
16108 q
16109 }
16110 s/.*/./; q'`
16111
16112# Avoid depending upon Character Ranges.
16113as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16114as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16115as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16116as_cr_digits='0123456789'
16117as_cr_alnum=$as_cr_Letters$as_cr_digits
16118
16119ECHO_C= ECHO_N= ECHO_T=
16120case `echo -n x` in #(((((
16121-n*)
16122 case `echo 'xy\c'` in
16123 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16124 xy) ECHO_C='\c';;
16125 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16126 ECHO_T=' ';;
16127 esac;;
16128*)
16129 ECHO_N='-n';;
16130esac
16131
16132rm -f conf$$ conf$$.exe conf$$.file
16133if test -d conf$$.dir; then
16134 rm -f conf$$.dir/conf$$.file
16135else
16136 rm -f conf$$.dir
16137 mkdir conf$$.dir 2>/dev/null
16138fi
16139if (echo >conf$$.file) 2>/dev/null; then
16140 if ln -s conf$$.file conf$$ 2>/dev/null; then
16141 as_ln_s='ln -s'
16142 # ... but there are two gotchas:
16143 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16144 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16145 # In both cases, we have to default to `cp -p'.
16146 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16147 as_ln_s='cp -p'
16148 elif ln conf$$.file conf$$ 2>/dev/null; then
16149 as_ln_s=ln
16150 else
16151 as_ln_s='cp -p'
16152 fi
16153else
16154 as_ln_s='cp -p'
16155fi
16156rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16157rmdir conf$$.dir 2>/dev/null
16158
16159
16160# as_fn_mkdir_p
16161# -------------
16162# Create "$as_dir" as a directory, including parents if necessary.
16163as_fn_mkdir_p ()
16164{
16165
16166 case $as_dir in #(
16167 -*) as_dir=./$as_dir;;
16168 esac
16169 test -d "$as_dir" || eval $as_mkdir_p || {
16170 as_dirs=
16171 while :; do
16172 case $as_dir in #(
16173 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16174 *) as_qdir=$as_dir;;
16175 esac
16176 as_dirs="'$as_qdir' $as_dirs"
16177 as_dir=`$as_dirname -- "$as_dir" ||
16178$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16179 X"$as_dir" : 'X\(//\)[^/]' \| \
16180 X"$as_dir" : 'X\(//\)$' \| \
16181 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16182$as_echo X"$as_dir" |
16183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16184 s//\1/
16185 q
16186 }
16187 /^X\(\/\/\)[^/].*/{
16188 s//\1/
16189 q
16190 }
16191 /^X\(\/\/\)$/{
16192 s//\1/
16193 q
16194 }
16195 /^X\(\/\).*/{
16196 s//\1/
16197 q
16198 }
16199 s/.*/./; q'`
16200 test -d "$as_dir" && break
16201 done
16202 test -z "$as_dirs" || eval "mkdir $as_dirs"
16203 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16204
16205
16206} # as_fn_mkdir_p
16207if mkdir -p . 2>/dev/null; then
16208 as_mkdir_p='mkdir -p "$as_dir"'
16209else
16210 test -d ./-p && rmdir ./-p
16211 as_mkdir_p=false
16212fi
16213
16214if test -x / >/dev/null 2>&1; then
16215 as_test_x='test -x'
16216else
16217 if ls -dL / >/dev/null 2>&1; then
16218 as_ls_L_option=L
16219 else
16220 as_ls_L_option=
16221 fi
16222 as_test_x='
16223 eval sh -c '\''
16224 if test -d "$1"; then
16225 test -d "$1/.";
16226 else
16227 case $1 in #(
16228 -*)set "./$1";;
16229 esac;
16230 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16231 ???[sx]*):;;*)false;;esac;fi
16232 '\'' sh
16233 '
16234fi
16235as_executable_p=$as_test_x
16236
16237# Sed expression to map a string onto a valid CPP name.
16238as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16239
16240# Sed expression to map a string onto a valid variable name.
16241as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16242
16243
16244exec 6>&1
16245## ----------------------------------- ##
16246## Main body of $CONFIG_STATUS script. ##
16247## ----------------------------------- ##
16248_ASEOF
16249test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16250
16251cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16252# Save the log message, to keep $0 and so on meaningful, and to
16253# report actual input values of CONFIG_FILES etc. instead of their
16254# values after options handling.
16255ac_log="
16256This file was extended by package-unused $as_me version-unused, which was
16257generated by GNU Autoconf 2.64. Invocation command line was
16258
16259 CONFIG_FILES = $CONFIG_FILES
16260 CONFIG_HEADERS = $CONFIG_HEADERS
16261 CONFIG_LINKS = $CONFIG_LINKS
16262 CONFIG_COMMANDS = $CONFIG_COMMANDS
16263 $ $0 $@
16264
16265on `(hostname || uname -n) 2>/dev/null | sed 1q`
16266"
16267
16268_ACEOF
16269
16270case $ac_config_files in *"
16271"*) set x $ac_config_files; shift; ac_config_files=$*;;
16272esac
16273
16274case $ac_config_headers in *"
16275"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16276esac
16277
16278
16279cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16280# Files that config.status was made for.
16281config_files="$ac_config_files"
16282config_headers="$ac_config_headers"
16283config_commands="$ac_config_commands"
16284
16285_ACEOF
16286
16287cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16288ac_cs_usage="\
16289\`$as_me' instantiates files and other configuration actions
16290from templates according to the current configuration. Unless the files
16291and actions are specified as TAGs, all are instantiated by default.
16292
16293Usage: $0 [OPTION]... [TAG]...
16294
16295 -h, --help print this help, then exit
16296 -V, --version print version number and configuration settings, then exit
16297 -q, --quiet, --silent
16298 do not print progress messages
16299 -d, --debug don't remove temporary files
16300 --recheck update $as_me by reconfiguring in the same conditions
16301 --file=FILE[:TEMPLATE]
16302 instantiate the configuration file FILE
16303 --header=FILE[:TEMPLATE]
16304 instantiate the configuration header FILE
16305
16306Configuration files:
16307$config_files
16308
16309Configuration headers:
16310$config_headers
16311
16312Configuration commands:
16313$config_commands
16314
16315Report bugs to the package provider."
16316
16317_ACEOF
16318cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16319ac_cs_version="\\
16320package-unused config.status version-unused
16321configured by $0, generated by GNU Autoconf 2.64,
16322 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16323
16324Copyright (C) 2009 Free Software Foundation, Inc.
16325This config.status script is free software; the Free Software Foundation
16326gives unlimited permission to copy, distribute and modify it."
16327
16328ac_pwd='$ac_pwd'
16329srcdir='$srcdir'
16330INSTALL='$INSTALL'
16331MKDIR_P='$MKDIR_P'
16332AWK='$AWK'
16333test -n "\$AWK" || AWK=awk
16334_ACEOF
16335
16336cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16337# The default lists apply if the user does not specify any file.
16338ac_need_defaults=:
16339while test $# != 0
16340do
16341 case $1 in
16342 --*=*)
16343 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16344 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16345 ac_shift=:
16346 ;;
16347 *)
16348 ac_option=$1
16349 ac_optarg=$2
16350 ac_shift=shift
16351 ;;
16352 esac
16353
16354 case $ac_option in
16355 # Handling of the options.
16356 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16357 ac_cs_recheck=: ;;
16358 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16359 $as_echo "$ac_cs_version"; exit ;;
16360 --debug | --debu | --deb | --de | --d | -d )
16361 debug=: ;;
16362 --file | --fil | --fi | --f )
16363 $ac_shift
16364 case $ac_optarg in
16365 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16366 esac
16367 as_fn_append CONFIG_FILES " '$ac_optarg'"
16368 ac_need_defaults=false;;
16369 --header | --heade | --head | --hea )
16370 $ac_shift
16371 case $ac_optarg in
16372 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16373 esac
16374 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16375 ac_need_defaults=false;;
16376 --he | --h)
16377 # Conflict between --help and --header
16378 as_fn_error "ambiguous option: \`$1'
16379Try \`$0 --help' for more information.";;
16380 --help | --hel | -h )
16381 $as_echo "$ac_cs_usage"; exit ;;
16382 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16383 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16384 ac_cs_silent=: ;;
16385
16386 # This is an error.
16387 -*) as_fn_error "unrecognized option: \`$1'
16388Try \`$0 --help' for more information." ;;
16389
16390 *) as_fn_append ac_config_targets " $1"
16391 ac_need_defaults=false ;;
16392
16393 esac
16394 shift
16395done
16396
16397ac_configure_extra_args=
16398
16399if $ac_cs_silent; then
16400 exec 6>/dev/null
16401 ac_configure_extra_args="$ac_configure_extra_args --silent"
16402fi
16403
16404_ACEOF
16405cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16406if \$ac_cs_recheck; then
16407 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16408 shift
16409 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16410 CONFIG_SHELL='$SHELL'
16411 export CONFIG_SHELL
16412 exec "\$@"
16413fi
16414
16415_ACEOF
16416cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16417exec 5>>config.log
16418{
16419 echo
16420 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16421## Running $as_me. ##
16422_ASBOX
16423 $as_echo "$ac_log"
16424} >&5
16425
16426_ACEOF
16427cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16428#
16429# INIT-COMMANDS
16430#
16431
16432srcdir="$srcdir"
16433host="$host"
16434target="$target"
16435with_multisubdir="$with_multisubdir"
16436with_multisrctop="$with_multisrctop"
16437with_target_subdir="$with_target_subdir"
16438ac_configure_args="${multilib_arg} ${ac_configure_args}"
16439multi_basedir="$multi_basedir"
16440CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16441CC="$CC"
54f0deb0
ILT
16442CXX="$CXX"
16443GFORTRAN="$GFORTRAN"
7a938933
ILT
16444AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16445
16446
16447# The HP-UX ksh and POSIX shell print the target directory to stdout
16448# if CDPATH is set.
16449(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16450
16451sed_quote_subst='$sed_quote_subst'
16452double_quote_subst='$double_quote_subst'
16453delay_variable_subst='$delay_variable_subst'
16454SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16455Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16456GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16457EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16458FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16459SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16460ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16461LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16462macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16463macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16464enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16465enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16466pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16467enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16468host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16469host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16470host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16471build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16472build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16473build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16474NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16475LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16476max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16477ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16478exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16479lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16480lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16481lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16482reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16483reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16484OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16485deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16486file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16487AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16488AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16489STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16490RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16491old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16492old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16493old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16494lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16495CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16496CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16497compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16498GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16499lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16500lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16501lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16502lt_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"`'
16503objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16504MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16505lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16506lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16507lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16508lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16509lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16510need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16511DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16512NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16513LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16514OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16515OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16516libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16517shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16518extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16519archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16520enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16521export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16522whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16523compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16524old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16525old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16526archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16527archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16528module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16529module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16530with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16531allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16532no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16533hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16534hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16535hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16536hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16537hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16538hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16539hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16540hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16541inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16542link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16543fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16544always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16545export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16546exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16547include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16548prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16549file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16550variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16551need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16552need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16553version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16554runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16555shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16556shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16557libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16558library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16559soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16560install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16561postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16562postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16563finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16564finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16565hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16566sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16567sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16568hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16569enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16570enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16571enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16572old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16573striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16574LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
16575reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
16576reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
16577old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16578compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
16579GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
16580lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
16581lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
16582lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
16583lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
16584lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
16585archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
16586enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
16587export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16588whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16589compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
16590old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
16591old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
16592archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16593archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16594module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
16595module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16596with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
16597allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16598no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16599hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16600hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
16601hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
16602hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
16603hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
16604hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
16605hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
16606hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
16607inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
16608link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
16609fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
16610always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
16611export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
16612exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16613include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16614prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
16615file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
16616hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
16617
16618LTCC='$LTCC'
16619LTCFLAGS='$LTCFLAGS'
16620compiler='$compiler_DEFAULT'
16621
16622# A function that is used when there is no print builtin or printf.
16623func_fallback_echo ()
16624{
16625 eval 'cat <<_LTECHO_EOF
16626\$1
16627_LTECHO_EOF'
16628}
16629
16630# Quote evaled strings.
16631for var in SED \
16632GREP \
16633EGREP \
16634FGREP \
16635SHELL \
16636ECHO \
16637LD \
16638NM \
16639LN_S \
16640lt_SP2NL \
16641lt_NL2SP \
16642reload_flag \
16643OBJDUMP \
16644deplibs_check_method \
16645file_magic_cmd \
16646AR \
16647AR_FLAGS \
16648STRIP \
16649RANLIB \
16650CC \
16651CFLAGS \
16652compiler \
16653lt_cv_sys_global_symbol_pipe \
16654lt_cv_sys_global_symbol_to_cdecl \
16655lt_cv_sys_global_symbol_to_c_name_address \
16656lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16657lt_prog_compiler_no_builtin_flag \
16658lt_prog_compiler_wl \
16659lt_prog_compiler_pic \
16660lt_prog_compiler_static \
16661lt_cv_prog_compiler_c_o \
16662need_locks \
16663DSYMUTIL \
16664NMEDIT \
16665LIPO \
16666OTOOL \
16667OTOOL64 \
16668shrext_cmds \
16669export_dynamic_flag_spec \
16670whole_archive_flag_spec \
16671compiler_needs_object \
16672with_gnu_ld \
16673allow_undefined_flag \
16674no_undefined_flag \
16675hardcode_libdir_flag_spec \
16676hardcode_libdir_flag_spec_ld \
16677hardcode_libdir_separator \
16678fix_srcfile_path \
16679exclude_expsyms \
16680include_expsyms \
16681file_list_spec \
16682variables_saved_for_relink \
16683libname_spec \
16684library_names_spec \
16685soname_spec \
16686install_override_mode \
16687finish_eval \
16688old_striplib \
16689striplib \
16690LD_GO \
16691reload_flag_GO \
16692compiler_GO \
16693lt_prog_compiler_no_builtin_flag_GO \
16694lt_prog_compiler_wl_GO \
16695lt_prog_compiler_pic_GO \
16696lt_prog_compiler_static_GO \
16697lt_cv_prog_compiler_c_o_GO \
16698export_dynamic_flag_spec_GO \
16699whole_archive_flag_spec_GO \
16700compiler_needs_object_GO \
16701with_gnu_ld_GO \
16702allow_undefined_flag_GO \
16703no_undefined_flag_GO \
16704hardcode_libdir_flag_spec_GO \
16705hardcode_libdir_flag_spec_ld_GO \
16706hardcode_libdir_separator_GO \
16707fix_srcfile_path_GO \
16708exclude_expsyms_GO \
16709include_expsyms_GO \
16710file_list_spec_GO; do
16711 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16712 *[\\\\\\\`\\"\\\$]*)
16713 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16714 ;;
16715 *)
16716 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16717 ;;
16718 esac
16719done
16720
16721# Double-quote double-evaled strings.
16722for var in reload_cmds \
16723old_postinstall_cmds \
16724old_postuninstall_cmds \
16725old_archive_cmds \
16726extract_expsyms_cmds \
16727old_archive_from_new_cmds \
16728old_archive_from_expsyms_cmds \
16729archive_cmds \
16730archive_expsym_cmds \
16731module_cmds \
16732module_expsym_cmds \
16733export_symbols_cmds \
16734prelink_cmds \
16735postinstall_cmds \
16736postuninstall_cmds \
16737finish_cmds \
16738sys_lib_search_path_spec \
16739sys_lib_dlsearch_path_spec \
16740reload_cmds_GO \
16741old_archive_cmds_GO \
16742old_archive_from_new_cmds_GO \
16743old_archive_from_expsyms_cmds_GO \
16744archive_cmds_GO \
16745archive_expsym_cmds_GO \
16746module_cmds_GO \
16747module_expsym_cmds_GO \
16748export_symbols_cmds_GO \
16749prelink_cmds_GO; do
16750 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16751 *[\\\\\\\`\\"\\\$]*)
16752 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16753 ;;
16754 *)
16755 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16756 ;;
16757 esac
16758done
16759
16760ac_aux_dir='$ac_aux_dir'
16761xsi_shell='$xsi_shell'
16762lt_shell_append='$lt_shell_append'
16763
16764# See if we are running on zsh, and set the options which allow our
16765# commands through without removal of \ escapes INIT.
16766if test -n "\${ZSH_VERSION+set}" ; then
16767 setopt NO_GLOB_SUBST
16768fi
16769
16770
16771 PACKAGE='$PACKAGE'
16772 VERSION='$VERSION'
16773 TIMESTAMP='$TIMESTAMP'
16774 RM='$RM'
16775 ofile='$ofile'
16776
16777
16778
16779
16780
16781
16782# Variables needed in config.status (file generation) which aren't already
16783# passed by autoconf.
16784SUBDIRS="$SUBDIRS"
16785
16786
16787_ACEOF
16788
16789cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16790
16791# Handling of arguments.
16792for ac_config_target in $ac_config_targets
16793do
16794 case $ac_config_target in
16795 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16796 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16797 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16798 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16799 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16800 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16801 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16802
16803 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16804 esac
16805done
16806
16807
16808# If the user did not use the arguments to specify the items to instantiate,
16809# then the envvar interface is used. Set only those that are not.
16810# We use the long form for the default assignment because of an extremely
16811# bizarre bug on SunOS 4.1.3.
16812if $ac_need_defaults; then
16813 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16814 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16815 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16816fi
16817
16818# Have a temporary directory for convenience. Make it in the build tree
16819# simply because there is no reason against having it here, and in addition,
16820# creating and moving files from /tmp can sometimes cause problems.
16821# Hook for its removal unless debugging.
16822# Note that there is a small window in which the directory will not be cleaned:
16823# after its creation but before its name has been assigned to `$tmp'.
16824$debug ||
16825{
16826 tmp=
16827 trap 'exit_status=$?
16828 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16829' 0
16830 trap 'as_fn_exit 1' 1 2 13 15
16831}
16832# Create a (secure) tmp directory for tmp files.
16833
16834{
16835 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16836 test -n "$tmp" && test -d "$tmp"
16837} ||
16838{
16839 tmp=./conf$$-$RANDOM
16840 (umask 077 && mkdir "$tmp")
16841} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16842
16843# Set up the scripts for CONFIG_FILES section.
16844# No need to generate them if there are no CONFIG_FILES.
16845# This happens for instance with `./config.status config.h'.
16846if test -n "$CONFIG_FILES"; then
16847
16848
16849ac_cr=`echo X | tr X '\015'`
16850# On cygwin, bash can eat \r inside `` if the user requested igncr.
16851# But we know of no other shell where ac_cr would be empty at this
16852# point, so we can use a bashism as a fallback.
16853if test "x$ac_cr" = x; then
16854 eval ac_cr=\$\'\\r\'
16855fi
16856ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16857if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16858 ac_cs_awk_cr='\r'
16859else
16860 ac_cs_awk_cr=$ac_cr
16861fi
16862
16863echo 'BEGIN {' >"$tmp/subs1.awk" &&
16864_ACEOF
16865
16866
16867{
16868 echo "cat >conf$$subs.awk <<_ACEOF" &&
16869 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16870 echo "_ACEOF"
16871} >conf$$subs.sh ||
16872 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16873ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16874ac_delim='%!_!# '
16875for ac_last_try in false false false false false :; do
16876 . ./conf$$subs.sh ||
16877 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16878
16879 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16880 if test $ac_delim_n = $ac_delim_num; then
16881 break
16882 elif $ac_last_try; then
16883 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16884 else
16885 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16886 fi
16887done
16888rm -f conf$$subs.sh
16889
16890cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16891cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16892_ACEOF
16893sed -n '
16894h
16895s/^/S["/; s/!.*/"]=/
16896p
16897g
16898s/^[^!]*!//
16899:repl
16900t repl
16901s/'"$ac_delim"'$//
16902t delim
16903:nl
16904h
16905s/\(.\{148\}\).*/\1/
16906t more1
16907s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16908p
16909n
16910b repl
16911:more1
16912s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16913p
16914g
16915s/.\{148\}//
16916t nl
16917:delim
16918h
16919s/\(.\{148\}\).*/\1/
16920t more2
16921s/["\\]/\\&/g; s/^/"/; s/$/"/
16922p
16923b
16924:more2
16925s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16926p
16927g
16928s/.\{148\}//
16929t delim
16930' <conf$$subs.awk | sed '
16931/^[^""]/{
16932 N
16933 s/\n//
16934}
16935' >>$CONFIG_STATUS || ac_write_fail=1
16936rm -f conf$$subs.awk
16937cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16938_ACAWK
16939cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16940 for (key in S) S_is_set[key] = 1
16941 FS = "\a"
16942
16943}
16944{
16945 line = $ 0
16946 nfields = split(line, field, "@")
16947 substed = 0
16948 len = length(field[1])
16949 for (i = 2; i < nfields; i++) {
16950 key = field[i]
16951 keylen = length(key)
16952 if (S_is_set[key]) {
16953 value = S[key]
16954 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16955 len += length(value) + length(field[++i])
16956 substed = 1
16957 } else
16958 len += 1 + keylen
16959 }
16960
16961 print line
16962}
16963
16964_ACAWK
16965_ACEOF
16966cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16967if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16968 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16969else
16970 cat
16971fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16972 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16973_ACEOF
16974
16975# VPATH may cause trouble with some makes, so we remove $(srcdir),
16976# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16977# trailing colons and then remove the whole line if VPATH becomes empty
16978# (actually we leave an empty line to preserve line numbers).
16979if test "x$srcdir" = x.; then
16980 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16981s/:*\$(srcdir):*/:/
16982s/:*\${srcdir}:*/:/
16983s/:*@srcdir@:*/:/
16984s/^\([^=]*=[ ]*\):*/\1/
16985s/:*$//
16986s/^[^=]*=[ ]*$//
16987}'
16988fi
16989
16990cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16991fi # test -n "$CONFIG_FILES"
16992
16993# Set up the scripts for CONFIG_HEADERS section.
16994# No need to generate them if there are no CONFIG_HEADERS.
16995# This happens for instance with `./config.status Makefile'.
16996if test -n "$CONFIG_HEADERS"; then
16997cat >"$tmp/defines.awk" <<\_ACAWK ||
16998BEGIN {
16999_ACEOF
17000
17001# Transform confdefs.h into an awk script `defines.awk', embedded as
17002# here-document in config.status, that substitutes the proper values into
17003# config.h.in to produce config.h.
17004
17005# Create a delimiter string that does not exist in confdefs.h, to ease
17006# handling of long lines.
17007ac_delim='%!_!# '
17008for ac_last_try in false false :; do
17009 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17010 if test -z "$ac_t"; then
17011 break
17012 elif $ac_last_try; then
17013 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17014 else
17015 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17016 fi
17017done
17018
17019# For the awk script, D is an array of macro values keyed by name,
17020# likewise P contains macro parameters if any. Preserve backslash
17021# newline sequences.
17022
17023ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17024sed -n '
17025s/.\{148\}/&'"$ac_delim"'/g
17026t rset
17027:rset
17028s/^[ ]*#[ ]*define[ ][ ]*/ /
17029t def
17030d
17031:def
17032s/\\$//
17033t bsnl
17034s/["\\]/\\&/g
17035s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17036D["\1"]=" \3"/p
17037s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17038d
17039:bsnl
17040s/["\\]/\\&/g
17041s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17042D["\1"]=" \3\\\\\\n"\\/p
17043t cont
17044s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17045t cont
17046d
17047:cont
17048n
17049s/.\{148\}/&'"$ac_delim"'/g
17050t clear
17051:clear
17052s/\\$//
17053t bsnlc
17054s/["\\]/\\&/g; s/^/"/; s/$/"/p
17055d
17056:bsnlc
17057s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17058b cont
17059' <confdefs.h | sed '
17060s/'"$ac_delim"'/"\\\
17061"/g' >>$CONFIG_STATUS || ac_write_fail=1
17062
17063cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17064 for (key in D) D_is_set[key] = 1
17065 FS = "\a"
17066}
17067/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17068 line = \$ 0
17069 split(line, arg, " ")
17070 if (arg[1] == "#") {
17071 defundef = arg[2]
17072 mac1 = arg[3]
17073 } else {
17074 defundef = substr(arg[1], 2)
17075 mac1 = arg[2]
17076 }
17077 split(mac1, mac2, "(") #)
17078 macro = mac2[1]
17079 prefix = substr(line, 1, index(line, defundef) - 1)
17080 if (D_is_set[macro]) {
17081 # Preserve the white space surrounding the "#".
17082 print prefix "define", macro P[macro] D[macro]
17083 next
17084 } else {
17085 # Replace #undef with comments. This is necessary, for example,
17086 # in the case of _POSIX_SOURCE, which is predefined and required
17087 # on some systems where configure will not decide to define it.
17088 if (defundef == "undef") {
17089 print "/*", prefix defundef, macro, "*/"
17090 next
17091 }
17092 }
17093}
17094{ print }
17095_ACAWK
17096_ACEOF
17097cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17098 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17099fi # test -n "$CONFIG_HEADERS"
17100
17101
17102eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17103shift
17104for ac_tag
17105do
17106 case $ac_tag in
17107 :[FHLC]) ac_mode=$ac_tag; continue;;
17108 esac
17109 case $ac_mode$ac_tag in
17110 :[FHL]*:*);;
17111 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17112 :[FH]-) ac_tag=-:-;;
17113 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17114 esac
17115 ac_save_IFS=$IFS
17116 IFS=:
17117 set x $ac_tag
17118 IFS=$ac_save_IFS
17119 shift
17120 ac_file=$1
17121 shift
17122
17123 case $ac_mode in
17124 :L) ac_source=$1;;
17125 :[FH])
17126 ac_file_inputs=
17127 for ac_f
17128 do
17129 case $ac_f in
17130 -) ac_f="$tmp/stdin";;
17131 *) # Look for the file first in the build tree, then in the source tree
17132 # (if the path is not absolute). The absolute path cannot be DOS-style,
17133 # because $ac_f cannot contain `:'.
17134 test -f "$ac_f" ||
17135 case $ac_f in
17136 [\\/$]*) false;;
17137 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17138 esac ||
17139 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17140 esac
17141 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17142 as_fn_append ac_file_inputs " '$ac_f'"
17143 done
17144
17145 # Let's still pretend it is `configure' which instantiates (i.e., don't
17146 # use $as_me), people would be surprised to read:
17147 # /* config.h. Generated by config.status. */
17148 configure_input='Generated from '`
17149 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17150 `' by configure.'
17151 if test x"$ac_file" != x-; then
17152 configure_input="$ac_file. $configure_input"
17153 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17154$as_echo "$as_me: creating $ac_file" >&6;}
17155 fi
17156 # Neutralize special characters interpreted by sed in replacement strings.
17157 case $configure_input in #(
17158 *\&* | *\|* | *\\* )
17159 ac_sed_conf_input=`$as_echo "$configure_input" |
17160 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17161 *) ac_sed_conf_input=$configure_input;;
17162 esac
17163
17164 case $ac_tag in
17165 *:-:* | *:-) cat >"$tmp/stdin" \
17166 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17167 esac
17168 ;;
17169 esac
17170
17171 ac_dir=`$as_dirname -- "$ac_file" ||
17172$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17173 X"$ac_file" : 'X\(//\)[^/]' \| \
17174 X"$ac_file" : 'X\(//\)$' \| \
17175 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17176$as_echo X"$ac_file" |
17177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17178 s//\1/
17179 q
17180 }
17181 /^X\(\/\/\)[^/].*/{
17182 s//\1/
17183 q
17184 }
17185 /^X\(\/\/\)$/{
17186 s//\1/
17187 q
17188 }
17189 /^X\(\/\).*/{
17190 s//\1/
17191 q
17192 }
17193 s/.*/./; q'`
17194 as_dir="$ac_dir"; as_fn_mkdir_p
17195 ac_builddir=.
17196
17197case "$ac_dir" in
17198.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17199*)
17200 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17201 # A ".." for each directory in $ac_dir_suffix.
17202 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17203 case $ac_top_builddir_sub in
17204 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17205 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17206 esac ;;
17207esac
17208ac_abs_top_builddir=$ac_pwd
17209ac_abs_builddir=$ac_pwd$ac_dir_suffix
17210# for backward compatibility:
17211ac_top_builddir=$ac_top_build_prefix
17212
17213case $srcdir in
17214 .) # We are building in place.
17215 ac_srcdir=.
17216 ac_top_srcdir=$ac_top_builddir_sub
17217 ac_abs_top_srcdir=$ac_pwd ;;
17218 [\\/]* | ?:[\\/]* ) # Absolute name.
17219 ac_srcdir=$srcdir$ac_dir_suffix;
17220 ac_top_srcdir=$srcdir
17221 ac_abs_top_srcdir=$srcdir ;;
17222 *) # Relative name.
17223 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17224 ac_top_srcdir=$ac_top_build_prefix$srcdir
17225 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17226esac
17227ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17228
17229
17230 case $ac_mode in
17231 :F)
17232 #
17233 # CONFIG_FILE
17234 #
17235
17236 case $INSTALL in
17237 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17238 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17239 esac
17240 ac_MKDIR_P=$MKDIR_P
17241 case $MKDIR_P in
17242 [\\/$]* | ?:[\\/]* ) ;;
17243 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17244 esac
17245_ACEOF
17246
17247cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17248# If the template does not know about datarootdir, expand it.
17249# FIXME: This hack should be removed a few years after 2.60.
17250ac_datarootdir_hack=; ac_datarootdir_seen=
17251ac_sed_dataroot='
17252/datarootdir/ {
17253 p
17254 q
17255}
17256/@datadir@/p
17257/@docdir@/p
17258/@infodir@/p
17259/@localedir@/p
17260/@mandir@/p'
17261case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17262*datarootdir*) ac_datarootdir_seen=yes;;
17263*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17265$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17266_ACEOF
17267cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17268 ac_datarootdir_hack='
17269 s&@datadir@&$datadir&g
17270 s&@docdir@&$docdir&g
17271 s&@infodir@&$infodir&g
17272 s&@localedir@&$localedir&g
17273 s&@mandir@&$mandir&g
17274 s&\\\${datarootdir}&$datarootdir&g' ;;
17275esac
17276_ACEOF
17277
17278# Neutralize VPATH when `$srcdir' = `.'.
17279# Shell code in configure.ac might set extrasub.
17280# FIXME: do we really want to maintain this feature?
17281cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17282ac_sed_extra="$ac_vpsub
17283$extrasub
17284_ACEOF
17285cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17286:t
17287/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17288s|@configure_input@|$ac_sed_conf_input|;t t
17289s&@top_builddir@&$ac_top_builddir_sub&;t t
17290s&@top_build_prefix@&$ac_top_build_prefix&;t t
17291s&@srcdir@&$ac_srcdir&;t t
17292s&@abs_srcdir@&$ac_abs_srcdir&;t t
17293s&@top_srcdir@&$ac_top_srcdir&;t t
17294s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17295s&@builddir@&$ac_builddir&;t t
17296s&@abs_builddir@&$ac_abs_builddir&;t t
17297s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17298s&@INSTALL@&$ac_INSTALL&;t t
17299s&@MKDIR_P@&$ac_MKDIR_P&;t t
17300$ac_datarootdir_hack
17301"
17302eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17303 || as_fn_error "could not create $ac_file" "$LINENO" 5
17304
17305test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17306 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17307 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17309which seems to be undefined. Please make sure it is defined." >&5
17310$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17311which seems to be undefined. Please make sure it is defined." >&2;}
17312
17313 rm -f "$tmp/stdin"
17314 case $ac_file in
17315 -) cat "$tmp/out" && rm -f "$tmp/out";;
17316 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17317 esac \
17318 || as_fn_error "could not create $ac_file" "$LINENO" 5
17319 ;;
17320 :H)
17321 #
17322 # CONFIG_HEADER
17323 #
17324 if test x"$ac_file" != x-; then
17325 {
17326 $as_echo "/* $configure_input */" \
17327 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17328 } >"$tmp/config.h" \
17329 || as_fn_error "could not create $ac_file" "$LINENO" 5
17330 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17332$as_echo "$as_me: $ac_file is unchanged" >&6;}
17333 else
17334 rm -f "$ac_file"
17335 mv "$tmp/config.h" "$ac_file" \
17336 || as_fn_error "could not create $ac_file" "$LINENO" 5
17337 fi
17338 else
17339 $as_echo "/* $configure_input */" \
17340 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17341 || as_fn_error "could not create -" "$LINENO" 5
17342 fi
17343# Compute "$ac_file"'s index in $config_headers.
17344_am_arg="$ac_file"
17345_am_stamp_count=1
17346for _am_header in $config_headers :; do
17347 case $_am_header in
17348 $_am_arg | $_am_arg:* )
17349 break ;;
17350 * )
17351 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17352 esac
17353done
17354echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17355$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17356 X"$_am_arg" : 'X\(//\)[^/]' \| \
17357 X"$_am_arg" : 'X\(//\)$' \| \
17358 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17359$as_echo X"$_am_arg" |
17360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17361 s//\1/
17362 q
17363 }
17364 /^X\(\/\/\)[^/].*/{
17365 s//\1/
17366 q
17367 }
17368 /^X\(\/\/\)$/{
17369 s//\1/
17370 q
17371 }
17372 /^X\(\/\).*/{
17373 s//\1/
17374 q
17375 }
17376 s/.*/./; q'`/stamp-h$_am_stamp_count
17377 ;;
17378
17379 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17380$as_echo "$as_me: executing $ac_file commands" >&6;}
17381 ;;
17382 esac
17383
17384
17385 case $ac_file$ac_mode in
17386 "default-1":C)
17387# Only add multilib support code if we just rebuilt the top-level
17388# Makefile.
17389case " $CONFIG_FILES " in
17390 *" Makefile "*)
17391 ac_file=Makefile . ${multi_basedir}/config-ml.in
17392 ;;
17393esac ;;
17394 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17395 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17396 # are listed without --file. Let's play safe and only enable the eval
17397 # if we detect the quoting.
17398 case $CONFIG_FILES in
17399 *\'*) eval set x "$CONFIG_FILES" ;;
17400 *) set x $CONFIG_FILES ;;
17401 esac
17402 shift
17403 for mf
17404 do
17405 # Strip MF so we end up with the name of the file.
17406 mf=`echo "$mf" | sed -e 's/:.*$//'`
17407 # Check whether this is an Automake generated Makefile or not.
17408 # We used to match only the files named `Makefile.in', but
17409 # some people rename them; so instead we look at the file content.
17410 # Grep'ing the first line is not enough: some people post-process
17411 # each Makefile.in and add a new line on top of each file to say so.
17412 # Grep'ing the whole file is not good either: AIX grep has a line
17413 # limit of 2048, but all sed's we know have understand at least 4000.
17414 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17415 dirpart=`$as_dirname -- "$mf" ||
17416$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17417 X"$mf" : 'X\(//\)[^/]' \| \
17418 X"$mf" : 'X\(//\)$' \| \
17419 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17420$as_echo X"$mf" |
17421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17422 s//\1/
17423 q
17424 }
17425 /^X\(\/\/\)[^/].*/{
17426 s//\1/
17427 q
17428 }
17429 /^X\(\/\/\)$/{
17430 s//\1/
17431 q
17432 }
17433 /^X\(\/\).*/{
17434 s//\1/
17435 q
17436 }
17437 s/.*/./; q'`
17438 else
17439 continue
17440 fi
17441 # Extract the definition of DEPDIR, am__include, and am__quote
17442 # from the Makefile without running `make'.
17443 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17444 test -z "$DEPDIR" && continue
17445 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17446 test -z "am__include" && continue
17447 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17448 # When using ansi2knr, U may be empty or an underscore; expand it
17449 U=`sed -n 's/^U = //p' < "$mf"`
17450 # Find all dependency output files, they are included files with
17451 # $(DEPDIR) in their names. We invoke sed twice because it is the
17452 # simplest approach to changing $(DEPDIR) to its actual value in the
17453 # expansion.
17454 for file in `sed -n "
17455 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17456 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17457 # Make sure the directory exists.
17458 test -f "$dirpart/$file" && continue
17459 fdir=`$as_dirname -- "$file" ||
17460$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17461 X"$file" : 'X\(//\)[^/]' \| \
17462 X"$file" : 'X\(//\)$' \| \
17463 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17464$as_echo X"$file" |
17465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17466 s//\1/
17467 q
17468 }
17469 /^X\(\/\/\)[^/].*/{
17470 s//\1/
17471 q
17472 }
17473 /^X\(\/\/\)$/{
17474 s//\1/
17475 q
17476 }
17477 /^X\(\/\).*/{
17478 s//\1/
17479 q
17480 }
17481 s/.*/./; q'`
17482 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17483 # echo "creating $dirpart/$file"
17484 echo '# dummy' > "$dirpart/$file"
17485 done
17486 done
17487}
17488 ;;
17489 "libtool":C)
17490
17491 # See if we are running on zsh, and set the options which allow our
17492 # commands through without removal of \ escapes.
17493 if test -n "${ZSH_VERSION+set}" ; then
17494 setopt NO_GLOB_SUBST
17495 fi
17496
17497 cfgfile="${ofile}T"
17498 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17499 $RM "$cfgfile"
17500
17501 cat <<_LT_EOF >> "$cfgfile"
17502#! $SHELL
17503
17504# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17505# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17506# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17507# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17508#
17509# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17510# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17511# Written by Gordon Matzigkeit, 1996
17512#
17513# This file is part of GNU Libtool.
17514#
17515# GNU Libtool is free software; you can redistribute it and/or
17516# modify it under the terms of the GNU General Public License as
17517# published by the Free Software Foundation; either version 2 of
17518# the License, or (at your option) any later version.
17519#
17520# As a special exception to the GNU General Public License,
17521# if you distribute this file as part of a program or library that
17522# is built using GNU Libtool, you may include this file under the
17523# same distribution terms that you use for the rest of that program.
17524#
17525# GNU Libtool is distributed in the hope that it will be useful,
17526# but WITHOUT ANY WARRANTY; without even the implied warranty of
17527# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17528# GNU General Public License for more details.
17529#
17530# You should have received a copy of the GNU General Public License
17531# along with GNU Libtool; see the file COPYING. If not, a copy
17532# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17533# obtained by writing to the Free Software Foundation, Inc.,
17534# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17535
17536
17537# The names of the tagged configurations supported by this script.
17538available_tags="GO "
17539
17540# ### BEGIN LIBTOOL CONFIG
17541
17542# A sed program that does not truncate output.
17543SED=$lt_SED
17544
17545# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17546Xsed="\$SED -e 1s/^X//"
17547
17548# A grep program that handles long lines.
17549GREP=$lt_GREP
17550
17551# An ERE matcher.
17552EGREP=$lt_EGREP
17553
17554# A literal string matcher.
17555FGREP=$lt_FGREP
17556
17557# Shell to use when invoking shell scripts.
17558SHELL=$lt_SHELL
17559
17560# An echo program that protects backslashes.
17561ECHO=$lt_ECHO
17562
17563# Which release of libtool.m4 was used?
17564macro_version=$macro_version
17565macro_revision=$macro_revision
17566
17567# Whether or not to build shared libraries.
17568build_libtool_libs=$enable_shared
17569
17570# Whether or not to build static libraries.
17571build_old_libs=$enable_static
17572
17573# What type of objects to build.
17574pic_mode=$pic_mode
17575
17576# Whether or not to optimize for fast installation.
17577fast_install=$enable_fast_install
17578
17579# The host system.
17580host_alias=$host_alias
17581host=$host
17582host_os=$host_os
17583
17584# The build system.
17585build_alias=$build_alias
17586build=$build
17587build_os=$build_os
17588
17589# A BSD- or MS-compatible name lister.
17590NM=$lt_NM
17591
17592# Whether we need soft or hard links.
17593LN_S=$lt_LN_S
17594
17595# What is the maximum length of a command?
17596max_cmd_len=$max_cmd_len
17597
17598# Object file suffix (normally "o").
17599objext=$ac_objext
17600
17601# Executable file suffix (normally "").
17602exeext=$exeext
17603
17604# whether the shell understands "unset".
17605lt_unset=$lt_unset
17606
17607# turn spaces into newlines.
17608SP2NL=$lt_lt_SP2NL
17609
17610# turn newlines into spaces.
17611NL2SP=$lt_lt_NL2SP
17612
17613# An object symbol dumper.
17614OBJDUMP=$lt_OBJDUMP
17615
17616# Method to check whether dependent libraries are shared objects.
17617deplibs_check_method=$lt_deplibs_check_method
17618
17619# Command to use when deplibs_check_method == "file_magic".
17620file_magic_cmd=$lt_file_magic_cmd
17621
17622# The archiver.
17623AR=$lt_AR
17624AR_FLAGS=$lt_AR_FLAGS
17625
17626# A symbol stripping program.
17627STRIP=$lt_STRIP
17628
17629# Commands used to install an old-style archive.
17630RANLIB=$lt_RANLIB
17631old_postinstall_cmds=$lt_old_postinstall_cmds
17632old_postuninstall_cmds=$lt_old_postuninstall_cmds
17633
17634# Whether to use a lock for old archive extraction.
17635lock_old_archive_extraction=$lock_old_archive_extraction
17636
17637# A C compiler.
17638LTCC=$lt_CC
17639
17640# LTCC compiler flags.
17641LTCFLAGS=$lt_CFLAGS
17642
17643# Take the output of nm and produce a listing of raw symbols and C names.
17644global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17645
17646# Transform the output of nm in a proper C declaration.
17647global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17648
17649# Transform the output of nm in a C name address pair.
17650global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17651
17652# Transform the output of nm in a C name address pair when lib prefix is needed.
17653global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17654
17655# The name of the directory that contains temporary libtool files.
17656objdir=$objdir
17657
17658# Used to examine libraries when file_magic_cmd begins with "file".
17659MAGIC_CMD=$MAGIC_CMD
17660
17661# Must we lock files when doing compilation?
17662need_locks=$lt_need_locks
17663
17664# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17665DSYMUTIL=$lt_DSYMUTIL
17666
17667# Tool to change global to local symbols on Mac OS X.
17668NMEDIT=$lt_NMEDIT
17669
17670# Tool to manipulate fat objects and archives on Mac OS X.
17671LIPO=$lt_LIPO
17672
17673# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17674OTOOL=$lt_OTOOL
17675
17676# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17677OTOOL64=$lt_OTOOL64
17678
17679# Old archive suffix (normally "a").
17680libext=$libext
17681
17682# Shared library suffix (normally ".so").
17683shrext_cmds=$lt_shrext_cmds
17684
17685# The commands to extract the exported symbol list from a shared archive.
17686extract_expsyms_cmds=$lt_extract_expsyms_cmds
17687
17688# Variables whose values should be saved in libtool wrapper scripts and
17689# restored at link time.
17690variables_saved_for_relink=$lt_variables_saved_for_relink
17691
17692# Do we need the "lib" prefix for modules?
17693need_lib_prefix=$need_lib_prefix
17694
17695# Do we need a version for libraries?
17696need_version=$need_version
17697
17698# Library versioning type.
17699version_type=$version_type
17700
17701# Shared library runtime path variable.
17702runpath_var=$runpath_var
17703
17704# Shared library path variable.
17705shlibpath_var=$shlibpath_var
17706
17707# Is shlibpath searched before the hard-coded library search path?
17708shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17709
17710# Format of library name prefix.
17711libname_spec=$lt_libname_spec
17712
17713# List of archive names. First name is the real one, the rest are links.
17714# The last name is the one that the linker finds with -lNAME
17715library_names_spec=$lt_library_names_spec
17716
17717# The coded name of the library, if different from the real name.
17718soname_spec=$lt_soname_spec
17719
17720# Permission mode override for installation of shared libraries.
17721install_override_mode=$lt_install_override_mode
17722
17723# Command to use after installation of a shared archive.
17724postinstall_cmds=$lt_postinstall_cmds
17725
17726# Command to use after uninstallation of a shared archive.
17727postuninstall_cmds=$lt_postuninstall_cmds
17728
17729# Commands used to finish a libtool library installation in a directory.
17730finish_cmds=$lt_finish_cmds
17731
17732# As "finish_cmds", except a single script fragment to be evaled but
17733# not shown.
17734finish_eval=$lt_finish_eval
17735
17736# Whether we should hardcode library paths into libraries.
17737hardcode_into_libs=$hardcode_into_libs
17738
17739# Compile-time system search path for libraries.
17740sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17741
17742# Run-time system search path for libraries.
17743sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17744
17745# Whether dlopen is supported.
17746dlopen_support=$enable_dlopen
17747
17748# Whether dlopen of programs is supported.
17749dlopen_self=$enable_dlopen_self
17750
17751# Whether dlopen of statically linked programs is supported.
17752dlopen_self_static=$enable_dlopen_self_static
17753
17754# Commands to strip libraries.
17755old_striplib=$lt_old_striplib
17756striplib=$lt_striplib
17757
17758
17759# The linker used to build libraries.
17760LD=$lt_LD
17761
17762# How to create reloadable object files.
17763reload_flag=$lt_reload_flag
17764reload_cmds=$lt_reload_cmds
17765
17766# Commands used to build an old-style archive.
17767old_archive_cmds=$lt_old_archive_cmds
17768
17769# A language specific compiler.
17770CC=$lt_compiler
17771
17772# Is the compiler the GNU compiler?
17773with_gcc=$GCC
17774
17775# Compiler flag to turn off builtin functions.
17776no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17777
17778# How to pass a linker flag through the compiler.
17779wl=$lt_lt_prog_compiler_wl
17780
17781# Additional compiler flags for building library objects.
17782pic_flag=$lt_lt_prog_compiler_pic
17783
17784# Compiler flag to prevent dynamic linking.
17785link_static_flag=$lt_lt_prog_compiler_static
17786
17787# Does compiler simultaneously support -c and -o options?
17788compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17789
17790# Whether or not to add -lc for building shared libraries.
17791build_libtool_need_lc=$archive_cmds_need_lc
17792
17793# Whether or not to disallow shared libs when runtime libs are static.
17794allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17795
17796# Compiler flag to allow reflexive dlopens.
17797export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17798
17799# Compiler flag to generate shared objects directly from archives.
17800whole_archive_flag_spec=$lt_whole_archive_flag_spec
17801
17802# Whether the compiler copes with passing no objects directly.
17803compiler_needs_object=$lt_compiler_needs_object
17804
17805# Create an old-style archive from a shared archive.
17806old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17807
17808# Create a temporary old-style archive to link instead of a shared archive.
17809old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17810
17811# Commands used to build a shared archive.
17812archive_cmds=$lt_archive_cmds
17813archive_expsym_cmds=$lt_archive_expsym_cmds
17814
17815# Commands used to build a loadable module if different from building
17816# a shared archive.
17817module_cmds=$lt_module_cmds
17818module_expsym_cmds=$lt_module_expsym_cmds
17819
17820# Whether we are building with GNU ld or not.
17821with_gnu_ld=$lt_with_gnu_ld
17822
17823# Flag that allows shared libraries with undefined symbols to be built.
17824allow_undefined_flag=$lt_allow_undefined_flag
17825
17826# Flag that enforces no undefined symbols.
17827no_undefined_flag=$lt_no_undefined_flag
17828
17829# Flag to hardcode \$libdir into a binary during linking.
17830# This must work even if \$libdir does not exist
17831hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17832
17833# If ld is used when linking, flag to hardcode \$libdir into a binary
17834# during linking. This must work even if \$libdir does not exist.
17835hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17836
17837# Whether we need a single "-rpath" flag with a separated argument.
17838hardcode_libdir_separator=$lt_hardcode_libdir_separator
17839
17840# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17841# DIR into the resulting binary.
17842hardcode_direct=$hardcode_direct
17843
17844# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17845# DIR into the resulting binary and the resulting library dependency is
17846# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17847# library is relocated.
17848hardcode_direct_absolute=$hardcode_direct_absolute
17849
17850# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17851# into the resulting binary.
17852hardcode_minus_L=$hardcode_minus_L
17853
17854# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17855# into the resulting binary.
17856hardcode_shlibpath_var=$hardcode_shlibpath_var
17857
17858# Set to "yes" if building a shared library automatically hardcodes DIR
17859# into the library and all subsequent libraries and executables linked
17860# against it.
17861hardcode_automatic=$hardcode_automatic
17862
17863# Set to yes if linker adds runtime paths of dependent libraries
17864# to runtime path list.
17865inherit_rpath=$inherit_rpath
17866
17867# Whether libtool must link a program against all its dependency libraries.
17868link_all_deplibs=$link_all_deplibs
17869
17870# Fix the shell variable \$srcfile for the compiler.
17871fix_srcfile_path=$lt_fix_srcfile_path
17872
17873# Set to "yes" if exported symbols are required.
17874always_export_symbols=$always_export_symbols
17875
17876# The commands to list exported symbols.
17877export_symbols_cmds=$lt_export_symbols_cmds
17878
17879# Symbols that should not be listed in the preloaded symbols.
17880exclude_expsyms=$lt_exclude_expsyms
17881
17882# Symbols that must always be exported.
17883include_expsyms=$lt_include_expsyms
17884
17885# Commands necessary for linking programs (against libraries) with templates.
17886prelink_cmds=$lt_prelink_cmds
17887
17888# Specify filename containing input files.
17889file_list_spec=$lt_file_list_spec
17890
17891# How to hardcode a shared library path into an executable.
17892hardcode_action=$hardcode_action
17893
17894# ### END LIBTOOL CONFIG
17895
17896_LT_EOF
17897
17898 case $host_os in
17899 aix3*)
17900 cat <<\_LT_EOF >> "$cfgfile"
17901# AIX sometimes has problems with the GCC collect2 program. For some
17902# reason, if we set the COLLECT_NAMES environment variable, the problems
17903# vanish in a puff of smoke.
17904if test "X${COLLECT_NAMES+set}" != Xset; then
17905 COLLECT_NAMES=
17906 export COLLECT_NAMES
17907fi
17908_LT_EOF
17909 ;;
17910 esac
17911
17912
17913ltmain="$ac_aux_dir/ltmain.sh"
17914
17915
17916 # We use sed instead of cat because bash on DJGPP gets confused if
17917 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17918 # text mode, it properly converts lines to CR/LF. This bash problem
17919 # is reportedly fixed, but why not run on old versions too?
17920 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17921 || (rm -f "$cfgfile"; exit 1)
17922
17923 case $xsi_shell in
17924 yes)
17925 cat << \_LT_EOF >> "$cfgfile"
17926
17927# func_dirname file append nondir_replacement
17928# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17929# otherwise set result to NONDIR_REPLACEMENT.
17930func_dirname ()
17931{
17932 case ${1} in
17933 */*) func_dirname_result="${1%/*}${2}" ;;
17934 * ) func_dirname_result="${3}" ;;
17935 esac
17936}
17937
17938# func_basename file
17939func_basename ()
17940{
17941 func_basename_result="${1##*/}"
17942}
17943
17944# func_dirname_and_basename file append nondir_replacement
17945# perform func_basename and func_dirname in a single function
17946# call:
17947# dirname: Compute the dirname of FILE. If nonempty,
17948# add APPEND to the result, otherwise set result
17949# to NONDIR_REPLACEMENT.
17950# value returned in "$func_dirname_result"
17951# basename: Compute filename of FILE.
17952# value retuned in "$func_basename_result"
17953# Implementation must be kept synchronized with func_dirname
17954# and func_basename. For efficiency, we do not delegate to
17955# those functions but instead duplicate the functionality here.
17956func_dirname_and_basename ()
17957{
17958 case ${1} in
17959 */*) func_dirname_result="${1%/*}${2}" ;;
17960 * ) func_dirname_result="${3}" ;;
17961 esac
17962 func_basename_result="${1##*/}"
17963}
17964
17965# func_stripname prefix suffix name
17966# strip PREFIX and SUFFIX off of NAME.
17967# PREFIX and SUFFIX must not contain globbing or regex special
17968# characters, hashes, percent signs, but SUFFIX may contain a leading
17969# dot (in which case that matches only a dot).
17970func_stripname ()
17971{
17972 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17973 # positional parameters, so assign one to ordinary parameter first.
17974 func_stripname_result=${3}
17975 func_stripname_result=${func_stripname_result#"${1}"}
17976 func_stripname_result=${func_stripname_result%"${2}"}
17977}
17978
17979# func_opt_split
17980func_opt_split ()
17981{
17982 func_opt_split_opt=${1%%=*}
17983 func_opt_split_arg=${1#*=}
17984}
17985
17986# func_lo2o object
17987func_lo2o ()
17988{
17989 case ${1} in
17990 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17991 *) func_lo2o_result=${1} ;;
17992 esac
17993}
17994
17995# func_xform libobj-or-source
17996func_xform ()
17997{
17998 func_xform_result=${1%.*}.lo
17999}
18000
18001# func_arith arithmetic-term...
18002func_arith ()
18003{
18004 func_arith_result=$(( $* ))
18005}
18006
18007# func_len string
18008# STRING may not start with a hyphen.
18009func_len ()
18010{
18011 func_len_result=${#1}
18012}
18013
18014_LT_EOF
18015 ;;
18016 *) # Bourne compatible functions.
18017 cat << \_LT_EOF >> "$cfgfile"
18018
18019# func_dirname file append nondir_replacement
18020# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18021# otherwise set result to NONDIR_REPLACEMENT.
18022func_dirname ()
18023{
18024 # Extract subdirectory from the argument.
18025 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18026 if test "X$func_dirname_result" = "X${1}"; then
18027 func_dirname_result="${3}"
18028 else
18029 func_dirname_result="$func_dirname_result${2}"
18030 fi
18031}
18032
18033# func_basename file
18034func_basename ()
18035{
18036 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18037}
18038
18039
18040# func_stripname prefix suffix name
18041# strip PREFIX and SUFFIX off of NAME.
18042# PREFIX and SUFFIX must not contain globbing or regex special
18043# characters, hashes, percent signs, but SUFFIX may contain a leading
18044# dot (in which case that matches only a dot).
18045# func_strip_suffix prefix name
18046func_stripname ()
18047{
18048 case ${2} in
18049 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18050 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18051 esac
18052}
18053
18054# sed scripts:
18055my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18056my_sed_long_arg='1s/^-[^=]*=//'
18057
18058# func_opt_split
18059func_opt_split ()
18060{
18061 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18062 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18063}
18064
18065# func_lo2o object
18066func_lo2o ()
18067{
18068 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18069}
18070
18071# func_xform libobj-or-source
18072func_xform ()
18073{
18074 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18075}
18076
18077# func_arith arithmetic-term...
18078func_arith ()
18079{
18080 func_arith_result=`expr "$@"`
18081}
18082
18083# func_len string
18084# STRING may not start with a hyphen.
18085func_len ()
18086{
18087 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18088}
18089
18090_LT_EOF
18091esac
18092
18093case $lt_shell_append in
18094 yes)
18095 cat << \_LT_EOF >> "$cfgfile"
18096
18097# func_append var value
18098# Append VALUE to the end of shell variable VAR.
18099func_append ()
18100{
18101 eval "$1+=\$2"
18102}
18103_LT_EOF
18104 ;;
18105 *)
18106 cat << \_LT_EOF >> "$cfgfile"
18107
18108# func_append var value
18109# Append VALUE to the end of shell variable VAR.
18110func_append ()
18111{
18112 eval "$1=\$$1\$2"
18113}
18114
18115_LT_EOF
18116 ;;
18117 esac
18118
18119
18120 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18121 || (rm -f "$cfgfile"; exit 1)
18122
18123 mv -f "$cfgfile" "$ofile" ||
18124 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18125 chmod +x "$ofile"
18126
18127
18128 cat <<_LT_EOF >> "$ofile"
18129
18130# ### BEGIN LIBTOOL TAG CONFIG: GO
18131
18132# The linker used to build libraries.
18133LD=$lt_LD_GO
18134
18135# How to create reloadable object files.
18136reload_flag=$lt_reload_flag_GO
18137reload_cmds=$lt_reload_cmds_GO
18138
18139# Commands used to build an old-style archive.
18140old_archive_cmds=$lt_old_archive_cmds_GO
18141
18142# A language specific compiler.
18143CC=$lt_compiler_GO
18144
18145# Is the compiler the GNU compiler?
18146with_gcc=$GCC_GO
18147
18148# Compiler flag to turn off builtin functions.
18149no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
18150
18151# How to pass a linker flag through the compiler.
18152wl=$lt_lt_prog_compiler_wl_GO
18153
18154# Additional compiler flags for building library objects.
18155pic_flag=$lt_lt_prog_compiler_pic_GO
18156
18157# Compiler flag to prevent dynamic linking.
18158link_static_flag=$lt_lt_prog_compiler_static_GO
18159
18160# Does compiler simultaneously support -c and -o options?
18161compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
18162
18163# Whether or not to add -lc for building shared libraries.
18164build_libtool_need_lc=$archive_cmds_need_lc_GO
18165
18166# Whether or not to disallow shared libs when runtime libs are static.
18167allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
18168
18169# Compiler flag to allow reflexive dlopens.
18170export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
18171
18172# Compiler flag to generate shared objects directly from archives.
18173whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
18174
18175# Whether the compiler copes with passing no objects directly.
18176compiler_needs_object=$lt_compiler_needs_object_GO
18177
18178# Create an old-style archive from a shared archive.
18179old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
18180
18181# Create a temporary old-style archive to link instead of a shared archive.
18182old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
18183
18184# Commands used to build a shared archive.
18185archive_cmds=$lt_archive_cmds_GO
18186archive_expsym_cmds=$lt_archive_expsym_cmds_GO
18187
18188# Commands used to build a loadable module if different from building
18189# a shared archive.
18190module_cmds=$lt_module_cmds_GO
18191module_expsym_cmds=$lt_module_expsym_cmds_GO
18192
18193# Whether we are building with GNU ld or not.
18194with_gnu_ld=$lt_with_gnu_ld_GO
18195
18196# Flag that allows shared libraries with undefined symbols to be built.
18197allow_undefined_flag=$lt_allow_undefined_flag_GO
18198
18199# Flag that enforces no undefined symbols.
18200no_undefined_flag=$lt_no_undefined_flag_GO
18201
18202# Flag to hardcode \$libdir into a binary during linking.
18203# This must work even if \$libdir does not exist
18204hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
18205
18206# If ld is used when linking, flag to hardcode \$libdir into a binary
18207# during linking. This must work even if \$libdir does not exist.
18208hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
18209
18210# Whether we need a single "-rpath" flag with a separated argument.
18211hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
18212
18213# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18214# DIR into the resulting binary.
18215hardcode_direct=$hardcode_direct_GO
18216
18217# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18218# DIR into the resulting binary and the resulting library dependency is
18219# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18220# library is relocated.
18221hardcode_direct_absolute=$hardcode_direct_absolute_GO
18222
18223# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18224# into the resulting binary.
18225hardcode_minus_L=$hardcode_minus_L_GO
18226
18227# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18228# into the resulting binary.
18229hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
18230
18231# Set to "yes" if building a shared library automatically hardcodes DIR
18232# into the library and all subsequent libraries and executables linked
18233# against it.
18234hardcode_automatic=$hardcode_automatic_GO
18235
18236# Set to yes if linker adds runtime paths of dependent libraries
18237# to runtime path list.
18238inherit_rpath=$inherit_rpath_GO
18239
18240# Whether libtool must link a program against all its dependency libraries.
18241link_all_deplibs=$link_all_deplibs_GO
18242
18243# Fix the shell variable \$srcfile for the compiler.
18244fix_srcfile_path=$lt_fix_srcfile_path_GO
18245
18246# Set to "yes" if exported symbols are required.
18247always_export_symbols=$always_export_symbols_GO
18248
18249# The commands to list exported symbols.
18250export_symbols_cmds=$lt_export_symbols_cmds_GO
18251
18252# Symbols that should not be listed in the preloaded symbols.
18253exclude_expsyms=$lt_exclude_expsyms_GO
18254
18255# Symbols that must always be exported.
18256include_expsyms=$lt_include_expsyms_GO
18257
18258# Commands necessary for linking programs (against libraries) with templates.
18259prelink_cmds=$lt_prelink_cmds_GO
18260
18261# Specify filename containing input files.
18262file_list_spec=$lt_file_list_spec_GO
18263
18264# How to hardcode a shared library path into an executable.
18265hardcode_action=$hardcode_action_GO
18266
18267# ### END LIBTOOL TAG CONFIG: GO
18268_LT_EOF
18269
18270 ;;
18271 "default":C) if test -n "$CONFIG_FILES"; then
18272 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
18273 # that multilib installs will end up installed in the correct place.
18274 # The testsuite needs it for multilib-aware ABI baseline files.
18275 # To work around this not being passed down from config-ml.in ->
18276 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
18277 # append it here. Only modify Makefiles that have just been created.
18278 #
18279 # Also, get rid of this simulated-VPATH thing that automake does.
18280 cat > vpsed << \_EOF
18281s!`test -f '$<' || echo '$(srcdir)/'`!!
18282_EOF
18283 for i in $SUBDIRS; do
18284 case $CONFIG_FILES in
18285 *${i}/Makefile*)
18286 #echo "Adding MULTISUBDIR to $i/Makefile"
18287 sed -f vpsed $i/Makefile > tmp
18288 grep '^MULTISUBDIR =' Makefile >> tmp
18289 mv tmp $i/Makefile
18290 ;;
18291 esac
18292 done
18293 rm vpsed
18294 fi
18295 ;;
18296
18297 esac
18298done # for ac_tag
18299
18300
18301as_fn_exit 0
18302_ACEOF
18303ac_clean_files=$ac_clean_files_save
18304
18305test $ac_write_fail = 0 ||
18306 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18307
18308
18309# configure is writing to config.log, and then calls config.status.
18310# config.status does its own redirection, appending to config.log.
18311# Unfortunately, on DOS this fails, as config.log is still kept open
18312# by configure, so config.status won't be able to write to it; its
18313# output is simply discarded. So we exec the FD to /dev/null,
18314# effectively closing config.log, so it can be properly (re)opened and
18315# appended to by config.status. When coming back to configure, we
18316# need to make the FD available again.
18317if test "$no_create" != yes; then
18318 ac_cs_success=:
18319 ac_config_status_args=
18320 test "$silent" = yes &&
18321 ac_config_status_args="$ac_config_status_args --quiet"
18322 exec 5>/dev/null
18323 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18324 exec 5>>config.log
18325 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18326 # would make configure fail if this is the last instruction.
18327 $ac_cs_success || as_fn_exit $?
18328fi
18329if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18331$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18332fi
18333