]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgo/configure
config/:
[thirdparty/gcc.git] / libgo / configure
CommitLineData
e440a328 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64 for package-unused version-unused.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183else
184 as_have_required=no
185fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206fi
207fi
208 done;;
209 esac
210 as_found=false
211done
212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215fi; }
216IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238$0: including any error possibly output before this
239$0: message. Then install a modern shell, or manually run
240$0: the script under such a shell if you do have one."
241 fi
242 exit 1
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260 { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_fn_set_status ()
268{
269 return $1
270} # as_fn_set_status
271
272# as_fn_exit STATUS
273# -----------------
274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275as_fn_exit ()
276{
277 set +e
278 as_fn_set_status $1
279 exit $1
280} # as_fn_exit
281
282# as_fn_mkdir_p
283# -------------
284# Create "$as_dir" as a directory, including parents if necessary.
285as_fn_mkdir_p ()
286{
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304$as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328} # as_fn_mkdir_p
329# as_fn_append VAR VALUE
330# ----------------------
331# Append the text in VALUE to the end of the definition contained in VAR. Take
332# advantage of any shell optimizations that allow amortized linear growth over
333# repeated appends, instead of the typical quadratic growth present in naive
334# implementations.
335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345fi # as_fn_append
346
347# as_fn_arith ARG...
348# ------------------
349# Perform arithmetic evaluation on the ARGs, and store the result in the
350# global $as_val. Take advantage of shells that can avoid forks. The arguments
351# must be portable across $(()) and expr.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362fi # as_fn_arith
363
364
365# as_fn_error ERROR [LINENO LOG_FD]
366# ---------------------------------
367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369# script with status $?, using 1 if that was 0.
370as_fn_error ()
371{
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379} # as_fn_error
380
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384else
385 as_expr=false
386fi
387
388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390else
391 as_basename=false
392fi
393
394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396else
397 as_dirname=false
398fi
399
400as_me=`$as_basename -- "$0" ||
401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404$as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419# Avoid depending upon Character Ranges.
420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423as_cr_digits='0123456789'
424as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456}
457
458ECHO_C= ECHO_N= ECHO_T=
459case `echo -n x` in #(((((
460-n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467*)
468 ECHO_N='-n';;
469esac
470
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477fi
478if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492else
493 as_ln_s='cp -p'
494fi
495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
497
498if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503fi
504
505if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525fi
526as_executable_p=$as_test_x
527
528# Sed expression to map a string onto a valid CPP name.
529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531# Sed expression to map a string onto a valid variable name.
532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537exec 7<&0 </dev/null 6>&1
538
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544#
545# Initializations.
546#
547ac_default_prefix=/usr/local
548ac_clean_files=
549ac_config_libobj_dir=.
550LIBOBJS=
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
555
556# Identity of this package.
557PACKAGE_NAME='package-unused'
558PACKAGE_TARNAME='libgo'
559PACKAGE_VERSION='version-unused'
560PACKAGE_STRING='package-unused version-unused'
561PACKAGE_BUGREPORT=''
562PACKAGE_URL=''
563
564ac_unique_file="Makefile.am"
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
568#ifdef HAVE_SYS_TYPES_H
569# include <sys/types.h>
570#endif
571#ifdef HAVE_SYS_STAT_H
572# include <sys/stat.h>
573#endif
574#ifdef STDC_HEADERS
575# include <stdlib.h>
576# include <stddef.h>
577#else
578# ifdef HAVE_STDLIB_H
579# include <stdlib.h>
580# endif
581#endif
582#ifdef HAVE_STRING_H
583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584# include <memory.h>
585# endif
586# include <string.h>
587#endif
588#ifdef HAVE_STRINGS_H
589# include <strings.h>
590#endif
591#ifdef HAVE_INTTYPES_H
592# include <inttypes.h>
593#endif
594#ifdef HAVE_STDINT_H
595# include <stdint.h>
596#endif
597#ifdef HAVE_UNISTD_H
598# include <unistd.h>
599#endif"
600
601ac_subst_vars='am__EXEEXT_FALSE
602am__EXEEXT_TRUE
603LTLIBOBJS
604LIBOBJS
d772e63b 605STRUCT_EPOLL_EVENT_FD_OFFSET
606SIZEOF_STRUCT_EPOLL_EVENT
e440a328 607STRINGOPS_FLAG
37d6b690 608HAVE_WAIT4_FALSE
609HAVE_WAIT4_TRUE
ccd3f476 610HAVE_STRERROR_R_FALSE
611HAVE_STRERROR_R_TRUE
e440a328 612HAVE_SYS_MMAN_H_FALSE
613HAVE_SYS_MMAN_H_TRUE
f555a9df 614PTHREAD_LIBS
615PTHREAD_CFLAGS
cea7ac49 616NET_LIBS
7d17fab3 617MATH_LIBS
e440a328 618USING_SPLIT_STACK_FALSE
619USING_SPLIT_STACK_TRUE
620SPLIT_STACK
69db433d 621OSCFLAGS
d477de41 622GO_SYSCALL_OS_ARCH_FILE
623GO_SYSCALL_OS_FILE
624GO_LIBCALL_OS_ARCH_FILE
625GO_LIBCALL_OS_FILE
7731bf71 626GOARCH
e440a328 627LIBGO_IS_X86_64_FALSE
628LIBGO_IS_X86_64_TRUE
8c846e21 629LIBGO_IS_SPARC64_FALSE
630LIBGO_IS_SPARC64_TRUE
cea7ac49 631LIBGO_IS_SPARC_FALSE
632LIBGO_IS_SPARC_TRUE
8fb241fa 633LIBGO_IS_PPC64_FALSE
634LIBGO_IS_PPC64_TRUE
635LIBGO_IS_PPC_FALSE
636LIBGO_IS_PPC_TRUE
fa5e552e 637LIBGO_IS_MIPSO64_FALSE
638LIBGO_IS_MIPSO64_TRUE
639LIBGO_IS_MIPSN64_FALSE
640LIBGO_IS_MIPSN64_TRUE
641LIBGO_IS_MIPSN32_FALSE
642LIBGO_IS_MIPSN32_TRUE
643LIBGO_IS_MIPSO32_FALSE
644LIBGO_IS_MIPSO32_TRUE
8fb241fa 645LIBGO_IS_MIPS_FALSE
646LIBGO_IS_MIPS_TRUE
647LIBGO_IS_M68K_FALSE
648LIBGO_IS_M68K_TRUE
cea7ac49 649LIBGO_IS_ARM_FALSE
650LIBGO_IS_ARM_TRUE
16dc3e4d 651LIBGO_IS_ALPHA_FALSE
652LIBGO_IS_ALPHA_TRUE
e440a328 653LIBGO_IS_386_FALSE
654LIBGO_IS_386_TRUE
7731bf71 655GOOS
cea7ac49 656LIBGO_IS_SOLARIS_FALSE
657LIBGO_IS_SOLARIS_TRUE
e440a328 658LIBGO_IS_RTEMS_FALSE
659LIBGO_IS_RTEMS_TRUE
660LIBGO_IS_LINUX_FALSE
661LIBGO_IS_LINUX_TRUE
524b52f8 662LIBGO_IS_IRIX_FALSE
663LIBGO_IS_IRIX_TRUE
e440a328 664LIBGO_IS_FREEBSD_FALSE
665LIBGO_IS_FREEBSD_TRUE
666LIBGO_IS_DARWIN_FALSE
667LIBGO_IS_DARWIN_TRUE
4180345a 668go_include
e440a328 669LIBFFIINCS
670LIBFFI
671glibgo_toolexeclibdir
672glibgo_toolexecdir
673glibgo_prefixdir
674WERROR
675WARN_FLAGS
a27e1015 676CC_FOR_BUILD
e440a328 677enable_static
678enable_shared
679CPP
680OTOOL64
681OTOOL
682LIPO
683NMEDIT
684DSYMUTIL
685AR
686OBJDUMP
687LN_S
688NM
689ac_ct_DUMPBIN
690DUMPBIN
691LIBTOOL
692OBJCOPY
693RANLIB
694LD
695FGREP
696EGREP
697GREP
698SED
699MAINT
700MAINTAINER_MODE_FALSE
701MAINTAINER_MODE_TRUE
702GOCFLAGS
703GOC
704am__fastdepCC_FALSE
705am__fastdepCC_TRUE
706CCDEPMODE
707AMDEPBACKSLASH
708AMDEP_FALSE
709AMDEP_TRUE
710am__quote
711am__include
712DEPDIR
713OBJEXT
714EXEEXT
715ac_ct_CC
716CPPFLAGS
717LDFLAGS
718CFLAGS
719CC
720am__untar
721am__tar
722AMTAR
723am__leading_dot
724SET_MAKE
725AWK
726mkdir_p
727MKDIR_P
728INSTALL_STRIP_PROGRAM
729STRIP
730install_sh
731MAKEINFO
732AUTOHEADER
733AUTOMAKE
734AUTOCONF
735ACLOCAL
736VERSION
737PACKAGE
738CYGPATH_W
739am__isrc
740INSTALL_DATA
741INSTALL_SCRIPT
742INSTALL_PROGRAM
743target_os
744target_vendor
745target_cpu
746target
747host_os
748host_vendor
749host_cpu
750host
751build_os
752build_vendor
753build_cpu
754build
755multi_basedir
756libtool_VERSION
757target_alias
758host_alias
759build_alias
760LIBS
761ECHO_T
762ECHO_N
763ECHO_C
764DEFS
765mandir
766localedir
767libdir
768psdir
769pdfdir
770dvidir
771htmldir
772infodir
773docdir
774oldincludedir
775includedir
776localstatedir
777sharedstatedir
778sysconfdir
779datadir
780datarootdir
781libexecdir
782sbindir
783bindir
784program_transform_name
785prefix
786exec_prefix
787PACKAGE_URL
788PACKAGE_BUGREPORT
789PACKAGE_STRING
790PACKAGE_VERSION
791PACKAGE_TARNAME
792PACKAGE_NAME
793PATH_SEPARATOR
794SHELL'
795ac_subst_files=''
796ac_user_opts='
797enable_option_checking
798enable_multilib
799enable_dependency_tracking
800enable_maintainer_mode
801with_gnu_ld
802enable_shared
803enable_static
804with_pic
805enable_fast_install
806enable_libtool_lock
807enable_version_specific_runtime_libs
808with_libffi
809with_system_libunwind
c0dd1a83 810enable_sjlj_exceptions
e440a328 811'
812 ac_precious_vars='build_alias
813host_alias
814target_alias
815CPP
816CPPFLAGS'
817
818
819# Initialize some variables set by options.
820ac_init_help=
821ac_init_version=false
822ac_unrecognized_opts=
823ac_unrecognized_sep=
824# The variables have the same names as the options, with
825# dashes changed to underlines.
826cache_file=/dev/null
827exec_prefix=NONE
828no_create=
829no_recursion=
830prefix=NONE
831program_prefix=NONE
832program_suffix=NONE
833program_transform_name=s,x,x,
834silent=
835site=
836srcdir=
837verbose=
838x_includes=NONE
839x_libraries=NONE
840
841# Installation directory options.
842# These are left unexpanded so users can "make install exec_prefix=/foo"
843# and all the variables that are supposed to be based on exec_prefix
844# by default will actually change.
845# Use braces instead of parens because sh, perl, etc. also accept them.
846# (The list follows the same order as the GNU Coding Standards.)
847bindir='${exec_prefix}/bin'
848sbindir='${exec_prefix}/sbin'
849libexecdir='${exec_prefix}/libexec'
850datarootdir='${prefix}/share'
851datadir='${datarootdir}'
852sysconfdir='${prefix}/etc'
853sharedstatedir='${prefix}/com'
854localstatedir='${prefix}/var'
855includedir='${prefix}/include'
856oldincludedir='/usr/include'
857docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858infodir='${datarootdir}/info'
859htmldir='${docdir}'
860dvidir='${docdir}'
861pdfdir='${docdir}'
862psdir='${docdir}'
863libdir='${exec_prefix}/lib'
864localedir='${datarootdir}/locale'
865mandir='${datarootdir}/man'
866
867ac_prev=
868ac_dashdash=
869for ac_option
870do
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
873 eval $ac_prev=\$ac_option
874 ac_prev=
875 continue
876 fi
877
878 case $ac_option in
879 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880 *) ac_optarg=yes ;;
881 esac
882
883 # Accept the important Cygnus configure options, so we can diagnose typos.
884
885 case $ac_dashdash$ac_option in
886 --)
887 ac_dashdash=yes ;;
888
889 -bindir | --bindir | --bindi | --bind | --bin | --bi)
890 ac_prev=bindir ;;
891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892 bindir=$ac_optarg ;;
893
894 -build | --build | --buil | --bui | --bu)
895 ac_prev=build_alias ;;
896 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897 build_alias=$ac_optarg ;;
898
899 -cache-file | --cache-file | --cache-fil | --cache-fi \
900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901 ac_prev=cache_file ;;
902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904 cache_file=$ac_optarg ;;
905
906 --config-cache | -C)
907 cache_file=config.cache ;;
908
909 -datadir | --datadir | --datadi | --datad)
910 ac_prev=datadir ;;
911 -datadir=* | --datadir=* | --datadi=* | --datad=*)
912 datadir=$ac_optarg ;;
913
914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915 | --dataroo | --dataro | --datar)
916 ac_prev=datarootdir ;;
917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919 datarootdir=$ac_optarg ;;
920
921 -disable-* | --disable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error "invalid feature name: $ac_useropt"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
929 *"
930"enable_$ac_useropt"
931"*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
934 esac
935 eval enable_$ac_useropt=no ;;
936
937 -docdir | --docdir | --docdi | --doc | --do)
938 ac_prev=docdir ;;
939 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
940 docdir=$ac_optarg ;;
941
942 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
943 ac_prev=dvidir ;;
944 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
945 dvidir=$ac_optarg ;;
946
947 -enable-* | --enable-*)
948 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
949 # Reject names that are not valid shell variable names.
950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951 as_fn_error "invalid feature name: $ac_useropt"
952 ac_useropt_orig=$ac_useropt
953 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954 case $ac_user_opts in
955 *"
956"enable_$ac_useropt"
957"*) ;;
958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
959 ac_unrecognized_sep=', ';;
960 esac
961 eval enable_$ac_useropt=\$ac_optarg ;;
962
963 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
964 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
965 | --exec | --exe | --ex)
966 ac_prev=exec_prefix ;;
967 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
968 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
969 | --exec=* | --exe=* | --ex=*)
970 exec_prefix=$ac_optarg ;;
971
972 -gas | --gas | --ga | --g)
973 # Obsolete; use --with-gas.
974 with_gas=yes ;;
975
976 -help | --help | --hel | --he | -h)
977 ac_init_help=long ;;
978 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
979 ac_init_help=recursive ;;
980 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
981 ac_init_help=short ;;
982
983 -host | --host | --hos | --ho)
984 ac_prev=host_alias ;;
985 -host=* | --host=* | --hos=* | --ho=*)
986 host_alias=$ac_optarg ;;
987
988 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
989 ac_prev=htmldir ;;
990 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
991 | --ht=*)
992 htmldir=$ac_optarg ;;
993
994 -includedir | --includedir | --includedi | --included | --include \
995 | --includ | --inclu | --incl | --inc)
996 ac_prev=includedir ;;
997 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
998 | --includ=* | --inclu=* | --incl=* | --inc=*)
999 includedir=$ac_optarg ;;
1000
1001 -infodir | --infodir | --infodi | --infod | --info | --inf)
1002 ac_prev=infodir ;;
1003 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1004 infodir=$ac_optarg ;;
1005
1006 -libdir | --libdir | --libdi | --libd)
1007 ac_prev=libdir ;;
1008 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1009 libdir=$ac_optarg ;;
1010
1011 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1012 | --libexe | --libex | --libe)
1013 ac_prev=libexecdir ;;
1014 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1015 | --libexe=* | --libex=* | --libe=*)
1016 libexecdir=$ac_optarg ;;
1017
1018 -localedir | --localedir | --localedi | --localed | --locale)
1019 ac_prev=localedir ;;
1020 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1021 localedir=$ac_optarg ;;
1022
1023 -localstatedir | --localstatedir | --localstatedi | --localstated \
1024 | --localstate | --localstat | --localsta | --localst | --locals)
1025 ac_prev=localstatedir ;;
1026 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1027 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1028 localstatedir=$ac_optarg ;;
1029
1030 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1031 ac_prev=mandir ;;
1032 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1033 mandir=$ac_optarg ;;
1034
1035 -nfp | --nfp | --nf)
1036 # Obsolete; use --without-fp.
1037 with_fp=no ;;
1038
1039 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1040 | --no-cr | --no-c | -n)
1041 no_create=yes ;;
1042
1043 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1044 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1045 no_recursion=yes ;;
1046
1047 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1048 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1049 | --oldin | --oldi | --old | --ol | --o)
1050 ac_prev=oldincludedir ;;
1051 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1052 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1053 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1054 oldincludedir=$ac_optarg ;;
1055
1056 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1057 ac_prev=prefix ;;
1058 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1059 prefix=$ac_optarg ;;
1060
1061 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1062 | --program-pre | --program-pr | --program-p)
1063 ac_prev=program_prefix ;;
1064 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1065 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1066 program_prefix=$ac_optarg ;;
1067
1068 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1069 | --program-suf | --program-su | --program-s)
1070 ac_prev=program_suffix ;;
1071 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1072 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1073 program_suffix=$ac_optarg ;;
1074
1075 -program-transform-name | --program-transform-name \
1076 | --program-transform-nam | --program-transform-na \
1077 | --program-transform-n | --program-transform- \
1078 | --program-transform | --program-transfor \
1079 | --program-transfo | --program-transf \
1080 | --program-trans | --program-tran \
1081 | --progr-tra | --program-tr | --program-t)
1082 ac_prev=program_transform_name ;;
1083 -program-transform-name=* | --program-transform-name=* \
1084 | --program-transform-nam=* | --program-transform-na=* \
1085 | --program-transform-n=* | --program-transform-=* \
1086 | --program-transform=* | --program-transfor=* \
1087 | --program-transfo=* | --program-transf=* \
1088 | --program-trans=* | --program-tran=* \
1089 | --progr-tra=* | --program-tr=* | --program-t=*)
1090 program_transform_name=$ac_optarg ;;
1091
1092 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1093 ac_prev=pdfdir ;;
1094 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1095 pdfdir=$ac_optarg ;;
1096
1097 -psdir | --psdir | --psdi | --psd | --ps)
1098 ac_prev=psdir ;;
1099 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1100 psdir=$ac_optarg ;;
1101
1102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1103 | -silent | --silent | --silen | --sile | --sil)
1104 silent=yes ;;
1105
1106 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1107 ac_prev=sbindir ;;
1108 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1109 | --sbi=* | --sb=*)
1110 sbindir=$ac_optarg ;;
1111
1112 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1113 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1114 | --sharedst | --shareds | --shared | --share | --shar \
1115 | --sha | --sh)
1116 ac_prev=sharedstatedir ;;
1117 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1118 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1119 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1120 | --sha=* | --sh=*)
1121 sharedstatedir=$ac_optarg ;;
1122
1123 -site | --site | --sit)
1124 ac_prev=site ;;
1125 -site=* | --site=* | --sit=*)
1126 site=$ac_optarg ;;
1127
1128 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1129 ac_prev=srcdir ;;
1130 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1131 srcdir=$ac_optarg ;;
1132
1133 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1134 | --syscon | --sysco | --sysc | --sys | --sy)
1135 ac_prev=sysconfdir ;;
1136 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1137 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1138 sysconfdir=$ac_optarg ;;
1139
1140 -target | --target | --targe | --targ | --tar | --ta | --t)
1141 ac_prev=target_alias ;;
1142 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1143 target_alias=$ac_optarg ;;
1144
1145 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1146 verbose=yes ;;
1147
1148 -version | --version | --versio | --versi | --vers | -V)
1149 ac_init_version=: ;;
1150
1151 -with-* | --with-*)
1152 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155 as_fn_error "invalid package name: $ac_useropt"
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1159 *"
1160"with_$ac_useropt"
1161"*) ;;
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
1164 esac
1165 eval with_$ac_useropt=\$ac_optarg ;;
1166
1167 -without-* | --without-*)
1168 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 as_fn_error "invalid package name: $ac_useropt"
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1175 *"
1176"with_$ac_useropt"
1177"*) ;;
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1180 esac
1181 eval with_$ac_useropt=no ;;
1182
1183 --x)
1184 # Obsolete; use --with-x.
1185 with_x=yes ;;
1186
1187 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1188 | --x-incl | --x-inc | --x-in | --x-i)
1189 ac_prev=x_includes ;;
1190 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1191 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1192 x_includes=$ac_optarg ;;
1193
1194 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1195 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1196 ac_prev=x_libraries ;;
1197 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1198 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1199 x_libraries=$ac_optarg ;;
1200
1201 -*) as_fn_error "unrecognized option: \`$ac_option'
1202Try \`$0 --help' for more information."
1203 ;;
1204
1205 *=*)
1206 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1207 # Reject names that are not valid shell variable names.
1208 case $ac_envvar in #(
1209 '' | [0-9]* | *[!_$as_cr_alnum]* )
1210 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1211 esac
1212 eval $ac_envvar=\$ac_optarg
1213 export $ac_envvar ;;
1214
1215 *)
1216 # FIXME: should be removed in autoconf 3.0.
1217 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1218 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1219 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1220 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1221 ;;
1222
1223 esac
1224done
1225
1226if test -n "$ac_prev"; then
1227 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1228 as_fn_error "missing argument to $ac_option"
1229fi
1230
1231if test -n "$ac_unrecognized_opts"; then
1232 case $enable_option_checking in
1233 no) ;;
1234 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1235 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1236 esac
1237fi
1238
1239# Check all directory arguments for consistency.
1240for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1241 datadir sysconfdir sharedstatedir localstatedir includedir \
1242 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1243 libdir localedir mandir
1244do
1245 eval ac_val=\$$ac_var
1246 # Remove trailing slashes.
1247 case $ac_val in
1248 */ )
1249 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1250 eval $ac_var=\$ac_val;;
1251 esac
1252 # Be sure to have absolute directory names.
1253 case $ac_val in
1254 [\\/$]* | ?:[\\/]* ) continue;;
1255 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1256 esac
1257 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1258done
1259
1260# There might be people who depend on the old broken behavior: `$host'
1261# used to hold the argument of --host etc.
1262# FIXME: To remove some day.
1263build=$build_alias
1264host=$host_alias
1265target=$target_alias
1266
1267# FIXME: To remove some day.
1268if test "x$host_alias" != x; then
1269 if test "x$build_alias" = x; then
1270 cross_compiling=maybe
1271 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1272 If a cross compiler is detected then cross compile mode will be used." >&2
1273 elif test "x$build_alias" != "x$host_alias"; then
1274 cross_compiling=yes
1275 fi
1276fi
1277
1278ac_tool_prefix=
1279test -n "$host_alias" && ac_tool_prefix=$host_alias-
1280
1281test "$silent" = yes && exec 6>/dev/null
1282
1283
1284ac_pwd=`pwd` && test -n "$ac_pwd" &&
1285ac_ls_di=`ls -di .` &&
1286ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1287 as_fn_error "working directory cannot be determined"
1288test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1289 as_fn_error "pwd does not report name of working directory"
1290
1291
1292# Find the source files, if location was not specified.
1293if test -z "$srcdir"; then
1294 ac_srcdir_defaulted=yes
1295 # Try the directory containing this script, then the parent directory.
1296 ac_confdir=`$as_dirname -- "$as_myself" ||
1297$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1298 X"$as_myself" : 'X\(//\)[^/]' \| \
1299 X"$as_myself" : 'X\(//\)$' \| \
1300 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1301$as_echo X"$as_myself" |
1302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1303 s//\1/
1304 q
1305 }
1306 /^X\(\/\/\)[^/].*/{
1307 s//\1/
1308 q
1309 }
1310 /^X\(\/\/\)$/{
1311 s//\1/
1312 q
1313 }
1314 /^X\(\/\).*/{
1315 s//\1/
1316 q
1317 }
1318 s/.*/./; q'`
1319 srcdir=$ac_confdir
1320 if test ! -r "$srcdir/$ac_unique_file"; then
1321 srcdir=..
1322 fi
1323else
1324 ac_srcdir_defaulted=no
1325fi
1326if test ! -r "$srcdir/$ac_unique_file"; then
1327 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1328 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1329fi
1330ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1331ac_abs_confdir=`(
1332 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1333 pwd)`
1334# When building in place, set srcdir=.
1335if test "$ac_abs_confdir" = "$ac_pwd"; then
1336 srcdir=.
1337fi
1338# Remove unnecessary trailing slashes from srcdir.
1339# Double slashes in file names in object file debugging info
1340# mess up M-x gdb in Emacs.
1341case $srcdir in
1342*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1343esac
1344for ac_var in $ac_precious_vars; do
1345 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1346 eval ac_env_${ac_var}_value=\$${ac_var}
1347 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1349done
1350
1351#
1352# Report the --help message.
1353#
1354if test "$ac_init_help" = "long"; then
1355 # Omit some internal or obsolete options to make the list less imposing.
1356 # This message is too long to be a string in the A/UX 3.1 sh.
1357 cat <<_ACEOF
1358\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1359
1360Usage: $0 [OPTION]... [VAR=VALUE]...
1361
1362To assign environment variables (e.g., CC, CFLAGS...), specify them as
1363VAR=VALUE. See below for descriptions of some of the useful variables.
1364
1365Defaults for the options are specified in brackets.
1366
1367Configuration:
1368 -h, --help display this help and exit
1369 --help=short display options specific to this package
1370 --help=recursive display the short help of all the included packages
1371 -V, --version display version information and exit
1372 -q, --quiet, --silent do not print \`checking...' messages
1373 --cache-file=FILE cache test results in FILE [disabled]
1374 -C, --config-cache alias for \`--cache-file=config.cache'
1375 -n, --no-create do not create output files
1376 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1377
1378Installation directories:
1379 --prefix=PREFIX install architecture-independent files in PREFIX
1380 [$ac_default_prefix]
1381 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1382 [PREFIX]
1383
1384By default, \`make install' will install all the files in
1385\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1386an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1387for instance \`--prefix=\$HOME'.
1388
1389For better control, use the options below.
1390
1391Fine tuning of the installation directories:
1392 --bindir=DIR user executables [EPREFIX/bin]
1393 --sbindir=DIR system admin executables [EPREFIX/sbin]
1394 --libexecdir=DIR program executables [EPREFIX/libexec]
1395 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1396 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1397 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1398 --libdir=DIR object code libraries [EPREFIX/lib]
1399 --includedir=DIR C header files [PREFIX/include]
1400 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1401 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1402 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1403 --infodir=DIR info documentation [DATAROOTDIR/info]
1404 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1405 --mandir=DIR man documentation [DATAROOTDIR/man]
1406 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1407 --htmldir=DIR html documentation [DOCDIR]
1408 --dvidir=DIR dvi documentation [DOCDIR]
1409 --pdfdir=DIR pdf documentation [DOCDIR]
1410 --psdir=DIR ps documentation [DOCDIR]
1411_ACEOF
1412
1413 cat <<\_ACEOF
1414
1415Program names:
1416 --program-prefix=PREFIX prepend PREFIX to installed program names
1417 --program-suffix=SUFFIX append SUFFIX to installed program names
1418 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1419
1420System types:
1421 --build=BUILD configure for building on BUILD [guessed]
1422 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1423 --target=TARGET configure for building compilers for TARGET [HOST]
1424_ACEOF
1425fi
1426
1427if test -n "$ac_init_help"; then
1428 case $ac_init_help in
1429 short | recursive ) echo "Configuration of package-unused version-unused:";;
1430 esac
1431 cat <<\_ACEOF
1432
1433Optional Features:
1434 --disable-option-checking ignore unrecognized --enable/--with options
1435 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1436 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1437 --enable-multilib build many library versions (default)
1438 --disable-dependency-tracking speeds up one-time build
1439 --enable-dependency-tracking do not reject slow dependency extractors
1440 --enable-maintainer-mode enable make rules and dependencies not useful
1441 (and sometimes confusing) to the casual installer
1442 --enable-shared[=PKGS] build shared libraries [default=yes]
1443 --enable-static[=PKGS] build static libraries [default=yes]
1444 --enable-fast-install[=PKGS]
1445 optimize for fast installation [default=yes]
1446 --disable-libtool-lock avoid locking (might break parallel builds)
1447 --enable-version-specific-runtime-libs
1448 Specify that runtime libraries should be installed
1449 in a compiler-specific directory
c0dd1a83 1450 --enable-sjlj-exceptions
1451 force use of builtin_setjmp for exceptions
e440a328 1452
1453Optional Packages:
1454 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1455 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1456 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1457 --with-pic try to use only PIC/non-PIC objects [default=use
1458 both]
1459 --without-libffi don't use libffi
1460 --with-system-libunwind use installed libunwind
1461
1462Some influential environment variables:
1463 CC C compiler command
1464 CFLAGS C compiler flags
1465 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1466 nonstandard directory <lib dir>
1467 LIBS libraries to pass to the linker, e.g. -l<library>
1468 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1469 you have headers in a nonstandard directory <include dir>
1470 GOC Go compiler command
1471 GOCFLAGS Go compiler flags
1472 CPP C preprocessor
1473
1474Use these variables to override the choices made by `configure' or to help
1475it to find libraries and programs with nonstandard names/locations.
1476
1477Report bugs to the package provider.
1478_ACEOF
1479ac_status=$?
1480fi
1481
1482if test "$ac_init_help" = "recursive"; then
1483 # If there are subdirs, report their specific --help.
1484 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1485 test -d "$ac_dir" ||
1486 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1487 continue
1488 ac_builddir=.
1489
1490case "$ac_dir" in
1491.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492*)
1493 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1494 # A ".." for each directory in $ac_dir_suffix.
1495 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1496 case $ac_top_builddir_sub in
1497 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1499 esac ;;
1500esac
1501ac_abs_top_builddir=$ac_pwd
1502ac_abs_builddir=$ac_pwd$ac_dir_suffix
1503# for backward compatibility:
1504ac_top_builddir=$ac_top_build_prefix
1505
1506case $srcdir in
1507 .) # We are building in place.
1508 ac_srcdir=.
1509 ac_top_srcdir=$ac_top_builddir_sub
1510 ac_abs_top_srcdir=$ac_pwd ;;
1511 [\\/]* | ?:[\\/]* ) # Absolute name.
1512 ac_srcdir=$srcdir$ac_dir_suffix;
1513 ac_top_srcdir=$srcdir
1514 ac_abs_top_srcdir=$srcdir ;;
1515 *) # Relative name.
1516 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1517 ac_top_srcdir=$ac_top_build_prefix$srcdir
1518 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1519esac
1520ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1521
1522 cd "$ac_dir" || { ac_status=$?; continue; }
1523 # Check for guested configure.
1524 if test -f "$ac_srcdir/configure.gnu"; then
1525 echo &&
1526 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1527 elif test -f "$ac_srcdir/configure"; then
1528 echo &&
1529 $SHELL "$ac_srcdir/configure" --help=recursive
1530 else
1531 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1532 fi || ac_status=$?
1533 cd "$ac_pwd" || { ac_status=$?; break; }
1534 done
1535fi
1536
1537test -n "$ac_init_help" && exit $ac_status
1538if $ac_init_version; then
1539 cat <<\_ACEOF
1540package-unused configure version-unused
1541generated by GNU Autoconf 2.64
1542
1543Copyright (C) 2009 Free Software Foundation, Inc.
1544This configure script is free software; the Free Software Foundation
1545gives unlimited permission to copy, distribute and modify it.
1546_ACEOF
1547 exit
1548fi
1549
1550## ------------------------ ##
1551## Autoconf initialization. ##
1552## ------------------------ ##
1553
1554# ac_fn_c_try_compile LINENO
1555# --------------------------
1556# Try to compile conftest.$ac_ext, and return whether this succeeded.
1557ac_fn_c_try_compile ()
1558{
1559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560 rm -f conftest.$ac_objext
1561 if { { ac_try="$ac_compile"
1562case "(($ac_try" in
1563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1564 *) ac_try_echo=$ac_try;;
1565esac
1566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567$as_echo "$ac_try_echo"; } >&5
1568 (eval "$ac_compile") 2>conftest.err
1569 ac_status=$?
1570 if test -s conftest.err; then
1571 grep -v '^ *+' conftest.err >conftest.er1
1572 cat conftest.er1 >&5
1573 mv -f conftest.er1 conftest.err
1574 fi
1575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576 test $ac_status = 0; } && {
1577 test -z "$ac_c_werror_flag" ||
1578 test ! -s conftest.err
1579 } && test -s conftest.$ac_objext; then :
1580 ac_retval=0
1581else
1582 $as_echo "$as_me: failed program was:" >&5
1583sed 's/^/| /' conftest.$ac_ext >&5
1584
1585 ac_retval=1
1586fi
1587 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1588 return $ac_retval
1589
1590} # ac_fn_c_try_compile
1591
1592# ac_fn_c_try_link LINENO
1593# -----------------------
1594# Try to link conftest.$ac_ext, and return whether this succeeded.
1595ac_fn_c_try_link ()
1596{
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 rm -f conftest.$ac_objext conftest$ac_exeext
1599 if { { ac_try="$ac_link"
1600case "(($ac_try" in
1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602 *) ac_try_echo=$ac_try;;
1603esac
1604eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605$as_echo "$ac_try_echo"; } >&5
1606 (eval "$ac_link") 2>conftest.err
1607 ac_status=$?
1608 if test -s conftest.err; then
1609 grep -v '^ *+' conftest.err >conftest.er1
1610 cat conftest.er1 >&5
1611 mv -f conftest.er1 conftest.err
1612 fi
1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614 test $ac_status = 0; } && {
1615 test -z "$ac_c_werror_flag" ||
1616 test ! -s conftest.err
1617 } && test -s conftest$ac_exeext && {
1618 test "$cross_compiling" = yes ||
1619 $as_test_x conftest$ac_exeext
1620 }; then :
1621 ac_retval=0
1622else
1623 $as_echo "$as_me: failed program was:" >&5
1624sed 's/^/| /' conftest.$ac_ext >&5
1625
1626 ac_retval=1
1627fi
1628 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1629 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1630 # interfere with the next link command; also delete a directory that is
1631 # left behind by Apple's compiler. We do this before executing the actions.
1632 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1633 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1634 return $ac_retval
1635
1636} # ac_fn_c_try_link
1637
1638# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1639# -------------------------------------------------------
1640# Tests whether HEADER exists and can be compiled using the include files in
1641# INCLUDES, setting the cache variable VAR accordingly.
1642ac_fn_c_check_header_compile ()
1643{
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1646$as_echo_n "checking for $2... " >&6; }
1647if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1648 $as_echo_n "(cached) " >&6
1649else
1650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1651/* end confdefs.h. */
1652$4
1653#include <$2>
1654_ACEOF
1655if ac_fn_c_try_compile "$LINENO"; then :
1656 eval "$3=yes"
1657else
1658 eval "$3=no"
1659fi
1660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1661fi
1662eval ac_res=\$$3
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1664$as_echo "$ac_res" >&6; }
1665 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1666
1667} # ac_fn_c_check_header_compile
1668
1669# ac_fn_c_try_cpp LINENO
1670# ----------------------
1671# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1672ac_fn_c_try_cpp ()
1673{
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 if { { ac_try="$ac_cpp conftest.$ac_ext"
1676case "(($ac_try" in
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1679esac
1680eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681$as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1683 ac_status=$?
1684 if test -s conftest.err; then
1685 grep -v '^ *+' conftest.err >conftest.er1
1686 cat conftest.er1 >&5
1687 mv -f conftest.er1 conftest.err
1688 fi
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } >/dev/null && {
1691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1692 test ! -s conftest.err
1693 }; then :
1694 ac_retval=0
1695else
1696 $as_echo "$as_me: failed program was:" >&5
1697sed 's/^/| /' conftest.$ac_ext >&5
1698
1699 ac_retval=1
1700fi
1701 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1702 return $ac_retval
1703
1704} # ac_fn_c_try_cpp
1705
1706# ac_fn_c_try_run LINENO
1707# ----------------------
1708# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1709# that executables *can* be run.
1710ac_fn_c_try_run ()
1711{
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 if { { ac_try="$ac_link"
1714case "(($ac_try" in
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1717esac
1718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719$as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_link") 2>&5
1721 ac_status=$?
1722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1724 { { case "(($ac_try" in
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1727esac
1728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729$as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_try") 2>&5
1731 ac_status=$?
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; }; }; then :
1734 ac_retval=0
1735else
1736 $as_echo "$as_me: program exited with status $ac_status" >&5
1737 $as_echo "$as_me: failed program was:" >&5
1738sed 's/^/| /' conftest.$ac_ext >&5
1739
1740 ac_retval=$ac_status
1741fi
1742 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1743 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1744 return $ac_retval
1745
1746} # ac_fn_c_try_run
1747
1748# ac_fn_c_check_func LINENO FUNC VAR
1749# ----------------------------------
1750# Tests whether FUNC exists, setting the cache variable VAR accordingly
1751ac_fn_c_check_func ()
1752{
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1755$as_echo_n "checking for $2... " >&6; }
1756if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1757 $as_echo_n "(cached) " >&6
1758else
1759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760/* end confdefs.h. */
1761/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1763#define $2 innocuous_$2
1764
1765/* System header to define __stub macros and hopefully few prototypes,
1766 which can conflict with char $2 (); below.
1767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1768 <limits.h> exists even on freestanding compilers. */
1769
1770#ifdef __STDC__
1771# include <limits.h>
1772#else
1773# include <assert.h>
1774#endif
1775
1776#undef $2
1777
1778/* Override any GCC internal prototype to avoid an error.
1779 Use char because int might match the return type of a GCC
1780 builtin and then its argument prototype would still apply. */
1781#ifdef __cplusplus
1782extern "C"
1783#endif
1784char $2 ();
1785/* The GNU C library defines this for functions which it implements
1786 to always fail with ENOSYS. Some functions are actually named
1787 something starting with __ and the normal name is an alias. */
1788#if defined __stub_$2 || defined __stub___$2
1789choke me
1790#endif
1791
1792int
1793main ()
1794{
1795return $2 ();
1796 ;
1797 return 0;
1798}
1799_ACEOF
1800if ac_fn_c_try_link "$LINENO"; then :
1801 eval "$3=yes"
1802else
1803 eval "$3=no"
1804fi
1805rm -f core conftest.err conftest.$ac_objext \
1806 conftest$ac_exeext conftest.$ac_ext
1807fi
1808eval ac_res=\$$3
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810$as_echo "$ac_res" >&6; }
1811 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1812
1813} # ac_fn_c_check_func
1814
1815# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1816# -------------------------------------------------------
1817# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1818# the include files in INCLUDES and setting the cache variable VAR
1819# accordingly.
1820ac_fn_c_check_header_mongrel ()
1821{
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1825$as_echo_n "checking for $2... " >&6; }
1826if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1827 $as_echo_n "(cached) " >&6
1828fi
1829eval ac_res=\$$3
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831$as_echo "$ac_res" >&6; }
1832else
1833 # Is the header compilable?
1834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1835$as_echo_n "checking $2 usability... " >&6; }
1836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837/* end confdefs.h. */
1838$4
1839#include <$2>
1840_ACEOF
1841if ac_fn_c_try_compile "$LINENO"; then :
1842 ac_header_compiler=yes
1843else
1844 ac_header_compiler=no
1845fi
1846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1848$as_echo "$ac_header_compiler" >&6; }
1849
1850# Is the header present?
1851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1852$as_echo_n "checking $2 presence... " >&6; }
1853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854/* end confdefs.h. */
1855#include <$2>
1856_ACEOF
1857if ac_fn_c_try_cpp "$LINENO"; then :
1858 ac_header_preproc=yes
1859else
1860 ac_header_preproc=no
1861fi
1862rm -f conftest.err conftest.$ac_ext
1863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1864$as_echo "$ac_header_preproc" >&6; }
1865
1866# So? What about this header?
1867case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1868 yes:no: )
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1870$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1872$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1873 ;;
1874 no:yes:* )
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1876$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1878$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1880$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1882$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1884$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1885 ;;
1886esac
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1888$as_echo_n "checking for $2... " >&6; }
1889if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1890 $as_echo_n "(cached) " >&6
1891else
1892 eval "$3=\$ac_header_compiler"
1893fi
1894eval ac_res=\$$3
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896$as_echo "$ac_res" >&6; }
1897fi
1898 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1899
1900} # ac_fn_c_check_header_mongrel
1901
1902# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1903# -------------------------------------------
1904# Tests whether TYPE exists after having included INCLUDES, setting cache
1905# variable VAR accordingly.
1906ac_fn_c_check_type ()
1907{
1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1910$as_echo_n "checking for $2... " >&6; }
1911if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1912 $as_echo_n "(cached) " >&6
1913else
1914 eval "$3=no"
1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916/* end confdefs.h. */
1917$4
1918int
1919main ()
1920{
1921if (sizeof ($2))
1922 return 0;
1923 ;
1924 return 0;
1925}
1926_ACEOF
1927if ac_fn_c_try_compile "$LINENO"; then :
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929/* end confdefs.h. */
1930$4
1931int
1932main ()
1933{
1934if (sizeof (($2)))
1935 return 0;
1936 ;
1937 return 0;
1938}
1939_ACEOF
1940if ac_fn_c_try_compile "$LINENO"; then :
1941
1942else
1943 eval "$3=yes"
1944fi
1945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1946fi
1947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948fi
1949eval ac_res=\$$3
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951$as_echo "$ac_res" >&6; }
1952 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1953
1954} # ac_fn_c_check_type
d772e63b 1955
1956# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1957# --------------------------------------------
1958# Tries to find the compile-time value of EXPR in a program that includes
1959# INCLUDES, setting VAR accordingly. Returns whether the value could be
1960# computed
1961ac_fn_c_compute_int ()
1962{
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 if test "$cross_compiling" = yes; then
1965 # Depending upon the size, compute the lo and hi bounds.
1966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967/* end confdefs.h. */
1968$4
1969int
1970main ()
1971{
1972static int test_array [1 - 2 * !(($2) >= 0)];
1973test_array [0] = 0
1974
1975 ;
1976 return 0;
1977}
1978_ACEOF
1979if ac_fn_c_try_compile "$LINENO"; then :
1980 ac_lo=0 ac_mid=0
1981 while :; do
1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983/* end confdefs.h. */
1984$4
1985int
1986main ()
1987{
1988static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1989test_array [0] = 0
1990
1991 ;
1992 return 0;
1993}
1994_ACEOF
1995if ac_fn_c_try_compile "$LINENO"; then :
1996 ac_hi=$ac_mid; break
1997else
1998 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1999 if test $ac_lo -le $ac_mid; then
2000 ac_lo= ac_hi=
2001 break
2002 fi
2003 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2004fi
2005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006 done
2007else
2008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009/* end confdefs.h. */
2010$4
2011int
2012main ()
2013{
2014static int test_array [1 - 2 * !(($2) < 0)];
2015test_array [0] = 0
2016
2017 ;
2018 return 0;
2019}
2020_ACEOF
2021if ac_fn_c_try_compile "$LINENO"; then :
2022 ac_hi=-1 ac_mid=-1
2023 while :; do
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025/* end confdefs.h. */
2026$4
2027int
2028main ()
2029{
2030static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2031test_array [0] = 0
2032
2033 ;
2034 return 0;
2035}
2036_ACEOF
2037if ac_fn_c_try_compile "$LINENO"; then :
2038 ac_lo=$ac_mid; break
2039else
2040 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2041 if test $ac_mid -le $ac_hi; then
2042 ac_lo= ac_hi=
2043 break
2044 fi
2045 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2046fi
2047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048 done
2049else
2050 ac_lo= ac_hi=
2051fi
2052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053fi
2054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055# Binary search between lo and hi bounds.
2056while test "x$ac_lo" != "x$ac_hi"; do
2057 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059/* end confdefs.h. */
2060$4
2061int
2062main ()
2063{
2064static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2065test_array [0] = 0
2066
2067 ;
2068 return 0;
2069}
2070_ACEOF
2071if ac_fn_c_try_compile "$LINENO"; then :
2072 ac_hi=$ac_mid
2073else
2074 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2075fi
2076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2077done
2078case $ac_lo in #((
2079?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2080'') ac_retval=1 ;;
2081esac
2082 else
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084/* end confdefs.h. */
2085$4
2086static long int longval () { return $2; }
2087static unsigned long int ulongval () { return $2; }
2088#include <stdio.h>
2089#include <stdlib.h>
2090int
2091main ()
2092{
2093
2094 FILE *f = fopen ("conftest.val", "w");
2095 if (! f)
2096 return 1;
2097 if (($2) < 0)
2098 {
2099 long int i = longval ();
2100 if (i != ($2))
2101 return 1;
2102 fprintf (f, "%ld", i);
2103 }
2104 else
2105 {
2106 unsigned long int i = ulongval ();
2107 if (i != ($2))
2108 return 1;
2109 fprintf (f, "%lu", i);
2110 }
2111 /* Do not output a trailing newline, as this causes \r\n confusion
2112 on some platforms. */
2113 return ferror (f) || fclose (f) != 0;
2114
2115 ;
2116 return 0;
2117}
2118_ACEOF
2119if ac_fn_c_try_run "$LINENO"; then :
2120 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2121else
2122 ac_retval=1
2123fi
2124rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2125 conftest.$ac_objext conftest.beam conftest.$ac_ext
2126rm -f conftest.val
2127
2128 fi
2129 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2130 return $ac_retval
2131
2132} # ac_fn_c_compute_int
e440a328 2133cat >config.log <<_ACEOF
2134This file contains any messages produced by compilers while
2135running configure, to aid debugging if configure makes a mistake.
2136
2137It was created by package-unused $as_me version-unused, which was
2138generated by GNU Autoconf 2.64. Invocation command line was
2139
2140 $ $0 $@
2141
2142_ACEOF
2143exec 5>>config.log
2144{
2145cat <<_ASUNAME
2146## --------- ##
2147## Platform. ##
2148## --------- ##
2149
2150hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2151uname -m = `(uname -m) 2>/dev/null || echo unknown`
2152uname -r = `(uname -r) 2>/dev/null || echo unknown`
2153uname -s = `(uname -s) 2>/dev/null || echo unknown`
2154uname -v = `(uname -v) 2>/dev/null || echo unknown`
2155
2156/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2157/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2158
2159/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2160/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2161/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2162/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2163/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2164/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2165/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2166
2167_ASUNAME
2168
2169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2170for as_dir in $PATH
2171do
2172 IFS=$as_save_IFS
2173 test -z "$as_dir" && as_dir=.
2174 $as_echo "PATH: $as_dir"
2175 done
2176IFS=$as_save_IFS
2177
2178} >&5
2179
2180cat >&5 <<_ACEOF
2181
2182
2183## ----------- ##
2184## Core tests. ##
2185## ----------- ##
2186
2187_ACEOF
2188
2189
2190# Keep a trace of the command line.
2191# Strip out --no-create and --no-recursion so they do not pile up.
2192# Strip out --silent because we don't want to record it for future runs.
2193# Also quote any args containing shell meta-characters.
2194# Make two passes to allow for proper duplicate-argument suppression.
2195ac_configure_args=
2196ac_configure_args0=
2197ac_configure_args1=
2198ac_must_keep_next=false
2199for ac_pass in 1 2
2200do
2201 for ac_arg
2202 do
2203 case $ac_arg in
2204 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2205 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2206 | -silent | --silent | --silen | --sile | --sil)
2207 continue ;;
2208 *\'*)
2209 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2210 esac
2211 case $ac_pass in
2212 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2213 2)
2214 as_fn_append ac_configure_args1 " '$ac_arg'"
2215 if test $ac_must_keep_next = true; then
2216 ac_must_keep_next=false # Got value, back to normal.
2217 else
2218 case $ac_arg in
2219 *=* | --config-cache | -C | -disable-* | --disable-* \
2220 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2221 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2222 | -with-* | --with-* | -without-* | --without-* | --x)
2223 case "$ac_configure_args0 " in
2224 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2225 esac
2226 ;;
2227 -* ) ac_must_keep_next=true ;;
2228 esac
2229 fi
2230 as_fn_append ac_configure_args " '$ac_arg'"
2231 ;;
2232 esac
2233 done
2234done
2235{ ac_configure_args0=; unset ac_configure_args0;}
2236{ ac_configure_args1=; unset ac_configure_args1;}
2237
2238# When interrupted or exit'd, cleanup temporary files, and complete
2239# config.log. We remove comments because anyway the quotes in there
2240# would cause problems or look ugly.
2241# WARNING: Use '\'' to represent an apostrophe within the trap.
2242# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2243trap 'exit_status=$?
2244 # Save into config.log some information that might help in debugging.
2245 {
2246 echo
2247
2248 cat <<\_ASBOX
2249## ---------------- ##
2250## Cache variables. ##
2251## ---------------- ##
2252_ASBOX
2253 echo
2254 # The following way of writing the cache mishandles newlines in values,
2255(
2256 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2257 eval ac_val=\$$ac_var
2258 case $ac_val in #(
2259 *${as_nl}*)
2260 case $ac_var in #(
2261 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2262$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2263 esac
2264 case $ac_var in #(
2265 _ | IFS | as_nl) ;; #(
2266 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2267 *) { eval $ac_var=; unset $ac_var;} ;;
2268 esac ;;
2269 esac
2270 done
2271 (set) 2>&1 |
2272 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2273 *${as_nl}ac_space=\ *)
2274 sed -n \
2275 "s/'\''/'\''\\\\'\'''\''/g;
2276 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2277 ;; #(
2278 *)
2279 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2280 ;;
2281 esac |
2282 sort
2283)
2284 echo
2285
2286 cat <<\_ASBOX
2287## ----------------- ##
2288## Output variables. ##
2289## ----------------- ##
2290_ASBOX
2291 echo
2292 for ac_var in $ac_subst_vars
2293 do
2294 eval ac_val=\$$ac_var
2295 case $ac_val in
2296 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2297 esac
2298 $as_echo "$ac_var='\''$ac_val'\''"
2299 done | sort
2300 echo
2301
2302 if test -n "$ac_subst_files"; then
2303 cat <<\_ASBOX
2304## ------------------- ##
2305## File substitutions. ##
2306## ------------------- ##
2307_ASBOX
2308 echo
2309 for ac_var in $ac_subst_files
2310 do
2311 eval ac_val=\$$ac_var
2312 case $ac_val in
2313 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2314 esac
2315 $as_echo "$ac_var='\''$ac_val'\''"
2316 done | sort
2317 echo
2318 fi
2319
2320 if test -s confdefs.h; then
2321 cat <<\_ASBOX
2322## ----------- ##
2323## confdefs.h. ##
2324## ----------- ##
2325_ASBOX
2326 echo
2327 cat confdefs.h
2328 echo
2329 fi
2330 test "$ac_signal" != 0 &&
2331 $as_echo "$as_me: caught signal $ac_signal"
2332 $as_echo "$as_me: exit $exit_status"
2333 } >&5
2334 rm -f core *.core core.conftest.* &&
2335 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2336 exit $exit_status
2337' 0
2338for ac_signal in 1 2 13 15; do
2339 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2340done
2341ac_signal=0
2342
2343# confdefs.h avoids OS command line length limits that DEFS can exceed.
2344rm -f -r conftest* confdefs.h
2345
2346$as_echo "/* confdefs.h */" > confdefs.h
2347
2348# Predefined preprocessor variables.
2349
2350cat >>confdefs.h <<_ACEOF
2351#define PACKAGE_NAME "$PACKAGE_NAME"
2352_ACEOF
2353
2354cat >>confdefs.h <<_ACEOF
2355#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2356_ACEOF
2357
2358cat >>confdefs.h <<_ACEOF
2359#define PACKAGE_VERSION "$PACKAGE_VERSION"
2360_ACEOF
2361
2362cat >>confdefs.h <<_ACEOF
2363#define PACKAGE_STRING "$PACKAGE_STRING"
2364_ACEOF
2365
2366cat >>confdefs.h <<_ACEOF
2367#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2368_ACEOF
2369
2370cat >>confdefs.h <<_ACEOF
2371#define PACKAGE_URL "$PACKAGE_URL"
2372_ACEOF
2373
2374
2375# Let the site file select an alternate cache file if it wants to.
2376# Prefer an explicitly selected file to automatically selected ones.
2377ac_site_file1=NONE
2378ac_site_file2=NONE
2379if test -n "$CONFIG_SITE"; then
2380 ac_site_file1=$CONFIG_SITE
2381elif test "x$prefix" != xNONE; then
2382 ac_site_file1=$prefix/share/config.site
2383 ac_site_file2=$prefix/etc/config.site
2384else
2385 ac_site_file1=$ac_default_prefix/share/config.site
2386 ac_site_file2=$ac_default_prefix/etc/config.site
2387fi
2388for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2389do
2390 test "x$ac_site_file" = xNONE && continue
2391 if test -r "$ac_site_file"; then
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2393$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2394 sed 's/^/| /' "$ac_site_file" >&5
2395 . "$ac_site_file"
2396 fi
2397done
2398
2399if test -r "$cache_file"; then
2400 # Some versions of bash will fail to source /dev/null (special
2401 # files actually), so we avoid doing that.
2402 if test -f "$cache_file"; then
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2404$as_echo "$as_me: loading cache $cache_file" >&6;}
2405 case $cache_file in
2406 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2407 *) . "./$cache_file";;
2408 esac
2409 fi
2410else
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2412$as_echo "$as_me: creating cache $cache_file" >&6;}
2413 >$cache_file
2414fi
2415
2416# Check that the precious variables saved in the cache have kept the same
2417# value.
2418ac_cache_corrupted=false
2419for ac_var in $ac_precious_vars; do
2420 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2421 eval ac_new_set=\$ac_env_${ac_var}_set
2422 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2423 eval ac_new_val=\$ac_env_${ac_var}_value
2424 case $ac_old_set,$ac_new_set in
2425 set,)
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2427$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2428 ac_cache_corrupted=: ;;
2429 ,set)
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2431$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2432 ac_cache_corrupted=: ;;
2433 ,);;
2434 *)
2435 if test "x$ac_old_val" != "x$ac_new_val"; then
2436 # differences in whitespace do not lead to failure.
2437 ac_old_val_w=`echo x $ac_old_val`
2438 ac_new_val_w=`echo x $ac_new_val`
2439 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2441$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2442 ac_cache_corrupted=:
2443 else
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2445$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2446 eval $ac_var=\$ac_old_val
2447 fi
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2449$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2451$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2452 fi;;
2453 esac
2454 # Pass precious variables to config.status.
2455 if test "$ac_new_set" = set; then
2456 case $ac_new_val in
2457 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2458 *) ac_arg=$ac_var=$ac_new_val ;;
2459 esac
2460 case " $ac_configure_args " in
2461 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2462 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2463 esac
2464 fi
2465done
2466if $ac_cache_corrupted; then
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2468$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2470$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2471 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2472fi
2473## -------------------- ##
2474## Main body of script. ##
2475## -------------------- ##
2476
2477ac_ext=c
2478ac_cpp='$CPP $CPPFLAGS'
2479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2481ac_compiler_gnu=$ac_cv_c_compiler_gnu
2482
2483
2484
2485
2486
2487
2488ac_config_headers="$ac_config_headers config.h"
2489
2490
2491libtool_VERSION=1:0:0
2492
2493
2494# Default to --enable-multilib
2495# Check whether --enable-multilib was given.
2496if test "${enable_multilib+set}" = set; then :
2497 enableval=$enable_multilib; case "$enableval" in
2498 yes) multilib=yes ;;
2499 no) multilib=no ;;
2500 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2501 esac
2502else
2503 multilib=yes
2504fi
2505
2506
2507# We may get other options which we leave undocumented:
2508# --with-target-subdir, --with-multisrctop, --with-multisubdir
2509# See config-ml.in if you want the gory details.
2510
2511if test "$srcdir" = "."; then
2512 if test "$with_target_subdir" != "."; then
2513 multi_basedir="$srcdir/$with_multisrctop../.."
2514 else
2515 multi_basedir="$srcdir/$with_multisrctop.."
2516 fi
2517else
2518 multi_basedir="$srcdir/.."
2519fi
2520
2521
2522# Even if the default multilib is not a cross compilation,
2523# it may be that some of the other multilibs are.
2524if test $cross_compiling = no && test $multilib = yes \
2525 && test "x${with_multisubdir}" != x ; then
2526 cross_compiling=maybe
2527fi
2528
2529ac_config_commands="$ac_config_commands default-1"
2530
2531
2532ac_aux_dir=
2533for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2534 for ac_t in install-sh install.sh shtool; do
2535 if test -f "$ac_dir/$ac_t"; then
2536 ac_aux_dir=$ac_dir
2537 ac_install_sh="$ac_aux_dir/$ac_t -c"
2538 break 2
2539 fi
2540 done
2541done
2542if test -z "$ac_aux_dir"; then
2543 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2544fi
2545
2546# These three variables are undocumented and unsupported,
2547# and are intended to be withdrawn in a future Autoconf release.
2548# They can cause serious problems if a builder's source tree is in a directory
2549# whose full name contains unusual characters.
2550ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2551ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2552ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2553
2554
2555# Make sure we can run config.sub.
2556$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2557 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2558
2559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2560$as_echo_n "checking build system type... " >&6; }
2561if test "${ac_cv_build+set}" = set; then :
2562 $as_echo_n "(cached) " >&6
2563else
2564 ac_build_alias=$build_alias
2565test "x$ac_build_alias" = x &&
2566 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2567test "x$ac_build_alias" = x &&
2568 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2569ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2570 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2571
2572fi
2573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2574$as_echo "$ac_cv_build" >&6; }
2575case $ac_cv_build in
2576*-*-*) ;;
2577*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2578esac
2579build=$ac_cv_build
2580ac_save_IFS=$IFS; IFS='-'
2581set x $ac_cv_build
2582shift
2583build_cpu=$1
2584build_vendor=$2
2585shift; shift
2586# Remember, the first character of IFS is used to create $*,
2587# except with old shells:
2588build_os=$*
2589IFS=$ac_save_IFS
2590case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2591
2592
2593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2594$as_echo_n "checking host system type... " >&6; }
2595if test "${ac_cv_host+set}" = set; then :
2596 $as_echo_n "(cached) " >&6
2597else
2598 if test "x$host_alias" = x; then
2599 ac_cv_host=$ac_cv_build
2600else
2601 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2602 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2603fi
2604
2605fi
2606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2607$as_echo "$ac_cv_host" >&6; }
2608case $ac_cv_host in
2609*-*-*) ;;
2610*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2611esac
2612host=$ac_cv_host
2613ac_save_IFS=$IFS; IFS='-'
2614set x $ac_cv_host
2615shift
2616host_cpu=$1
2617host_vendor=$2
2618shift; shift
2619# Remember, the first character of IFS is used to create $*,
2620# except with old shells:
2621host_os=$*
2622IFS=$ac_save_IFS
2623case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2624
2625
2626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2627$as_echo_n "checking target system type... " >&6; }
2628if test "${ac_cv_target+set}" = set; then :
2629 $as_echo_n "(cached) " >&6
2630else
2631 if test "x$target_alias" = x; then
2632 ac_cv_target=$ac_cv_host
2633else
2634 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2635 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2636fi
2637
2638fi
2639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2640$as_echo "$ac_cv_target" >&6; }
2641case $ac_cv_target in
2642*-*-*) ;;
2643*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2644esac
2645target=$ac_cv_target
2646ac_save_IFS=$IFS; IFS='-'
2647set x $ac_cv_target
2648shift
2649target_cpu=$1
2650target_vendor=$2
2651shift; shift
2652# Remember, the first character of IFS is used to create $*,
2653# except with old shells:
2654target_os=$*
2655IFS=$ac_save_IFS
2656case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2657
2658
2659# The aliases save the names the user supplied, while $host etc.
2660# will get canonicalized.
2661test -n "$target_alias" &&
2662 test "$program_prefix$program_suffix$program_transform_name" = \
2663 NONENONEs,x,x, &&
2664 program_prefix=${target_alias}-
2665
2666target_alias=${target_alias-$host_alias}
2667
2668am__api_version='1.11'
2669
2670# Find a good install program. We prefer a C program (faster),
2671# so one script is as good as another. But avoid the broken or
2672# incompatible versions:
2673# SysV /etc/install, /usr/sbin/install
2674# SunOS /usr/etc/install
2675# IRIX /sbin/install
2676# AIX /bin/install
2677# AmigaOS /C/install, which installs bootblocks on floppy discs
2678# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2679# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2680# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2681# OS/2's system install, which has a completely different semantic
2682# ./install, which can be erroneously created by make from ./install.sh.
2683# Reject install programs that cannot install multiple files.
2684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2685$as_echo_n "checking for a BSD-compatible install... " >&6; }
2686if test -z "$INSTALL"; then
2687if test "${ac_cv_path_install+set}" = set; then :
2688 $as_echo_n "(cached) " >&6
2689else
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691for as_dir in $PATH
2692do
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 # Account for people who put trailing slashes in PATH elements.
2696case $as_dir/ in #((
2697 ./ | .// | /[cC]/* | \
2698 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2699 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2700 /usr/ucb/* ) ;;
2701 *)
2702 # OSF1 and SCO ODT 3.0 have their own names for install.
2703 # Don't use installbsd from OSF since it installs stuff as root
2704 # by default.
2705 for ac_prog in ginstall scoinst install; do
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2708 if test $ac_prog = install &&
2709 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2710 # AIX install. It has an incompatible calling convention.
2711 :
2712 elif test $ac_prog = install &&
2713 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2714 # program-specific install script used by HP pwplus--don't use.
2715 :
2716 else
2717 rm -rf conftest.one conftest.two conftest.dir
2718 echo one > conftest.one
2719 echo two > conftest.two
2720 mkdir conftest.dir
2721 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2722 test -s conftest.one && test -s conftest.two &&
2723 test -s conftest.dir/conftest.one &&
2724 test -s conftest.dir/conftest.two
2725 then
2726 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2727 break 3
2728 fi
2729 fi
2730 fi
2731 done
2732 done
2733 ;;
2734esac
2735
2736 done
2737IFS=$as_save_IFS
2738
2739rm -rf conftest.one conftest.two conftest.dir
2740
2741fi
2742 if test "${ac_cv_path_install+set}" = set; then
2743 INSTALL=$ac_cv_path_install
2744 else
2745 # As a last resort, use the slow shell script. Don't cache a
2746 # value for INSTALL within a source directory, because that will
2747 # break other packages using the cache if that directory is
2748 # removed, or if the value is a relative name.
2749 INSTALL=$ac_install_sh
2750 fi
2751fi
2752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2753$as_echo "$INSTALL" >&6; }
2754
2755# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2756# It thinks the first close brace ends the variable substitution.
2757test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2758
2759test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2760
2761test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2762
2763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2764$as_echo_n "checking whether build environment is sane... " >&6; }
2765# Just in case
2766sleep 1
2767echo timestamp > conftest.file
2768# Reject unsafe characters in $srcdir or the absolute working directory
2769# name. Accept space and tab only in the latter.
2770am_lf='
2771'
2772case `pwd` in
2773 *[\\\"\#\$\&\'\`$am_lf]*)
2774 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2775esac
2776case $srcdir in
2777 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2778 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2779esac
2780
2781# Do `set' in a subshell so we don't clobber the current shell's
2782# arguments. Must try -L first in case configure is actually a
2783# symlink; some systems play weird games with the mod time of symlinks
2784# (eg FreeBSD returns the mod time of the symlink's containing
2785# directory).
2786if (
2787 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2788 if test "$*" = "X"; then
2789 # -L didn't work.
2790 set X `ls -t "$srcdir/configure" conftest.file`
2791 fi
2792 rm -f conftest.file
2793 if test "$*" != "X $srcdir/configure conftest.file" \
2794 && test "$*" != "X conftest.file $srcdir/configure"; then
2795
2796 # If neither matched, then we have a broken ls. This can happen
2797 # if, for instance, CONFIG_SHELL is bash and it inherits a
2798 # broken ls alias from the environment. This has actually
2799 # happened. Such a system could not be considered "sane".
2800 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2801alias in your environment" "$LINENO" 5
2802 fi
2803
2804 test "$2" = conftest.file
2805 )
2806then
2807 # Ok.
2808 :
2809else
2810 as_fn_error "newly created file is older than distributed files!
2811Check your system clock" "$LINENO" 5
2812fi
2813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2814$as_echo "yes" >&6; }
2815test "$program_prefix" != NONE &&
2816 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2817# Use a double $ so make ignores it.
2818test "$program_suffix" != NONE &&
2819 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2820# Double any \ or $.
2821# By default was `s,x,x', remove it if useless.
2822ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2823program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2824
2825# expand $ac_aux_dir to an absolute path
2826am_aux_dir=`cd $ac_aux_dir && pwd`
2827
2828if test x"${MISSING+set}" != xset; then
2829 case $am_aux_dir in
2830 *\ * | *\ *)
2831 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2832 *)
2833 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2834 esac
2835fi
2836# Use eval to expand $SHELL
2837if eval "$MISSING --run true"; then
2838 am_missing_run="$MISSING --run "
2839else
2840 am_missing_run=
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2842$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2843fi
2844
2845if test x"${install_sh}" != xset; then
2846 case $am_aux_dir in
2847 *\ * | *\ *)
2848 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2849 *)
2850 install_sh="\${SHELL} $am_aux_dir/install-sh"
2851 esac
2852fi
2853
2854# Installed binaries are usually stripped using `strip' when the user
2855# run `make install-strip'. However `strip' might not be the right
2856# tool to use in cross-compilation environments, therefore Automake
2857# will honor the `STRIP' environment variable to overrule this program.
2858if test "$cross_compiling" != no; then
2859 if test -n "$ac_tool_prefix"; then
2860 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2861set dummy ${ac_tool_prefix}strip; ac_word=$2
2862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2863$as_echo_n "checking for $ac_word... " >&6; }
2864if test "${ac_cv_prog_STRIP+set}" = set; then :
2865 $as_echo_n "(cached) " >&6
2866else
2867 if test -n "$STRIP"; then
2868 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2869else
2870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871for as_dir in $PATH
2872do
2873 IFS=$as_save_IFS
2874 test -z "$as_dir" && as_dir=.
2875 for ac_exec_ext in '' $ac_executable_extensions; do
2876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2877 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2879 break 2
2880 fi
2881done
2882 done
2883IFS=$as_save_IFS
2884
2885fi
2886fi
2887STRIP=$ac_cv_prog_STRIP
2888if test -n "$STRIP"; then
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2890$as_echo "$STRIP" >&6; }
2891else
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2893$as_echo "no" >&6; }
2894fi
2895
2896
2897fi
2898if test -z "$ac_cv_prog_STRIP"; then
2899 ac_ct_STRIP=$STRIP
2900 # Extract the first word of "strip", so it can be a program name with args.
2901set dummy strip; ac_word=$2
2902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2903$as_echo_n "checking for $ac_word... " >&6; }
2904if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2905 $as_echo_n "(cached) " >&6
2906else
2907 if test -n "$ac_ct_STRIP"; then
2908 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2909else
2910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911for as_dir in $PATH
2912do
2913 IFS=$as_save_IFS
2914 test -z "$as_dir" && as_dir=.
2915 for ac_exec_ext in '' $ac_executable_extensions; do
2916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2917 ac_cv_prog_ac_ct_STRIP="strip"
2918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2919 break 2
2920 fi
2921done
2922 done
2923IFS=$as_save_IFS
2924
2925fi
2926fi
2927ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2928if test -n "$ac_ct_STRIP"; then
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2930$as_echo "$ac_ct_STRIP" >&6; }
2931else
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933$as_echo "no" >&6; }
2934fi
2935
2936 if test "x$ac_ct_STRIP" = x; then
2937 STRIP=":"
2938 else
2939 case $cross_compiling:$ac_tool_warned in
2940yes:)
2941{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2942$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2943ac_tool_warned=yes ;;
2944esac
2945 STRIP=$ac_ct_STRIP
2946 fi
2947else
2948 STRIP="$ac_cv_prog_STRIP"
2949fi
2950
2951fi
2952INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2953
2954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2955$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2956if test -z "$MKDIR_P"; then
2957 if test "${ac_cv_path_mkdir+set}" = set; then :
2958 $as_echo_n "(cached) " >&6
2959else
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2962do
2963 IFS=$as_save_IFS
2964 test -z "$as_dir" && as_dir=.
2965 for ac_prog in mkdir gmkdir; do
2966 for ac_exec_ext in '' $ac_executable_extensions; do
2967 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2968 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2969 'mkdir (GNU coreutils) '* | \
2970 'mkdir (coreutils) '* | \
2971 'mkdir (fileutils) '4.1*)
2972 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2973 break 3;;
2974 esac
2975 done
2976 done
2977 done
2978IFS=$as_save_IFS
2979
2980fi
2981
2982 if test "${ac_cv_path_mkdir+set}" = set; then
2983 MKDIR_P="$ac_cv_path_mkdir -p"
2984 else
2985 # As a last resort, use the slow shell script. Don't cache a
2986 # value for MKDIR_P within a source directory, because that will
2987 # break other packages using the cache if that directory is
2988 # removed, or if the value is a relative name.
2989 test -d ./--version && rmdir ./--version
2990 MKDIR_P="$ac_install_sh -d"
2991 fi
2992fi
2993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2994$as_echo "$MKDIR_P" >&6; }
2995
2996mkdir_p="$MKDIR_P"
2997case $mkdir_p in
2998 [\\/$]* | ?:[\\/]*) ;;
2999 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3000esac
3001
3002for ac_prog in gawk mawk nawk awk
3003do
3004 # Extract the first word of "$ac_prog", so it can be a program name with args.
3005set dummy $ac_prog; ac_word=$2
3006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3007$as_echo_n "checking for $ac_word... " >&6; }
3008if test "${ac_cv_prog_AWK+set}" = set; then :
3009 $as_echo_n "(cached) " >&6
3010else
3011 if test -n "$AWK"; then
3012 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3013else
3014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015for as_dir in $PATH
3016do
3017 IFS=$as_save_IFS
3018 test -z "$as_dir" && as_dir=.
3019 for ac_exec_ext in '' $ac_executable_extensions; do
3020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3021 ac_cv_prog_AWK="$ac_prog"
3022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3023 break 2
3024 fi
3025done
3026 done
3027IFS=$as_save_IFS
3028
3029fi
3030fi
3031AWK=$ac_cv_prog_AWK
3032if test -n "$AWK"; then
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3034$as_echo "$AWK" >&6; }
3035else
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3037$as_echo "no" >&6; }
3038fi
3039
3040
3041 test -n "$AWK" && break
3042done
3043
3044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3045$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3046set x ${MAKE-make}
3047ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3048if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3049 $as_echo_n "(cached) " >&6
3050else
3051 cat >conftest.make <<\_ACEOF
3052SHELL = /bin/sh
3053all:
3054 @echo '@@@%%%=$(MAKE)=@@@%%%'
3055_ACEOF
3056# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3057case `${MAKE-make} -f conftest.make 2>/dev/null` in
3058 *@@@%%%=?*=@@@%%%*)
3059 eval ac_cv_prog_make_${ac_make}_set=yes;;
3060 *)
3061 eval ac_cv_prog_make_${ac_make}_set=no;;
3062esac
3063rm -f conftest.make
3064fi
3065if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3067$as_echo "yes" >&6; }
3068 SET_MAKE=
3069else
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3071$as_echo "no" >&6; }
3072 SET_MAKE="MAKE=${MAKE-make}"
3073fi
3074
3075rm -rf .tst 2>/dev/null
3076mkdir .tst 2>/dev/null
3077if test -d .tst; then
3078 am__leading_dot=.
3079else
3080 am__leading_dot=_
3081fi
3082rmdir .tst 2>/dev/null
3083
3084if test "`cd $srcdir && pwd`" != "`pwd`"; then
3085 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3086 # is not polluted with repeated "-I."
3087 am__isrc=' -I$(srcdir)'
3088 # test to see if srcdir already configured
3089 if test -f $srcdir/config.status; then
3090 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3091 fi
3092fi
3093
3094# test whether we have cygpath
3095if test -z "$CYGPATH_W"; then
3096 if (cygpath --version) >/dev/null 2>/dev/null; then
3097 CYGPATH_W='cygpath -w'
3098 else
3099 CYGPATH_W=echo
3100 fi
3101fi
3102
3103
3104# Define the identity of the package.
3105 PACKAGE='libgo'
3106 VERSION='version-unused'
3107
3108
3109# Some tools Automake needs.
3110
3111ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3112
3113
3114AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3115
3116
3117AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3118
3119
3120AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3121
3122
3123MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3124
3125# We need awk for the "check" target. The system "awk" is bad on
3126# some platforms.
3127# Always define AMTAR for backward compatibility.
3128
3129AMTAR=${AMTAR-"${am_missing_run}tar"}
3130
3131am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142ac_ext=c
3143ac_cpp='$CPP $CPPFLAGS'
3144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3146ac_compiler_gnu=$ac_cv_c_compiler_gnu
3147if test -n "$ac_tool_prefix"; then
3148 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3149set dummy ${ac_tool_prefix}gcc; ac_word=$2
3150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3151$as_echo_n "checking for $ac_word... " >&6; }
3152if test "${ac_cv_prog_CC+set}" = set; then :
3153 $as_echo_n "(cached) " >&6
3154else
3155 if test -n "$CC"; then
3156 ac_cv_prog_CC="$CC" # Let the user override the test.
3157else
3158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3159for as_dir in $PATH
3160do
3161 IFS=$as_save_IFS
3162 test -z "$as_dir" && as_dir=.
3163 for ac_exec_ext in '' $ac_executable_extensions; do
3164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3165 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3167 break 2
3168 fi
3169done
3170 done
3171IFS=$as_save_IFS
3172
3173fi
3174fi
3175CC=$ac_cv_prog_CC
3176if test -n "$CC"; then
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3178$as_echo "$CC" >&6; }
3179else
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181$as_echo "no" >&6; }
3182fi
3183
3184
3185fi
3186if test -z "$ac_cv_prog_CC"; then
3187 ac_ct_CC=$CC
3188 # Extract the first word of "gcc", so it can be a program name with args.
3189set dummy gcc; ac_word=$2
3190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3191$as_echo_n "checking for $ac_word... " >&6; }
3192if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3193 $as_echo_n "(cached) " >&6
3194else
3195 if test -n "$ac_ct_CC"; then
3196 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3197else
3198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199for as_dir in $PATH
3200do
3201 IFS=$as_save_IFS
3202 test -z "$as_dir" && as_dir=.
3203 for ac_exec_ext in '' $ac_executable_extensions; do
3204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3205 ac_cv_prog_ac_ct_CC="gcc"
3206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3207 break 2
3208 fi
3209done
3210 done
3211IFS=$as_save_IFS
3212
3213fi
3214fi
3215ac_ct_CC=$ac_cv_prog_ac_ct_CC
3216if test -n "$ac_ct_CC"; then
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3218$as_echo "$ac_ct_CC" >&6; }
3219else
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3221$as_echo "no" >&6; }
3222fi
3223
3224 if test "x$ac_ct_CC" = x; then
3225 CC=""
3226 else
3227 case $cross_compiling:$ac_tool_warned in
3228yes:)
3229{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3230$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3231ac_tool_warned=yes ;;
3232esac
3233 CC=$ac_ct_CC
3234 fi
3235else
3236 CC="$ac_cv_prog_CC"
3237fi
3238
3239if test -z "$CC"; then
3240 if test -n "$ac_tool_prefix"; then
3241 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3242set dummy ${ac_tool_prefix}cc; ac_word=$2
3243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244$as_echo_n "checking for $ac_word... " >&6; }
3245if test "${ac_cv_prog_CC+set}" = set; then :
3246 $as_echo_n "(cached) " >&6
3247else
3248 if test -n "$CC"; then
3249 ac_cv_prog_CC="$CC" # Let the user override the test.
3250else
3251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252for as_dir in $PATH
3253do
3254 IFS=$as_save_IFS
3255 test -z "$as_dir" && as_dir=.
3256 for ac_exec_ext in '' $ac_executable_extensions; do
3257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3258 ac_cv_prog_CC="${ac_tool_prefix}cc"
3259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3260 break 2
3261 fi
3262done
3263 done
3264IFS=$as_save_IFS
3265
3266fi
3267fi
3268CC=$ac_cv_prog_CC
3269if test -n "$CC"; then
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3271$as_echo "$CC" >&6; }
3272else
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274$as_echo "no" >&6; }
3275fi
3276
3277
3278 fi
3279fi
3280if test -z "$CC"; then
3281 # Extract the first word of "cc", so it can be a program name with args.
3282set dummy cc; ac_word=$2
3283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3284$as_echo_n "checking for $ac_word... " >&6; }
3285if test "${ac_cv_prog_CC+set}" = set; then :
3286 $as_echo_n "(cached) " >&6
3287else
3288 if test -n "$CC"; then
3289 ac_cv_prog_CC="$CC" # Let the user override the test.
3290else
3291 ac_prog_rejected=no
3292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293for as_dir in $PATH
3294do
3295 IFS=$as_save_IFS
3296 test -z "$as_dir" && as_dir=.
3297 for ac_exec_ext in '' $ac_executable_extensions; do
3298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3299 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3300 ac_prog_rejected=yes
3301 continue
3302 fi
3303 ac_cv_prog_CC="cc"
3304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3305 break 2
3306 fi
3307done
3308 done
3309IFS=$as_save_IFS
3310
3311if test $ac_prog_rejected = yes; then
3312 # We found a bogon in the path, so make sure we never use it.
3313 set dummy $ac_cv_prog_CC
3314 shift
3315 if test $# != 0; then
3316 # We chose a different compiler from the bogus one.
3317 # However, it has the same basename, so the bogon will be chosen
3318 # first if we set CC to just the basename; use the full file name.
3319 shift
3320 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3321 fi
3322fi
3323fi
3324fi
3325CC=$ac_cv_prog_CC
3326if test -n "$CC"; then
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3328$as_echo "$CC" >&6; }
3329else
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331$as_echo "no" >&6; }
3332fi
3333
3334
3335fi
3336if test -z "$CC"; then
3337 if test -n "$ac_tool_prefix"; then
3338 for ac_prog in cl.exe
3339 do
3340 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3341set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3343$as_echo_n "checking for $ac_word... " >&6; }
3344if test "${ac_cv_prog_CC+set}" = set; then :
3345 $as_echo_n "(cached) " >&6
3346else
3347 if test -n "$CC"; then
3348 ac_cv_prog_CC="$CC" # Let the user override the test.
3349else
3350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351for as_dir in $PATH
3352do
3353 IFS=$as_save_IFS
3354 test -z "$as_dir" && as_dir=.
3355 for ac_exec_ext in '' $ac_executable_extensions; do
3356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3357 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3359 break 2
3360 fi
3361done
3362 done
3363IFS=$as_save_IFS
3364
3365fi
3366fi
3367CC=$ac_cv_prog_CC
3368if test -n "$CC"; then
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3370$as_echo "$CC" >&6; }
3371else
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3373$as_echo "no" >&6; }
3374fi
3375
3376
3377 test -n "$CC" && break
3378 done
3379fi
3380if test -z "$CC"; then
3381 ac_ct_CC=$CC
3382 for ac_prog in cl.exe
3383do
3384 # Extract the first word of "$ac_prog", so it can be a program name with args.
3385set dummy $ac_prog; ac_word=$2
3386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3387$as_echo_n "checking for $ac_word... " >&6; }
3388if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3389 $as_echo_n "(cached) " >&6
3390else
3391 if test -n "$ac_ct_CC"; then
3392 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3393else
3394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3395for as_dir in $PATH
3396do
3397 IFS=$as_save_IFS
3398 test -z "$as_dir" && as_dir=.
3399 for ac_exec_ext in '' $ac_executable_extensions; do
3400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3401 ac_cv_prog_ac_ct_CC="$ac_prog"
3402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3403 break 2
3404 fi
3405done
3406 done
3407IFS=$as_save_IFS
3408
3409fi
3410fi
3411ac_ct_CC=$ac_cv_prog_ac_ct_CC
3412if test -n "$ac_ct_CC"; then
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3414$as_echo "$ac_ct_CC" >&6; }
3415else
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417$as_echo "no" >&6; }
3418fi
3419
3420
3421 test -n "$ac_ct_CC" && break
3422done
3423
3424 if test "x$ac_ct_CC" = x; then
3425 CC=""
3426 else
3427 case $cross_compiling:$ac_tool_warned in
3428yes:)
3429{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3430$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3431ac_tool_warned=yes ;;
3432esac
3433 CC=$ac_ct_CC
3434 fi
3435fi
3436
3437fi
3438
3439
3440test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3441$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3442as_fn_error "no acceptable C compiler found in \$PATH
3443See \`config.log' for more details." "$LINENO" 5; }
3444
3445# Provide some information about the compiler.
3446$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3447set X $ac_compile
3448ac_compiler=$2
3449for ac_option in --version -v -V -qversion; do
3450 { { ac_try="$ac_compiler $ac_option >&5"
3451case "(($ac_try" in
3452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453 *) ac_try_echo=$ac_try;;
3454esac
3455eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3456$as_echo "$ac_try_echo"; } >&5
3457 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3458 ac_status=$?
3459 if test -s conftest.err; then
3460 sed '10a\
3461... rest of stderr output deleted ...
3462 10q' conftest.err >conftest.er1
3463 cat conftest.er1 >&5
3464 rm -f conftest.er1 conftest.err
3465 fi
3466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3467 test $ac_status = 0; }
3468done
3469
3470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3471/* end confdefs.h. */
3472
3473int
3474main ()
3475{
3476
3477 ;
3478 return 0;
3479}
3480_ACEOF
3481ac_clean_files_save=$ac_clean_files
3482ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3483# Try to create an executable without -o first, disregard a.out.
3484# It will help us diagnose broken compilers, and finding out an intuition
3485# of exeext.
3486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3487$as_echo_n "checking for C compiler default output file name... " >&6; }
3488ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3489
3490# The possible output files:
3491ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3492
3493ac_rmfiles=
3494for ac_file in $ac_files
3495do
3496 case $ac_file in
3497 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3498 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3499 esac
3500done
3501rm -f $ac_rmfiles
3502
3503if { { ac_try="$ac_link_default"
3504case "(($ac_try" in
3505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506 *) ac_try_echo=$ac_try;;
3507esac
3508eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3509$as_echo "$ac_try_echo"; } >&5
3510 (eval "$ac_link_default") 2>&5
3511 ac_status=$?
3512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3513 test $ac_status = 0; }; then :
3514 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3515# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3516# in a Makefile. We should not override ac_cv_exeext if it was cached,
3517# so that the user can short-circuit this test for compilers unknown to
3518# Autoconf.
3519for ac_file in $ac_files ''
3520do
3521 test -f "$ac_file" || continue
3522 case $ac_file in
3523 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3524 ;;
3525 [ab].out )
3526 # We found the default executable, but exeext='' is most
3527 # certainly right.
3528 break;;
3529 *.* )
3530 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3531 then :; else
3532 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3533 fi
3534 # We set ac_cv_exeext here because the later test for it is not
3535 # safe: cross compilers may not add the suffix if given an `-o'
3536 # argument, so we may need to know it at that point already.
3537 # Even if this section looks crufty: it has the advantage of
3538 # actually working.
3539 break;;
3540 * )
3541 break;;
3542 esac
3543done
3544test "$ac_cv_exeext" = no && ac_cv_exeext=
3545
3546else
3547 ac_file=''
3548fi
3549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3550$as_echo "$ac_file" >&6; }
3551if test -z "$ac_file"; then :
3552 $as_echo "$as_me: failed program was:" >&5
3553sed 's/^/| /' conftest.$ac_ext >&5
3554
3555{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3556$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3557{ as_fn_set_status 77
3558as_fn_error "C compiler cannot create executables
3559See \`config.log' for more details." "$LINENO" 5; }; }
3560fi
3561ac_exeext=$ac_cv_exeext
3562
3563# Check that the compiler produces executables we can run. If not, either
3564# the compiler is broken, or we cross compile.
3565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3566$as_echo_n "checking whether the C compiler works... " >&6; }
3567# If not cross compiling, check that we can run a simple program.
3568if test "$cross_compiling" != yes; then
3569 if { ac_try='./$ac_file'
3570 { { case "(($ac_try" in
3571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572 *) ac_try_echo=$ac_try;;
3573esac
3574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3575$as_echo "$ac_try_echo"; } >&5
3576 (eval "$ac_try") 2>&5
3577 ac_status=$?
3578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3579 test $ac_status = 0; }; }; then
3580 cross_compiling=no
3581 else
3582 if test "$cross_compiling" = maybe; then
3583 cross_compiling=yes
3584 else
3585 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3586$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3587as_fn_error "cannot run C compiled programs.
3588If you meant to cross compile, use \`--host'.
3589See \`config.log' for more details." "$LINENO" 5; }
3590 fi
3591 fi
3592fi
3593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3594$as_echo "yes" >&6; }
3595
3596rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3597ac_clean_files=$ac_clean_files_save
3598# Check that the compiler produces executables we can run. If not, either
3599# the compiler is broken, or we cross compile.
3600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3601$as_echo_n "checking whether we are cross compiling... " >&6; }
3602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3603$as_echo "$cross_compiling" >&6; }
3604
3605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3606$as_echo_n "checking for suffix of executables... " >&6; }
3607if { { ac_try="$ac_link"
3608case "(($ac_try" in
3609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610 *) ac_try_echo=$ac_try;;
3611esac
3612eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3613$as_echo "$ac_try_echo"; } >&5
3614 (eval "$ac_link") 2>&5
3615 ac_status=$?
3616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3617 test $ac_status = 0; }; then :
3618 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3619# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3620# work properly (i.e., refer to `conftest.exe'), while it won't with
3621# `rm'.
3622for ac_file in conftest.exe conftest conftest.*; do
3623 test -f "$ac_file" || continue
3624 case $ac_file in
3625 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3626 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3627 break;;
3628 * ) break;;
3629 esac
3630done
3631else
3632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3633$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3634as_fn_error "cannot compute suffix of executables: cannot compile and link
3635See \`config.log' for more details." "$LINENO" 5; }
3636fi
3637rm -f conftest$ac_cv_exeext
3638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3639$as_echo "$ac_cv_exeext" >&6; }
3640
3641rm -f conftest.$ac_ext
3642EXEEXT=$ac_cv_exeext
3643ac_exeext=$EXEEXT
3644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3645$as_echo_n "checking for suffix of object files... " >&6; }
3646if test "${ac_cv_objext+set}" = set; then :
3647 $as_echo_n "(cached) " >&6
3648else
3649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650/* end confdefs.h. */
3651
3652int
3653main ()
3654{
3655
3656 ;
3657 return 0;
3658}
3659_ACEOF
3660rm -f conftest.o conftest.obj
3661if { { ac_try="$ac_compile"
3662case "(($ac_try" in
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3665esac
3666eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3667$as_echo "$ac_try_echo"; } >&5
3668 (eval "$ac_compile") 2>&5
3669 ac_status=$?
3670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3671 test $ac_status = 0; }; then :
3672 for ac_file in conftest.o conftest.obj conftest.*; do
3673 test -f "$ac_file" || continue;
3674 case $ac_file in
3675 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3676 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3677 break;;
3678 esac
3679done
3680else
3681 $as_echo "$as_me: failed program was:" >&5
3682sed 's/^/| /' conftest.$ac_ext >&5
3683
3684{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3685$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3686as_fn_error "cannot compute suffix of object files: cannot compile
3687See \`config.log' for more details." "$LINENO" 5; }
3688fi
3689rm -f conftest.$ac_cv_objext conftest.$ac_ext
3690fi
3691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3692$as_echo "$ac_cv_objext" >&6; }
3693OBJEXT=$ac_cv_objext
3694ac_objext=$OBJEXT
3695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3696$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3697if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3698 $as_echo_n "(cached) " >&6
3699else
3700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701/* end confdefs.h. */
3702
3703int
3704main ()
3705{
3706#ifndef __GNUC__
3707 choke me
3708#endif
3709
3710 ;
3711 return 0;
3712}
3713_ACEOF
3714if ac_fn_c_try_compile "$LINENO"; then :
3715 ac_compiler_gnu=yes
3716else
3717 ac_compiler_gnu=no
3718fi
3719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3720ac_cv_c_compiler_gnu=$ac_compiler_gnu
3721
3722fi
3723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3724$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3725if test $ac_compiler_gnu = yes; then
3726 GCC=yes
3727else
3728 GCC=
3729fi
3730ac_test_CFLAGS=${CFLAGS+set}
3731ac_save_CFLAGS=$CFLAGS
3732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3733$as_echo_n "checking whether $CC accepts -g... " >&6; }
3734if test "${ac_cv_prog_cc_g+set}" = set; then :
3735 $as_echo_n "(cached) " >&6
3736else
3737 ac_save_c_werror_flag=$ac_c_werror_flag
3738 ac_c_werror_flag=yes
3739 ac_cv_prog_cc_g=no
3740 CFLAGS="-g"
3741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3742/* end confdefs.h. */
3743
3744int
3745main ()
3746{
3747
3748 ;
3749 return 0;
3750}
3751_ACEOF
3752if ac_fn_c_try_compile "$LINENO"; then :
3753 ac_cv_prog_cc_g=yes
3754else
3755 CFLAGS=""
3756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757/* end confdefs.h. */
3758
3759int
3760main ()
3761{
3762
3763 ;
3764 return 0;
3765}
3766_ACEOF
3767if ac_fn_c_try_compile "$LINENO"; then :
3768
3769else
3770 ac_c_werror_flag=$ac_save_c_werror_flag
3771 CFLAGS="-g"
3772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773/* end confdefs.h. */
3774
3775int
3776main ()
3777{
3778
3779 ;
3780 return 0;
3781}
3782_ACEOF
3783if ac_fn_c_try_compile "$LINENO"; then :
3784 ac_cv_prog_cc_g=yes
3785fi
3786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3787fi
3788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3789fi
3790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3791 ac_c_werror_flag=$ac_save_c_werror_flag
3792fi
3793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3794$as_echo "$ac_cv_prog_cc_g" >&6; }
3795if test "$ac_test_CFLAGS" = set; then
3796 CFLAGS=$ac_save_CFLAGS
3797elif test $ac_cv_prog_cc_g = yes; then
3798 if test "$GCC" = yes; then
3799 CFLAGS="-g -O2"
3800 else
3801 CFLAGS="-g"
3802 fi
3803else
3804 if test "$GCC" = yes; then
3805 CFLAGS="-O2"
3806 else
3807 CFLAGS=
3808 fi
3809fi
3810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3811$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3812if test "${ac_cv_prog_cc_c89+set}" = set; then :
3813 $as_echo_n "(cached) " >&6
3814else
3815 ac_cv_prog_cc_c89=no
3816ac_save_CC=$CC
3817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818/* end confdefs.h. */
3819#include <stdarg.h>
3820#include <stdio.h>
3821#include <sys/types.h>
3822#include <sys/stat.h>
3823/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3824struct buf { int x; };
3825FILE * (*rcsopen) (struct buf *, struct stat *, int);
3826static char *e (p, i)
3827 char **p;
3828 int i;
3829{
3830 return p[i];
3831}
3832static char *f (char * (*g) (char **, int), char **p, ...)
3833{
3834 char *s;
3835 va_list v;
3836 va_start (v,p);
3837 s = g (p, va_arg (v,int));
3838 va_end (v);
3839 return s;
3840}
3841
3842/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3843 function prototypes and stuff, but not '\xHH' hex character constants.
3844 These don't provoke an error unfortunately, instead are silently treated
3845 as 'x'. The following induces an error, until -std is added to get
3846 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3847 array size at least. It's necessary to write '\x00'==0 to get something
3848 that's true only with -std. */
3849int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3850
3851/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3852 inside strings and character constants. */
3853#define FOO(x) 'x'
3854int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3855
3856int test (int i, double x);
3857struct s1 {int (*f) (int a);};
3858struct s2 {int (*f) (double a);};
3859int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3860int argc;
3861char **argv;
3862int
3863main ()
3864{
3865return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3866 ;
3867 return 0;
3868}
3869_ACEOF
3870for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3871 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3872do
3873 CC="$ac_save_CC $ac_arg"
3874 if ac_fn_c_try_compile "$LINENO"; then :
3875 ac_cv_prog_cc_c89=$ac_arg
3876fi
3877rm -f core conftest.err conftest.$ac_objext
3878 test "x$ac_cv_prog_cc_c89" != "xno" && break
3879done
3880rm -f conftest.$ac_ext
3881CC=$ac_save_CC
3882
3883fi
3884# AC_CACHE_VAL
3885case "x$ac_cv_prog_cc_c89" in
3886 x)
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3888$as_echo "none needed" >&6; } ;;
3889 xno)
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3891$as_echo "unsupported" >&6; } ;;
3892 *)
3893 CC="$CC $ac_cv_prog_cc_c89"
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3895$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3896esac
3897if test "x$ac_cv_prog_cc_c89" != xno; then :
3898
3899fi
3900
3901ac_ext=c
3902ac_cpp='$CPP $CPPFLAGS'
3903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3905ac_compiler_gnu=$ac_cv_c_compiler_gnu
3906DEPDIR="${am__leading_dot}deps"
3907
3908ac_config_commands="$ac_config_commands depfiles"
3909
3910
3911am_make=${MAKE-make}
3912cat > confinc << 'END'
3913am__doit:
3914 @echo this is the am__doit target
3915.PHONY: am__doit
3916END
3917# If we don't find an include directive, just comment out the code.
3918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3919$as_echo_n "checking for style of include used by $am_make... " >&6; }
3920am__include="#"
3921am__quote=
3922_am_result=none
3923# First try GNU make style include.
3924echo "include confinc" > confmf
3925# Ignore all kinds of additional output from `make'.
3926case `$am_make -s -f confmf 2> /dev/null` in #(
3927*the\ am__doit\ target*)
3928 am__include=include
3929 am__quote=
3930 _am_result=GNU
3931 ;;
3932esac
3933# Now try BSD make style include.
3934if test "$am__include" = "#"; then
3935 echo '.include "confinc"' > confmf
3936 case `$am_make -s -f confmf 2> /dev/null` in #(
3937 *the\ am__doit\ target*)
3938 am__include=.include
3939 am__quote="\""
3940 _am_result=BSD
3941 ;;
3942 esac
3943fi
3944
3945
3946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3947$as_echo "$_am_result" >&6; }
3948rm -f confinc confmf
3949
3950# Check whether --enable-dependency-tracking was given.
3951if test "${enable_dependency_tracking+set}" = set; then :
3952 enableval=$enable_dependency_tracking;
3953fi
3954
3955if test "x$enable_dependency_tracking" != xno; then
3956 am_depcomp="$ac_aux_dir/depcomp"
3957 AMDEPBACKSLASH='\'
3958fi
3959 if test "x$enable_dependency_tracking" != xno; then
3960 AMDEP_TRUE=
3961 AMDEP_FALSE='#'
3962else
3963 AMDEP_TRUE='#'
3964 AMDEP_FALSE=
3965fi
3966
3967
3968
3969depcc="$CC" am_compiler_list=
3970
3971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3972$as_echo_n "checking dependency style of $depcc... " >&6; }
3973if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3974 $as_echo_n "(cached) " >&6
3975else
3976 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3977 # We make a subdir and do the tests there. Otherwise we can end up
3978 # making bogus files that we don't know about and never remove. For
3979 # instance it was reported that on HP-UX the gcc test will end up
3980 # making a dummy file named `D' -- because `-MD' means `put the output
3981 # in D'.
3982 mkdir conftest.dir
3983 # Copy depcomp to subdir because otherwise we won't find it if we're
3984 # using a relative directory.
3985 cp "$am_depcomp" conftest.dir
3986 cd conftest.dir
3987 # We will build objects and dependencies in a subdirectory because
3988 # it helps to detect inapplicable dependency modes. For instance
3989 # both Tru64's cc and ICC support -MD to output dependencies as a
3990 # side effect of compilation, but ICC will put the dependencies in
3991 # the current directory while Tru64 will put them in the object
3992 # directory.
3993 mkdir sub
3994
3995 am_cv_CC_dependencies_compiler_type=none
3996 if test "$am_compiler_list" = ""; then
3997 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3998 fi
3999 am__universal=false
4000 case " $depcc " in #(
4001 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4002 esac
4003
4004 for depmode in $am_compiler_list; do
4005 # Setup a source with many dependencies, because some compilers
4006 # like to wrap large dependency lists on column 80 (with \), and
4007 # we should not choose a depcomp mode which is confused by this.
4008 #
4009 # We need to recreate these files for each test, as the compiler may
4010 # overwrite some of them when testing with obscure command lines.
4011 # This happens at least with the AIX C compiler.
4012 : > sub/conftest.c
4013 for i in 1 2 3 4 5 6; do
4014 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4015 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4016 # Solaris 8's {/usr,}/bin/sh.
4017 touch sub/conftst$i.h
4018 done
4019 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4020
4021 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4022 # mode. It turns out that the SunPro C++ compiler does not properly
4023 # handle `-M -o', and we need to detect this. Also, some Intel
4024 # versions had trouble with output in subdirs
4025 am__obj=sub/conftest.${OBJEXT-o}
4026 am__minus_obj="-o $am__obj"
4027 case $depmode in
4028 gcc)
4029 # This depmode causes a compiler race in universal mode.
4030 test "$am__universal" = false || continue
4031 ;;
4032 nosideeffect)
4033 # after this tag, mechanisms are not by side-effect, so they'll
4034 # only be used when explicitly requested
4035 if test "x$enable_dependency_tracking" = xyes; then
4036 continue
4037 else
4038 break
4039 fi
4040 ;;
4041 msvisualcpp | msvcmsys)
4042 # This compiler won't grok `-c -o', but also, the minuso test has
4043 # not run yet. These depmodes are late enough in the game, and
4044 # so weak that their functioning should not be impacted.
4045 am__obj=conftest.${OBJEXT-o}
4046 am__minus_obj=
4047 ;;
4048 none) break ;;
4049 esac
4050 if depmode=$depmode \
4051 source=sub/conftest.c object=$am__obj \
4052 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4053 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4054 >/dev/null 2>conftest.err &&
4055 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4056 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4057 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4058 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4059 # icc doesn't choke on unknown options, it will just issue warnings
4060 # or remarks (even with -Werror). So we grep stderr for any message
4061 # that says an option was ignored or not supported.
4062 # When given -MP, icc 7.0 and 7.1 complain thusly:
4063 # icc: Command line warning: ignoring option '-M'; no argument required
4064 # The diagnosis changed in icc 8.0:
4065 # icc: Command line remark: option '-MP' not supported
4066 if (grep 'ignoring option' conftest.err ||
4067 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4068 am_cv_CC_dependencies_compiler_type=$depmode
4069 break
4070 fi
4071 fi
4072 done
4073
4074 cd ..
4075 rm -rf conftest.dir
4076else
4077 am_cv_CC_dependencies_compiler_type=none
4078fi
4079
4080fi
4081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4082$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4083CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4084
4085 if
4086 test "x$enable_dependency_tracking" != xno \
4087 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4088 am__fastdepCC_TRUE=
4089 am__fastdepCC_FALSE='#'
4090else
4091 am__fastdepCC_TRUE='#'
4092 am__fastdepCC_FALSE=
4093fi
4094
4095
4096ac_ext=go
4097ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
4098ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4099ac_compile_gnu=yes
4100if test -n "$ac_tool_prefix"; then
4101 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4102set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4104$as_echo_n "checking for $ac_word... " >&6; }
4105if test "${ac_cv_prog_GOC+set}" = set; then :
4106 $as_echo_n "(cached) " >&6
4107else
4108 if test -n "$GOC"; then
4109 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4110else
4111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112for as_dir in $PATH
4113do
4114 IFS=$as_save_IFS
4115 test -z "$as_dir" && as_dir=.
4116 for ac_exec_ext in '' $ac_executable_extensions; do
4117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4118 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4120 break 2
4121 fi
4122done
4123 done
4124IFS=$as_save_IFS
4125
4126fi
4127fi
4128GOC=$ac_cv_prog_GOC
4129if test -n "$GOC"; then
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4131$as_echo "$GOC" >&6; }
4132else
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4134$as_echo "no" >&6; }
4135fi
4136
4137
4138fi
4139if test -z "$ac_cv_prog_GOC"; then
4140 ac_ct_GOC=$GOC
4141 # Extract the first word of "gccgo", so it can be a program name with args.
4142set dummy gccgo; ac_word=$2
4143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4144$as_echo_n "checking for $ac_word... " >&6; }
4145if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
4146 $as_echo_n "(cached) " >&6
4147else
4148 if test -n "$ac_ct_GOC"; then
4149 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4150else
4151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152for as_dir in $PATH
4153do
4154 IFS=$as_save_IFS
4155 test -z "$as_dir" && as_dir=.
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4158 ac_cv_prog_ac_ct_GOC="gccgo"
4159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4160 break 2
4161 fi
4162done
4163 done
4164IFS=$as_save_IFS
4165
4166fi
4167fi
4168ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4169if test -n "$ac_ct_GOC"; then
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4171$as_echo "$ac_ct_GOC" >&6; }
4172else
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4174$as_echo "no" >&6; }
4175fi
4176
4177 if test "x$ac_ct_GOC" = x; then
4178 GOC=""
4179 else
4180 case $cross_compiling:$ac_tool_warned in
4181yes:)
4182{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4183$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4184ac_tool_warned=yes ;;
4185esac
4186 GOC=$ac_ct_GOC
4187 fi
4188else
4189 GOC="$ac_cv_prog_GOC"
4190fi
4191
4192if test -z "$GOC"; then
4193 if test -n "$ac_tool_prefix"; then
4194 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4195set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4197$as_echo_n "checking for $ac_word... " >&6; }
4198if test "${ac_cv_prog_GOC+set}" = set; then :
4199 $as_echo_n "(cached) " >&6
4200else
4201 if test -n "$GOC"; then
4202 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4203else
4204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205for as_dir in $PATH
4206do
4207 IFS=$as_save_IFS
4208 test -z "$as_dir" && as_dir=.
4209 for ac_exec_ext in '' $ac_executable_extensions; do
4210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4211 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4213 break 2
4214 fi
4215done
4216 done
4217IFS=$as_save_IFS
4218
4219fi
4220fi
4221GOC=$ac_cv_prog_GOC
4222if test -n "$GOC"; then
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4224$as_echo "$GOC" >&6; }
4225else
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4227$as_echo "no" >&6; }
4228fi
4229
4230
4231 fi
4232fi
4233if test -z "$GOC"; then
4234 # Extract the first word of "gccgo", so it can be a program name with args.
4235set dummy gccgo; ac_word=$2
4236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4237$as_echo_n "checking for $ac_word... " >&6; }
4238if test "${ac_cv_prog_GOC+set}" = set; then :
4239 $as_echo_n "(cached) " >&6
4240else
4241 if test -n "$GOC"; then
4242 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4243else
4244 ac_prog_rejected=no
4245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246for as_dir in $PATH
4247do
4248 IFS=$as_save_IFS
4249 test -z "$as_dir" && as_dir=.
4250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4252 if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4253 ac_prog_rejected=yes
4254 continue
4255 fi
4256 ac_cv_prog_GOC="gccgo"
4257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4258 break 2
4259 fi
4260done
4261 done
4262IFS=$as_save_IFS
4263
4264if test $ac_prog_rejected = yes; then
4265 # We found a bogon in the path, so make sure we never use it.
4266 set dummy $ac_cv_prog_GOC
4267 shift
4268 if test $# != 0; then
4269 # We chose a different compiler from the bogus one.
4270 # However, it has the same basename, so the bogon will be chosen
4271 # first if we set GOC to just the basename; use the full file name.
4272 shift
4273 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4274 fi
4275fi
4276fi
4277fi
4278GOC=$ac_cv_prog_GOC
4279if test -n "$GOC"; then
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4281$as_echo "$GOC" >&6; }
4282else
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4284$as_echo "no" >&6; }
4285fi
4286
4287
4288fi
4289
4290
4291# Provide some information about the compiler.
4292$as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4293set X $ac_compile
4294ac_compiler=$2
4295{ { ac_try="$ac_compiler --version >&5"
4296case "(($ac_try" in
4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298 *) ac_try_echo=$ac_try;;
4299esac
4300eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4301$as_echo "$ac_try_echo"; } >&5
4302 (eval "$ac_compiler --version >&5") 2>conftest.err
4303 ac_status=$?
4304 if test -s conftest.err; then
4305 sed '10a\
4306... rest of stderr output deleted ...
4307 10q' conftest.err >conftest.er1
4308 cat conftest.er1 >&5
4309 rm -f conftest.er1 conftest.err
4310 fi
4311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4312 test $ac_status = 0; }
4313GOCFLAGS="-g -O2"
4314ac_ext=c
4315ac_cpp='$CPP $CPPFLAGS'
4316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4318ac_compiler_gnu=$ac_cv_c_compiler_gnu
4319
4320
4321
4322
4323
4324
4325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4326$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4327 # Check whether --enable-maintainer-mode was given.
4328if test "${enable_maintainer_mode+set}" = set; then :
4329 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4330else
4331 USE_MAINTAINER_MODE=no
4332fi
4333
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4335$as_echo "$USE_MAINTAINER_MODE" >&6; }
4336 if test $USE_MAINTAINER_MODE = yes; then
4337 MAINTAINER_MODE_TRUE=
4338 MAINTAINER_MODE_FALSE='#'
4339else
4340 MAINTAINER_MODE_TRUE='#'
4341 MAINTAINER_MODE_FALSE=
4342fi
4343
4344 MAINT=$MAINTAINER_MODE_TRUE
4345
4346
4347
4348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4349$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4350if test "${ac_cv_path_SED+set}" = set; then :
4351 $as_echo_n "(cached) " >&6
4352else
4353 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4354 for ac_i in 1 2 3 4 5 6 7; do
4355 ac_script="$ac_script$as_nl$ac_script"
4356 done
4357 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4358 { ac_script=; unset ac_script;}
4359 if test -z "$SED"; then
4360 ac_path_SED_found=false
4361 # Loop through the user's path and test for each of PROGNAME-LIST
4362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363for as_dir in $PATH
4364do
4365 IFS=$as_save_IFS
4366 test -z "$as_dir" && as_dir=.
4367 for ac_prog in sed gsed; do
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4370 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4371# Check for GNU ac_path_SED and select it if it is found.
4372 # Check for GNU $ac_path_SED
4373case `"$ac_path_SED" --version 2>&1` in
4374*GNU*)
4375 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4376*)
4377 ac_count=0
4378 $as_echo_n 0123456789 >"conftest.in"
4379 while :
4380 do
4381 cat "conftest.in" "conftest.in" >"conftest.tmp"
4382 mv "conftest.tmp" "conftest.in"
4383 cp "conftest.in" "conftest.nl"
4384 $as_echo '' >> "conftest.nl"
4385 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4386 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4387 as_fn_arith $ac_count + 1 && ac_count=$as_val
4388 if test $ac_count -gt ${ac_path_SED_max-0}; then
4389 # Best one so far, save it but keep looking for a better one
4390 ac_cv_path_SED="$ac_path_SED"
4391 ac_path_SED_max=$ac_count
4392 fi
4393 # 10*(2^10) chars as input seems more than enough
4394 test $ac_count -gt 10 && break
4395 done
4396 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4397esac
4398
4399 $ac_path_SED_found && break 3
4400 done
4401 done
4402 done
4403IFS=$as_save_IFS
4404 if test -z "$ac_cv_path_SED"; then
4405 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4406 fi
4407else
4408 ac_cv_path_SED=$SED
4409fi
4410
4411fi
4412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4413$as_echo "$ac_cv_path_SED" >&6; }
4414 SED="$ac_cv_path_SED"
4415 rm -f conftest.sed
4416
4417test -z "$SED" && SED=sed
4418Xsed="$SED -e 1s/^X//"
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4431$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4432if test "${ac_cv_path_GREP+set}" = set; then :
4433 $as_echo_n "(cached) " >&6
4434else
4435 if test -z "$GREP"; then
4436 ac_path_GREP_found=false
4437 # Loop through the user's path and test for each of PROGNAME-LIST
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4440do
4441 IFS=$as_save_IFS
4442 test -z "$as_dir" && as_dir=.
4443 for ac_prog in grep ggrep; do
4444 for ac_exec_ext in '' $ac_executable_extensions; do
4445 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4446 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4447# Check for GNU ac_path_GREP and select it if it is found.
4448 # Check for GNU $ac_path_GREP
4449case `"$ac_path_GREP" --version 2>&1` in
4450*GNU*)
4451 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4452*)
4453 ac_count=0
4454 $as_echo_n 0123456789 >"conftest.in"
4455 while :
4456 do
4457 cat "conftest.in" "conftest.in" >"conftest.tmp"
4458 mv "conftest.tmp" "conftest.in"
4459 cp "conftest.in" "conftest.nl"
4460 $as_echo 'GREP' >> "conftest.nl"
4461 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4462 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4463 as_fn_arith $ac_count + 1 && ac_count=$as_val
4464 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4465 # Best one so far, save it but keep looking for a better one
4466 ac_cv_path_GREP="$ac_path_GREP"
4467 ac_path_GREP_max=$ac_count
4468 fi
4469 # 10*(2^10) chars as input seems more than enough
4470 test $ac_count -gt 10 && break
4471 done
4472 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4473esac
4474
4475 $ac_path_GREP_found && break 3
4476 done
4477 done
4478 done
4479IFS=$as_save_IFS
4480 if test -z "$ac_cv_path_GREP"; then
4481 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4482 fi
4483else
4484 ac_cv_path_GREP=$GREP
4485fi
4486
4487fi
4488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4489$as_echo "$ac_cv_path_GREP" >&6; }
4490 GREP="$ac_cv_path_GREP"
4491
4492
4493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4494$as_echo_n "checking for egrep... " >&6; }
4495if test "${ac_cv_path_EGREP+set}" = set; then :
4496 $as_echo_n "(cached) " >&6
4497else
4498 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4499 then ac_cv_path_EGREP="$GREP -E"
4500 else
4501 if test -z "$EGREP"; then
4502 ac_path_EGREP_found=false
4503 # Loop through the user's path and test for each of PROGNAME-LIST
4504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4506do
4507 IFS=$as_save_IFS
4508 test -z "$as_dir" && as_dir=.
4509 for ac_prog in egrep; do
4510 for ac_exec_ext in '' $ac_executable_extensions; do
4511 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4512 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4513# Check for GNU ac_path_EGREP and select it if it is found.
4514 # Check for GNU $ac_path_EGREP
4515case `"$ac_path_EGREP" --version 2>&1` in
4516*GNU*)
4517 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4518*)
4519 ac_count=0
4520 $as_echo_n 0123456789 >"conftest.in"
4521 while :
4522 do
4523 cat "conftest.in" "conftest.in" >"conftest.tmp"
4524 mv "conftest.tmp" "conftest.in"
4525 cp "conftest.in" "conftest.nl"
4526 $as_echo 'EGREP' >> "conftest.nl"
4527 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4528 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4529 as_fn_arith $ac_count + 1 && ac_count=$as_val
4530 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4531 # Best one so far, save it but keep looking for a better one
4532 ac_cv_path_EGREP="$ac_path_EGREP"
4533 ac_path_EGREP_max=$ac_count
4534 fi
4535 # 10*(2^10) chars as input seems more than enough
4536 test $ac_count -gt 10 && break
4537 done
4538 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4539esac
4540
4541 $ac_path_EGREP_found && break 3
4542 done
4543 done
4544 done
4545IFS=$as_save_IFS
4546 if test -z "$ac_cv_path_EGREP"; then
4547 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4548 fi
4549else
4550 ac_cv_path_EGREP=$EGREP
4551fi
4552
4553 fi
4554fi
4555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4556$as_echo "$ac_cv_path_EGREP" >&6; }
4557 EGREP="$ac_cv_path_EGREP"
4558
4559
4560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4561$as_echo_n "checking for fgrep... " >&6; }
4562if test "${ac_cv_path_FGREP+set}" = set; then :
4563 $as_echo_n "(cached) " >&6
4564else
4565 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4566 then ac_cv_path_FGREP="$GREP -F"
4567 else
4568 if test -z "$FGREP"; then
4569 ac_path_FGREP_found=false
4570 # Loop through the user's path and test for each of PROGNAME-LIST
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4573do
4574 IFS=$as_save_IFS
4575 test -z "$as_dir" && as_dir=.
4576 for ac_prog in fgrep; do
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4579 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4580# Check for GNU ac_path_FGREP and select it if it is found.
4581 # Check for GNU $ac_path_FGREP
4582case `"$ac_path_FGREP" --version 2>&1` in
4583*GNU*)
4584 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4585*)
4586 ac_count=0
4587 $as_echo_n 0123456789 >"conftest.in"
4588 while :
4589 do
4590 cat "conftest.in" "conftest.in" >"conftest.tmp"
4591 mv "conftest.tmp" "conftest.in"
4592 cp "conftest.in" "conftest.nl"
4593 $as_echo 'FGREP' >> "conftest.nl"
4594 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4595 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4596 as_fn_arith $ac_count + 1 && ac_count=$as_val
4597 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4598 # Best one so far, save it but keep looking for a better one
4599 ac_cv_path_FGREP="$ac_path_FGREP"
4600 ac_path_FGREP_max=$ac_count
4601 fi
4602 # 10*(2^10) chars as input seems more than enough
4603 test $ac_count -gt 10 && break
4604 done
4605 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4606esac
4607
4608 $ac_path_FGREP_found && break 3
4609 done
4610 done
4611 done
4612IFS=$as_save_IFS
4613 if test -z "$ac_cv_path_FGREP"; then
4614 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4615 fi
4616else
4617 ac_cv_path_FGREP=$FGREP
4618fi
4619
4620 fi
4621fi
4622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4623$as_echo "$ac_cv_path_FGREP" >&6; }
4624 FGREP="$ac_cv_path_FGREP"
4625
4626
4627test -z "$GREP" && GREP=grep
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4646ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4647ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4648
4649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4650$as_echo_n "checking how to print strings... " >&6; }
4651# Test print first, because it will be a builtin if present.
4652if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4653 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4654 ECHO='print -r --'
4655elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4656 ECHO='printf %s\n'
4657else
4658 # Use this function as a fallback that always works.
4659 func_fallback_echo ()
4660 {
4661 eval 'cat <<_LTECHO_EOF
4662$1
4663_LTECHO_EOF'
4664 }
4665 ECHO='func_fallback_echo'
4666fi
4667
4668# func_echo_all arg...
4669# Invoke $ECHO with all args, space-separated.
4670func_echo_all ()
4671{
4672 $ECHO ""
4673}
4674
4675case "$ECHO" in
4676 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4677$as_echo "printf" >&6; } ;;
4678 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4679$as_echo "print -r" >&6; } ;;
4680 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4681$as_echo "cat" >&6; } ;;
4682esac
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699# Check whether --with-gnu-ld was given.
4700if test "${with_gnu_ld+set}" = set; then :
4701 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4702else
4703 with_gnu_ld=no
4704fi
4705
4706ac_prog=ld
4707if test "$GCC" = yes; then
4708 # Check if gcc -print-prog-name=ld gives a path.
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4710$as_echo_n "checking for ld used by $CC... " >&6; }
4711 case $host in
4712 *-*-mingw*)
4713 # gcc leaves a trailing carriage return which upsets mingw
4714 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4715 *)
4716 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4717 esac
4718 case $ac_prog in
4719 # Accept absolute paths.
4720 [\\/]* | ?:[\\/]*)
4721 re_direlt='/[^/][^/]*/\.\./'
4722 # Canonicalize the pathname of ld
4723 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4724 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4725 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4726 done
4727 test -z "$LD" && LD="$ac_prog"
4728 ;;
4729 "")
4730 # If it fails, then pretend we aren't using GCC.
4731 ac_prog=ld
4732 ;;
4733 *)
4734 # If it is relative, then search for the first ld in PATH.
4735 with_gnu_ld=unknown
4736 ;;
4737 esac
4738elif test "$with_gnu_ld" = yes; then
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4740$as_echo_n "checking for GNU ld... " >&6; }
4741else
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4743$as_echo_n "checking for non-GNU ld... " >&6; }
4744fi
4745if test "${lt_cv_path_LD+set}" = set; then :
4746 $as_echo_n "(cached) " >&6
4747else
4748 if test -z "$LD"; then
4749 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4750 for ac_dir in $PATH; do
4751 IFS="$lt_save_ifs"
4752 test -z "$ac_dir" && ac_dir=.
4753 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4754 lt_cv_path_LD="$ac_dir/$ac_prog"
4755 # Check to see if the program is GNU ld. I'd rather use --version,
4756 # but apparently some variants of GNU ld only accept -v.
4757 # Break only if it was the GNU/non-GNU ld that we prefer.
4758 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4759 *GNU* | *'with BFD'*)
4760 test "$with_gnu_ld" != no && break
4761 ;;
4762 *)
4763 test "$with_gnu_ld" != yes && break
4764 ;;
4765 esac
4766 fi
4767 done
4768 IFS="$lt_save_ifs"
4769else
4770 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4771fi
4772fi
4773
4774LD="$lt_cv_path_LD"
4775if test -n "$LD"; then
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4777$as_echo "$LD" >&6; }
4778else
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4780$as_echo "no" >&6; }
4781fi
4782test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4784$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4785if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4786 $as_echo_n "(cached) " >&6
4787else
4788 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4789case `$LD -v 2>&1 </dev/null` in
4790*GNU* | *'with BFD'*)
4791 lt_cv_prog_gnu_ld=yes
4792 ;;
4793*)
4794 lt_cv_prog_gnu_ld=no
4795 ;;
4796esac
4797fi
4798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4799$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4800with_gnu_ld=$lt_cv_prog_gnu_ld
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810if test -n "$ac_tool_prefix"; then
4811 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4812set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4814$as_echo_n "checking for $ac_word... " >&6; }
4815if test "${ac_cv_prog_RANLIB+set}" = set; then :
4816 $as_echo_n "(cached) " >&6
4817else
4818 if test -n "$RANLIB"; then
4819 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4820else
4821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822for as_dir in $PATH
4823do
4824 IFS=$as_save_IFS
4825 test -z "$as_dir" && as_dir=.
4826 for ac_exec_ext in '' $ac_executable_extensions; do
4827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4828 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4830 break 2
4831 fi
4832done
4833 done
4834IFS=$as_save_IFS
4835
4836fi
4837fi
4838RANLIB=$ac_cv_prog_RANLIB
4839if test -n "$RANLIB"; then
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4841$as_echo "$RANLIB" >&6; }
4842else
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4844$as_echo "no" >&6; }
4845fi
4846
4847
4848fi
4849if test -z "$ac_cv_prog_RANLIB"; then
4850 ac_ct_RANLIB=$RANLIB
4851 # Extract the first word of "ranlib", so it can be a program name with args.
4852set dummy ranlib; ac_word=$2
4853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854$as_echo_n "checking for $ac_word... " >&6; }
4855if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4856 $as_echo_n "(cached) " >&6
4857else
4858 if test -n "$ac_ct_RANLIB"; then
4859 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4860else
4861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862for as_dir in $PATH
4863do
4864 IFS=$as_save_IFS
4865 test -z "$as_dir" && as_dir=.
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4868 ac_cv_prog_ac_ct_RANLIB="ranlib"
4869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4870 break 2
4871 fi
4872done
4873 done
4874IFS=$as_save_IFS
4875
4876fi
4877fi
4878ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4879if test -n "$ac_ct_RANLIB"; then
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4881$as_echo "$ac_ct_RANLIB" >&6; }
4882else
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884$as_echo "no" >&6; }
4885fi
4886
4887 if test "x$ac_ct_RANLIB" = x; then
4888 RANLIB=":"
4889 else
4890 case $cross_compiling:$ac_tool_warned in
4891yes:)
4892{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4894ac_tool_warned=yes ;;
4895esac
4896 RANLIB=$ac_ct_RANLIB
4897 fi
4898else
4899 RANLIB="$ac_cv_prog_RANLIB"
4900fi
4901
4902if test -n "$ac_tool_prefix"; then
4903 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4904set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4906$as_echo_n "checking for $ac_word... " >&6; }
4907if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4908 $as_echo_n "(cached) " >&6
4909else
4910 if test -n "$OBJCOPY"; then
4911 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4912else
4913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914for as_dir in $PATH
4915do
4916 IFS=$as_save_IFS
4917 test -z "$as_dir" && as_dir=.
4918 for ac_exec_ext in '' $ac_executable_extensions; do
4919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4920 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4922 break 2
4923 fi
4924done
4925 done
4926IFS=$as_save_IFS
4927
4928fi
4929fi
4930OBJCOPY=$ac_cv_prog_OBJCOPY
4931if test -n "$OBJCOPY"; then
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4933$as_echo "$OBJCOPY" >&6; }
4934else
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4936$as_echo "no" >&6; }
4937fi
4938
4939
4940fi
4941if test -z "$ac_cv_prog_OBJCOPY"; then
4942 ac_ct_OBJCOPY=$OBJCOPY
4943 # Extract the first word of "objcopy", so it can be a program name with args.
4944set dummy objcopy; ac_word=$2
4945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4946$as_echo_n "checking for $ac_word... " >&6; }
4947if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4948 $as_echo_n "(cached) " >&6
4949else
4950 if test -n "$ac_ct_OBJCOPY"; then
4951 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4952else
4953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954for as_dir in $PATH
4955do
4956 IFS=$as_save_IFS
4957 test -z "$as_dir" && as_dir=.
4958 for ac_exec_ext in '' $ac_executable_extensions; do
4959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4960 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4962 break 2
4963 fi
4964done
4965 done
4966IFS=$as_save_IFS
4967
4968fi
4969fi
4970ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4971if test -n "$ac_ct_OBJCOPY"; then
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4973$as_echo "$ac_ct_OBJCOPY" >&6; }
4974else
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4976$as_echo "no" >&6; }
4977fi
4978
4979 if test "x$ac_ct_OBJCOPY" = x; then
4980 OBJCOPY="missing-objcopy"
4981 else
4982 case $cross_compiling:$ac_tool_warned in
4983yes:)
4984{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4985$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4986ac_tool_warned=yes ;;
4987esac
4988 OBJCOPY=$ac_ct_OBJCOPY
4989 fi
4990else
4991 OBJCOPY="$ac_cv_prog_OBJCOPY"
4992fi
4993
4994
4995enable_dlopen=yes
4996
4997
4998
4999case `pwd` in
5000 *\ * | *\ *)
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5002$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5003esac
5004
5005
5006
5007macro_version='2.2.7a'
5008macro_revision='1.3134'
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022ltmain="$ac_aux_dir/ltmain.sh"
5023
5024# Backslashify metacharacters that are still active within
5025# double-quoted strings.
5026sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5027
5028# Same as above, but do not quote variable references.
5029double_quote_subst='s/\(["`\\]\)/\\\1/g'
5030
5031# Sed substitution to delay expansion of an escaped shell variable in a
5032# double_quote_subst'ed string.
5033delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5034
5035# Sed substitution to delay expansion of an escaped single quote.
5036delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5037
5038# Sed substitution to avoid accidental globbing in evaled expressions
5039no_glob_subst='s/\*/\\\*/g'
5040
5041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5042$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5043if test "${lt_cv_path_NM+set}" = set; then :
5044 $as_echo_n "(cached) " >&6
5045else
5046 if test -n "$NM"; then
5047 # Let the user override the test.
5048 lt_cv_path_NM="$NM"
5049else
5050 lt_nm_to_check="${ac_tool_prefix}nm"
5051 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5052 lt_nm_to_check="$lt_nm_to_check nm"
5053 fi
5054 for lt_tmp_nm in $lt_nm_to_check; do
5055 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5056 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5057 IFS="$lt_save_ifs"
5058 test -z "$ac_dir" && ac_dir=.
5059 tmp_nm="$ac_dir/$lt_tmp_nm"
5060 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5061 # Check to see if the nm accepts a BSD-compat flag.
5062 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5063 # nm: unknown option "B" ignored
5064 # Tru64's nm complains that /dev/null is an invalid object file
5065 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5066 */dev/null* | *'Invalid file or object type'*)
5067 lt_cv_path_NM="$tmp_nm -B"
5068 break
5069 ;;
5070 *)
5071 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5072 */dev/null*)
5073 lt_cv_path_NM="$tmp_nm -p"
5074 break
5075 ;;
5076 *)
5077 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5078 continue # so that we can try to find one that supports BSD flags
5079 ;;
5080 esac
5081 ;;
5082 esac
5083 fi
5084 done
5085 IFS="$lt_save_ifs"
5086 done
5087 : ${lt_cv_path_NM=no}
5088fi
5089fi
5090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5091$as_echo "$lt_cv_path_NM" >&6; }
5092if test "$lt_cv_path_NM" != "no"; then
5093 NM="$lt_cv_path_NM"
5094else
5095 # Didn't find any BSD compatible name lister, look for dumpbin.
5096 if test -n "$DUMPBIN"; then :
5097 # Let the user override the test.
5098 else
5099 if test -n "$ac_tool_prefix"; then
5100 for ac_prog in dumpbin "link -dump"
5101 do
5102 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5103set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5105$as_echo_n "checking for $ac_word... " >&6; }
5106if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5107 $as_echo_n "(cached) " >&6
5108else
5109 if test -n "$DUMPBIN"; then
5110 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5111else
5112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113for as_dir in $PATH
5114do
5115 IFS=$as_save_IFS
5116 test -z "$as_dir" && as_dir=.
5117 for ac_exec_ext in '' $ac_executable_extensions; do
5118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5119 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5121 break 2
5122 fi
5123done
5124 done
5125IFS=$as_save_IFS
5126
5127fi
5128fi
5129DUMPBIN=$ac_cv_prog_DUMPBIN
5130if test -n "$DUMPBIN"; then
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5132$as_echo "$DUMPBIN" >&6; }
5133else
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5135$as_echo "no" >&6; }
5136fi
5137
5138
5139 test -n "$DUMPBIN" && break
5140 done
5141fi
5142if test -z "$DUMPBIN"; then
5143 ac_ct_DUMPBIN=$DUMPBIN
5144 for ac_prog in dumpbin "link -dump"
5145do
5146 # Extract the first word of "$ac_prog", so it can be a program name with args.
5147set dummy $ac_prog; ac_word=$2
5148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5149$as_echo_n "checking for $ac_word... " >&6; }
5150if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5151 $as_echo_n "(cached) " >&6
5152else
5153 if test -n "$ac_ct_DUMPBIN"; then
5154 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5155else
5156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157for as_dir in $PATH
5158do
5159 IFS=$as_save_IFS
5160 test -z "$as_dir" && as_dir=.
5161 for ac_exec_ext in '' $ac_executable_extensions; do
5162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5163 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5165 break 2
5166 fi
5167done
5168 done
5169IFS=$as_save_IFS
5170
5171fi
5172fi
5173ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5174if test -n "$ac_ct_DUMPBIN"; then
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5176$as_echo "$ac_ct_DUMPBIN" >&6; }
5177else
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179$as_echo "no" >&6; }
5180fi
5181
5182
5183 test -n "$ac_ct_DUMPBIN" && break
5184done
5185
5186 if test "x$ac_ct_DUMPBIN" = x; then
5187 DUMPBIN=":"
5188 else
5189 case $cross_compiling:$ac_tool_warned in
5190yes:)
5191{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5192$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5193ac_tool_warned=yes ;;
5194esac
5195 DUMPBIN=$ac_ct_DUMPBIN
5196 fi
5197fi
5198
5199 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5200 *COFF*)
5201 DUMPBIN="$DUMPBIN -symbols"
5202 ;;
5203 *)
5204 DUMPBIN=:
5205 ;;
5206 esac
5207 fi
5208
5209 if test "$DUMPBIN" != ":"; then
5210 NM="$DUMPBIN"
5211 fi
5212fi
5213test -z "$NM" && NM=nm
5214
5215
5216
5217
5218
5219
5220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5221$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5222if test "${lt_cv_nm_interface+set}" = set; then :
5223 $as_echo_n "(cached) " >&6
5224else
5225 lt_cv_nm_interface="BSD nm"
5226 echo "int some_variable = 0;" > conftest.$ac_ext
5227 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5228 (eval "$ac_compile" 2>conftest.err)
5229 cat conftest.err >&5
5230 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5231 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5232 cat conftest.err >&5
5233 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5234 cat conftest.out >&5
5235 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5236 lt_cv_nm_interface="MS dumpbin"
5237 fi
5238 rm -f conftest*
5239fi
5240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5241$as_echo "$lt_cv_nm_interface" >&6; }
5242
5243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5244$as_echo_n "checking whether ln -s works... " >&6; }
5245LN_S=$as_ln_s
5246if test "$LN_S" = "ln -s"; then
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5248$as_echo "yes" >&6; }
5249else
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5251$as_echo "no, using $LN_S" >&6; }
5252fi
5253
5254# find the maximum length of command line arguments
5255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5256$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5257if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5258 $as_echo_n "(cached) " >&6
5259else
5260 i=0
5261 teststring="ABCD"
5262
5263 case $build_os in
5264 msdosdjgpp*)
5265 # On DJGPP, this test can blow up pretty badly due to problems in libc
5266 # (any single argument exceeding 2000 bytes causes a buffer overrun
5267 # during glob expansion). Even if it were fixed, the result of this
5268 # check would be larger than it should be.
5269 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5270 ;;
5271
5272 gnu*)
5273 # Under GNU Hurd, this test is not required because there is
5274 # no limit to the length of command line arguments.
5275 # Libtool will interpret -1 as no limit whatsoever
5276 lt_cv_sys_max_cmd_len=-1;
5277 ;;
5278
5279 cygwin* | mingw* | cegcc*)
5280 # On Win9x/ME, this test blows up -- it succeeds, but takes
5281 # about 5 minutes as the teststring grows exponentially.
5282 # Worse, since 9x/ME are not pre-emptively multitasking,
5283 # you end up with a "frozen" computer, even though with patience
5284 # the test eventually succeeds (with a max line length of 256k).
5285 # Instead, let's just punt: use the minimum linelength reported by
5286 # all of the supported platforms: 8192 (on NT/2K/XP).
5287 lt_cv_sys_max_cmd_len=8192;
5288 ;;
5289
5290 mint*)
5291 # On MiNT this can take a long time and run out of memory.
5292 lt_cv_sys_max_cmd_len=8192;
5293 ;;
5294
5295 amigaos*)
5296 # On AmigaOS with pdksh, this test takes hours, literally.
5297 # So we just punt and use a minimum line length of 8192.
5298 lt_cv_sys_max_cmd_len=8192;
5299 ;;
5300
5301 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5302 # This has been around since 386BSD, at least. Likely further.
5303 if test -x /sbin/sysctl; then
5304 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5305 elif test -x /usr/sbin/sysctl; then
5306 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5307 else
5308 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5309 fi
5310 # And add a safety zone
5311 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5312 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5313 ;;
5314
5315 interix*)
5316 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5317 lt_cv_sys_max_cmd_len=196608
5318 ;;
5319
5320 osf*)
5321 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5322 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5323 # nice to cause kernel panics so lets avoid the loop below.
5324 # First set a reasonable default.
5325 lt_cv_sys_max_cmd_len=16384
5326 #
5327 if test -x /sbin/sysconfig; then
5328 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5329 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5330 esac
5331 fi
5332 ;;
5333 sco3.2v5*)
5334 lt_cv_sys_max_cmd_len=102400
5335 ;;
5336 sysv5* | sco5v6* | sysv4.2uw2*)
5337 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5338 if test -n "$kargmax"; then
5339 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5340 else
5341 lt_cv_sys_max_cmd_len=32768
5342 fi
5343 ;;
5344 *)
5345 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5346 if test -n "$lt_cv_sys_max_cmd_len"; then
5347 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5348 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5349 else
5350 # Make teststring a little bigger before we do anything with it.
5351 # a 1K string should be a reasonable start.
5352 for i in 1 2 3 4 5 6 7 8 ; do
5353 teststring=$teststring$teststring
5354 done
5355 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5356 # If test is not a shell built-in, we'll probably end up computing a
5357 # maximum length that is only half of the actual maximum length, but
5358 # we can't tell.
5359 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5360 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5361 test $i != 17 # 1/2 MB should be enough
5362 do
5363 i=`expr $i + 1`
5364 teststring=$teststring$teststring
5365 done
5366 # Only check the string length outside the loop.
5367 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5368 teststring=
5369 # Add a significant safety factor because C++ compilers can tack on
5370 # massive amounts of additional arguments before passing them to the
5371 # linker. It appears as though 1/2 is a usable value.
5372 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5373 fi
5374 ;;
5375 esac
5376
5377fi
5378
5379if test -n $lt_cv_sys_max_cmd_len ; then
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5381$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5382else
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5384$as_echo "none" >&6; }
5385fi
5386max_cmd_len=$lt_cv_sys_max_cmd_len
5387
5388
5389
5390
5391
5392
5393: ${CP="cp -f"}
5394: ${MV="mv -f"}
5395: ${RM="rm -f"}
5396
5397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5398$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5399# Try some XSI features
5400xsi_shell=no
5401( _lt_dummy="a/b/c"
5402 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5403 = c,a/b,, \
5404 && eval 'test $(( 1 + 1 )) -eq 2 \
5405 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5406 && xsi_shell=yes
5407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5408$as_echo "$xsi_shell" >&6; }
5409
5410
5411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5412$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5413lt_shell_append=no
5414( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5415 >/dev/null 2>&1 \
5416 && lt_shell_append=yes
5417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5418$as_echo "$lt_shell_append" >&6; }
5419
5420
5421if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5422 lt_unset=unset
5423else
5424 lt_unset=false
5425fi
5426
5427
5428
5429
5430
5431# test EBCDIC or ASCII
5432case `echo X|tr X '\101'` in
5433 A) # ASCII based system
5434 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5435 lt_SP2NL='tr \040 \012'
5436 lt_NL2SP='tr \015\012 \040\040'
5437 ;;
5438 *) # EBCDIC based system
5439 lt_SP2NL='tr \100 \n'
5440 lt_NL2SP='tr \r\n \100\100'
5441 ;;
5442esac
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5453$as_echo_n "checking for $LD option to reload object files... " >&6; }
5454if test "${lt_cv_ld_reload_flag+set}" = set; then :
5455 $as_echo_n "(cached) " >&6
5456else
5457 lt_cv_ld_reload_flag='-r'
5458fi
5459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5460$as_echo "$lt_cv_ld_reload_flag" >&6; }
5461reload_flag=$lt_cv_ld_reload_flag
5462case $reload_flag in
5463"" | " "*) ;;
5464*) reload_flag=" $reload_flag" ;;
5465esac
5466reload_cmds='$LD$reload_flag -o $output$reload_objs'
5467case $host_os in
5468 darwin*)
5469 if test "$GCC" = yes; then
5470 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5471 else
5472 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5473 fi
5474 ;;
5475esac
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485if test -n "$ac_tool_prefix"; then
5486 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5487set dummy ${ac_tool_prefix}objdump; ac_word=$2
5488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5489$as_echo_n "checking for $ac_word... " >&6; }
5490if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5491 $as_echo_n "(cached) " >&6
5492else
5493 if test -n "$OBJDUMP"; then
5494 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5495else
5496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497for as_dir in $PATH
5498do
5499 IFS=$as_save_IFS
5500 test -z "$as_dir" && as_dir=.
5501 for ac_exec_ext in '' $ac_executable_extensions; do
5502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5503 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5505 break 2
5506 fi
5507done
5508 done
5509IFS=$as_save_IFS
5510
5511fi
5512fi
5513OBJDUMP=$ac_cv_prog_OBJDUMP
5514if test -n "$OBJDUMP"; then
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5516$as_echo "$OBJDUMP" >&6; }
5517else
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519$as_echo "no" >&6; }
5520fi
5521
5522
5523fi
5524if test -z "$ac_cv_prog_OBJDUMP"; then
5525 ac_ct_OBJDUMP=$OBJDUMP
5526 # Extract the first word of "objdump", so it can be a program name with args.
5527set dummy objdump; ac_word=$2
5528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5529$as_echo_n "checking for $ac_word... " >&6; }
5530if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5531 $as_echo_n "(cached) " >&6
5532else
5533 if test -n "$ac_ct_OBJDUMP"; then
5534 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5535else
5536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5537for as_dir in $PATH
5538do
5539 IFS=$as_save_IFS
5540 test -z "$as_dir" && as_dir=.
5541 for ac_exec_ext in '' $ac_executable_extensions; do
5542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5543 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5545 break 2
5546 fi
5547done
5548 done
5549IFS=$as_save_IFS
5550
5551fi
5552fi
5553ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5554if test -n "$ac_ct_OBJDUMP"; then
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5556$as_echo "$ac_ct_OBJDUMP" >&6; }
5557else
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5559$as_echo "no" >&6; }
5560fi
5561
5562 if test "x$ac_ct_OBJDUMP" = x; then
5563 OBJDUMP="false"
5564 else
5565 case $cross_compiling:$ac_tool_warned in
5566yes:)
5567{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5568$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5569ac_tool_warned=yes ;;
5570esac
5571 OBJDUMP=$ac_ct_OBJDUMP
5572 fi
5573else
5574 OBJDUMP="$ac_cv_prog_OBJDUMP"
5575fi
5576
5577test -z "$OBJDUMP" && OBJDUMP=objdump
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5588$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5589if test "${lt_cv_deplibs_check_method+set}" = set; then :
5590 $as_echo_n "(cached) " >&6
5591else
5592 lt_cv_file_magic_cmd='$MAGIC_CMD'
5593lt_cv_file_magic_test_file=
5594lt_cv_deplibs_check_method='unknown'
5595# Need to set the preceding variable on all platforms that support
5596# interlibrary dependencies.
5597# 'none' -- dependencies not supported.
5598# `unknown' -- same as none, but documents that we really don't know.
5599# 'pass_all' -- all dependencies passed with no checks.
5600# 'test_compile' -- check by making test program.
5601# 'file_magic [[regex]]' -- check by looking for files in library path
5602# which responds to the $file_magic_cmd with a given extended regex.
5603# If you have `file' or equivalent on your system and you're not sure
5604# whether `pass_all' will *always* work, you probably want this one.
5605
5606case $host_os in
5607aix[4-9]*)
5608 lt_cv_deplibs_check_method=pass_all
5609 ;;
5610
5611beos*)
5612 lt_cv_deplibs_check_method=pass_all
5613 ;;
5614
5615bsdi[45]*)
5616 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5617 lt_cv_file_magic_cmd='/usr/bin/file -L'
5618 lt_cv_file_magic_test_file=/shlib/libc.so
5619 ;;
5620
5621cygwin*)
5622 # func_win32_libid is a shell function defined in ltmain.sh
5623 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5624 lt_cv_file_magic_cmd='func_win32_libid'
5625 ;;
5626
5627mingw* | pw32*)
5628 # Base MSYS/MinGW do not provide the 'file' command needed by
5629 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5630 # unless we find 'file', for example because we are cross-compiling.
5631 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5632 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5633 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5634 lt_cv_file_magic_cmd='func_win32_libid'
5635 else
5636 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5637 lt_cv_file_magic_cmd='$OBJDUMP -f'
5638 fi
5639 ;;
5640
5641cegcc*)
5642 # use the weaker test based on 'objdump'. See mingw*.
5643 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5644 lt_cv_file_magic_cmd='$OBJDUMP -f'
5645 ;;
5646
5647darwin* | rhapsody*)
5648 lt_cv_deplibs_check_method=pass_all
5649 ;;
5650
5651freebsd* | dragonfly*)
5652 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5653 case $host_cpu in
5654 i*86 )
5655 # Not sure whether the presence of OpenBSD here was a mistake.
5656 # Let's accept both of them until this is cleared up.
5657 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5658 lt_cv_file_magic_cmd=/usr/bin/file
5659 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5660 ;;
5661 esac
5662 else
5663 lt_cv_deplibs_check_method=pass_all
5664 fi
5665 ;;
5666
5667gnu*)
5668 lt_cv_deplibs_check_method=pass_all
5669 ;;
5670
5671haiku*)
5672 lt_cv_deplibs_check_method=pass_all
5673 ;;
5674
5675hpux10.20* | hpux11*)
5676 lt_cv_file_magic_cmd=/usr/bin/file
5677 case $host_cpu in
5678 ia64*)
5679 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5680 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5681 ;;
5682 hppa*64*)
5683 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]'
5684 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5685 ;;
5686 *)
5687 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5688 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5689 ;;
5690 esac
5691 ;;
5692
5693interix[3-9]*)
5694 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5695 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5696 ;;
5697
5698irix5* | irix6* | nonstopux*)
5699 case $LD in
5700 *-32|*"-32 ") libmagic=32-bit;;
5701 *-n32|*"-n32 ") libmagic=N32;;
5702 *-64|*"-64 ") libmagic=64-bit;;
5703 *) libmagic=never-match;;
5704 esac
5705 lt_cv_deplibs_check_method=pass_all
5706 ;;
5707
5708# This must be Linux ELF.
5709linux* | k*bsd*-gnu | kopensolaris*-gnu)
5710 lt_cv_deplibs_check_method=pass_all
5711 ;;
5712
5713netbsd*)
5714 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5715 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5716 else
5717 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5718 fi
5719 ;;
5720
5721newos6*)
5722 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5723 lt_cv_file_magic_cmd=/usr/bin/file
5724 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5725 ;;
5726
5727*nto* | *qnx*)
5728 lt_cv_deplibs_check_method=pass_all
5729 ;;
5730
5731openbsd*)
5732 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5733 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5734 else
5735 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5736 fi
5737 ;;
5738
5739osf3* | osf4* | osf5*)
5740 lt_cv_deplibs_check_method=pass_all
5741 ;;
5742
5743rdos*)
5744 lt_cv_deplibs_check_method=pass_all
5745 ;;
5746
5747solaris*)
5748 lt_cv_deplibs_check_method=pass_all
5749 ;;
5750
5751sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5752 lt_cv_deplibs_check_method=pass_all
5753 ;;
5754
5755sysv4 | sysv4.3*)
5756 case $host_vendor in
5757 motorola)
5758 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]'
5759 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5760 ;;
5761 ncr)
5762 lt_cv_deplibs_check_method=pass_all
5763 ;;
5764 sequent)
5765 lt_cv_file_magic_cmd='/bin/file'
5766 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5767 ;;
5768 sni)
5769 lt_cv_file_magic_cmd='/bin/file'
5770 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5771 lt_cv_file_magic_test_file=/lib/libc.so
5772 ;;
5773 siemens)
5774 lt_cv_deplibs_check_method=pass_all
5775 ;;
5776 pc)
5777 lt_cv_deplibs_check_method=pass_all
5778 ;;
5779 esac
5780 ;;
5781
5782tpf*)
5783 lt_cv_deplibs_check_method=pass_all
5784 ;;
5785esac
5786
5787fi
5788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5789$as_echo "$lt_cv_deplibs_check_method" >&6; }
5790file_magic_cmd=$lt_cv_file_magic_cmd
5791deplibs_check_method=$lt_cv_deplibs_check_method
5792test -z "$deplibs_check_method" && deplibs_check_method=unknown
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805if test -n "$ac_tool_prefix"; then
5806 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5807set dummy ${ac_tool_prefix}ar; ac_word=$2
5808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5809$as_echo_n "checking for $ac_word... " >&6; }
5810if test "${ac_cv_prog_AR+set}" = set; then :
5811 $as_echo_n "(cached) " >&6
5812else
5813 if test -n "$AR"; then
5814 ac_cv_prog_AR="$AR" # Let the user override the test.
5815else
5816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817for as_dir in $PATH
5818do
5819 IFS=$as_save_IFS
5820 test -z "$as_dir" && as_dir=.
5821 for ac_exec_ext in '' $ac_executable_extensions; do
5822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5823 ac_cv_prog_AR="${ac_tool_prefix}ar"
5824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5825 break 2
5826 fi
5827done
5828 done
5829IFS=$as_save_IFS
5830
5831fi
5832fi
5833AR=$ac_cv_prog_AR
5834if test -n "$AR"; then
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5836$as_echo "$AR" >&6; }
5837else
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5839$as_echo "no" >&6; }
5840fi
5841
5842
5843fi
5844if test -z "$ac_cv_prog_AR"; then
5845 ac_ct_AR=$AR
5846 # Extract the first word of "ar", so it can be a program name with args.
5847set dummy ar; ac_word=$2
5848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5849$as_echo_n "checking for $ac_word... " >&6; }
5850if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5851 $as_echo_n "(cached) " >&6
5852else
5853 if test -n "$ac_ct_AR"; then
5854 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5855else
5856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857for as_dir in $PATH
5858do
5859 IFS=$as_save_IFS
5860 test -z "$as_dir" && as_dir=.
5861 for ac_exec_ext in '' $ac_executable_extensions; do
5862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5863 ac_cv_prog_ac_ct_AR="ar"
5864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5865 break 2
5866 fi
5867done
5868 done
5869IFS=$as_save_IFS
5870
5871fi
5872fi
5873ac_ct_AR=$ac_cv_prog_ac_ct_AR
5874if test -n "$ac_ct_AR"; then
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5876$as_echo "$ac_ct_AR" >&6; }
5877else
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5879$as_echo "no" >&6; }
5880fi
5881
5882 if test "x$ac_ct_AR" = x; then
5883 AR="false"
5884 else
5885 case $cross_compiling:$ac_tool_warned in
5886yes:)
5887{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5888$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5889ac_tool_warned=yes ;;
5890esac
5891 AR=$ac_ct_AR
5892 fi
5893else
5894 AR="$ac_cv_prog_AR"
5895fi
5896
5897test -z "$AR" && AR=ar
5898test -z "$AR_FLAGS" && AR_FLAGS=cru
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910if test -n "$ac_tool_prefix"; then
5911 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5912set dummy ${ac_tool_prefix}strip; ac_word=$2
5913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5914$as_echo_n "checking for $ac_word... " >&6; }
5915if test "${ac_cv_prog_STRIP+set}" = set; then :
5916 $as_echo_n "(cached) " >&6
5917else
5918 if test -n "$STRIP"; then
5919 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5920else
5921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922for as_dir in $PATH
5923do
5924 IFS=$as_save_IFS
5925 test -z "$as_dir" && as_dir=.
5926 for ac_exec_ext in '' $ac_executable_extensions; do
5927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5928 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5930 break 2
5931 fi
5932done
5933 done
5934IFS=$as_save_IFS
5935
5936fi
5937fi
5938STRIP=$ac_cv_prog_STRIP
5939if test -n "$STRIP"; then
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5941$as_echo "$STRIP" >&6; }
5942else
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5944$as_echo "no" >&6; }
5945fi
5946
5947
5948fi
5949if test -z "$ac_cv_prog_STRIP"; then
5950 ac_ct_STRIP=$STRIP
5951 # Extract the first word of "strip", so it can be a program name with args.
5952set dummy strip; ac_word=$2
5953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5954$as_echo_n "checking for $ac_word... " >&6; }
5955if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5956 $as_echo_n "(cached) " >&6
5957else
5958 if test -n "$ac_ct_STRIP"; then
5959 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5960else
5961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5962for as_dir in $PATH
5963do
5964 IFS=$as_save_IFS
5965 test -z "$as_dir" && as_dir=.
5966 for ac_exec_ext in '' $ac_executable_extensions; do
5967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5968 ac_cv_prog_ac_ct_STRIP="strip"
5969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5970 break 2
5971 fi
5972done
5973 done
5974IFS=$as_save_IFS
5975
5976fi
5977fi
5978ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5979if test -n "$ac_ct_STRIP"; then
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5981$as_echo "$ac_ct_STRIP" >&6; }
5982else
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5984$as_echo "no" >&6; }
5985fi
5986
5987 if test "x$ac_ct_STRIP" = x; then
5988 STRIP=":"
5989 else
5990 case $cross_compiling:$ac_tool_warned in
5991yes:)
5992{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5993$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5994ac_tool_warned=yes ;;
5995esac
5996 STRIP=$ac_ct_STRIP
5997 fi
5998else
5999 STRIP="$ac_cv_prog_STRIP"
6000fi
6001
6002test -z "$STRIP" && STRIP=:
6003
6004
6005
6006
6007
6008
6009if test -n "$ac_tool_prefix"; then
6010 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6011set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6013$as_echo_n "checking for $ac_word... " >&6; }
6014if test "${ac_cv_prog_RANLIB+set}" = set; then :
6015 $as_echo_n "(cached) " >&6
6016else
6017 if test -n "$RANLIB"; then
6018 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6019else
6020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6021for as_dir in $PATH
6022do
6023 IFS=$as_save_IFS
6024 test -z "$as_dir" && as_dir=.
6025 for ac_exec_ext in '' $ac_executable_extensions; do
6026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6027 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6029 break 2
6030 fi
6031done
6032 done
6033IFS=$as_save_IFS
6034
6035fi
6036fi
6037RANLIB=$ac_cv_prog_RANLIB
6038if test -n "$RANLIB"; then
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6040$as_echo "$RANLIB" >&6; }
6041else
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6043$as_echo "no" >&6; }
6044fi
6045
6046
6047fi
6048if test -z "$ac_cv_prog_RANLIB"; then
6049 ac_ct_RANLIB=$RANLIB
6050 # Extract the first word of "ranlib", so it can be a program name with args.
6051set dummy ranlib; ac_word=$2
6052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6053$as_echo_n "checking for $ac_word... " >&6; }
6054if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6055 $as_echo_n "(cached) " >&6
6056else
6057 if test -n "$ac_ct_RANLIB"; then
6058 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6059else
6060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061for as_dir in $PATH
6062do
6063 IFS=$as_save_IFS
6064 test -z "$as_dir" && as_dir=.
6065 for ac_exec_ext in '' $ac_executable_extensions; do
6066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6067 ac_cv_prog_ac_ct_RANLIB="ranlib"
6068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6069 break 2
6070 fi
6071done
6072 done
6073IFS=$as_save_IFS
6074
6075fi
6076fi
6077ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6078if test -n "$ac_ct_RANLIB"; then
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6080$as_echo "$ac_ct_RANLIB" >&6; }
6081else
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6083$as_echo "no" >&6; }
6084fi
6085
6086 if test "x$ac_ct_RANLIB" = x; then
6087 RANLIB=":"
6088 else
6089 case $cross_compiling:$ac_tool_warned in
6090yes:)
6091{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6092$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6093ac_tool_warned=yes ;;
6094esac
6095 RANLIB=$ac_ct_RANLIB
6096 fi
6097else
6098 RANLIB="$ac_cv_prog_RANLIB"
6099fi
6100
6101test -z "$RANLIB" && RANLIB=:
6102
6103
6104
6105
6106
6107
6108# Determine commands to create old-style static archives.
6109old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6110old_postinstall_cmds='chmod 644 $oldlib'
6111old_postuninstall_cmds=
6112
6113if test -n "$RANLIB"; then
6114 case $host_os in
6115 openbsd*)
6116 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6117 ;;
6118 *)
6119 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6120 ;;
6121 esac
6122 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6123fi
6124
6125case $host_os in
6126 darwin*)
6127 lock_old_archive_extraction=yes ;;
6128 *)
6129 lock_old_archive_extraction=no ;;
6130esac
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170# If no C compiler was specified, use CC.
6171LTCC=${LTCC-"$CC"}
6172
6173# If no C compiler flags were specified, use CFLAGS.
6174LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6175
6176# Allow CC to be a program name with arguments.
6177compiler=$CC
6178
6179
6180# Check for command to grab the raw symbol name followed by C symbol from nm.
6181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6182$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6183if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6184 $as_echo_n "(cached) " >&6
6185else
6186
6187# These are sane defaults that work on at least a few old systems.
6188# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6189
6190# Character class describing NM global symbol codes.
6191symcode='[BCDEGRST]'
6192
6193# Regexp to match symbols that can be accessed directly from C.
6194sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6195
6196# Define system-specific variables.
6197case $host_os in
6198aix*)
6199 symcode='[BCDT]'
6200 ;;
6201cygwin* | mingw* | pw32* | cegcc*)
6202 symcode='[ABCDGISTW]'
6203 ;;
6204hpux*)
6205 if test "$host_cpu" = ia64; then
6206 symcode='[ABCDEGRST]'
6207 fi
6208 ;;
6209irix* | nonstopux*)
6210 symcode='[BCDEGRST]'
6211 ;;
6212osf*)
6213 symcode='[BCDEGQRST]'
6214 ;;
6215solaris*)
6216 symcode='[BDRT]'
6217 ;;
6218sco3.2v5*)
6219 symcode='[DT]'
6220 ;;
6221sysv4.2uw2*)
6222 symcode='[DT]'
6223 ;;
6224sysv5* | sco5v6* | unixware* | OpenUNIX*)
6225 symcode='[ABDT]'
6226 ;;
6227sysv4)
6228 symcode='[DFNSTU]'
6229 ;;
6230esac
6231
6232# If we're using GNU nm, then use its standard symbol codes.
6233case `$NM -V 2>&1` in
6234*GNU* | *'with BFD'*)
6235 symcode='[ABCDGIRSTW]' ;;
6236esac
6237
6238# Transform an extracted symbol line into a proper C declaration.
6239# Some systems (esp. on ia64) link data and code symbols differently,
6240# so use this general approach.
6241lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6242
6243# Transform an extracted symbol line into symbol name and symbol address
6244lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6245lt_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'"
6246
6247# Handle CRLF in mingw tool chain
6248opt_cr=
6249case $build_os in
6250mingw*)
6251 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6252 ;;
6253esac
6254
6255# Try without a prefix underscore, then with it.
6256for ac_symprfx in "" "_"; do
6257
6258 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6259 symxfrm="\\1 $ac_symprfx\\2 \\2"
6260
6261 # Write the raw and C identifiers.
6262 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6263 # Fake it for dumpbin and say T for any non-static function
6264 # and D for any global variable.
6265 # Also find C++ and __fastcall symbols from MSVC++,
6266 # which start with @ or ?.
6267 lt_cv_sys_global_symbol_pipe="$AWK '"\
6268" {last_section=section; section=\$ 3};"\
6269" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6270" \$ 0!~/External *\|/{next};"\
6271" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6272" {if(hide[section]) next};"\
6273" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6274" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6275" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6276" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6277" ' prfx=^$ac_symprfx"
6278 else
6279 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6280 fi
6281
6282 # Check to see that the pipe works correctly.
6283 pipe_works=no
6284
6285 rm -f conftest*
6286 cat > conftest.$ac_ext <<_LT_EOF
6287#ifdef __cplusplus
6288extern "C" {
6289#endif
6290char nm_test_var;
6291void nm_test_func(void);
6292void nm_test_func(void){}
6293#ifdef __cplusplus
6294}
6295#endif
6296int main(){nm_test_var='a';nm_test_func();return(0);}
6297_LT_EOF
6298
6299 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6300 (eval $ac_compile) 2>&5
6301 ac_status=$?
6302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6303 test $ac_status = 0; }; then
6304 # Now try to grab the symbols.
6305 nlist=conftest.nm
6306 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6307 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6308 ac_status=$?
6309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6310 test $ac_status = 0; } && test -s "$nlist"; then
6311 # Try sorting and uniquifying the output.
6312 if sort "$nlist" | uniq > "$nlist"T; then
6313 mv -f "$nlist"T "$nlist"
6314 else
6315 rm -f "$nlist"T
6316 fi
6317
6318 # Make sure that we snagged all the symbols we need.
6319 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6320 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6321 cat <<_LT_EOF > conftest.$ac_ext
6322#ifdef __cplusplus
6323extern "C" {
6324#endif
6325
6326_LT_EOF
6327 # Now generate the symbol file.
6328 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6329
6330 cat <<_LT_EOF >> conftest.$ac_ext
6331
6332/* The mapping between symbol names and symbols. */
6333const struct {
6334 const char *name;
6335 void *address;
6336}
6337lt__PROGRAM__LTX_preloaded_symbols[] =
6338{
6339 { "@PROGRAM@", (void *) 0 },
6340_LT_EOF
6341 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6342 cat <<\_LT_EOF >> conftest.$ac_ext
6343 {0, (void *) 0}
6344};
6345
6346/* This works around a problem in FreeBSD linker */
6347#ifdef FREEBSD_WORKAROUND
6348static const void *lt_preloaded_setup() {
6349 return lt__PROGRAM__LTX_preloaded_symbols;
6350}
6351#endif
6352
6353#ifdef __cplusplus
6354}
6355#endif
6356_LT_EOF
6357 # Now try linking the two files.
6358 mv conftest.$ac_objext conftstm.$ac_objext
6359 lt_save_LIBS="$LIBS"
6360 lt_save_CFLAGS="$CFLAGS"
6361 LIBS="conftstm.$ac_objext"
6362 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6364 (eval $ac_link) 2>&5
6365 ac_status=$?
6366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6367 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6368 pipe_works=yes
6369 fi
6370 LIBS="$lt_save_LIBS"
6371 CFLAGS="$lt_save_CFLAGS"
6372 else
6373 echo "cannot find nm_test_func in $nlist" >&5
6374 fi
6375 else
6376 echo "cannot find nm_test_var in $nlist" >&5
6377 fi
6378 else
6379 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6380 fi
6381 else
6382 echo "$progname: failed program was:" >&5
6383 cat conftest.$ac_ext >&5
6384 fi
6385 rm -rf conftest* conftst*
6386
6387 # Do not use the global_symbol_pipe unless it works.
6388 if test "$pipe_works" = yes; then
6389 break
6390 else
6391 lt_cv_sys_global_symbol_pipe=
6392 fi
6393done
6394
6395fi
6396
6397if test -z "$lt_cv_sys_global_symbol_pipe"; then
6398 lt_cv_sys_global_symbol_to_cdecl=
6399fi
6400if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6402$as_echo "failed" >&6; }
6403else
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6405$as_echo "ok" >&6; }
6406fi
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430# Check whether --enable-libtool-lock was given.
6431if test "${enable_libtool_lock+set}" = set; then :
6432 enableval=$enable_libtool_lock;
6433fi
6434
6435test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6436
6437# Some flags need to be propagated to the compiler or linker for good
6438# libtool support.
6439case $host in
6440ia64-*-hpux*)
6441 # Find out which ABI we are using.
6442 echo 'int i;' > conftest.$ac_ext
6443 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6444 (eval $ac_compile) 2>&5
6445 ac_status=$?
6446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6447 test $ac_status = 0; }; then
6448 case `/usr/bin/file conftest.$ac_objext` in
6449 *ELF-32*)
6450 HPUX_IA64_MODE="32"
6451 ;;
6452 *ELF-64*)
6453 HPUX_IA64_MODE="64"
6454 ;;
6455 esac
6456 fi
6457 rm -rf conftest*
6458 ;;
6459*-*-irix6*)
6460 # Find out which ABI we are using.
6461 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6463 (eval $ac_compile) 2>&5
6464 ac_status=$?
6465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6466 test $ac_status = 0; }; then
6467 if test "$lt_cv_prog_gnu_ld" = yes; then
6468 case `/usr/bin/file conftest.$ac_objext` in
6469 *32-bit*)
6470 LD="${LD-ld} -melf32bsmip"
6471 ;;
6472 *N32*)
6473 LD="${LD-ld} -melf32bmipn32"
6474 ;;
6475 *64-bit*)
6476 LD="${LD-ld} -melf64bmip"
6477 ;;
6478 esac
6479 else
6480 case `/usr/bin/file conftest.$ac_objext` in
6481 *32-bit*)
6482 LD="${LD-ld} -32"
6483 ;;
6484 *N32*)
6485 LD="${LD-ld} -n32"
6486 ;;
6487 *64-bit*)
6488 LD="${LD-ld} -64"
6489 ;;
6490 esac
6491 fi
6492 fi
6493 rm -rf conftest*
6494 ;;
6495
6496x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6497s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6498 # Find out which ABI we are using.
6499 echo 'int i;' > conftest.$ac_ext
6500 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6501 (eval $ac_compile) 2>&5
6502 ac_status=$?
6503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6504 test $ac_status = 0; }; then
6505 case `/usr/bin/file conftest.o` in
6506 *32-bit*)
6507 case $host in
6508 x86_64-*kfreebsd*-gnu)
6509 LD="${LD-ld} -m elf_i386_fbsd"
6510 ;;
6511 x86_64-*linux*)
6512 LD="${LD-ld} -m elf_i386"
6513 ;;
6514 ppc64-*linux*|powerpc64-*linux*)
6515 LD="${LD-ld} -m elf32ppclinux"
6516 ;;
6517 s390x-*linux*)
6518 LD="${LD-ld} -m elf_s390"
6519 ;;
6520 sparc64-*linux*)
6521 LD="${LD-ld} -m elf32_sparc"
6522 ;;
6523 esac
6524 ;;
6525 *64-bit*)
6526 case $host in
6527 x86_64-*kfreebsd*-gnu)
6528 LD="${LD-ld} -m elf_x86_64_fbsd"
6529 ;;
6530 x86_64-*linux*)
6531 LD="${LD-ld} -m elf_x86_64"
6532 ;;
6533 ppc*-*linux*|powerpc*-*linux*)
6534 LD="${LD-ld} -m elf64ppc"
6535 ;;
6536 s390*-*linux*|s390*-*tpf*)
6537 LD="${LD-ld} -m elf64_s390"
6538 ;;
6539 sparc*-*linux*)
6540 LD="${LD-ld} -m elf64_sparc"
6541 ;;
6542 esac
6543 ;;
6544 esac
6545 fi
6546 rm -rf conftest*
6547 ;;
6548
6549*-*-sco3.2v5*)
6550 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6551 SAVE_CFLAGS="$CFLAGS"
6552 CFLAGS="$CFLAGS -belf"
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6554$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6555if test "${lt_cv_cc_needs_belf+set}" = set; then :
6556 $as_echo_n "(cached) " >&6
6557else
6558 ac_ext=c
6559ac_cpp='$CPP $CPPFLAGS'
6560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6562ac_compiler_gnu=$ac_cv_c_compiler_gnu
6563
6564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6565/* end confdefs.h. */
6566
6567int
6568main ()
6569{
6570
6571 ;
6572 return 0;
6573}
6574_ACEOF
6575if ac_fn_c_try_link "$LINENO"; then :
6576 lt_cv_cc_needs_belf=yes
6577else
6578 lt_cv_cc_needs_belf=no
6579fi
6580rm -f core conftest.err conftest.$ac_objext \
6581 conftest$ac_exeext conftest.$ac_ext
6582 ac_ext=c
6583ac_cpp='$CPP $CPPFLAGS'
6584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6586ac_compiler_gnu=$ac_cv_c_compiler_gnu
6587
6588fi
6589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6590$as_echo "$lt_cv_cc_needs_belf" >&6; }
6591 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6592 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6593 CFLAGS="$SAVE_CFLAGS"
6594 fi
6595 ;;
63bcac1c 6596*-*solaris*)
e440a328 6597 # Find out which ABI we are using.
6598 echo 'int i;' > conftest.$ac_ext
6599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6600 (eval $ac_compile) 2>&5
6601 ac_status=$?
6602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6603 test $ac_status = 0; }; then
6604 case `/usr/bin/file conftest.o` in
6605 *64-bit*)
6606 case $lt_cv_prog_gnu_ld in
63bcac1c 6607 yes*)
6608 case $host in
14f27bc6 6609 i?86-*-solaris* | x86_64-*-solaris2.1[0-9]*)
63bcac1c 6610 LD="${LD-ld} -m elf_x86_64"
6611 ;;
6612 sparc*-*-solaris*)
6613 LD="${LD-ld} -m elf64_sparc"
6614 ;;
6615 esac
6616 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6617 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6618 LD="${LD-ld}_sol2"
6619 fi
6620 ;;
e440a328 6621 *)
6622 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6623 LD="${LD-ld} -64"
6624 fi
6625 ;;
6626 esac
6627 ;;
6628 esac
6629 fi
6630 rm -rf conftest*
6631 ;;
6632esac
6633
6634need_locks="$enable_libtool_lock"
6635
6636
6637 case $host_os in
6638 rhapsody* | darwin*)
6639 if test -n "$ac_tool_prefix"; then
6640 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6641set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6643$as_echo_n "checking for $ac_word... " >&6; }
6644if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6645 $as_echo_n "(cached) " >&6
6646else
6647 if test -n "$DSYMUTIL"; then
6648 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6649else
6650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651for as_dir in $PATH
6652do
6653 IFS=$as_save_IFS
6654 test -z "$as_dir" && as_dir=.
6655 for ac_exec_ext in '' $ac_executable_extensions; do
6656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6657 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6659 break 2
6660 fi
6661done
6662 done
6663IFS=$as_save_IFS
6664
6665fi
6666fi
6667DSYMUTIL=$ac_cv_prog_DSYMUTIL
6668if test -n "$DSYMUTIL"; then
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6670$as_echo "$DSYMUTIL" >&6; }
6671else
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6673$as_echo "no" >&6; }
6674fi
6675
6676
6677fi
6678if test -z "$ac_cv_prog_DSYMUTIL"; then
6679 ac_ct_DSYMUTIL=$DSYMUTIL
6680 # Extract the first word of "dsymutil", so it can be a program name with args.
6681set dummy dsymutil; ac_word=$2
6682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6683$as_echo_n "checking for $ac_word... " >&6; }
6684if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6685 $as_echo_n "(cached) " >&6
6686else
6687 if test -n "$ac_ct_DSYMUTIL"; then
6688 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6689else
6690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691for as_dir in $PATH
6692do
6693 IFS=$as_save_IFS
6694 test -z "$as_dir" && as_dir=.
6695 for ac_exec_ext in '' $ac_executable_extensions; do
6696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6697 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6699 break 2
6700 fi
6701done
6702 done
6703IFS=$as_save_IFS
6704
6705fi
6706fi
6707ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6708if test -n "$ac_ct_DSYMUTIL"; then
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6710$as_echo "$ac_ct_DSYMUTIL" >&6; }
6711else
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6713$as_echo "no" >&6; }
6714fi
6715
6716 if test "x$ac_ct_DSYMUTIL" = x; then
6717 DSYMUTIL=":"
6718 else
6719 case $cross_compiling:$ac_tool_warned in
6720yes:)
6721{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6722$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6723ac_tool_warned=yes ;;
6724esac
6725 DSYMUTIL=$ac_ct_DSYMUTIL
6726 fi
6727else
6728 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6729fi
6730
6731 if test -n "$ac_tool_prefix"; then
6732 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6733set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6735$as_echo_n "checking for $ac_word... " >&6; }
6736if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6737 $as_echo_n "(cached) " >&6
6738else
6739 if test -n "$NMEDIT"; then
6740 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6741else
6742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743for as_dir in $PATH
6744do
6745 IFS=$as_save_IFS
6746 test -z "$as_dir" && as_dir=.
6747 for ac_exec_ext in '' $ac_executable_extensions; do
6748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6749 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 break 2
6752 fi
6753done
6754 done
6755IFS=$as_save_IFS
6756
6757fi
6758fi
6759NMEDIT=$ac_cv_prog_NMEDIT
6760if test -n "$NMEDIT"; then
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6762$as_echo "$NMEDIT" >&6; }
6763else
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6765$as_echo "no" >&6; }
6766fi
6767
6768
6769fi
6770if test -z "$ac_cv_prog_NMEDIT"; then
6771 ac_ct_NMEDIT=$NMEDIT
6772 # Extract the first word of "nmedit", so it can be a program name with args.
6773set dummy nmedit; ac_word=$2
6774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6775$as_echo_n "checking for $ac_word... " >&6; }
6776if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6777 $as_echo_n "(cached) " >&6
6778else
6779 if test -n "$ac_ct_NMEDIT"; then
6780 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6781else
6782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783for as_dir in $PATH
6784do
6785 IFS=$as_save_IFS
6786 test -z "$as_dir" && as_dir=.
6787 for ac_exec_ext in '' $ac_executable_extensions; do
6788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6789 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6791 break 2
6792 fi
6793done
6794 done
6795IFS=$as_save_IFS
6796
6797fi
6798fi
6799ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6800if test -n "$ac_ct_NMEDIT"; then
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6802$as_echo "$ac_ct_NMEDIT" >&6; }
6803else
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6805$as_echo "no" >&6; }
6806fi
6807
6808 if test "x$ac_ct_NMEDIT" = x; then
6809 NMEDIT=":"
6810 else
6811 case $cross_compiling:$ac_tool_warned in
6812yes:)
6813{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6814$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6815ac_tool_warned=yes ;;
6816esac
6817 NMEDIT=$ac_ct_NMEDIT
6818 fi
6819else
6820 NMEDIT="$ac_cv_prog_NMEDIT"
6821fi
6822
6823 if test -n "$ac_tool_prefix"; then
6824 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6825set dummy ${ac_tool_prefix}lipo; ac_word=$2
6826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6827$as_echo_n "checking for $ac_word... " >&6; }
6828if test "${ac_cv_prog_LIPO+set}" = set; then :
6829 $as_echo_n "(cached) " >&6
6830else
6831 if test -n "$LIPO"; then
6832 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6833else
6834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835for as_dir in $PATH
6836do
6837 IFS=$as_save_IFS
6838 test -z "$as_dir" && as_dir=.
6839 for ac_exec_ext in '' $ac_executable_extensions; do
6840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6841 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6843 break 2
6844 fi
6845done
6846 done
6847IFS=$as_save_IFS
6848
6849fi
6850fi
6851LIPO=$ac_cv_prog_LIPO
6852if test -n "$LIPO"; then
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6854$as_echo "$LIPO" >&6; }
6855else
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6857$as_echo "no" >&6; }
6858fi
6859
6860
6861fi
6862if test -z "$ac_cv_prog_LIPO"; then
6863 ac_ct_LIPO=$LIPO
6864 # Extract the first word of "lipo", so it can be a program name with args.
6865set dummy lipo; ac_word=$2
6866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6867$as_echo_n "checking for $ac_word... " >&6; }
6868if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6869 $as_echo_n "(cached) " >&6
6870else
6871 if test -n "$ac_ct_LIPO"; then
6872 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6873else
6874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875for as_dir in $PATH
6876do
6877 IFS=$as_save_IFS
6878 test -z "$as_dir" && as_dir=.
6879 for ac_exec_ext in '' $ac_executable_extensions; do
6880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6881 ac_cv_prog_ac_ct_LIPO="lipo"
6882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6883 break 2
6884 fi
6885done
6886 done
6887IFS=$as_save_IFS
6888
6889fi
6890fi
6891ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6892if test -n "$ac_ct_LIPO"; then
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6894$as_echo "$ac_ct_LIPO" >&6; }
6895else
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6897$as_echo "no" >&6; }
6898fi
6899
6900 if test "x$ac_ct_LIPO" = x; then
6901 LIPO=":"
6902 else
6903 case $cross_compiling:$ac_tool_warned in
6904yes:)
6905{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6906$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6907ac_tool_warned=yes ;;
6908esac
6909 LIPO=$ac_ct_LIPO
6910 fi
6911else
6912 LIPO="$ac_cv_prog_LIPO"
6913fi
6914
6915 if test -n "$ac_tool_prefix"; then
6916 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6917set dummy ${ac_tool_prefix}otool; ac_word=$2
6918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6919$as_echo_n "checking for $ac_word... " >&6; }
6920if test "${ac_cv_prog_OTOOL+set}" = set; then :
6921 $as_echo_n "(cached) " >&6
6922else
6923 if test -n "$OTOOL"; then
6924 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6925else
6926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927for as_dir in $PATH
6928do
6929 IFS=$as_save_IFS
6930 test -z "$as_dir" && as_dir=.
6931 for ac_exec_ext in '' $ac_executable_extensions; do
6932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6933 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6935 break 2
6936 fi
6937done
6938 done
6939IFS=$as_save_IFS
6940
6941fi
6942fi
6943OTOOL=$ac_cv_prog_OTOOL
6944if test -n "$OTOOL"; then
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6946$as_echo "$OTOOL" >&6; }
6947else
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6949$as_echo "no" >&6; }
6950fi
6951
6952
6953fi
6954if test -z "$ac_cv_prog_OTOOL"; then
6955 ac_ct_OTOOL=$OTOOL
6956 # Extract the first word of "otool", so it can be a program name with args.
6957set dummy otool; ac_word=$2
6958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6959$as_echo_n "checking for $ac_word... " >&6; }
6960if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6961 $as_echo_n "(cached) " >&6
6962else
6963 if test -n "$ac_ct_OTOOL"; then
6964 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6965else
6966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967for as_dir in $PATH
6968do
6969 IFS=$as_save_IFS
6970 test -z "$as_dir" && as_dir=.
6971 for ac_exec_ext in '' $ac_executable_extensions; do
6972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6973 ac_cv_prog_ac_ct_OTOOL="otool"
6974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6975 break 2
6976 fi
6977done
6978 done
6979IFS=$as_save_IFS
6980
6981fi
6982fi
6983ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6984if test -n "$ac_ct_OTOOL"; then
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6986$as_echo "$ac_ct_OTOOL" >&6; }
6987else
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6989$as_echo "no" >&6; }
6990fi
6991
6992 if test "x$ac_ct_OTOOL" = x; then
6993 OTOOL=":"
6994 else
6995 case $cross_compiling:$ac_tool_warned in
6996yes:)
6997{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6998$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6999ac_tool_warned=yes ;;
7000esac
7001 OTOOL=$ac_ct_OTOOL
7002 fi
7003else
7004 OTOOL="$ac_cv_prog_OTOOL"
7005fi
7006
7007 if test -n "$ac_tool_prefix"; then
7008 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7009set dummy ${ac_tool_prefix}otool64; ac_word=$2
7010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7011$as_echo_n "checking for $ac_word... " >&6; }
7012if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7013 $as_echo_n "(cached) " >&6
7014else
7015 if test -n "$OTOOL64"; then
7016 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7017else
7018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019for as_dir in $PATH
7020do
7021 IFS=$as_save_IFS
7022 test -z "$as_dir" && as_dir=.
7023 for ac_exec_ext in '' $ac_executable_extensions; do
7024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7025 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7027 break 2
7028 fi
7029done
7030 done
7031IFS=$as_save_IFS
7032
7033fi
7034fi
7035OTOOL64=$ac_cv_prog_OTOOL64
7036if test -n "$OTOOL64"; then
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7038$as_echo "$OTOOL64" >&6; }
7039else
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7041$as_echo "no" >&6; }
7042fi
7043
7044
7045fi
7046if test -z "$ac_cv_prog_OTOOL64"; then
7047 ac_ct_OTOOL64=$OTOOL64
7048 # Extract the first word of "otool64", so it can be a program name with args.
7049set dummy otool64; ac_word=$2
7050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7051$as_echo_n "checking for $ac_word... " >&6; }
7052if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7053 $as_echo_n "(cached) " >&6
7054else
7055 if test -n "$ac_ct_OTOOL64"; then
7056 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7057else
7058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059for as_dir in $PATH
7060do
7061 IFS=$as_save_IFS
7062 test -z "$as_dir" && as_dir=.
7063 for ac_exec_ext in '' $ac_executable_extensions; do
7064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7065 ac_cv_prog_ac_ct_OTOOL64="otool64"
7066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7067 break 2
7068 fi
7069done
7070 done
7071IFS=$as_save_IFS
7072
7073fi
7074fi
7075ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7076if test -n "$ac_ct_OTOOL64"; then
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7078$as_echo "$ac_ct_OTOOL64" >&6; }
7079else
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7081$as_echo "no" >&6; }
7082fi
7083
7084 if test "x$ac_ct_OTOOL64" = x; then
7085 OTOOL64=":"
7086 else
7087 case $cross_compiling:$ac_tool_warned in
7088yes:)
7089{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7090$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7091ac_tool_warned=yes ;;
7092esac
7093 OTOOL64=$ac_ct_OTOOL64
7094 fi
7095else
7096 OTOOL64="$ac_cv_prog_OTOOL64"
7097fi
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7126$as_echo_n "checking for -single_module linker flag... " >&6; }
7127if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7128 $as_echo_n "(cached) " >&6
7129else
7130 lt_cv_apple_cc_single_mod=no
7131 if test -z "${LT_MULTI_MODULE}"; then
7132 # By default we will add the -single_module flag. You can override
7133 # by either setting the environment variable LT_MULTI_MODULE
7134 # non-empty at configure time, or by adding -multi_module to the
7135 # link flags.
7136 rm -rf libconftest.dylib*
7137 echo "int foo(void){return 1;}" > conftest.c
7138 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7139-dynamiclib -Wl,-single_module conftest.c" >&5
7140 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7141 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7142 _lt_result=$?
7143 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7144 lt_cv_apple_cc_single_mod=yes
7145 else
7146 cat conftest.err >&5
7147 fi
7148 rm -rf libconftest.dylib*
7149 rm -f conftest.*
7150 fi
7151fi
7152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7153$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7155$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7156if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7157 $as_echo_n "(cached) " >&6
7158else
7159 lt_cv_ld_exported_symbols_list=no
7160 save_LDFLAGS=$LDFLAGS
7161 echo "_main" > conftest.sym
7162 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7164/* end confdefs.h. */
7165
7166int
7167main ()
7168{
7169
7170 ;
7171 return 0;
7172}
7173_ACEOF
7174if ac_fn_c_try_link "$LINENO"; then :
7175 lt_cv_ld_exported_symbols_list=yes
7176else
7177 lt_cv_ld_exported_symbols_list=no
7178fi
7179rm -f core conftest.err conftest.$ac_objext \
7180 conftest$ac_exeext conftest.$ac_ext
7181 LDFLAGS="$save_LDFLAGS"
7182
7183fi
7184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7185$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7187$as_echo_n "checking for -force_load linker flag... " >&6; }
7188if test "${lt_cv_ld_force_load+set}" = set; then :
7189 $as_echo_n "(cached) " >&6
7190else
7191 lt_cv_ld_force_load=no
7192 cat > conftest.c << _LT_EOF
7193int forced_loaded() { return 2;}
7194_LT_EOF
7195 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7196 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7197 echo "$AR cru libconftest.a conftest.o" >&5
7198 $AR cru libconftest.a conftest.o 2>&5
7199 cat > conftest.c << _LT_EOF
7200int main() { return 0;}
7201_LT_EOF
7202 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7203 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7204 _lt_result=$?
7205 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7206 lt_cv_ld_force_load=yes
7207 else
7208 cat conftest.err >&5
7209 fi
7210 rm -f conftest.err libconftest.a conftest conftest.c
7211 rm -rf conftest.dSYM
7212
7213fi
7214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7215$as_echo "$lt_cv_ld_force_load" >&6; }
7216 case $host_os in
7217 rhapsody* | darwin1.[012])
7218 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7219 darwin1.*)
7220 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7221 darwin*) # darwin 5.x on
7222 # if running on 10.5 or later, the deployment target defaults
7223 # to the OS version, if on x86, and 10.4, the deployment
7224 # target defaults to 10.4. Don't you love it?
7225 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7226 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7227 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7228 10.[012]*)
7229 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7230 10.*)
7231 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7232 esac
7233 ;;
7234 esac
7235 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7236 _lt_dar_single_mod='$single_module'
7237 fi
7238 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7239 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7240 else
7241 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7242 fi
7243 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7244 _lt_dsymutil='~$DSYMUTIL $lib || :'
7245 else
7246 _lt_dsymutil=
7247 fi
7248 ;;
7249 esac
7250
7251ac_ext=c
7252ac_cpp='$CPP $CPPFLAGS'
7253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7255ac_compiler_gnu=$ac_cv_c_compiler_gnu
7256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7257$as_echo_n "checking how to run the C preprocessor... " >&6; }
7258# On Suns, sometimes $CPP names a directory.
7259if test -n "$CPP" && test -d "$CPP"; then
7260 CPP=
7261fi
7262if test -z "$CPP"; then
7263 if test "${ac_cv_prog_CPP+set}" = set; then :
7264 $as_echo_n "(cached) " >&6
7265else
7266 # Double quotes because CPP needs to be expanded
7267 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7268 do
7269 ac_preproc_ok=false
7270for ac_c_preproc_warn_flag in '' yes
7271do
7272 # Use a header file that comes with gcc, so configuring glibc
7273 # with a fresh cross-compiler works.
7274 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7275 # <limits.h> exists even on freestanding compilers.
7276 # On the NeXT, cc -E runs the code through the compiler's parser,
7277 # not just through cpp. "Syntax error" is here to catch this case.
7278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7279/* end confdefs.h. */
7280#ifdef __STDC__
7281# include <limits.h>
7282#else
7283# include <assert.h>
7284#endif
7285 Syntax error
7286_ACEOF
7287if ac_fn_c_try_cpp "$LINENO"; then :
7288
7289else
7290 # Broken: fails on valid input.
7291continue
7292fi
7293rm -f conftest.err conftest.$ac_ext
7294
7295 # OK, works on sane cases. Now check whether nonexistent headers
7296 # can be detected and how.
7297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7298/* end confdefs.h. */
7299#include <ac_nonexistent.h>
7300_ACEOF
7301if ac_fn_c_try_cpp "$LINENO"; then :
7302 # Broken: success on invalid input.
7303continue
7304else
7305 # Passes both tests.
7306ac_preproc_ok=:
7307break
7308fi
7309rm -f conftest.err conftest.$ac_ext
7310
7311done
7312# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7313rm -f conftest.err conftest.$ac_ext
7314if $ac_preproc_ok; then :
7315 break
7316fi
7317
7318 done
7319 ac_cv_prog_CPP=$CPP
7320
7321fi
7322 CPP=$ac_cv_prog_CPP
7323else
7324 ac_cv_prog_CPP=$CPP
7325fi
7326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7327$as_echo "$CPP" >&6; }
7328ac_preproc_ok=false
7329for ac_c_preproc_warn_flag in '' yes
7330do
7331 # Use a header file that comes with gcc, so configuring glibc
7332 # with a fresh cross-compiler works.
7333 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7334 # <limits.h> exists even on freestanding compilers.
7335 # On the NeXT, cc -E runs the code through the compiler's parser,
7336 # not just through cpp. "Syntax error" is here to catch this case.
7337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7338/* end confdefs.h. */
7339#ifdef __STDC__
7340# include <limits.h>
7341#else
7342# include <assert.h>
7343#endif
7344 Syntax error
7345_ACEOF
7346if ac_fn_c_try_cpp "$LINENO"; then :
7347
7348else
7349 # Broken: fails on valid input.
7350continue
7351fi
7352rm -f conftest.err conftest.$ac_ext
7353
7354 # OK, works on sane cases. Now check whether nonexistent headers
7355 # can be detected and how.
7356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357/* end confdefs.h. */
7358#include <ac_nonexistent.h>
7359_ACEOF
7360if ac_fn_c_try_cpp "$LINENO"; then :
7361 # Broken: success on invalid input.
7362continue
7363else
7364 # Passes both tests.
7365ac_preproc_ok=:
7366break
7367fi
7368rm -f conftest.err conftest.$ac_ext
7369
7370done
7371# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7372rm -f conftest.err conftest.$ac_ext
7373if $ac_preproc_ok; then :
7374
7375else
7376 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7377$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7378as_fn_error "C preprocessor \"$CPP\" fails sanity check
7379See \`config.log' for more details." "$LINENO" 5; }
7380fi
7381
7382ac_ext=c
7383ac_cpp='$CPP $CPPFLAGS'
7384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7386ac_compiler_gnu=$ac_cv_c_compiler_gnu
7387
7388
7389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7390$as_echo_n "checking for ANSI C header files... " >&6; }
7391if test "${ac_cv_header_stdc+set}" = set; then :
7392 $as_echo_n "(cached) " >&6
7393else
7394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7395/* end confdefs.h. */
7396#include <stdlib.h>
7397#include <stdarg.h>
7398#include <string.h>
7399#include <float.h>
7400
7401int
7402main ()
7403{
7404
7405 ;
7406 return 0;
7407}
7408_ACEOF
7409if ac_fn_c_try_compile "$LINENO"; then :
7410 ac_cv_header_stdc=yes
7411else
7412 ac_cv_header_stdc=no
7413fi
7414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7415
7416if test $ac_cv_header_stdc = yes; then
7417 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7419/* end confdefs.h. */
7420#include <string.h>
7421
7422_ACEOF
7423if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7424 $EGREP "memchr" >/dev/null 2>&1; then :
7425
7426else
7427 ac_cv_header_stdc=no
7428fi
7429rm -f conftest*
7430
7431fi
7432
7433if test $ac_cv_header_stdc = yes; then
7434 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7436/* end confdefs.h. */
7437#include <stdlib.h>
7438
7439_ACEOF
7440if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7441 $EGREP "free" >/dev/null 2>&1; then :
7442
7443else
7444 ac_cv_header_stdc=no
7445fi
7446rm -f conftest*
7447
7448fi
7449
7450if test $ac_cv_header_stdc = yes; then
7451 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7452 if test "$cross_compiling" = yes; then :
7453 :
7454else
7455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7456/* end confdefs.h. */
7457#include <ctype.h>
7458#include <stdlib.h>
7459#if ((' ' & 0x0FF) == 0x020)
7460# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7461# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7462#else
7463# define ISLOWER(c) \
7464 (('a' <= (c) && (c) <= 'i') \
7465 || ('j' <= (c) && (c) <= 'r') \
7466 || ('s' <= (c) && (c) <= 'z'))
7467# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7468#endif
7469
7470#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7471int
7472main ()
7473{
7474 int i;
7475 for (i = 0; i < 256; i++)
7476 if (XOR (islower (i), ISLOWER (i))
7477 || toupper (i) != TOUPPER (i))
7478 return 2;
7479 return 0;
7480}
7481_ACEOF
7482if ac_fn_c_try_run "$LINENO"; then :
7483
7484else
7485 ac_cv_header_stdc=no
7486fi
7487rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7488 conftest.$ac_objext conftest.beam conftest.$ac_ext
7489fi
7490
7491fi
7492fi
7493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7494$as_echo "$ac_cv_header_stdc" >&6; }
7495if test $ac_cv_header_stdc = yes; then
7496
7497$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7498
7499fi
7500
7501# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7502for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7503 inttypes.h stdint.h unistd.h
7504do :
7505 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7506ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7507"
7508eval as_val=\$$as_ac_Header
7509 if test "x$as_val" = x""yes; then :
7510 cat >>confdefs.h <<_ACEOF
7511#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7512_ACEOF
7513
7514fi
7515
7516done
7517
7518
7519for ac_header in dlfcn.h
7520do :
7521 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7522"
7523if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7524 cat >>confdefs.h <<_ACEOF
7525#define HAVE_DLFCN_H 1
7526_ACEOF
7527
7528fi
7529
7530done
7531
7532if test -n "$ac_tool_prefix"; then
7533 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7534set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7536$as_echo_n "checking for $ac_word... " >&6; }
7537if test "${ac_cv_prog_GOC+set}" = set; then :
7538 $as_echo_n "(cached) " >&6
7539else
7540 if test -n "$GOC"; then
7541 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7542else
7543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544for as_dir in $PATH
7545do
7546 IFS=$as_save_IFS
7547 test -z "$as_dir" && as_dir=.
7548 for ac_exec_ext in '' $ac_executable_extensions; do
7549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7550 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7552 break 2
7553 fi
7554done
7555 done
7556IFS=$as_save_IFS
7557
7558fi
7559fi
7560GOC=$ac_cv_prog_GOC
7561if test -n "$GOC"; then
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7563$as_echo "$GOC" >&6; }
7564else
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7566$as_echo "no" >&6; }
7567fi
7568
7569
7570fi
7571if test -z "$ac_cv_prog_GOC"; then
7572 ac_ct_GOC=$GOC
7573 # Extract the first word of "gccgo", so it can be a program name with args.
7574set dummy gccgo; ac_word=$2
7575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7576$as_echo_n "checking for $ac_word... " >&6; }
7577if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7578 $as_echo_n "(cached) " >&6
7579else
7580 if test -n "$ac_ct_GOC"; then
7581 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7582else
7583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584for as_dir in $PATH
7585do
7586 IFS=$as_save_IFS
7587 test -z "$as_dir" && as_dir=.
7588 for ac_exec_ext in '' $ac_executable_extensions; do
7589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7590 ac_cv_prog_ac_ct_GOC="gccgo"
7591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7592 break 2
7593 fi
7594done
7595 done
7596IFS=$as_save_IFS
7597
7598fi
7599fi
7600ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7601if test -n "$ac_ct_GOC"; then
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7603$as_echo "$ac_ct_GOC" >&6; }
7604else
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7606$as_echo "no" >&6; }
7607fi
7608
7609 if test "x$ac_ct_GOC" = x; then
7610 GOC=""
7611 else
7612 case $cross_compiling:$ac_tool_warned in
7613yes:)
7614{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7615$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7616ac_tool_warned=yes ;;
7617esac
7618 GOC=$ac_ct_GOC
7619 fi
7620else
7621 GOC="$ac_cv_prog_GOC"
7622fi
7623
7624
7625
7626
7627
7628
7629# Set options
7630
7631
7632
7633
7634 enable_win32_dll=no
7635
7636
7637 # Check whether --enable-shared was given.
7638if test "${enable_shared+set}" = set; then :
7639 enableval=$enable_shared; p=${PACKAGE-default}
7640 case $enableval in
7641 yes) enable_shared=yes ;;
7642 no) enable_shared=no ;;
7643 *)
7644 enable_shared=no
7645 # Look at the argument we got. We use all the common list separators.
7646 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7647 for pkg in $enableval; do
7648 IFS="$lt_save_ifs"
7649 if test "X$pkg" = "X$p"; then
7650 enable_shared=yes
7651 fi
7652 done
7653 IFS="$lt_save_ifs"
7654 ;;
7655 esac
7656else
7657 enable_shared=yes
7658fi
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668 # Check whether --enable-static was given.
7669if test "${enable_static+set}" = set; then :
7670 enableval=$enable_static; p=${PACKAGE-default}
7671 case $enableval in
7672 yes) enable_static=yes ;;
7673 no) enable_static=no ;;
7674 *)
7675 enable_static=no
7676 # Look at the argument we got. We use all the common list separators.
7677 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7678 for pkg in $enableval; do
7679 IFS="$lt_save_ifs"
7680 if test "X$pkg" = "X$p"; then
7681 enable_static=yes
7682 fi
7683 done
7684 IFS="$lt_save_ifs"
7685 ;;
7686 esac
7687else
7688 enable_static=yes
7689fi
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700# Check whether --with-pic was given.
7701if test "${with_pic+set}" = set; then :
7702 withval=$with_pic; pic_mode="$withval"
7703else
7704 pic_mode=default
7705fi
7706
7707
7708test -z "$pic_mode" && pic_mode=default
7709
7710
7711
7712
7713
7714
7715
7716 # Check whether --enable-fast-install was given.
7717if test "${enable_fast_install+set}" = set; then :
7718 enableval=$enable_fast_install; p=${PACKAGE-default}
7719 case $enableval in
7720 yes) enable_fast_install=yes ;;
7721 no) enable_fast_install=no ;;
7722 *)
7723 enable_fast_install=no
7724 # Look at the argument we got. We use all the common list separators.
7725 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7726 for pkg in $enableval; do
7727 IFS="$lt_save_ifs"
7728 if test "X$pkg" = "X$p"; then
7729 enable_fast_install=yes
7730 fi
7731 done
7732 IFS="$lt_save_ifs"
7733 ;;
7734 esac
7735else
7736 enable_fast_install=yes
7737fi
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749# This can be used to rebuild libtool when needed
7750LIBTOOL_DEPS="$ltmain"
7751
7752# Always use our own libtool.
7753LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780test -z "$LN_S" && LN_S="ln -s"
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795if test -n "${ZSH_VERSION+set}" ; then
7796 setopt NO_GLOB_SUBST
7797fi
7798
7799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7800$as_echo_n "checking for objdir... " >&6; }
7801if test "${lt_cv_objdir+set}" = set; then :
7802 $as_echo_n "(cached) " >&6
7803else
7804 rm -f .libs 2>/dev/null
7805mkdir .libs 2>/dev/null
7806if test -d .libs; then
7807 lt_cv_objdir=.libs
7808else
7809 # MS-DOS does not allow filenames that begin with a dot.
7810 lt_cv_objdir=_libs
7811fi
7812rmdir .libs 2>/dev/null
7813fi
7814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7815$as_echo "$lt_cv_objdir" >&6; }
7816objdir=$lt_cv_objdir
7817
7818
7819
7820
7821
7822cat >>confdefs.h <<_ACEOF
7823#define LT_OBJDIR "$lt_cv_objdir/"
7824_ACEOF
7825
7826
7827
7828
7829case $host_os in
7830aix3*)
7831 # AIX sometimes has problems with the GCC collect2 program. For some
7832 # reason, if we set the COLLECT_NAMES environment variable, the problems
7833 # vanish in a puff of smoke.
7834 if test "X${COLLECT_NAMES+set}" != Xset; then
7835 COLLECT_NAMES=
7836 export COLLECT_NAMES
7837 fi
7838 ;;
7839esac
7840
7841# Global variables:
7842ofile=libtool
7843can_build_shared=yes
7844
7845# All known linkers require a `.a' archive for static linking (except MSVC,
7846# which needs '.lib').
7847libext=a
7848
7849with_gnu_ld="$lt_cv_prog_gnu_ld"
7850
7851old_CC="$CC"
7852old_CFLAGS="$CFLAGS"
7853
7854# Set sane defaults for various variables
7855test -z "$CC" && CC=cc
7856test -z "$LTCC" && LTCC=$CC
7857test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7858test -z "$LD" && LD=ld
7859test -z "$ac_objext" && ac_objext=o
7860
7861for cc_temp in $compiler""; do
7862 case $cc_temp in
7863 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7864 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7865 \-*) ;;
7866 *) break;;
7867 esac
7868done
7869cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7870
7871
7872# Only perform the check for file, if the check method requires it
7873test -z "$MAGIC_CMD" && MAGIC_CMD=file
7874case $deplibs_check_method in
7875file_magic*)
7876 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7878$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7879if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7880 $as_echo_n "(cached) " >&6
7881else
7882 case $MAGIC_CMD in
7883[\\/*] | ?:[\\/]*)
7884 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7885 ;;
7886*)
7887 lt_save_MAGIC_CMD="$MAGIC_CMD"
7888 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7889 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7890 for ac_dir in $ac_dummy; do
7891 IFS="$lt_save_ifs"
7892 test -z "$ac_dir" && ac_dir=.
7893 if test -f $ac_dir/${ac_tool_prefix}file; then
7894 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7895 if test -n "$file_magic_test_file"; then
7896 case $deplibs_check_method in
7897 "file_magic "*)
7898 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7899 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7900 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7901 $EGREP "$file_magic_regex" > /dev/null; then
7902 :
7903 else
7904 cat <<_LT_EOF 1>&2
7905
7906*** Warning: the command libtool uses to detect shared libraries,
7907*** $file_magic_cmd, produces output that libtool cannot recognize.
7908*** The result is that libtool may fail to recognize shared libraries
7909*** as such. This will affect the creation of libtool libraries that
7910*** depend on shared libraries, but programs linked with such libtool
7911*** libraries will work regardless of this problem. Nevertheless, you
7912*** may want to report the problem to your system manager and/or to
7913*** bug-libtool@gnu.org
7914
7915_LT_EOF
7916 fi ;;
7917 esac
7918 fi
7919 break
7920 fi
7921 done
7922 IFS="$lt_save_ifs"
7923 MAGIC_CMD="$lt_save_MAGIC_CMD"
7924 ;;
7925esac
7926fi
7927
7928MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7929if test -n "$MAGIC_CMD"; then
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7931$as_echo "$MAGIC_CMD" >&6; }
7932else
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7934$as_echo "no" >&6; }
7935fi
7936
7937
7938
7939
7940
7941if test -z "$lt_cv_path_MAGIC_CMD"; then
7942 if test -n "$ac_tool_prefix"; then
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7944$as_echo_n "checking for file... " >&6; }
7945if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7946 $as_echo_n "(cached) " >&6
7947else
7948 case $MAGIC_CMD in
7949[\\/*] | ?:[\\/]*)
7950 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7951 ;;
7952*)
7953 lt_save_MAGIC_CMD="$MAGIC_CMD"
7954 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7955 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7956 for ac_dir in $ac_dummy; do
7957 IFS="$lt_save_ifs"
7958 test -z "$ac_dir" && ac_dir=.
7959 if test -f $ac_dir/file; then
7960 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7961 if test -n "$file_magic_test_file"; then
7962 case $deplibs_check_method in
7963 "file_magic "*)
7964 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7965 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7966 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7967 $EGREP "$file_magic_regex" > /dev/null; then
7968 :
7969 else
7970 cat <<_LT_EOF 1>&2
7971
7972*** Warning: the command libtool uses to detect shared libraries,
7973*** $file_magic_cmd, produces output that libtool cannot recognize.
7974*** The result is that libtool may fail to recognize shared libraries
7975*** as such. This will affect the creation of libtool libraries that
7976*** depend on shared libraries, but programs linked with such libtool
7977*** libraries will work regardless of this problem. Nevertheless, you
7978*** may want to report the problem to your system manager and/or to
7979*** bug-libtool@gnu.org
7980
7981_LT_EOF
7982 fi ;;
7983 esac
7984 fi
7985 break
7986 fi
7987 done
7988 IFS="$lt_save_ifs"
7989 MAGIC_CMD="$lt_save_MAGIC_CMD"
7990 ;;
7991esac
7992fi
7993
7994MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7995if test -n "$MAGIC_CMD"; then
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7997$as_echo "$MAGIC_CMD" >&6; }
7998else
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8000$as_echo "no" >&6; }
8001fi
8002
8003
8004 else
8005 MAGIC_CMD=:
8006 fi
8007fi
8008
8009 fi
8010 ;;
8011esac
8012
8013# Use C for the default configuration in the libtool script
8014
8015lt_save_CC="$CC"
8016ac_ext=c
8017ac_cpp='$CPP $CPPFLAGS'
8018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8020ac_compiler_gnu=$ac_cv_c_compiler_gnu
8021
8022
8023# Source file extension for C test sources.
8024ac_ext=c
8025
8026# Object file extension for compiled C test sources.
8027objext=o
8028objext=$objext
8029
8030# Code to be used in simple compile tests
8031lt_simple_compile_test_code="int some_variable = 0;"
8032
8033# Code to be used in simple link tests
8034lt_simple_link_test_code='int main(){return(0);}'
8035
8036
8037
8038
8039
8040
8041
8042# If no C compiler was specified, use CC.
8043LTCC=${LTCC-"$CC"}
8044
8045# If no C compiler flags were specified, use CFLAGS.
8046LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8047
8048# Allow CC to be a program name with arguments.
8049compiler=$CC
8050
8051# Save the default compiler, since it gets overwritten when the other
8052# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8053compiler_DEFAULT=$CC
8054
8055# save warnings/boilerplate of simple test code
8056ac_outfile=conftest.$ac_objext
8057echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8058eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8059_lt_compiler_boilerplate=`cat conftest.err`
8060$RM conftest*
8061
8062ac_outfile=conftest.$ac_objext
8063echo "$lt_simple_link_test_code" >conftest.$ac_ext
8064eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8065_lt_linker_boilerplate=`cat conftest.err`
8066$RM -r conftest*
8067
8068
8069## CAVEAT EMPTOR:
8070## There is no encapsulation within the following macros, do not change
8071## the running order or otherwise move them around unless you know exactly
8072## what you are doing...
8073if test -n "$compiler"; then
8074
8075lt_prog_compiler_no_builtin_flag=
8076
8077if test "$GCC" = yes; then
8078 case $cc_basename in
8079 nvcc*)
8080 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8081 *)
8082 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8083 esac
8084
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8086$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8087if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8088 $as_echo_n "(cached) " >&6
8089else
8090 lt_cv_prog_compiler_rtti_exceptions=no
8091 ac_outfile=conftest.$ac_objext
8092 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8093 lt_compiler_flag="-fno-rtti -fno-exceptions"
8094 # Insert the option either (1) after the last *FLAGS variable, or
8095 # (2) before a word containing "conftest.", or (3) at the end.
8096 # Note that $ac_compile itself does not contain backslashes and begins
8097 # with a dollar sign (not a hyphen), so the echo should work correctly.
8098 # The option is referenced via a variable to avoid confusing sed.
8099 lt_compile=`echo "$ac_compile" | $SED \
8100 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8101 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8102 -e 's:$: $lt_compiler_flag:'`
8103 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8104 (eval "$lt_compile" 2>conftest.err)
8105 ac_status=$?
8106 cat conftest.err >&5
8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108 if (exit $ac_status) && test -s "$ac_outfile"; then
8109 # The compiler can only warn and ignore the option if not recognized
8110 # So say no if there are warnings other than the usual output.
8111 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8112 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8113 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8114 lt_cv_prog_compiler_rtti_exceptions=yes
8115 fi
8116 fi
8117 $RM conftest*
8118
8119fi
8120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8121$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8122
8123if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8124 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8125else
8126 :
8127fi
8128
8129fi
8130
8131
8132
8133
8134
8135
8136 lt_prog_compiler_wl=
8137lt_prog_compiler_pic=
8138lt_prog_compiler_static=
8139
8140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8141$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8142
8143 if test "$GCC" = yes; then
8144 lt_prog_compiler_wl='-Wl,'
8145 lt_prog_compiler_static='-static'
8146
8147 case $host_os in
8148 aix*)
8149 # All AIX code is PIC.
8150 if test "$host_cpu" = ia64; then
8151 # AIX 5 now supports IA64 processor
8152 lt_prog_compiler_static='-Bstatic'
8153 fi
8154 ;;
8155
8156 amigaos*)
8157 case $host_cpu in
8158 powerpc)
8159 # see comment about AmigaOS4 .so support
8160 lt_prog_compiler_pic='-fPIC'
8161 ;;
8162 m68k)
8163 # FIXME: we need at least 68020 code to build shared libraries, but
8164 # adding the `-m68020' flag to GCC prevents building anything better,
8165 # like `-m68040'.
8166 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8167 ;;
8168 esac
8169 ;;
8170
8171 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8172 # PIC is the default for these OSes.
8173 ;;
8174
8175 mingw* | cygwin* | pw32* | os2* | cegcc*)
8176 # This hack is so that the source file can tell whether it is being
8177 # built for inclusion in a dll (and should export symbols for example).
8178 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8179 # (--disable-auto-import) libraries
8180 lt_prog_compiler_pic='-DDLL_EXPORT'
8181 ;;
8182
8183 darwin* | rhapsody*)
8184 # PIC is the default on this platform
8185 # Common symbols not allowed in MH_DYLIB files
8186 lt_prog_compiler_pic='-fno-common'
8187 ;;
8188
8189 haiku*)
8190 # PIC is the default for Haiku.
8191 # The "-static" flag exists, but is broken.
8192 lt_prog_compiler_static=
8193 ;;
8194
8195 hpux*)
8196 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8197 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8198 # sets the default TLS model and affects inlining.
8199 case $host_cpu in
8200 hppa*64*)
8201 # +Z the default
8202 ;;
8203 *)
8204 lt_prog_compiler_pic='-fPIC'
8205 ;;
8206 esac
8207 ;;
8208
8209 interix[3-9]*)
8210 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8211 # Instead, we relocate shared libraries at runtime.
8212 ;;
8213
8214 msdosdjgpp*)
8215 # Just because we use GCC doesn't mean we suddenly get shared libraries
8216 # on systems that don't support them.
8217 lt_prog_compiler_can_build_shared=no
8218 enable_shared=no
8219 ;;
8220
8221 *nto* | *qnx*)
8222 # QNX uses GNU C++, but need to define -shared option too, otherwise
8223 # it will coredump.
8224 lt_prog_compiler_pic='-fPIC -shared'
8225 ;;
8226
8227 sysv4*MP*)
8228 if test -d /usr/nec; then
8229 lt_prog_compiler_pic=-Kconform_pic
8230 fi
8231 ;;
8232
8233 *)
8234 lt_prog_compiler_pic='-fPIC'
8235 ;;
8236 esac
8237
8238 case $cc_basename in
8239 nvcc*) # Cuda Compiler Driver 2.2
8240 lt_prog_compiler_wl='-Xlinker '
8241 lt_prog_compiler_pic='-Xcompiler -fPIC'
8242 ;;
8243 esac
8244 else
8245 # PORTME Check for flag to pass linker flags through the system compiler.
8246 case $host_os in
8247 aix*)
8248 lt_prog_compiler_wl='-Wl,'
8249 if test "$host_cpu" = ia64; then
8250 # AIX 5 now supports IA64 processor
8251 lt_prog_compiler_static='-Bstatic'
8252 else
8253 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8254 fi
8255 ;;
8256
8257 mingw* | cygwin* | pw32* | os2* | cegcc*)
8258 # This hack is so that the source file can tell whether it is being
8259 # built for inclusion in a dll (and should export symbols for example).
8260 lt_prog_compiler_pic='-DDLL_EXPORT'
8261 ;;
8262
8263 hpux9* | hpux10* | hpux11*)
8264 lt_prog_compiler_wl='-Wl,'
8265 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8266 # not for PA HP-UX.
8267 case $host_cpu in
8268 hppa*64*|ia64*)
8269 # +Z the default
8270 ;;
8271 *)
8272 lt_prog_compiler_pic='+Z'
8273 ;;
8274 esac
8275 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8276 lt_prog_compiler_static='${wl}-a ${wl}archive'
8277 ;;
8278
8279 irix5* | irix6* | nonstopux*)
8280 lt_prog_compiler_wl='-Wl,'
8281 # PIC (with -KPIC) is the default.
8282 lt_prog_compiler_static='-non_shared'
8283 ;;
8284
8285 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8286 case $cc_basename in
8287 # old Intel for x86_64 which still supported -KPIC.
8288 ecc*)
8289 lt_prog_compiler_wl='-Wl,'
8290 lt_prog_compiler_pic='-KPIC'
8291 lt_prog_compiler_static='-static'
8292 ;;
8293 # icc used to be incompatible with GCC.
8294 # ICC 10 doesn't accept -KPIC any more.
8295 icc* | ifort*)
8296 lt_prog_compiler_wl='-Wl,'
8297 lt_prog_compiler_pic='-fPIC'
8298 lt_prog_compiler_static='-static'
8299 ;;
8300 # Lahey Fortran 8.1.
8301 lf95*)
8302 lt_prog_compiler_wl='-Wl,'
8303 lt_prog_compiler_pic='--shared'
8304 lt_prog_compiler_static='--static'
8305 ;;
8306 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8307 # Portland Group compilers (*not* the Pentium gcc compiler,
8308 # which looks to be a dead project)
8309 lt_prog_compiler_wl='-Wl,'
8310 lt_prog_compiler_pic='-fpic'
8311 lt_prog_compiler_static='-Bstatic'
8312 ;;
8313 ccc*)
8314 lt_prog_compiler_wl='-Wl,'
8315 # All Alpha code is PIC.
8316 lt_prog_compiler_static='-non_shared'
8317 ;;
8318 xl* | bgxl* | bgf* | mpixl*)
8319 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8320 lt_prog_compiler_wl='-Wl,'
8321 lt_prog_compiler_pic='-qpic'
8322 lt_prog_compiler_static='-qstaticlink'
8323 ;;
8324 *)
8325 case `$CC -V 2>&1 | sed 5q` in
8326 *Sun\ F* | *Sun*Fortran*)
8327 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8328 lt_prog_compiler_pic='-KPIC'
8329 lt_prog_compiler_static='-Bstatic'
8330 lt_prog_compiler_wl=''
8331 ;;
8332 *Sun\ C*)
8333 # Sun C 5.9
8334 lt_prog_compiler_pic='-KPIC'
8335 lt_prog_compiler_static='-Bstatic'
8336 lt_prog_compiler_wl='-Wl,'
8337 ;;
8338 esac
8339 ;;
8340 esac
8341 ;;
8342
8343 newsos6)
8344 lt_prog_compiler_pic='-KPIC'
8345 lt_prog_compiler_static='-Bstatic'
8346 ;;
8347
8348 *nto* | *qnx*)
8349 # QNX uses GNU C++, but need to define -shared option too, otherwise
8350 # it will coredump.
8351 lt_prog_compiler_pic='-fPIC -shared'
8352 ;;
8353
8354 osf3* | osf4* | osf5*)
8355 lt_prog_compiler_wl='-Wl,'
8356 # All OSF/1 code is PIC.
8357 lt_prog_compiler_static='-non_shared'
8358 ;;
8359
8360 rdos*)
8361 lt_prog_compiler_static='-non_shared'
8362 ;;
8363
8364 solaris*)
8365 lt_prog_compiler_pic='-KPIC'
8366 lt_prog_compiler_static='-Bstatic'
8367 case $cc_basename in
8368 f77* | f90* | f95*)
8369 lt_prog_compiler_wl='-Qoption ld ';;
8370 *)
8371 lt_prog_compiler_wl='-Wl,';;
8372 esac
8373 ;;
8374
8375 sunos4*)
8376 lt_prog_compiler_wl='-Qoption ld '
8377 lt_prog_compiler_pic='-PIC'
8378 lt_prog_compiler_static='-Bstatic'
8379 ;;
8380
8381 sysv4 | sysv4.2uw2* | sysv4.3*)
8382 lt_prog_compiler_wl='-Wl,'
8383 lt_prog_compiler_pic='-KPIC'
8384 lt_prog_compiler_static='-Bstatic'
8385 ;;
8386
8387 sysv4*MP*)
8388 if test -d /usr/nec ;then
8389 lt_prog_compiler_pic='-Kconform_pic'
8390 lt_prog_compiler_static='-Bstatic'
8391 fi
8392 ;;
8393
8394 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8395 lt_prog_compiler_wl='-Wl,'
8396 lt_prog_compiler_pic='-KPIC'
8397 lt_prog_compiler_static='-Bstatic'
8398 ;;
8399
8400 unicos*)
8401 lt_prog_compiler_wl='-Wl,'
8402 lt_prog_compiler_can_build_shared=no
8403 ;;
8404
8405 uts4*)
8406 lt_prog_compiler_pic='-pic'
8407 lt_prog_compiler_static='-Bstatic'
8408 ;;
8409
8410 *)
8411 lt_prog_compiler_can_build_shared=no
8412 ;;
8413 esac
8414 fi
8415
8416case $host_os in
8417 # For platforms which do not support PIC, -DPIC is meaningless:
8418 *djgpp*)
8419 lt_prog_compiler_pic=
8420 ;;
8421 *)
8422 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8423 ;;
8424esac
8425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8426$as_echo "$lt_prog_compiler_pic" >&6; }
8427
8428
8429
8430
8431
8432
8433#
8434# Check to make sure the PIC flag actually works.
8435#
8436if test -n "$lt_prog_compiler_pic"; then
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8438$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8439if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8440 $as_echo_n "(cached) " >&6
8441else
8442 lt_cv_prog_compiler_pic_works=no
8443 ac_outfile=conftest.$ac_objext
8444 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8445 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8446 # Insert the option either (1) after the last *FLAGS variable, or
8447 # (2) before a word containing "conftest.", or (3) at the end.
8448 # Note that $ac_compile itself does not contain backslashes and begins
8449 # with a dollar sign (not a hyphen), so the echo should work correctly.
8450 # The option is referenced via a variable to avoid confusing sed.
8451 lt_compile=`echo "$ac_compile" | $SED \
8452 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8453 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8454 -e 's:$: $lt_compiler_flag:'`
8455 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8456 (eval "$lt_compile" 2>conftest.err)
8457 ac_status=$?
8458 cat conftest.err >&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 if (exit $ac_status) && test -s "$ac_outfile"; then
8461 # The compiler can only warn and ignore the option if not recognized
8462 # So say no if there are warnings other than the usual output.
8463 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8464 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8465 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8466 lt_cv_prog_compiler_pic_works=yes
8467 fi
8468 fi
8469 $RM conftest*
8470
8471fi
8472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8473$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8474
8475if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8476 case $lt_prog_compiler_pic in
8477 "" | " "*) ;;
8478 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8479 esac
8480else
8481 lt_prog_compiler_pic=
8482 lt_prog_compiler_can_build_shared=no
8483fi
8484
8485fi
8486
8487
8488
8489
8490
8491
8492#
8493# Check to make sure the static flag actually works.
8494#
8495wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8497$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8498if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8499 $as_echo_n "(cached) " >&6
8500else
8501 lt_cv_prog_compiler_static_works=no
8502 save_LDFLAGS="$LDFLAGS"
8503 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8504 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8505 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8506 # The linker can only warn and ignore the option if not recognized
8507 # So say no if there are warnings
8508 if test -s conftest.err; then
8509 # Append any errors to the config.log.
8510 cat conftest.err 1>&5
8511 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8512 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8513 if diff conftest.exp conftest.er2 >/dev/null; then
8514 lt_cv_prog_compiler_static_works=yes
8515 fi
8516 else
8517 lt_cv_prog_compiler_static_works=yes
8518 fi
8519 fi
8520 $RM -r conftest*
8521 LDFLAGS="$save_LDFLAGS"
8522
8523fi
8524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8525$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8526
8527if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8528 :
8529else
8530 lt_prog_compiler_static=
8531fi
8532
8533
8534
8535
8536
8537
8538
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8540$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8541if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8542 $as_echo_n "(cached) " >&6
8543else
8544 lt_cv_prog_compiler_c_o=no
8545 $RM -r conftest 2>/dev/null
8546 mkdir conftest
8547 cd conftest
8548 mkdir out
8549 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8550
8551 lt_compiler_flag="-o out/conftest2.$ac_objext"
8552 # Insert the option either (1) after the last *FLAGS variable, or
8553 # (2) before a word containing "conftest.", or (3) at the end.
8554 # Note that $ac_compile itself does not contain backslashes and begins
8555 # with a dollar sign (not a hyphen), so the echo should work correctly.
8556 lt_compile=`echo "$ac_compile" | $SED \
8557 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8558 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8559 -e 's:$: $lt_compiler_flag:'`
8560 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8561 (eval "$lt_compile" 2>out/conftest.err)
8562 ac_status=$?
8563 cat out/conftest.err >&5
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8566 then
8567 # The compiler can only warn and ignore the option if not recognized
8568 # So say no if there are warnings
8569 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8570 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8571 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8572 lt_cv_prog_compiler_c_o=yes
8573 fi
8574 fi
8575 chmod u+w . 2>&5
8576 $RM conftest*
8577 # SGI C++ compiler will create directory out/ii_files/ for
8578 # template instantiation
8579 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8580 $RM out/* && rmdir out
8581 cd ..
8582 $RM -r conftest
8583 $RM conftest*
8584
8585fi
8586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8587$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8588
8589
8590
8591
8592
8593
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8595$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8596if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8597 $as_echo_n "(cached) " >&6
8598else
8599 lt_cv_prog_compiler_c_o=no
8600 $RM -r conftest 2>/dev/null
8601 mkdir conftest
8602 cd conftest
8603 mkdir out
8604 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8605
8606 lt_compiler_flag="-o out/conftest2.$ac_objext"
8607 # Insert the option either (1) after the last *FLAGS variable, or
8608 # (2) before a word containing "conftest.", or (3) at the end.
8609 # Note that $ac_compile itself does not contain backslashes and begins
8610 # with a dollar sign (not a hyphen), so the echo should work correctly.
8611 lt_compile=`echo "$ac_compile" | $SED \
8612 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8613 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8614 -e 's:$: $lt_compiler_flag:'`
8615 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8616 (eval "$lt_compile" 2>out/conftest.err)
8617 ac_status=$?
8618 cat out/conftest.err >&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8621 then
8622 # The compiler can only warn and ignore the option if not recognized
8623 # So say no if there are warnings
8624 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8625 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8626 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8627 lt_cv_prog_compiler_c_o=yes
8628 fi
8629 fi
8630 chmod u+w . 2>&5
8631 $RM conftest*
8632 # SGI C++ compiler will create directory out/ii_files/ for
8633 # template instantiation
8634 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8635 $RM out/* && rmdir out
8636 cd ..
8637 $RM -r conftest
8638 $RM conftest*
8639
8640fi
8641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8642$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8643
8644
8645
8646
8647hard_links="nottested"
8648if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8649 # do not overwrite the value of need_locks provided by the user
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8651$as_echo_n "checking if we can lock with hard links... " >&6; }
8652 hard_links=yes
8653 $RM conftest*
8654 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8655 touch conftest.a
8656 ln conftest.a conftest.b 2>&5 || hard_links=no
8657 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8659$as_echo "$hard_links" >&6; }
8660 if test "$hard_links" = no; then
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8662$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8663 need_locks=warn
8664 fi
8665else
8666 need_locks=no
8667fi
8668
8669
8670
8671
8672
8673
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8675$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8676
8677 runpath_var=
8678 allow_undefined_flag=
8679 always_export_symbols=no
8680 archive_cmds=
8681 archive_expsym_cmds=
8682 compiler_needs_object=no
8683 enable_shared_with_static_runtimes=no
8684 export_dynamic_flag_spec=
8685 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8686 hardcode_automatic=no
8687 hardcode_direct=no
8688 hardcode_direct_absolute=no
8689 hardcode_libdir_flag_spec=
8690 hardcode_libdir_flag_spec_ld=
8691 hardcode_libdir_separator=
8692 hardcode_minus_L=no
8693 hardcode_shlibpath_var=unsupported
8694 inherit_rpath=no
8695 link_all_deplibs=unknown
8696 module_cmds=
8697 module_expsym_cmds=
8698 old_archive_from_new_cmds=
8699 old_archive_from_expsyms_cmds=
8700 thread_safe_flag_spec=
8701 whole_archive_flag_spec=
8702 # include_expsyms should be a list of space-separated symbols to be *always*
8703 # included in the symbol list
8704 include_expsyms=
8705 # exclude_expsyms can be an extended regexp of symbols to exclude
8706 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8707 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8708 # as well as any symbol that contains `d'.
8709 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8710 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8711 # platforms (ab)use it in PIC code, but their linkers get confused if
8712 # the symbol is explicitly referenced. Since portable code cannot
8713 # rely on this symbol name, it's probably fine to never include it in
8714 # preloaded symbol tables.
8715 # Exclude shared library initialization/finalization symbols.
8716 extract_expsyms_cmds=
8717
8718 case $host_os in
8719 cygwin* | mingw* | pw32* | cegcc*)
8720 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8721 # When not using gcc, we currently assume that we are using
8722 # Microsoft Visual C++.
8723 if test "$GCC" != yes; then
8724 with_gnu_ld=no
8725 fi
8726 ;;
8727 interix*)
8728 # we just hope/assume this is gcc and not c89 (= MSVC++)
8729 with_gnu_ld=yes
8730 ;;
8731 openbsd*)
8732 with_gnu_ld=no
8733 ;;
8734 esac
8735
8736 ld_shlibs=yes
8737
8738 # On some targets, GNU ld is compatible enough with the native linker
8739 # that we're better off using the native interface for both.
8740 lt_use_gnu_ld_interface=no
8741 if test "$with_gnu_ld" = yes; then
8742 case $host_os in
8743 aix*)
8744 # The AIX port of GNU ld has always aspired to compatibility
8745 # with the native linker. However, as the warning in the GNU ld
8746 # block says, versions before 2.19.5* couldn't really create working
8747 # shared libraries, regardless of the interface used.
8748 case `$LD -v 2>&1` in
8749 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8750 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8751 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8752 *)
8753 lt_use_gnu_ld_interface=yes
8754 ;;
8755 esac
8756 ;;
8757 *)
8758 lt_use_gnu_ld_interface=yes
8759 ;;
8760 esac
8761 fi
8762
8763 if test "$lt_use_gnu_ld_interface" = yes; then
8764 # If archive_cmds runs LD, not CC, wlarc should be empty
8765 wlarc='${wl}'
8766
8767 # Set some defaults for GNU ld with shared library support. These
8768 # are reset later if shared libraries are not supported. Putting them
8769 # here allows them to be overridden if necessary.
8770 runpath_var=LD_RUN_PATH
8771 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8772 export_dynamic_flag_spec='${wl}--export-dynamic'
8773 # ancient GNU ld didn't support --whole-archive et. al.
8774 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8775 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8776 else
8777 whole_archive_flag_spec=
8778 fi
8779 supports_anon_versioning=no
8780 case `$LD -v 2>&1` in
8781 *GNU\ gold*) supports_anon_versioning=yes ;;
8782 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8783 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8784 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8785 *\ 2.11.*) ;; # other 2.11 versions
8786 *) supports_anon_versioning=yes ;;
8787 esac
8788
8789 # See if GNU ld supports shared libraries.
8790 case $host_os in
8791 aix[3-9]*)
8792 # On AIX/PPC, the GNU linker is very broken
8793 if test "$host_cpu" != ia64; then
8794 ld_shlibs=no
8795 cat <<_LT_EOF 1>&2
8796
8797*** Warning: the GNU linker, at least up to release 2.19, is reported
8798*** to be unable to reliably create shared libraries on AIX.
8799*** Therefore, libtool is disabling shared libraries support. If you
8800*** really care for shared libraries, you may want to install binutils
8801*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8802*** You will then need to restart the configuration process.
8803
8804_LT_EOF
8805 fi
8806 ;;
8807
8808 amigaos*)
8809 case $host_cpu in
8810 powerpc)
8811 # see comment about AmigaOS4 .so support
8812 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8813 archive_expsym_cmds=''
8814 ;;
8815 m68k)
8816 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)'
8817 hardcode_libdir_flag_spec='-L$libdir'
8818 hardcode_minus_L=yes
8819 ;;
8820 esac
8821 ;;
8822
8823 beos*)
8824 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8825 allow_undefined_flag=unsupported
8826 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8827 # support --undefined. This deserves some investigation. FIXME
8828 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8829 else
8830 ld_shlibs=no
8831 fi
8832 ;;
8833
8834 cygwin* | mingw* | pw32* | cegcc*)
8835 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8836 # as there is no search path for DLLs.
8837 hardcode_libdir_flag_spec='-L$libdir'
8838 export_dynamic_flag_spec='${wl}--export-all-symbols'
8839 allow_undefined_flag=unsupported
8840 always_export_symbols=no
8841 enable_shared_with_static_runtimes=yes
8842 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8843
8844 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8845 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8846 # If the export-symbols file already is a .def file (1st line
8847 # is EXPORTS), use it as is; otherwise, prepend...
8848 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8849 cp $export_symbols $output_objdir/$soname.def;
8850 else
8851 echo EXPORTS > $output_objdir/$soname.def;
8852 cat $export_symbols >> $output_objdir/$soname.def;
8853 fi~
8854 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8855 else
8856 ld_shlibs=no
8857 fi
8858 ;;
8859
8860 haiku*)
8861 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8862 link_all_deplibs=yes
8863 ;;
8864
8865 interix[3-9]*)
8866 hardcode_direct=no
8867 hardcode_shlibpath_var=no
8868 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8869 export_dynamic_flag_spec='${wl}-E'
8870 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8871 # Instead, shared libraries are loaded at an image base (0x10000000 by
8872 # default) and relocated if they conflict, which is a slow very memory
8873 # consuming and fragmenting process. To avoid this, we pick a random,
8874 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8875 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8876 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8877 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'
8878 ;;
8879
8880 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8881 tmp_diet=no
8882 if test "$host_os" = linux-dietlibc; then
8883 case $cc_basename in
8884 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8885 esac
8886 fi
8887 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8888 && test "$tmp_diet" = no
8889 then
8890 tmp_addflag=
8891 tmp_sharedflag='-shared'
8892 case $cc_basename,$host_cpu in
8893 pgcc*) # Portland Group C compiler
8894 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'
8895 tmp_addflag=' $pic_flag'
8896 ;;
8897 pgf77* | pgf90* | pgf95* | pgfortran*)
8898 # Portland Group f77 and f90 compilers
8899 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'
8900 tmp_addflag=' $pic_flag -Mnomain' ;;
8901 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8902 tmp_addflag=' -i_dynamic' ;;
8903 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8904 tmp_addflag=' -i_dynamic -nofor_main' ;;
8905 ifc* | ifort*) # Intel Fortran compiler
8906 tmp_addflag=' -nofor_main' ;;
8907 lf95*) # Lahey Fortran 8.1
8908 whole_archive_flag_spec=
8909 tmp_sharedflag='--shared' ;;
8910 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8911 tmp_sharedflag='-qmkshrobj'
8912 tmp_addflag= ;;
8913 nvcc*) # Cuda Compiler Driver 2.2
8914 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'
8915 compiler_needs_object=yes
8916 ;;
8917 esac
8918 case `$CC -V 2>&1 | sed 5q` in
8919 *Sun\ C*) # Sun C 5.9
8920 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'
8921 compiler_needs_object=yes
8922 tmp_sharedflag='-G' ;;
8923 *Sun\ F*) # Sun Fortran 8.3
8924 tmp_sharedflag='-G' ;;
8925 esac
8926 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8927
8928 if test "x$supports_anon_versioning" = xyes; then
8929 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8930 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8931 echo "local: *; };" >> $output_objdir/$libname.ver~
8932 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8933 fi
8934
8935 case $cc_basename in
8936 xlf* | bgf* | bgxlf* | mpixlf*)
8937 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8938 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8939 hardcode_libdir_flag_spec=
8940 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8941 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8942 if test "x$supports_anon_versioning" = xyes; then
8943 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8944 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8945 echo "local: *; };" >> $output_objdir/$libname.ver~
8946 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8947 fi
8948 ;;
8949 esac
8950 else
8951 ld_shlibs=no
8952 fi
8953 ;;
8954
8955 netbsd*)
8956 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8957 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8958 wlarc=
8959 else
8960 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8961 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8962 fi
8963 ;;
8964
8965 solaris*)
8966 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8967 ld_shlibs=no
8968 cat <<_LT_EOF 1>&2
8969
8970*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8971*** create shared libraries on Solaris systems. Therefore, libtool
8972*** is disabling shared libraries support. We urge you to upgrade GNU
8973*** binutils to release 2.9.1 or newer. Another option is to modify
8974*** your PATH or compiler configuration so that the native linker is
8975*** used, and then restart.
8976
8977_LT_EOF
8978 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8979 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8980 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8981 else
8982 ld_shlibs=no
8983 fi
8984 ;;
8985
8986 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8987 case `$LD -v 2>&1` in
8988 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8989 ld_shlibs=no
8990 cat <<_LT_EOF 1>&2
8991
8992*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8993*** reliably create shared libraries on SCO systems. Therefore, libtool
8994*** is disabling shared libraries support. We urge you to upgrade GNU
8995*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8996*** your PATH or compiler configuration so that the native linker is
8997*** used, and then restart.
8998
8999_LT_EOF
9000 ;;
9001 *)
9002 # For security reasons, it is highly recommended that you always
9003 # use absolute paths for naming shared libraries, and exclude the
9004 # DT_RUNPATH tag from executables and libraries. But doing so
9005 # requires that you compile everything twice, which is a pain.
9006 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9007 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9008 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9009 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9010 else
9011 ld_shlibs=no
9012 fi
9013 ;;
9014 esac
9015 ;;
9016
9017 sunos4*)
9018 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9019 wlarc=
9020 hardcode_direct=yes
9021 hardcode_shlibpath_var=no
9022 ;;
9023
9024 *)
9025 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9026 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9027 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9028 else
9029 ld_shlibs=no
9030 fi
9031 ;;
9032 esac
9033
9034 if test "$ld_shlibs" = no; then
9035 runpath_var=
9036 hardcode_libdir_flag_spec=
9037 export_dynamic_flag_spec=
9038 whole_archive_flag_spec=
9039 fi
9040 else
9041 # PORTME fill in a description of your system's linker (not GNU ld)
9042 case $host_os in
9043 aix3*)
9044 allow_undefined_flag=unsupported
9045 always_export_symbols=yes
9046 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'
9047 # Note: this linker hardcodes the directories in LIBPATH if there
9048 # are no directories specified by -L.
9049 hardcode_minus_L=yes
9050 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9051 # Neither direct hardcoding nor static linking is supported with a
9052 # broken collect2.
9053 hardcode_direct=unsupported
9054 fi
9055 ;;
9056
9057 aix[4-9]*)
9058 if test "$host_cpu" = ia64; then
9059 # On IA64, the linker does run time linking by default, so we don't
9060 # have to do anything special.
9061 aix_use_runtimelinking=no
9062 exp_sym_flag='-Bexport'
9063 no_entry_flag=""
9064 else
9065 # If we're using GNU nm, then we don't want the "-C" option.
9066 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9067 # Also, AIX nm treats weak defined symbols like other global
9068 # defined symbols, whereas GNU nm marks them as "W".
9069 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9070 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'
9071 else
9072 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'
9073 fi
9074 aix_use_runtimelinking=no
9075
9076 # Test if we are trying to use run time linking or normal
9077 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9078 # need to do runtime linking.
9079 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9080 for ld_flag in $LDFLAGS; do
9081 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9082 aix_use_runtimelinking=yes
9083 break
9084 fi
9085 done
9086 ;;
9087 esac
9088
9089 exp_sym_flag='-bexport'
9090 no_entry_flag='-bnoentry'
9091 fi
9092
9093 # When large executables or shared objects are built, AIX ld can
9094 # have problems creating the table of contents. If linking a library
9095 # or program results in "error TOC overflow" add -mminimal-toc to
9096 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9097 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9098
9099 archive_cmds=''
9100 hardcode_direct=yes
9101 hardcode_direct_absolute=yes
9102 hardcode_libdir_separator=':'
9103 link_all_deplibs=yes
9104 file_list_spec='${wl}-f,'
9105
9106 if test "$GCC" = yes; then
9107 case $host_os in aix4.[012]|aix4.[012].*)
9108 # We only want to do this on AIX 4.2 and lower, the check
9109 # below for broken collect2 doesn't work under 4.3+
9110 collect2name=`${CC} -print-prog-name=collect2`
9111 if test -f "$collect2name" &&
9112 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9113 then
9114 # We have reworked collect2
9115 :
9116 else
9117 # We have old collect2
9118 hardcode_direct=unsupported
9119 # It fails to find uninstalled libraries when the uninstalled
9120 # path is not listed in the libpath. Setting hardcode_minus_L
9121 # to unsupported forces relinking
9122 hardcode_minus_L=yes
9123 hardcode_libdir_flag_spec='-L$libdir'
9124 hardcode_libdir_separator=
9125 fi
9126 ;;
9127 esac
9128 shared_flag='-shared'
9129 if test "$aix_use_runtimelinking" = yes; then
9130 shared_flag="$shared_flag "'${wl}-G'
9131 fi
9132 else
9133 # not using gcc
9134 if test "$host_cpu" = ia64; then
9135 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9136 # chokes on -Wl,-G. The following line is correct:
9137 shared_flag='-G'
9138 else
9139 if test "$aix_use_runtimelinking" = yes; then
9140 shared_flag='${wl}-G'
9141 else
9142 shared_flag='${wl}-bM:SRE'
9143 fi
9144 fi
9145 fi
9146
9147 export_dynamic_flag_spec='${wl}-bexpall'
9148 # It seems that -bexpall does not export symbols beginning with
9149 # underscore (_), so it is better to generate a list of symbols to export.
9150 always_export_symbols=yes
9151 if test "$aix_use_runtimelinking" = yes; then
9152 # Warning - without using the other runtime loading flags (-brtl),
9153 # -berok will link without error, but may produce a broken library.
9154 allow_undefined_flag='-berok'
9155 # Determine the default libpath from the value encoded in an
9156 # empty executable.
9157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9158/* end confdefs.h. */
9159
9160int
9161main ()
9162{
9163
9164 ;
9165 return 0;
9166}
9167_ACEOF
9168if ac_fn_c_try_link "$LINENO"; then :
9169
9170lt_aix_libpath_sed='
9171 /Import File Strings/,/^$/ {
9172 /^0/ {
9173 s/^0 *\(.*\)$/\1/
9174 p
9175 }
9176 }'
9177aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9178# Check for a 64-bit object if we didn't find anything.
9179if test -z "$aix_libpath"; then
9180 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9181fi
9182fi
9183rm -f core conftest.err conftest.$ac_objext \
9184 conftest$ac_exeext conftest.$ac_ext
9185if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9186
9187 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9188 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"
9189 else
9190 if test "$host_cpu" = ia64; then
9191 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9192 allow_undefined_flag="-z nodefs"
9193 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"
9194 else
9195 # Determine the default libpath from the value encoded in an
9196 # empty executable.
9197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9198/* end confdefs.h. */
9199
9200int
9201main ()
9202{
9203
9204 ;
9205 return 0;
9206}
9207_ACEOF
9208if ac_fn_c_try_link "$LINENO"; then :
9209
9210lt_aix_libpath_sed='
9211 /Import File Strings/,/^$/ {
9212 /^0/ {
9213 s/^0 *\(.*\)$/\1/
9214 p
9215 }
9216 }'
9217aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9218# Check for a 64-bit object if we didn't find anything.
9219if test -z "$aix_libpath"; then
9220 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9221fi
9222fi
9223rm -f core conftest.err conftest.$ac_objext \
9224 conftest$ac_exeext conftest.$ac_ext
9225if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9226
9227 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9228 # Warning - without using the other run time loading flags,
9229 # -berok will link without error, but may produce a broken library.
9230 no_undefined_flag=' ${wl}-bernotok'
9231 allow_undefined_flag=' ${wl}-berok'
9232 if test "$with_gnu_ld" = yes; then
9233 # We only use this code for GNU lds that support --whole-archive.
9234 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9235 else
9236 # Exported symbols can be pulled into shared objects from archives
9237 whole_archive_flag_spec='$convenience'
9238 fi
9239 archive_cmds_need_lc=yes
9240 # This is similar to how AIX traditionally builds its shared libraries.
9241 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'
9242 fi
9243 fi
9244 ;;
9245
9246 amigaos*)
9247 case $host_cpu in
9248 powerpc)
9249 # see comment about AmigaOS4 .so support
9250 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9251 archive_expsym_cmds=''
9252 ;;
9253 m68k)
9254 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)'
9255 hardcode_libdir_flag_spec='-L$libdir'
9256 hardcode_minus_L=yes
9257 ;;
9258 esac
9259 ;;
9260
9261 bsdi[45]*)
9262 export_dynamic_flag_spec=-rdynamic
9263 ;;
9264
9265 cygwin* | mingw* | pw32* | cegcc*)
9266 # When not using gcc, we currently assume that we are using
9267 # Microsoft Visual C++.
9268 # hardcode_libdir_flag_spec is actually meaningless, as there is
9269 # no search path for DLLs.
9270 hardcode_libdir_flag_spec=' '
9271 allow_undefined_flag=unsupported
9272 # Tell ltmain to make .lib files, not .a files.
9273 libext=lib
9274 # Tell ltmain to make .dll files, not .so files.
9275 shrext_cmds=".dll"
9276 # FIXME: Setting linknames here is a bad hack.
9277 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9278 # The linker will automatically build a .lib file if we build a DLL.
9279 old_archive_from_new_cmds='true'
9280 # FIXME: Should let the user specify the lib program.
9281 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9282 fix_srcfile_path='`cygpath -w "$srcfile"`'
9283 enable_shared_with_static_runtimes=yes
9284 ;;
9285
9286 darwin* | rhapsody*)
9287
9288
9289 archive_cmds_need_lc=no
9290 hardcode_direct=no
9291 hardcode_automatic=yes
9292 hardcode_shlibpath_var=unsupported
9293 if test "$lt_cv_ld_force_load" = "yes"; then
9294 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\"`'
9295 else
9296 whole_archive_flag_spec=''
9297 fi
9298 link_all_deplibs=yes
9299 allow_undefined_flag="$_lt_dar_allow_undefined"
9300 case $cc_basename in
9301 ifort*) _lt_dar_can_shared=yes ;;
9302 *) _lt_dar_can_shared=$GCC ;;
9303 esac
9304 if test "$_lt_dar_can_shared" = "yes"; then
9305 output_verbose_link_cmd=func_echo_all
9306 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9307 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9308 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}"
9309 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}"
9310
9311 else
9312 ld_shlibs=no
9313 fi
9314
9315 ;;
9316
9317 dgux*)
9318 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9319 hardcode_libdir_flag_spec='-L$libdir'
9320 hardcode_shlibpath_var=no
9321 ;;
9322
e440a328 9323 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9324 # support. Future versions do this automatically, but an explicit c++rt0.o
9325 # does not break anything, and helps significantly (at the cost of a little
9326 # extra space).
9327 freebsd2.2*)
9328 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9329 hardcode_libdir_flag_spec='-R$libdir'
9330 hardcode_direct=yes
9331 hardcode_shlibpath_var=no
9332 ;;
9333
9334 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9335 freebsd2*)
9336 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9337 hardcode_direct=yes
9338 hardcode_minus_L=yes
9339 hardcode_shlibpath_var=no
9340 ;;
9341
9342 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9343 freebsd* | dragonfly*)
9344 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9345 hardcode_libdir_flag_spec='-R$libdir'
9346 hardcode_direct=yes
9347 hardcode_shlibpath_var=no
9348 ;;
9349
9350 hpux9*)
9351 if test "$GCC" = yes; then
9352 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'
9353 else
9354 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'
9355 fi
9356 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9357 hardcode_libdir_separator=:
9358 hardcode_direct=yes
9359
9360 # hardcode_minus_L: Not really in the search PATH,
9361 # but as the default location of the library.
9362 hardcode_minus_L=yes
9363 export_dynamic_flag_spec='${wl}-E'
9364 ;;
9365
9366 hpux10*)
9367 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9368 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9369 else
9370 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9371 fi
9372 if test "$with_gnu_ld" = no; then
9373 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9374 hardcode_libdir_flag_spec_ld='+b $libdir'
9375 hardcode_libdir_separator=:
9376 hardcode_direct=yes
9377 hardcode_direct_absolute=yes
9378 export_dynamic_flag_spec='${wl}-E'
9379 # hardcode_minus_L: Not really in the search PATH,
9380 # but as the default location of the library.
9381 hardcode_minus_L=yes
9382 fi
9383 ;;
9384
9385 hpux11*)
9386 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9387 case $host_cpu in
9388 hppa*64*)
9389 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9390 ;;
9391 ia64*)
9392 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9393 ;;
9394 *)
9395 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9396 ;;
9397 esac
9398 else
9399 case $host_cpu in
9400 hppa*64*)
9401 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9402 ;;
9403 ia64*)
9404 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9405 ;;
9406 *)
9407
9408 # Older versions of the 11.00 compiler do not understand -b yet
9409 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9411$as_echo_n "checking if $CC understands -b... " >&6; }
9412if test "${lt_cv_prog_compiler__b+set}" = set; then :
9413 $as_echo_n "(cached) " >&6
9414else
9415 lt_cv_prog_compiler__b=no
9416 save_LDFLAGS="$LDFLAGS"
9417 LDFLAGS="$LDFLAGS -b"
9418 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9419 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9420 # The linker can only warn and ignore the option if not recognized
9421 # So say no if there are warnings
9422 if test -s conftest.err; then
9423 # Append any errors to the config.log.
9424 cat conftest.err 1>&5
9425 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9426 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9427 if diff conftest.exp conftest.er2 >/dev/null; then
9428 lt_cv_prog_compiler__b=yes
9429 fi
9430 else
9431 lt_cv_prog_compiler__b=yes
9432 fi
9433 fi
9434 $RM -r conftest*
9435 LDFLAGS="$save_LDFLAGS"
9436
9437fi
9438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9439$as_echo "$lt_cv_prog_compiler__b" >&6; }
9440
9441if test x"$lt_cv_prog_compiler__b" = xyes; then
9442 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9443else
9444 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9445fi
9446
9447 ;;
9448 esac
9449 fi
9450 if test "$with_gnu_ld" = no; then
9451 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9452 hardcode_libdir_separator=:
9453
9454 case $host_cpu in
9455 hppa*64*|ia64*)
9456 hardcode_direct=no
9457 hardcode_shlibpath_var=no
9458 ;;
9459 *)
9460 hardcode_direct=yes
9461 hardcode_direct_absolute=yes
9462 export_dynamic_flag_spec='${wl}-E'
9463
9464 # hardcode_minus_L: Not really in the search PATH,
9465 # but as the default location of the library.
9466 hardcode_minus_L=yes
9467 ;;
9468 esac
9469 fi
9470 ;;
9471
9472 irix5* | irix6* | nonstopux*)
9473 if test "$GCC" = yes; then
9474 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'
9475 # Try to use the -exported_symbol ld option, if it does not
9476 # work, assume that -exports_file does not work either and
9477 # implicitly export all symbols.
9478 save_LDFLAGS="$LDFLAGS"
9479 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9481/* end confdefs.h. */
9482int foo(void) {}
9483_ACEOF
9484if ac_fn_c_try_link "$LINENO"; then :
9485 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'
9486
9487fi
9488rm -f core conftest.err conftest.$ac_objext \
9489 conftest$ac_exeext conftest.$ac_ext
9490 LDFLAGS="$save_LDFLAGS"
9491 else
9492 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'
9493 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'
9494 fi
9495 archive_cmds_need_lc='no'
9496 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9497 hardcode_libdir_separator=:
9498 inherit_rpath=yes
9499 link_all_deplibs=yes
9500 ;;
9501
9502 netbsd*)
9503 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9504 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9505 else
9506 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9507 fi
9508 hardcode_libdir_flag_spec='-R$libdir'
9509 hardcode_direct=yes
9510 hardcode_shlibpath_var=no
9511 ;;
9512
9513 newsos6)
9514 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9515 hardcode_direct=yes
9516 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9517 hardcode_libdir_separator=:
9518 hardcode_shlibpath_var=no
9519 ;;
9520
9521 *nto* | *qnx*)
9522 ;;
9523
9524 openbsd*)
9525 if test -f /usr/libexec/ld.so; then
9526 hardcode_direct=yes
9527 hardcode_shlibpath_var=no
9528 hardcode_direct_absolute=yes
9529 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9530 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9531 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9532 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9533 export_dynamic_flag_spec='${wl}-E'
9534 else
9535 case $host_os in
9536 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9537 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9538 hardcode_libdir_flag_spec='-R$libdir'
9539 ;;
9540 *)
9541 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9542 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9543 ;;
9544 esac
9545 fi
9546 else
9547 ld_shlibs=no
9548 fi
9549 ;;
9550
9551 os2*)
9552 hardcode_libdir_flag_spec='-L$libdir'
9553 hardcode_minus_L=yes
9554 allow_undefined_flag=unsupported
9555 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'
9556 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9557 ;;
9558
9559 osf3*)
9560 if test "$GCC" = yes; then
9561 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9562 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'
9563 else
9564 allow_undefined_flag=' -expect_unresolved \*'
9565 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'
9566 fi
9567 archive_cmds_need_lc='no'
9568 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9569 hardcode_libdir_separator=:
9570 ;;
9571
9572 osf4* | osf5*) # as osf3* with the addition of -msym flag
9573 if test "$GCC" = yes; then
9574 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9575 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'
9576 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9577 else
9578 allow_undefined_flag=' -expect_unresolved \*'
9579 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'
9580 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~
9581 $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'
9582
9583 # Both c and cxx compiler support -rpath directly
9584 hardcode_libdir_flag_spec='-rpath $libdir'
9585 fi
9586 archive_cmds_need_lc='no'
9587 hardcode_libdir_separator=:
9588 ;;
9589
9590 solaris*)
9591 no_undefined_flag=' -z defs'
9592 if test "$GCC" = yes; then
9593 wlarc='${wl}'
9594 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9595 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9596 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9597 else
9598 case `$CC -V 2>&1` in
9599 *"Compilers 5.0"*)
9600 wlarc=''
9601 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9602 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9603 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9604 ;;
9605 *)
9606 wlarc='${wl}'
9607 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9608 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9609 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9610 ;;
9611 esac
9612 fi
9613 hardcode_libdir_flag_spec='-R$libdir'
9614 hardcode_shlibpath_var=no
9615 case $host_os in
9616 solaris2.[0-5] | solaris2.[0-5].*) ;;
9617 *)
9618 # The compiler driver will combine and reorder linker options,
9619 # but understands `-z linker_flag'. GCC discards it without `$wl',
9620 # but is careful enough not to reorder.
9621 # Supported since Solaris 2.6 (maybe 2.5.1?)
9622 if test "$GCC" = yes; then
9623 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9624 else
9625 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9626 fi
9627 ;;
9628 esac
9629 link_all_deplibs=yes
9630 ;;
9631
9632 sunos4*)
9633 if test "x$host_vendor" = xsequent; then
9634 # Use $CC to link under sequent, because it throws in some extra .o
9635 # files that make .init and .fini sections work.
9636 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9637 else
9638 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9639 fi
9640 hardcode_libdir_flag_spec='-L$libdir'
9641 hardcode_direct=yes
9642 hardcode_minus_L=yes
9643 hardcode_shlibpath_var=no
9644 ;;
9645
9646 sysv4)
9647 case $host_vendor in
9648 sni)
9649 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9650 hardcode_direct=yes # is this really true???
9651 ;;
9652 siemens)
9653 ## LD is ld it makes a PLAMLIB
9654 ## CC just makes a GrossModule.
9655 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9656 reload_cmds='$CC -r -o $output$reload_objs'
9657 hardcode_direct=no
9658 ;;
9659 motorola)
9660 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9661 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9662 ;;
9663 esac
9664 runpath_var='LD_RUN_PATH'
9665 hardcode_shlibpath_var=no
9666 ;;
9667
9668 sysv4.3*)
9669 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9670 hardcode_shlibpath_var=no
9671 export_dynamic_flag_spec='-Bexport'
9672 ;;
9673
9674 sysv4*MP*)
9675 if test -d /usr/nec; then
9676 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9677 hardcode_shlibpath_var=no
9678 runpath_var=LD_RUN_PATH
9679 hardcode_runpath_var=yes
9680 ld_shlibs=yes
9681 fi
9682 ;;
9683
9684 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9685 no_undefined_flag='${wl}-z,text'
9686 archive_cmds_need_lc=no
9687 hardcode_shlibpath_var=no
9688 runpath_var='LD_RUN_PATH'
9689
9690 if test "$GCC" = yes; then
9691 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9692 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9693 else
9694 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9695 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9696 fi
9697 ;;
9698
9699 sysv5* | sco3.2v5* | sco5v6*)
9700 # Note: We can NOT use -z defs as we might desire, because we do not
9701 # link with -lc, and that would cause any symbols used from libc to
9702 # always be unresolved, which means just about no library would
9703 # ever link correctly. If we're not using GNU ld we use -z text
9704 # though, which does catch some bad symbols but isn't as heavy-handed
9705 # as -z defs.
9706 no_undefined_flag='${wl}-z,text'
9707 allow_undefined_flag='${wl}-z,nodefs'
9708 archive_cmds_need_lc=no
9709 hardcode_shlibpath_var=no
9710 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9711 hardcode_libdir_separator=':'
9712 link_all_deplibs=yes
9713 export_dynamic_flag_spec='${wl}-Bexport'
9714 runpath_var='LD_RUN_PATH'
9715
9716 if test "$GCC" = yes; then
9717 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9718 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9719 else
9720 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9721 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9722 fi
9723 ;;
9724
9725 uts4*)
9726 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9727 hardcode_libdir_flag_spec='-L$libdir'
9728 hardcode_shlibpath_var=no
9729 ;;
9730
9731 *)
9732 ld_shlibs=no
9733 ;;
9734 esac
9735
9736 if test x$host_vendor = xsni; then
9737 case $host in
9738 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9739 export_dynamic_flag_spec='${wl}-Blargedynsym'
9740 ;;
9741 esac
9742 fi
9743 fi
9744
9745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9746$as_echo "$ld_shlibs" >&6; }
9747test "$ld_shlibs" = no && can_build_shared=no
9748
9749with_gnu_ld=$with_gnu_ld
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765#
9766# Do we need to explicitly link libc?
9767#
9768case "x$archive_cmds_need_lc" in
9769x|xyes)
9770 # Assume -lc should be added
9771 archive_cmds_need_lc=yes
9772
9773 if test "$enable_shared" = yes && test "$GCC" = yes; then
9774 case $archive_cmds in
9775 *'~'*)
9776 # FIXME: we may have to deal with multi-command sequences.
9777 ;;
9778 '$CC '*)
9779 # Test whether the compiler implicitly links with -lc since on some
9780 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9781 # to ld, don't add -lc before -lgcc.
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9783$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9784if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9785 $as_echo_n "(cached) " >&6
9786else
9787 $RM conftest*
9788 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9789
9790 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9791 (eval $ac_compile) 2>&5
9792 ac_status=$?
9793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9794 test $ac_status = 0; } 2>conftest.err; then
9795 soname=conftest
9796 lib=conftest
9797 libobjs=conftest.$ac_objext
9798 deplibs=
9799 wl=$lt_prog_compiler_wl
9800 pic_flag=$lt_prog_compiler_pic
9801 compiler_flags=-v
9802 linker_flags=-v
9803 verstring=
9804 output_objdir=.
9805 libname=conftest
9806 lt_save_allow_undefined_flag=$allow_undefined_flag
9807 allow_undefined_flag=
9808 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9809 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9810 ac_status=$?
9811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9812 test $ac_status = 0; }
9813 then
9814 lt_cv_archive_cmds_need_lc=no
9815 else
9816 lt_cv_archive_cmds_need_lc=yes
9817 fi
9818 allow_undefined_flag=$lt_save_allow_undefined_flag
9819 else
9820 cat conftest.err 1>&5
9821 fi
9822 $RM conftest*
9823
9824fi
9825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9826$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9827 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9828 ;;
9829 esac
9830 fi
9831 ;;
9832esac
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9991$as_echo_n "checking dynamic linker characteristics... " >&6; }
9992
9993if test "$GCC" = yes; then
9994 case $host_os in
9995 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9996 *) lt_awk_arg="/^libraries:/" ;;
9997 esac
9998 case $host_os in
9999 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10000 *) lt_sed_strip_eq="s,=/,/,g" ;;
10001 esac
10002 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10003 case $lt_search_path_spec in
10004 *\;*)
10005 # if the path contains ";" then we assume it to be the separator
10006 # otherwise default to the standard path separator (i.e. ":") - it is
10007 # assumed that no part of a normal pathname contains ";" but that should
10008 # okay in the real world where ";" in dirpaths is itself problematic.
10009 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10010 ;;
10011 *)
10012 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10013 ;;
10014 esac
10015 # Ok, now we have the path, separated by spaces, we can step through it
10016 # and add multilib dir if necessary.
10017 lt_tmp_lt_search_path_spec=
10018 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10019 for lt_sys_path in $lt_search_path_spec; do
10020 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10021 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10022 else
10023 test -d "$lt_sys_path" && \
10024 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10025 fi
10026 done
10027 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10028BEGIN {RS=" "; FS="/|\n";} {
10029 lt_foo="";
10030 lt_count=0;
10031 for (lt_i = NF; lt_i > 0; lt_i--) {
10032 if ($lt_i != "" && $lt_i != ".") {
10033 if ($lt_i == "..") {
10034 lt_count++;
10035 } else {
10036 if (lt_count == 0) {
10037 lt_foo="/" $lt_i lt_foo;
10038 } else {
10039 lt_count--;
10040 }
10041 }
10042 }
10043 }
10044 if (lt_foo != "") { lt_freq[lt_foo]++; }
10045 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10046}'`
10047 # AWK program above erroneously prepends '/' to C:/dos/paths
10048 # for these hosts.
10049 case $host_os in
10050 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10051 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10052 esac
10053 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10054else
10055 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10056fi
10057library_names_spec=
10058libname_spec='lib$name'
10059soname_spec=
10060shrext_cmds=".so"
10061postinstall_cmds=
10062postuninstall_cmds=
10063finish_cmds=
10064finish_eval=
10065shlibpath_var=
10066shlibpath_overrides_runpath=unknown
10067version_type=none
10068dynamic_linker="$host_os ld.so"
10069sys_lib_dlsearch_path_spec="/lib /usr/lib"
10070need_lib_prefix=unknown
10071hardcode_into_libs=no
10072
10073# when you set need_version to no, make sure it does not cause -set_version
10074# flags to be left without arguments
10075need_version=unknown
10076
10077case $host_os in
10078aix3*)
10079 version_type=linux
10080 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10081 shlibpath_var=LIBPATH
10082
10083 # AIX 3 has no versioning support, so we append a major version to the name.
10084 soname_spec='${libname}${release}${shared_ext}$major'
10085 ;;
10086
10087aix[4-9]*)
10088 version_type=linux
10089 need_lib_prefix=no
10090 need_version=no
10091 hardcode_into_libs=yes
10092 if test "$host_cpu" = ia64; then
10093 # AIX 5 supports IA64
10094 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10095 shlibpath_var=LD_LIBRARY_PATH
10096 else
10097 # With GCC up to 2.95.x, collect2 would create an import file
10098 # for dependence libraries. The import file would start with
10099 # the line `#! .'. This would cause the generated library to
10100 # depend on `.', always an invalid library. This was fixed in
10101 # development snapshots of GCC prior to 3.0.
10102 case $host_os in
10103 aix4 | aix4.[01] | aix4.[01].*)
10104 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10105 echo ' yes '
10106 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10107 :
10108 else
10109 can_build_shared=no
10110 fi
10111 ;;
10112 esac
10113 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10114 # soname into executable. Probably we can add versioning support to
10115 # collect2, so additional links can be useful in future.
10116 if test "$aix_use_runtimelinking" = yes; then
10117 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10118 # instead of lib<name>.a to let people know that these are not
10119 # typical AIX shared libraries.
10120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10121 else
10122 # We preserve .a as extension for shared libraries through AIX4.2
10123 # and later when we are not doing run time linking.
10124 library_names_spec='${libname}${release}.a $libname.a'
10125 soname_spec='${libname}${release}${shared_ext}$major'
10126 fi
10127 shlibpath_var=LIBPATH
10128 fi
10129 ;;
10130
10131amigaos*)
10132 case $host_cpu in
10133 powerpc)
10134 # Since July 2007 AmigaOS4 officially supports .so libraries.
10135 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10137 ;;
10138 m68k)
10139 library_names_spec='$libname.ixlibrary $libname.a'
10140 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10141 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'
10142 ;;
10143 esac
10144 ;;
10145
10146beos*)
10147 library_names_spec='${libname}${shared_ext}'
10148 dynamic_linker="$host_os ld.so"
10149 shlibpath_var=LIBRARY_PATH
10150 ;;
10151
10152bsdi[45]*)
10153 version_type=linux
10154 need_version=no
10155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10156 soname_spec='${libname}${release}${shared_ext}$major'
10157 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10158 shlibpath_var=LD_LIBRARY_PATH
10159 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10160 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10161 # the default ld.so.conf also contains /usr/contrib/lib and
10162 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10163 # libtool to hard-code these into programs
10164 ;;
10165
10166cygwin* | mingw* | pw32* | cegcc*)
10167 version_type=windows
10168 shrext_cmds=".dll"
10169 need_version=no
10170 need_lib_prefix=no
10171
10172 case $GCC,$host_os in
10173 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10174 library_names_spec='$libname.dll.a'
10175 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10176 postinstall_cmds='base_file=`basename \${file}`~
10177 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10178 dldir=$destdir/`dirname \$dlpath`~
10179 test -d \$dldir || mkdir -p \$dldir~
10180 $install_prog $dir/$dlname \$dldir/$dlname~
10181 chmod a+x \$dldir/$dlname~
10182 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10183 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10184 fi'
10185 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10186 dlpath=$dir/\$dldll~
10187 $RM \$dlpath'
10188 shlibpath_overrides_runpath=yes
10189
10190 case $host_os in
10191 cygwin*)
10192 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10193 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10194
10195 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10196 ;;
10197 mingw* | cegcc*)
10198 # MinGW DLLs use traditional 'lib' prefix
10199 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10200 ;;
10201 pw32*)
10202 # pw32 DLLs use 'pw' prefix rather than 'lib'
10203 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10204 ;;
10205 esac
10206 ;;
10207
10208 *)
10209 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10210 ;;
10211 esac
10212 dynamic_linker='Win32 ld.exe'
10213 # FIXME: first we should search . and the directory the executable is in
10214 shlibpath_var=PATH
10215 ;;
10216
10217darwin* | rhapsody*)
10218 dynamic_linker="$host_os dyld"
10219 version_type=darwin
10220 need_lib_prefix=no
10221 need_version=no
10222 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10223 soname_spec='${libname}${release}${major}$shared_ext'
10224 shlibpath_overrides_runpath=yes
10225 shlibpath_var=DYLD_LIBRARY_PATH
10226 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10227
10228 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10229 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10230 ;;
10231
10232dgux*)
10233 version_type=linux
10234 need_lib_prefix=no
10235 need_version=no
10236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10237 soname_spec='${libname}${release}${shared_ext}$major'
10238 shlibpath_var=LD_LIBRARY_PATH
10239 ;;
10240
e440a328 10241freebsd* | dragonfly*)
10242 # DragonFly does not have aout. When/if they implement a new
10243 # versioning mechanism, adjust this.
10244 if test -x /usr/bin/objformat; then
10245 objformat=`/usr/bin/objformat`
10246 else
10247 case $host_os in
10248 freebsd[123]*) objformat=aout ;;
10249 *) objformat=elf ;;
10250 esac
10251 fi
10252 version_type=freebsd-$objformat
10253 case $version_type in
10254 freebsd-elf*)
10255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10256 need_version=no
10257 need_lib_prefix=no
10258 ;;
10259 freebsd-*)
10260 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10261 need_version=yes
10262 ;;
10263 esac
10264 shlibpath_var=LD_LIBRARY_PATH
10265 case $host_os in
10266 freebsd2*)
10267 shlibpath_overrides_runpath=yes
10268 ;;
10269 freebsd3.[01]* | freebsdelf3.[01]*)
10270 shlibpath_overrides_runpath=yes
10271 hardcode_into_libs=yes
10272 ;;
10273 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10274 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10275 shlibpath_overrides_runpath=no
10276 hardcode_into_libs=yes
10277 ;;
10278 *) # from 4.6 on, and DragonFly
10279 shlibpath_overrides_runpath=yes
10280 hardcode_into_libs=yes
10281 ;;
10282 esac
10283 ;;
10284
10285gnu*)
10286 version_type=linux
10287 need_lib_prefix=no
10288 need_version=no
10289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10290 soname_spec='${libname}${release}${shared_ext}$major'
10291 shlibpath_var=LD_LIBRARY_PATH
10292 hardcode_into_libs=yes
10293 ;;
10294
10295haiku*)
10296 version_type=linux
10297 need_lib_prefix=no
10298 need_version=no
10299 dynamic_linker="$host_os runtime_loader"
10300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10301 soname_spec='${libname}${release}${shared_ext}$major'
10302 shlibpath_var=LIBRARY_PATH
10303 shlibpath_overrides_runpath=yes
10304 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10305 hardcode_into_libs=yes
10306 ;;
10307
10308hpux9* | hpux10* | hpux11*)
10309 # Give a soname corresponding to the major version so that dld.sl refuses to
10310 # link against other versions.
10311 version_type=sunos
10312 need_lib_prefix=no
10313 need_version=no
10314 case $host_cpu in
10315 ia64*)
10316 shrext_cmds='.so'
10317 hardcode_into_libs=yes
10318 dynamic_linker="$host_os dld.so"
10319 shlibpath_var=LD_LIBRARY_PATH
10320 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10322 soname_spec='${libname}${release}${shared_ext}$major'
10323 if test "X$HPUX_IA64_MODE" = X32; then
10324 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10325 else
10326 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10327 fi
10328 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10329 ;;
10330 hppa*64*)
10331 shrext_cmds='.sl'
10332 hardcode_into_libs=yes
10333 dynamic_linker="$host_os dld.sl"
10334 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10335 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10337 soname_spec='${libname}${release}${shared_ext}$major'
10338 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10339 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10340 ;;
10341 *)
10342 shrext_cmds='.sl'
10343 dynamic_linker="$host_os dld.sl"
10344 shlibpath_var=SHLIB_PATH
10345 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10347 soname_spec='${libname}${release}${shared_ext}$major'
10348 ;;
10349 esac
10350 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10351 postinstall_cmds='chmod 555 $lib'
10352 # or fails outright, so override atomically:
10353 install_override_mode=555
10354 ;;
10355
10356interix[3-9]*)
10357 version_type=linux
10358 need_lib_prefix=no
10359 need_version=no
10360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10361 soname_spec='${libname}${release}${shared_ext}$major'
10362 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10363 shlibpath_var=LD_LIBRARY_PATH
10364 shlibpath_overrides_runpath=no
10365 hardcode_into_libs=yes
10366 ;;
10367
10368irix5* | irix6* | nonstopux*)
10369 case $host_os in
10370 nonstopux*) version_type=nonstopux ;;
10371 *)
10372 if test "$lt_cv_prog_gnu_ld" = yes; then
10373 version_type=linux
10374 else
10375 version_type=irix
10376 fi ;;
10377 esac
10378 need_lib_prefix=no
10379 need_version=no
10380 soname_spec='${libname}${release}${shared_ext}$major'
10381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10382 case $host_os in
10383 irix5* | nonstopux*)
10384 libsuff= shlibsuff=
10385 ;;
10386 *)
10387 case $LD in # libtool.m4 will add one of these switches to LD
10388 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10389 libsuff= shlibsuff= libmagic=32-bit;;
10390 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10391 libsuff=32 shlibsuff=N32 libmagic=N32;;
10392 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10393 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10394 *) libsuff= shlibsuff= libmagic=never-match;;
10395 esac
10396 ;;
10397 esac
10398 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10399 shlibpath_overrides_runpath=no
10400 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10401 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10402 hardcode_into_libs=yes
10403 ;;
10404
10405# No shared lib support for Linux oldld, aout, or coff.
10406linux*oldld* | linux*aout* | linux*coff*)
10407 dynamic_linker=no
10408 ;;
10409
10410# This must be Linux ELF.
10411linux* | k*bsd*-gnu | kopensolaris*-gnu)
10412 version_type=linux
10413 need_lib_prefix=no
10414 need_version=no
10415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10416 soname_spec='${libname}${release}${shared_ext}$major'
10417 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10418 shlibpath_var=LD_LIBRARY_PATH
10419 shlibpath_overrides_runpath=no
10420
10421 # Some binutils ld are patched to set DT_RUNPATH
10422 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10423 $as_echo_n "(cached) " >&6
10424else
10425 lt_cv_shlibpath_overrides_runpath=no
10426 save_LDFLAGS=$LDFLAGS
10427 save_libdir=$libdir
10428 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10429 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10431/* end confdefs.h. */
10432
10433int
10434main ()
10435{
10436
10437 ;
10438 return 0;
10439}
10440_ACEOF
10441if ac_fn_c_try_link "$LINENO"; then :
10442 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10443 lt_cv_shlibpath_overrides_runpath=yes
10444fi
10445fi
10446rm -f core conftest.err conftest.$ac_objext \
10447 conftest$ac_exeext conftest.$ac_ext
10448 LDFLAGS=$save_LDFLAGS
10449 libdir=$save_libdir
10450
10451fi
10452
10453 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10454
10455 # This implies no fast_install, which is unacceptable.
10456 # Some rework will be needed to allow for fast_install
10457 # before this can be enabled.
10458 hardcode_into_libs=yes
10459
10460 # Append ld.so.conf contents to the search path
10461 if test -f /etc/ld.so.conf; then
10462 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' ' '`
10463 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10464 fi
10465
10466 # We used to test for /lib/ld.so.1 and disable shared libraries on
10467 # powerpc, because MkLinux only supported shared libraries with the
10468 # GNU dynamic linker. Since this was broken with cross compilers,
10469 # most powerpc-linux boxes support dynamic linking these days and
10470 # people can always --disable-shared, the test was removed, and we
10471 # assume the GNU/Linux dynamic linker is in use.
10472 dynamic_linker='GNU/Linux ld.so'
10473 ;;
10474
10475netbsd*)
10476 version_type=sunos
10477 need_lib_prefix=no
10478 need_version=no
10479 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10481 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10482 dynamic_linker='NetBSD (a.out) ld.so'
10483 else
10484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10485 soname_spec='${libname}${release}${shared_ext}$major'
10486 dynamic_linker='NetBSD ld.elf_so'
10487 fi
10488 shlibpath_var=LD_LIBRARY_PATH
10489 shlibpath_overrides_runpath=yes
10490 hardcode_into_libs=yes
10491 ;;
10492
10493newsos6)
10494 version_type=linux
10495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10496 shlibpath_var=LD_LIBRARY_PATH
10497 shlibpath_overrides_runpath=yes
10498 ;;
10499
10500*nto* | *qnx*)
10501 version_type=qnx
10502 need_lib_prefix=no
10503 need_version=no
10504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10505 soname_spec='${libname}${release}${shared_ext}$major'
10506 shlibpath_var=LD_LIBRARY_PATH
10507 shlibpath_overrides_runpath=no
10508 hardcode_into_libs=yes
10509 dynamic_linker='ldqnx.so'
10510 ;;
10511
10512openbsd*)
10513 version_type=sunos
10514 sys_lib_dlsearch_path_spec="/usr/lib"
10515 need_lib_prefix=no
10516 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10517 case $host_os in
10518 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10519 *) need_version=no ;;
10520 esac
10521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10522 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10523 shlibpath_var=LD_LIBRARY_PATH
10524 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10525 case $host_os in
10526 openbsd2.[89] | openbsd2.[89].*)
10527 shlibpath_overrides_runpath=no
10528 ;;
10529 *)
10530 shlibpath_overrides_runpath=yes
10531 ;;
10532 esac
10533 else
10534 shlibpath_overrides_runpath=yes
10535 fi
10536 ;;
10537
10538os2*)
10539 libname_spec='$name'
10540 shrext_cmds=".dll"
10541 need_lib_prefix=no
10542 library_names_spec='$libname${shared_ext} $libname.a'
10543 dynamic_linker='OS/2 ld.exe'
10544 shlibpath_var=LIBPATH
10545 ;;
10546
10547osf3* | osf4* | osf5*)
10548 version_type=osf
10549 need_lib_prefix=no
10550 need_version=no
10551 soname_spec='${libname}${release}${shared_ext}$major'
10552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10553 shlibpath_var=LD_LIBRARY_PATH
10554 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10555 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10556 ;;
10557
10558rdos*)
10559 dynamic_linker=no
10560 ;;
10561
10562solaris*)
10563 version_type=linux
10564 need_lib_prefix=no
10565 need_version=no
10566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10567 soname_spec='${libname}${release}${shared_ext}$major'
10568 shlibpath_var=LD_LIBRARY_PATH
10569 shlibpath_overrides_runpath=yes
10570 hardcode_into_libs=yes
10571 # ldd complains unless libraries are executable
10572 postinstall_cmds='chmod +x $lib'
10573 ;;
10574
10575sunos4*)
10576 version_type=sunos
10577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10578 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10579 shlibpath_var=LD_LIBRARY_PATH
10580 shlibpath_overrides_runpath=yes
10581 if test "$with_gnu_ld" = yes; then
10582 need_lib_prefix=no
10583 fi
10584 need_version=yes
10585 ;;
10586
10587sysv4 | sysv4.3*)
10588 version_type=linux
10589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10590 soname_spec='${libname}${release}${shared_ext}$major'
10591 shlibpath_var=LD_LIBRARY_PATH
10592 case $host_vendor in
10593 sni)
10594 shlibpath_overrides_runpath=no
10595 need_lib_prefix=no
10596 runpath_var=LD_RUN_PATH
10597 ;;
10598 siemens)
10599 need_lib_prefix=no
10600 ;;
10601 motorola)
10602 need_lib_prefix=no
10603 need_version=no
10604 shlibpath_overrides_runpath=no
10605 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10606 ;;
10607 esac
10608 ;;
10609
10610sysv4*MP*)
10611 if test -d /usr/nec ;then
10612 version_type=linux
10613 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10614 soname_spec='$libname${shared_ext}.$major'
10615 shlibpath_var=LD_LIBRARY_PATH
10616 fi
10617 ;;
10618
10619sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10620 version_type=freebsd-elf
10621 need_lib_prefix=no
10622 need_version=no
10623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10624 soname_spec='${libname}${release}${shared_ext}$major'
10625 shlibpath_var=LD_LIBRARY_PATH
10626 shlibpath_overrides_runpath=yes
10627 hardcode_into_libs=yes
10628 if test "$with_gnu_ld" = yes; then
10629 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10630 else
10631 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10632 case $host_os in
10633 sco3.2v5*)
10634 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10635 ;;
10636 esac
10637 fi
10638 sys_lib_dlsearch_path_spec='/usr/lib'
10639 ;;
10640
10641tpf*)
10642 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10643 version_type=linux
10644 need_lib_prefix=no
10645 need_version=no
10646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10647 shlibpath_var=LD_LIBRARY_PATH
10648 shlibpath_overrides_runpath=no
10649 hardcode_into_libs=yes
10650 ;;
10651
10652uts4*)
10653 version_type=linux
10654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10655 soname_spec='${libname}${release}${shared_ext}$major'
10656 shlibpath_var=LD_LIBRARY_PATH
10657 ;;
10658
10659*)
10660 dynamic_linker=no
10661 ;;
10662esac
10663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10664$as_echo "$dynamic_linker" >&6; }
10665test "$dynamic_linker" = no && can_build_shared=no
10666
10667variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10668if test "$GCC" = yes; then
10669 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10670fi
10671
10672if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10673 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10674fi
10675if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10676 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10677fi
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10771$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10772hardcode_action=
10773if test -n "$hardcode_libdir_flag_spec" ||
10774 test -n "$runpath_var" ||
10775 test "X$hardcode_automatic" = "Xyes" ; then
10776
10777 # We can hardcode non-existent directories.
10778 if test "$hardcode_direct" != no &&
10779 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10780 # have to relink, otherwise we might link with an installed library
10781 # when we should be linking with a yet-to-be-installed one
10782 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10783 test "$hardcode_minus_L" != no; then
10784 # Linking always hardcodes the temporary library directory.
10785 hardcode_action=relink
10786 else
10787 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10788 hardcode_action=immediate
10789 fi
10790else
10791 # We cannot hardcode anything, or else we can only hardcode existing
10792 # directories.
10793 hardcode_action=unsupported
10794fi
10795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10796$as_echo "$hardcode_action" >&6; }
10797
10798if test "$hardcode_action" = relink ||
10799 test "$inherit_rpath" = yes; then
10800 # Fast installation is not supported
10801 enable_fast_install=no
10802elif test "$shlibpath_overrides_runpath" = yes ||
10803 test "$enable_shared" = no; then
10804 # Fast installation is not necessary
10805 enable_fast_install=needless
10806fi
10807
10808
10809
10810
10811
10812
10813 if test "x$enable_dlopen" != xyes; then
10814 enable_dlopen=unknown
10815 enable_dlopen_self=unknown
10816 enable_dlopen_self_static=unknown
10817else
10818 lt_cv_dlopen=no
10819 lt_cv_dlopen_libs=
10820
10821 case $host_os in
10822 beos*)
10823 lt_cv_dlopen="load_add_on"
10824 lt_cv_dlopen_libs=
10825 lt_cv_dlopen_self=yes
10826 ;;
10827
10828 mingw* | pw32* | cegcc*)
10829 lt_cv_dlopen="LoadLibrary"
10830 lt_cv_dlopen_libs=
10831 ;;
10832
10833 cygwin*)
10834 lt_cv_dlopen="dlopen"
10835 lt_cv_dlopen_libs=
10836 ;;
10837
10838 darwin*)
10839 # if libdl is installed we need to link against it
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10841$as_echo_n "checking for dlopen in -ldl... " >&6; }
10842if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10843 $as_echo_n "(cached) " >&6
10844else
10845 ac_check_lib_save_LIBS=$LIBS
10846LIBS="-ldl $LIBS"
10847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10848/* end confdefs.h. */
10849
10850/* Override any GCC internal prototype to avoid an error.
10851 Use char because int might match the return type of a GCC
10852 builtin and then its argument prototype would still apply. */
10853#ifdef __cplusplus
10854extern "C"
10855#endif
10856char dlopen ();
10857int
10858main ()
10859{
10860return dlopen ();
10861 ;
10862 return 0;
10863}
10864_ACEOF
10865if ac_fn_c_try_link "$LINENO"; then :
10866 ac_cv_lib_dl_dlopen=yes
10867else
10868 ac_cv_lib_dl_dlopen=no
10869fi
10870rm -f core conftest.err conftest.$ac_objext \
10871 conftest$ac_exeext conftest.$ac_ext
10872LIBS=$ac_check_lib_save_LIBS
10873fi
10874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10875$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10876if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10877 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10878else
10879
10880 lt_cv_dlopen="dyld"
10881 lt_cv_dlopen_libs=
10882 lt_cv_dlopen_self=yes
10883
10884fi
10885
10886 ;;
10887
10888 *)
10889 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10890if test "x$ac_cv_func_shl_load" = x""yes; then :
10891 lt_cv_dlopen="shl_load"
10892else
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10894$as_echo_n "checking for shl_load in -ldld... " >&6; }
10895if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10896 $as_echo_n "(cached) " >&6
10897else
10898 ac_check_lib_save_LIBS=$LIBS
10899LIBS="-ldld $LIBS"
10900cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10901/* end confdefs.h. */
10902
10903/* Override any GCC internal prototype to avoid an error.
10904 Use char because int might match the return type of a GCC
10905 builtin and then its argument prototype would still apply. */
10906#ifdef __cplusplus
10907extern "C"
10908#endif
10909char shl_load ();
10910int
10911main ()
10912{
10913return shl_load ();
10914 ;
10915 return 0;
10916}
10917_ACEOF
10918if ac_fn_c_try_link "$LINENO"; then :
10919 ac_cv_lib_dld_shl_load=yes
10920else
10921 ac_cv_lib_dld_shl_load=no
10922fi
10923rm -f core conftest.err conftest.$ac_objext \
10924 conftest$ac_exeext conftest.$ac_ext
10925LIBS=$ac_check_lib_save_LIBS
10926fi
10927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10928$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10929if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10930 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10931else
10932 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10933if test "x$ac_cv_func_dlopen" = x""yes; then :
10934 lt_cv_dlopen="dlopen"
10935else
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10937$as_echo_n "checking for dlopen in -ldl... " >&6; }
10938if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10939 $as_echo_n "(cached) " >&6
10940else
10941 ac_check_lib_save_LIBS=$LIBS
10942LIBS="-ldl $LIBS"
10943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10944/* end confdefs.h. */
10945
10946/* Override any GCC internal prototype to avoid an error.
10947 Use char because int might match the return type of a GCC
10948 builtin and then its argument prototype would still apply. */
10949#ifdef __cplusplus
10950extern "C"
10951#endif
10952char dlopen ();
10953int
10954main ()
10955{
10956return dlopen ();
10957 ;
10958 return 0;
10959}
10960_ACEOF
10961if ac_fn_c_try_link "$LINENO"; then :
10962 ac_cv_lib_dl_dlopen=yes
10963else
10964 ac_cv_lib_dl_dlopen=no
10965fi
10966rm -f core conftest.err conftest.$ac_objext \
10967 conftest$ac_exeext conftest.$ac_ext
10968LIBS=$ac_check_lib_save_LIBS
10969fi
10970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10971$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10972if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10973 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10974else
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10976$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10977if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10978 $as_echo_n "(cached) " >&6
10979else
10980 ac_check_lib_save_LIBS=$LIBS
10981LIBS="-lsvld $LIBS"
10982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10983/* end confdefs.h. */
10984
10985/* Override any GCC internal prototype to avoid an error.
10986 Use char because int might match the return type of a GCC
10987 builtin and then its argument prototype would still apply. */
10988#ifdef __cplusplus
10989extern "C"
10990#endif
10991char dlopen ();
10992int
10993main ()
10994{
10995return dlopen ();
10996 ;
10997 return 0;
10998}
10999_ACEOF
11000if ac_fn_c_try_link "$LINENO"; then :
11001 ac_cv_lib_svld_dlopen=yes
11002else
11003 ac_cv_lib_svld_dlopen=no
11004fi
11005rm -f core conftest.err conftest.$ac_objext \
11006 conftest$ac_exeext conftest.$ac_ext
11007LIBS=$ac_check_lib_save_LIBS
11008fi
11009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11010$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11011if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11012 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11013else
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11015$as_echo_n "checking for dld_link in -ldld... " >&6; }
11016if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11017 $as_echo_n "(cached) " >&6
11018else
11019 ac_check_lib_save_LIBS=$LIBS
11020LIBS="-ldld $LIBS"
11021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11022/* end confdefs.h. */
11023
11024/* Override any GCC internal prototype to avoid an error.
11025 Use char because int might match the return type of a GCC
11026 builtin and then its argument prototype would still apply. */
11027#ifdef __cplusplus
11028extern "C"
11029#endif
11030char dld_link ();
11031int
11032main ()
11033{
11034return dld_link ();
11035 ;
11036 return 0;
11037}
11038_ACEOF
11039if ac_fn_c_try_link "$LINENO"; then :
11040 ac_cv_lib_dld_dld_link=yes
11041else
11042 ac_cv_lib_dld_dld_link=no
11043fi
11044rm -f core conftest.err conftest.$ac_objext \
11045 conftest$ac_exeext conftest.$ac_ext
11046LIBS=$ac_check_lib_save_LIBS
11047fi
11048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11049$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11050if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11051 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11052fi
11053
11054
11055fi
11056
11057
11058fi
11059
11060
11061fi
11062
11063
11064fi
11065
11066
11067fi
11068
11069 ;;
11070 esac
11071
11072 if test "x$lt_cv_dlopen" != xno; then
11073 enable_dlopen=yes
11074 else
11075 enable_dlopen=no
11076 fi
11077
11078 case $lt_cv_dlopen in
11079 dlopen)
11080 save_CPPFLAGS="$CPPFLAGS"
11081 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11082
11083 save_LDFLAGS="$LDFLAGS"
11084 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11085
11086 save_LIBS="$LIBS"
11087 LIBS="$lt_cv_dlopen_libs $LIBS"
11088
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11090$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11091if test "${lt_cv_dlopen_self+set}" = set; then :
11092 $as_echo_n "(cached) " >&6
11093else
11094 if test "$cross_compiling" = yes; then :
11095 lt_cv_dlopen_self=cross
11096else
11097 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11098 lt_status=$lt_dlunknown
11099 cat > conftest.$ac_ext <<_LT_EOF
4180345a 11100#line 11100 "configure"
e440a328 11101#include "confdefs.h"
11102
11103#if HAVE_DLFCN_H
11104#include <dlfcn.h>
11105#endif
11106
11107#include <stdio.h>
11108
11109#ifdef RTLD_GLOBAL
11110# define LT_DLGLOBAL RTLD_GLOBAL
11111#else
11112# ifdef DL_GLOBAL
11113# define LT_DLGLOBAL DL_GLOBAL
11114# else
11115# define LT_DLGLOBAL 0
11116# endif
11117#endif
11118
11119/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11120 find out it does not work in some platform. */
11121#ifndef LT_DLLAZY_OR_NOW
11122# ifdef RTLD_LAZY
11123# define LT_DLLAZY_OR_NOW RTLD_LAZY
11124# else
11125# ifdef DL_LAZY
11126# define LT_DLLAZY_OR_NOW DL_LAZY
11127# else
11128# ifdef RTLD_NOW
11129# define LT_DLLAZY_OR_NOW RTLD_NOW
11130# else
11131# ifdef DL_NOW
11132# define LT_DLLAZY_OR_NOW DL_NOW
11133# else
11134# define LT_DLLAZY_OR_NOW 0
11135# endif
11136# endif
11137# endif
11138# endif
11139#endif
11140
11141/* When -fvisbility=hidden is used, assume the code has been annotated
11142 correspondingly for the symbols needed. */
11143#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11144void fnord () __attribute__((visibility("default")));
11145#endif
11146
11147void fnord () { int i=42; }
11148int main ()
11149{
11150 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11151 int status = $lt_dlunknown;
11152
11153 if (self)
11154 {
11155 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11156 else
11157 {
11158 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11159 else puts (dlerror ());
11160 }
11161 /* dlclose (self); */
11162 }
11163 else
11164 puts (dlerror ());
11165
11166 return status;
11167}
11168_LT_EOF
11169 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11170 (eval $ac_link) 2>&5
11171 ac_status=$?
11172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11173 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11174 (./conftest; exit; ) >&5 2>/dev/null
11175 lt_status=$?
11176 case x$lt_status in
11177 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11178 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11179 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11180 esac
11181 else :
11182 # compilation failed
11183 lt_cv_dlopen_self=no
11184 fi
11185fi
11186rm -fr conftest*
11187
11188
11189fi
11190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11191$as_echo "$lt_cv_dlopen_self" >&6; }
11192
11193 if test "x$lt_cv_dlopen_self" = xyes; then
11194 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11196$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11197if test "${lt_cv_dlopen_self_static+set}" = set; then :
11198 $as_echo_n "(cached) " >&6
11199else
11200 if test "$cross_compiling" = yes; then :
11201 lt_cv_dlopen_self_static=cross
11202else
11203 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11204 lt_status=$lt_dlunknown
11205 cat > conftest.$ac_ext <<_LT_EOF
4180345a 11206#line 11206 "configure"
e440a328 11207#include "confdefs.h"
11208
11209#if HAVE_DLFCN_H
11210#include <dlfcn.h>
11211#endif
11212
11213#include <stdio.h>
11214
11215#ifdef RTLD_GLOBAL
11216# define LT_DLGLOBAL RTLD_GLOBAL
11217#else
11218# ifdef DL_GLOBAL
11219# define LT_DLGLOBAL DL_GLOBAL
11220# else
11221# define LT_DLGLOBAL 0
11222# endif
11223#endif
11224
11225/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11226 find out it does not work in some platform. */
11227#ifndef LT_DLLAZY_OR_NOW
11228# ifdef RTLD_LAZY
11229# define LT_DLLAZY_OR_NOW RTLD_LAZY
11230# else
11231# ifdef DL_LAZY
11232# define LT_DLLAZY_OR_NOW DL_LAZY
11233# else
11234# ifdef RTLD_NOW
11235# define LT_DLLAZY_OR_NOW RTLD_NOW
11236# else
11237# ifdef DL_NOW
11238# define LT_DLLAZY_OR_NOW DL_NOW
11239# else
11240# define LT_DLLAZY_OR_NOW 0
11241# endif
11242# endif
11243# endif
11244# endif
11245#endif
11246
11247/* When -fvisbility=hidden is used, assume the code has been annotated
11248 correspondingly for the symbols needed. */
11249#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11250void fnord () __attribute__((visibility("default")));
11251#endif
11252
11253void fnord () { int i=42; }
11254int main ()
11255{
11256 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11257 int status = $lt_dlunknown;
11258
11259 if (self)
11260 {
11261 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11262 else
11263 {
11264 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11265 else puts (dlerror ());
11266 }
11267 /* dlclose (self); */
11268 }
11269 else
11270 puts (dlerror ());
11271
11272 return status;
11273}
11274_LT_EOF
11275 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11276 (eval $ac_link) 2>&5
11277 ac_status=$?
11278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11279 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11280 (./conftest; exit; ) >&5 2>/dev/null
11281 lt_status=$?
11282 case x$lt_status in
11283 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11284 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11285 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11286 esac
11287 else :
11288 # compilation failed
11289 lt_cv_dlopen_self_static=no
11290 fi
11291fi
11292rm -fr conftest*
11293
11294
11295fi
11296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11297$as_echo "$lt_cv_dlopen_self_static" >&6; }
11298 fi
11299
11300 CPPFLAGS="$save_CPPFLAGS"
11301 LDFLAGS="$save_LDFLAGS"
11302 LIBS="$save_LIBS"
11303 ;;
11304 esac
11305
11306 case $lt_cv_dlopen_self in
11307 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11308 *) enable_dlopen_self=unknown ;;
11309 esac
11310
11311 case $lt_cv_dlopen_self_static in
11312 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11313 *) enable_dlopen_self_static=unknown ;;
11314 esac
11315fi
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333striplib=
11334old_striplib=
11335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11336$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11337if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11338 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11339 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11341$as_echo "yes" >&6; }
11342else
11343# FIXME - insert some real tests, host_os isn't really good enough
11344 case $host_os in
11345 darwin*)
11346 if test -n "$STRIP" ; then
11347 striplib="$STRIP -x"
11348 old_striplib="$STRIP -S"
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11350$as_echo "yes" >&6; }
11351 else
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11353$as_echo "no" >&6; }
11354 fi
11355 ;;
11356 *)
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11358$as_echo "no" >&6; }
11359 ;;
11360 esac
11361fi
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374 # Report which library types will actually be built
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11376$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11378$as_echo "$can_build_shared" >&6; }
11379
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11381$as_echo_n "checking whether to build shared libraries... " >&6; }
11382 test "$can_build_shared" = "no" && enable_shared=no
11383
11384 # On AIX, shared libraries and static libraries use the same namespace, and
11385 # are all built from PIC.
11386 case $host_os in
11387 aix3*)
11388 test "$enable_shared" = yes && enable_static=no
11389 if test -n "$RANLIB"; then
11390 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11391 postinstall_cmds='$RANLIB $lib'
11392 fi
11393 ;;
11394
11395 aix[4-9]*)
11396 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11397 test "$enable_shared" = yes && enable_static=no
11398 fi
11399 ;;
11400 esac
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11402$as_echo "$enable_shared" >&6; }
11403
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11405$as_echo_n "checking whether to build static libraries... " >&6; }
11406 # Make sure either enable_shared or enable_static is yes.
11407 test "$enable_shared" = yes || enable_static=yes
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11409$as_echo "$enable_static" >&6; }
11410
11411
11412
11413
11414fi
11415ac_ext=c
11416ac_cpp='$CPP $CPPFLAGS'
11417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11419ac_compiler_gnu=$ac_cv_c_compiler_gnu
11420
11421CC="$lt_save_CC"
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435# Source file extension for Go test sources.
11436ac_ext=go
11437
11438# Object file extension for compiled Go test sources.
11439objext=o
11440objext_GO=$objext
11441
11442# Code to be used in simple compile tests
11443lt_simple_compile_test_code="package main; func main() { }"
11444
11445# Code to be used in simple link tests
11446lt_simple_link_test_code='package main; func main() { }'
11447
11448# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11449
11450
11451
11452
11453
11454
11455# If no C compiler was specified, use CC.
11456LTCC=${LTCC-"$CC"}
11457
11458# If no C compiler flags were specified, use CFLAGS.
11459LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11460
11461# Allow CC to be a program name with arguments.
11462compiler=$CC
11463
11464
11465# save warnings/boilerplate of simple test code
11466ac_outfile=conftest.$ac_objext
11467echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11468eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11469_lt_compiler_boilerplate=`cat conftest.err`
11470$RM conftest*
11471
11472ac_outfile=conftest.$ac_objext
11473echo "$lt_simple_link_test_code" >conftest.$ac_ext
11474eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11475_lt_linker_boilerplate=`cat conftest.err`
11476$RM -r conftest*
11477
11478
11479# Allow CC to be a program name with arguments.
11480lt_save_CC="$CC"
11481lt_save_GCC="$GCC"
11482GCC=yes
11483CC=${GOC-"gccgo"}
11484compiler=$CC
11485compiler_GO=$CC
11486LD_GO="$LD"
11487for cc_temp in $compiler""; do
11488 case $cc_temp in
11489 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11490 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11491 \-*) ;;
11492 *) break;;
11493 esac
11494done
11495cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11496
11497
11498# Go did not exist at the time GCC didn't implicitly link libc in.
11499archive_cmds_need_lc_GO=no
11500
11501old_archive_cmds_GO=$old_archive_cmds
11502
11503## CAVEAT EMPTOR:
11504## There is no encapsulation within the following macros, do not change
11505## the running order or otherwise move them around unless you know exactly
11506## what you are doing...
11507if test -n "$compiler"; then
11508
11509lt_prog_compiler_no_builtin_flag_GO=
11510
11511if test "$GCC" = yes; then
11512 case $cc_basename in
11513 nvcc*)
11514 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11515 *)
11516 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11517 esac
11518
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11520$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11521if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11522 $as_echo_n "(cached) " >&6
11523else
11524 lt_cv_prog_compiler_rtti_exceptions=no
11525 ac_outfile=conftest.$ac_objext
11526 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11527 lt_compiler_flag="-fno-rtti -fno-exceptions"
11528 # Insert the option either (1) after the last *FLAGS variable, or
11529 # (2) before a word containing "conftest.", or (3) at the end.
11530 # Note that $ac_compile itself does not contain backslashes and begins
11531 # with a dollar sign (not a hyphen), so the echo should work correctly.
11532 # The option is referenced via a variable to avoid confusing sed.
11533 lt_compile=`echo "$ac_compile" | $SED \
11534 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11535 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11536 -e 's:$: $lt_compiler_flag:'`
11537 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11538 (eval "$lt_compile" 2>conftest.err)
11539 ac_status=$?
11540 cat conftest.err >&5
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 if (exit $ac_status) && test -s "$ac_outfile"; then
11543 # The compiler can only warn and ignore the option if not recognized
11544 # So say no if there are warnings other than the usual output.
11545 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11546 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11547 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11548 lt_cv_prog_compiler_rtti_exceptions=yes
11549 fi
11550 fi
11551 $RM conftest*
11552
11553fi
11554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11555$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11556
11557if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11558 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11559else
11560 :
11561fi
11562
11563fi
11564
11565
11566
11567 lt_prog_compiler_wl_GO=
11568lt_prog_compiler_pic_GO=
11569lt_prog_compiler_static_GO=
11570
11571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11572$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11573
11574 if test "$GCC" = yes; then
11575 lt_prog_compiler_wl_GO='-Wl,'
11576 lt_prog_compiler_static_GO='-static'
11577
11578 case $host_os in
11579 aix*)
11580 # All AIX code is PIC.
11581 if test "$host_cpu" = ia64; then
11582 # AIX 5 now supports IA64 processor
11583 lt_prog_compiler_static_GO='-Bstatic'
11584 fi
11585 ;;
11586
11587 amigaos*)
11588 case $host_cpu in
11589 powerpc)
11590 # see comment about AmigaOS4 .so support
11591 lt_prog_compiler_pic_GO='-fPIC'
11592 ;;
11593 m68k)
11594 # FIXME: we need at least 68020 code to build shared libraries, but
11595 # adding the `-m68020' flag to GCC prevents building anything better,
11596 # like `-m68040'.
11597 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11598 ;;
11599 esac
11600 ;;
11601
11602 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11603 # PIC is the default for these OSes.
11604 ;;
11605
11606 mingw* | cygwin* | pw32* | os2* | cegcc*)
11607 # This hack is so that the source file can tell whether it is being
11608 # built for inclusion in a dll (and should export symbols for example).
11609 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11610 # (--disable-auto-import) libraries
11611 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11612 ;;
11613
11614 darwin* | rhapsody*)
11615 # PIC is the default on this platform
11616 # Common symbols not allowed in MH_DYLIB files
11617 lt_prog_compiler_pic_GO='-fno-common'
11618 ;;
11619
11620 haiku*)
11621 # PIC is the default for Haiku.
11622 # The "-static" flag exists, but is broken.
11623 lt_prog_compiler_static_GO=
11624 ;;
11625
11626 hpux*)
11627 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11628 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11629 # sets the default TLS model and affects inlining.
11630 case $host_cpu in
11631 hppa*64*)
11632 # +Z the default
11633 ;;
11634 *)
11635 lt_prog_compiler_pic_GO='-fPIC'
11636 ;;
11637 esac
11638 ;;
11639
11640 interix[3-9]*)
11641 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11642 # Instead, we relocate shared libraries at runtime.
11643 ;;
11644
11645 msdosdjgpp*)
11646 # Just because we use GCC doesn't mean we suddenly get shared libraries
11647 # on systems that don't support them.
11648 lt_prog_compiler_can_build_shared_GO=no
11649 enable_shared=no
11650 ;;
11651
11652 *nto* | *qnx*)
11653 # QNX uses GNU C++, but need to define -shared option too, otherwise
11654 # it will coredump.
11655 lt_prog_compiler_pic_GO='-fPIC -shared'
11656 ;;
11657
11658 sysv4*MP*)
11659 if test -d /usr/nec; then
11660 lt_prog_compiler_pic_GO=-Kconform_pic
11661 fi
11662 ;;
11663
11664 *)
11665 lt_prog_compiler_pic_GO='-fPIC'
11666 ;;
11667 esac
11668
11669 case $cc_basename in
11670 nvcc*) # Cuda Compiler Driver 2.2
11671 lt_prog_compiler_wl_GO='-Xlinker '
11672 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11673 ;;
11674 esac
11675 else
11676 # PORTME Check for flag to pass linker flags through the system compiler.
11677 case $host_os in
11678 aix*)
11679 lt_prog_compiler_wl_GO='-Wl,'
11680 if test "$host_cpu" = ia64; then
11681 # AIX 5 now supports IA64 processor
11682 lt_prog_compiler_static_GO='-Bstatic'
11683 else
11684 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11685 fi
11686 ;;
11687
11688 mingw* | cygwin* | pw32* | os2* | cegcc*)
11689 # This hack is so that the source file can tell whether it is being
11690 # built for inclusion in a dll (and should export symbols for example).
11691 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11692 ;;
11693
11694 hpux9* | hpux10* | hpux11*)
11695 lt_prog_compiler_wl_GO='-Wl,'
11696 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11697 # not for PA HP-UX.
11698 case $host_cpu in
11699 hppa*64*|ia64*)
11700 # +Z the default
11701 ;;
11702 *)
11703 lt_prog_compiler_pic_GO='+Z'
11704 ;;
11705 esac
11706 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11707 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11708 ;;
11709
11710 irix5* | irix6* | nonstopux*)
11711 lt_prog_compiler_wl_GO='-Wl,'
11712 # PIC (with -KPIC) is the default.
11713 lt_prog_compiler_static_GO='-non_shared'
11714 ;;
11715
11716 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11717 case $cc_basename in
11718 # old Intel for x86_64 which still supported -KPIC.
11719 ecc*)
11720 lt_prog_compiler_wl_GO='-Wl,'
11721 lt_prog_compiler_pic_GO='-KPIC'
11722 lt_prog_compiler_static_GO='-static'
11723 ;;
11724 # icc used to be incompatible with GCC.
11725 # ICC 10 doesn't accept -KPIC any more.
11726 icc* | ifort*)
11727 lt_prog_compiler_wl_GO='-Wl,'
11728 lt_prog_compiler_pic_GO='-fPIC'
11729 lt_prog_compiler_static_GO='-static'
11730 ;;
11731 # Lahey Fortran 8.1.
11732 lf95*)
11733 lt_prog_compiler_wl_GO='-Wl,'
11734 lt_prog_compiler_pic_GO='--shared'
11735 lt_prog_compiler_static_GO='--static'
11736 ;;
11737 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11738 # Portland Group compilers (*not* the Pentium gcc compiler,
11739 # which looks to be a dead project)
11740 lt_prog_compiler_wl_GO='-Wl,'
11741 lt_prog_compiler_pic_GO='-fpic'
11742 lt_prog_compiler_static_GO='-Bstatic'
11743 ;;
11744 ccc*)
11745 lt_prog_compiler_wl_GO='-Wl,'
11746 # All Alpha code is PIC.
11747 lt_prog_compiler_static_GO='-non_shared'
11748 ;;
11749 xl* | bgxl* | bgf* | mpixl*)
11750 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11751 lt_prog_compiler_wl_GO='-Wl,'
11752 lt_prog_compiler_pic_GO='-qpic'
11753 lt_prog_compiler_static_GO='-qstaticlink'
11754 ;;
11755 *)
11756 case `$CC -V 2>&1 | sed 5q` in
11757 *Sun\ F* | *Sun*Fortran*)
11758 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11759 lt_prog_compiler_pic_GO='-KPIC'
11760 lt_prog_compiler_static_GO='-Bstatic'
11761 lt_prog_compiler_wl_GO=''
11762 ;;
11763 *Sun\ C*)
11764 # Sun C 5.9
11765 lt_prog_compiler_pic_GO='-KPIC'
11766 lt_prog_compiler_static_GO='-Bstatic'
11767 lt_prog_compiler_wl_GO='-Wl,'
11768 ;;
11769 esac
11770 ;;
11771 esac
11772 ;;
11773
11774 newsos6)
11775 lt_prog_compiler_pic_GO='-KPIC'
11776 lt_prog_compiler_static_GO='-Bstatic'
11777 ;;
11778
11779 *nto* | *qnx*)
11780 # QNX uses GNU C++, but need to define -shared option too, otherwise
11781 # it will coredump.
11782 lt_prog_compiler_pic_GO='-fPIC -shared'
11783 ;;
11784
11785 osf3* | osf4* | osf5*)
11786 lt_prog_compiler_wl_GO='-Wl,'
11787 # All OSF/1 code is PIC.
11788 lt_prog_compiler_static_GO='-non_shared'
11789 ;;
11790
11791 rdos*)
11792 lt_prog_compiler_static_GO='-non_shared'
11793 ;;
11794
11795 solaris*)
11796 lt_prog_compiler_pic_GO='-KPIC'
11797 lt_prog_compiler_static_GO='-Bstatic'
11798 case $cc_basename in
11799 f77* | f90* | f95*)
11800 lt_prog_compiler_wl_GO='-Qoption ld ';;
11801 *)
11802 lt_prog_compiler_wl_GO='-Wl,';;
11803 esac
11804 ;;
11805
11806 sunos4*)
11807 lt_prog_compiler_wl_GO='-Qoption ld '
11808 lt_prog_compiler_pic_GO='-PIC'
11809 lt_prog_compiler_static_GO='-Bstatic'
11810 ;;
11811
11812 sysv4 | sysv4.2uw2* | sysv4.3*)
11813 lt_prog_compiler_wl_GO='-Wl,'
11814 lt_prog_compiler_pic_GO='-KPIC'
11815 lt_prog_compiler_static_GO='-Bstatic'
11816 ;;
11817
11818 sysv4*MP*)
11819 if test -d /usr/nec ;then
11820 lt_prog_compiler_pic_GO='-Kconform_pic'
11821 lt_prog_compiler_static_GO='-Bstatic'
11822 fi
11823 ;;
11824
11825 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11826 lt_prog_compiler_wl_GO='-Wl,'
11827 lt_prog_compiler_pic_GO='-KPIC'
11828 lt_prog_compiler_static_GO='-Bstatic'
11829 ;;
11830
11831 unicos*)
11832 lt_prog_compiler_wl_GO='-Wl,'
11833 lt_prog_compiler_can_build_shared_GO=no
11834 ;;
11835
11836 uts4*)
11837 lt_prog_compiler_pic_GO='-pic'
11838 lt_prog_compiler_static_GO='-Bstatic'
11839 ;;
11840
11841 *)
11842 lt_prog_compiler_can_build_shared_GO=no
11843 ;;
11844 esac
11845 fi
11846
11847case $host_os in
11848 # For platforms which do not support PIC, -DPIC is meaningless:
11849 *djgpp*)
11850 lt_prog_compiler_pic_GO=
11851 ;;
11852 *)
11853 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11854 ;;
11855esac
11856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11857$as_echo "$lt_prog_compiler_pic_GO" >&6; }
11858
11859
11860
11861#
11862# Check to make sure the PIC flag actually works.
11863#
11864if test -n "$lt_prog_compiler_pic_GO"; then
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11866$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11867if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11868 $as_echo_n "(cached) " >&6
11869else
11870 lt_cv_prog_compiler_pic_works_GO=no
11871 ac_outfile=conftest.$ac_objext
11872 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11873 lt_compiler_flag="$lt_prog_compiler_pic_GO"
11874 # Insert the option either (1) after the last *FLAGS variable, or
11875 # (2) before a word containing "conftest.", or (3) at the end.
11876 # Note that $ac_compile itself does not contain backslashes and begins
11877 # with a dollar sign (not a hyphen), so the echo should work correctly.
11878 # The option is referenced via a variable to avoid confusing sed.
11879 lt_compile=`echo "$ac_compile" | $SED \
11880 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11881 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11882 -e 's:$: $lt_compiler_flag:'`
11883 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11884 (eval "$lt_compile" 2>conftest.err)
11885 ac_status=$?
11886 cat conftest.err >&5
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 if (exit $ac_status) && test -s "$ac_outfile"; then
11889 # The compiler can only warn and ignore the option if not recognized
11890 # So say no if there are warnings other than the usual output.
11891 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11892 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11893 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11894 lt_cv_prog_compiler_pic_works_GO=yes
11895 fi
11896 fi
11897 $RM conftest*
11898
11899fi
11900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11901$as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11902
11903if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11904 case $lt_prog_compiler_pic_GO in
11905 "" | " "*) ;;
11906 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11907 esac
11908else
11909 lt_prog_compiler_pic_GO=
11910 lt_prog_compiler_can_build_shared_GO=no
11911fi
11912
11913fi
11914
11915
11916
11917#
11918# Check to make sure the static flag actually works.
11919#
11920wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11922$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11923if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11924 $as_echo_n "(cached) " >&6
11925else
11926 lt_cv_prog_compiler_static_works_GO=no
11927 save_LDFLAGS="$LDFLAGS"
11928 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11929 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11930 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11931 # The linker can only warn and ignore the option if not recognized
11932 # So say no if there are warnings
11933 if test -s conftest.err; then
11934 # Append any errors to the config.log.
11935 cat conftest.err 1>&5
11936 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11937 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11938 if diff conftest.exp conftest.er2 >/dev/null; then
11939 lt_cv_prog_compiler_static_works_GO=yes
11940 fi
11941 else
11942 lt_cv_prog_compiler_static_works_GO=yes
11943 fi
11944 fi
11945 $RM -r conftest*
11946 LDFLAGS="$save_LDFLAGS"
11947
11948fi
11949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11950$as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11951
11952if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11953 :
11954else
11955 lt_prog_compiler_static_GO=
11956fi
11957
11958
11959
11960
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11962$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11963if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11964 $as_echo_n "(cached) " >&6
11965else
11966 lt_cv_prog_compiler_c_o_GO=no
11967 $RM -r conftest 2>/dev/null
11968 mkdir conftest
11969 cd conftest
11970 mkdir out
11971 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11972
11973 lt_compiler_flag="-o out/conftest2.$ac_objext"
11974 # Insert the option either (1) after the last *FLAGS variable, or
11975 # (2) before a word containing "conftest.", or (3) at the end.
11976 # Note that $ac_compile itself does not contain backslashes and begins
11977 # with a dollar sign (not a hyphen), so the echo should work correctly.
11978 lt_compile=`echo "$ac_compile" | $SED \
11979 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11980 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11981 -e 's:$: $lt_compiler_flag:'`
11982 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11983 (eval "$lt_compile" 2>out/conftest.err)
11984 ac_status=$?
11985 cat out/conftest.err >&5
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11988 then
11989 # The compiler can only warn and ignore the option if not recognized
11990 # So say no if there are warnings
11991 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11992 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11993 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11994 lt_cv_prog_compiler_c_o_GO=yes
11995 fi
11996 fi
11997 chmod u+w . 2>&5
11998 $RM conftest*
11999 # SGI C++ compiler will create directory out/ii_files/ for
12000 # template instantiation
12001 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12002 $RM out/* && rmdir out
12003 cd ..
12004 $RM -r conftest
12005 $RM conftest*
12006
12007fi
12008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12009$as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12010
12011
12012
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12014$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12015if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
12016 $as_echo_n "(cached) " >&6
12017else
12018 lt_cv_prog_compiler_c_o_GO=no
12019 $RM -r conftest 2>/dev/null
12020 mkdir conftest
12021 cd conftest
12022 mkdir out
12023 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12024
12025 lt_compiler_flag="-o out/conftest2.$ac_objext"
12026 # Insert the option either (1) after the last *FLAGS variable, or
12027 # (2) before a word containing "conftest.", or (3) at the end.
12028 # Note that $ac_compile itself does not contain backslashes and begins
12029 # with a dollar sign (not a hyphen), so the echo should work correctly.
12030 lt_compile=`echo "$ac_compile" | $SED \
12031 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12032 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12033 -e 's:$: $lt_compiler_flag:'`
12034 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12035 (eval "$lt_compile" 2>out/conftest.err)
12036 ac_status=$?
12037 cat out/conftest.err >&5
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12040 then
12041 # The compiler can only warn and ignore the option if not recognized
12042 # So say no if there are warnings
12043 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12044 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12045 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12046 lt_cv_prog_compiler_c_o_GO=yes
12047 fi
12048 fi
12049 chmod u+w . 2>&5
12050 $RM conftest*
12051 # SGI C++ compiler will create directory out/ii_files/ for
12052 # template instantiation
12053 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12054 $RM out/* && rmdir out
12055 cd ..
12056 $RM -r conftest
12057 $RM conftest*
12058
12059fi
12060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12061$as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12062
12063
12064
12065
12066hard_links="nottested"
12067if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
12068 # do not overwrite the value of need_locks provided by the user
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12070$as_echo_n "checking if we can lock with hard links... " >&6; }
12071 hard_links=yes
12072 $RM conftest*
12073 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12074 touch conftest.a
12075 ln conftest.a conftest.b 2>&5 || hard_links=no
12076 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12078$as_echo "$hard_links" >&6; }
12079 if test "$hard_links" = no; then
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12081$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12082 need_locks=warn
12083 fi
12084else
12085 need_locks=no
12086fi
12087
12088
12089
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12091$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12092
12093 runpath_var=
12094 allow_undefined_flag_GO=
12095 always_export_symbols_GO=no
12096 archive_cmds_GO=
12097 archive_expsym_cmds_GO=
12098 compiler_needs_object_GO=no
12099 enable_shared_with_static_runtimes_GO=no
12100 export_dynamic_flag_spec_GO=
12101 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12102 hardcode_automatic_GO=no
12103 hardcode_direct_GO=no
12104 hardcode_direct_absolute_GO=no
12105 hardcode_libdir_flag_spec_GO=
12106 hardcode_libdir_flag_spec_ld_GO=
12107 hardcode_libdir_separator_GO=
12108 hardcode_minus_L_GO=no
12109 hardcode_shlibpath_var_GO=unsupported
12110 inherit_rpath_GO=no
12111 link_all_deplibs_GO=unknown
12112 module_cmds_GO=
12113 module_expsym_cmds_GO=
12114 old_archive_from_new_cmds_GO=
12115 old_archive_from_expsyms_cmds_GO=
12116 thread_safe_flag_spec_GO=
12117 whole_archive_flag_spec_GO=
12118 # include_expsyms should be a list of space-separated symbols to be *always*
12119 # included in the symbol list
12120 include_expsyms_GO=
12121 # exclude_expsyms can be an extended regexp of symbols to exclude
12122 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12123 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12124 # as well as any symbol that contains `d'.
12125 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12126 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12127 # platforms (ab)use it in PIC code, but their linkers get confused if
12128 # the symbol is explicitly referenced. Since portable code cannot
12129 # rely on this symbol name, it's probably fine to never include it in
12130 # preloaded symbol tables.
12131 # Exclude shared library initialization/finalization symbols.
12132 extract_expsyms_cmds=
12133
12134 case $host_os in
12135 cygwin* | mingw* | pw32* | cegcc*)
12136 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12137 # When not using gcc, we currently assume that we are using
12138 # Microsoft Visual C++.
12139 if test "$GCC" != yes; then
12140 with_gnu_ld=no
12141 fi
12142 ;;
12143 interix*)
12144 # we just hope/assume this is gcc and not c89 (= MSVC++)
12145 with_gnu_ld=yes
12146 ;;
12147 openbsd*)
12148 with_gnu_ld=no
12149 ;;
12150 esac
12151
12152 ld_shlibs_GO=yes
12153
12154 # On some targets, GNU ld is compatible enough with the native linker
12155 # that we're better off using the native interface for both.
12156 lt_use_gnu_ld_interface=no
12157 if test "$with_gnu_ld" = yes; then
12158 case $host_os in
12159 aix*)
12160 # The AIX port of GNU ld has always aspired to compatibility
12161 # with the native linker. However, as the warning in the GNU ld
12162 # block says, versions before 2.19.5* couldn't really create working
12163 # shared libraries, regardless of the interface used.
12164 case `$LD -v 2>&1` in
12165 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12166 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12167 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12168 *)
12169 lt_use_gnu_ld_interface=yes
12170 ;;
12171 esac
12172 ;;
12173 *)
12174 lt_use_gnu_ld_interface=yes
12175 ;;
12176 esac
12177 fi
12178
12179 if test "$lt_use_gnu_ld_interface" = yes; then
12180 # If archive_cmds runs LD, not CC, wlarc should be empty
12181 wlarc='${wl}'
12182
12183 # Set some defaults for GNU ld with shared library support. These
12184 # are reset later if shared libraries are not supported. Putting them
12185 # here allows them to be overridden if necessary.
12186 runpath_var=LD_RUN_PATH
12187 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12188 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12189 # ancient GNU ld didn't support --whole-archive et. al.
12190 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12191 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12192 else
12193 whole_archive_flag_spec_GO=
12194 fi
12195 supports_anon_versioning=no
12196 case `$LD -v 2>&1` in
12197 *GNU\ gold*) supports_anon_versioning=yes ;;
12198 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12199 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12200 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12201 *\ 2.11.*) ;; # other 2.11 versions
12202 *) supports_anon_versioning=yes ;;
12203 esac
12204
12205 # See if GNU ld supports shared libraries.
12206 case $host_os in
12207 aix[3-9]*)
12208 # On AIX/PPC, the GNU linker is very broken
12209 if test "$host_cpu" != ia64; then
12210 ld_shlibs_GO=no
12211 cat <<_LT_EOF 1>&2
12212
12213*** Warning: the GNU linker, at least up to release 2.19, is reported
12214*** to be unable to reliably create shared libraries on AIX.
12215*** Therefore, libtool is disabling shared libraries support. If you
12216*** really care for shared libraries, you may want to install binutils
12217*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12218*** You will then need to restart the configuration process.
12219
12220_LT_EOF
12221 fi
12222 ;;
12223
12224 amigaos*)
12225 case $host_cpu in
12226 powerpc)
12227 # see comment about AmigaOS4 .so support
12228 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12229 archive_expsym_cmds_GO=''
12230 ;;
12231 m68k)
12232 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)'
12233 hardcode_libdir_flag_spec_GO='-L$libdir'
12234 hardcode_minus_L_GO=yes
12235 ;;
12236 esac
12237 ;;
12238
12239 beos*)
12240 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12241 allow_undefined_flag_GO=unsupported
12242 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12243 # support --undefined. This deserves some investigation. FIXME
12244 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12245 else
12246 ld_shlibs_GO=no
12247 fi
12248 ;;
12249
12250 cygwin* | mingw* | pw32* | cegcc*)
12251 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12252 # as there is no search path for DLLs.
12253 hardcode_libdir_flag_spec_GO='-L$libdir'
12254 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12255 allow_undefined_flag_GO=unsupported
12256 always_export_symbols_GO=no
12257 enable_shared_with_static_runtimes_GO=yes
12258 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12259
12260 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12261 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12262 # If the export-symbols file already is a .def file (1st line
12263 # is EXPORTS), use it as is; otherwise, prepend...
12264 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12265 cp $export_symbols $output_objdir/$soname.def;
12266 else
12267 echo EXPORTS > $output_objdir/$soname.def;
12268 cat $export_symbols >> $output_objdir/$soname.def;
12269 fi~
12270 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12271 else
12272 ld_shlibs_GO=no
12273 fi
12274 ;;
12275
12276 haiku*)
12277 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12278 link_all_deplibs_GO=yes
12279 ;;
12280
12281 interix[3-9]*)
12282 hardcode_direct_GO=no
12283 hardcode_shlibpath_var_GO=no
12284 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12285 export_dynamic_flag_spec_GO='${wl}-E'
12286 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12287 # Instead, shared libraries are loaded at an image base (0x10000000 by
12288 # default) and relocated if they conflict, which is a slow very memory
12289 # consuming and fragmenting process. To avoid this, we pick a random,
12290 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12291 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12292 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'
12293 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'
12294 ;;
12295
12296 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12297 tmp_diet=no
12298 if test "$host_os" = linux-dietlibc; then
12299 case $cc_basename in
12300 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12301 esac
12302 fi
12303 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12304 && test "$tmp_diet" = no
12305 then
12306 tmp_addflag=
12307 tmp_sharedflag='-shared'
12308 case $cc_basename,$host_cpu in
12309 pgcc*) # Portland Group C compiler
12310 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'
12311 tmp_addflag=' $pic_flag'
12312 ;;
12313 pgf77* | pgf90* | pgf95* | pgfortran*)
12314 # Portland Group f77 and f90 compilers
12315 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'
12316 tmp_addflag=' $pic_flag -Mnomain' ;;
12317 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12318 tmp_addflag=' -i_dynamic' ;;
12319 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12320 tmp_addflag=' -i_dynamic -nofor_main' ;;
12321 ifc* | ifort*) # Intel Fortran compiler
12322 tmp_addflag=' -nofor_main' ;;
12323 lf95*) # Lahey Fortran 8.1
12324 whole_archive_flag_spec_GO=
12325 tmp_sharedflag='--shared' ;;
12326 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12327 tmp_sharedflag='-qmkshrobj'
12328 tmp_addflag= ;;
12329 nvcc*) # Cuda Compiler Driver 2.2
12330 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'
12331 compiler_needs_object_GO=yes
12332 ;;
12333 esac
12334 case `$CC -V 2>&1 | sed 5q` in
12335 *Sun\ C*) # Sun C 5.9
12336 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'
12337 compiler_needs_object_GO=yes
12338 tmp_sharedflag='-G' ;;
12339 *Sun\ F*) # Sun Fortran 8.3
12340 tmp_sharedflag='-G' ;;
12341 esac
12342 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12343
12344 if test "x$supports_anon_versioning" = xyes; then
12345 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12346 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12347 echo "local: *; };" >> $output_objdir/$libname.ver~
12348 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12349 fi
12350
12351 case $cc_basename in
12352 xlf* | bgf* | bgxlf* | mpixlf*)
12353 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12354 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12355 hardcode_libdir_flag_spec_GO=
12356 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12357 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12358 if test "x$supports_anon_versioning" = xyes; then
12359 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12360 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12361 echo "local: *; };" >> $output_objdir/$libname.ver~
12362 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12363 fi
12364 ;;
12365 esac
12366 else
12367 ld_shlibs_GO=no
12368 fi
12369 ;;
12370
12371 netbsd*)
12372 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12373 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12374 wlarc=
12375 else
12376 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12377 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12378 fi
12379 ;;
12380
12381 solaris*)
12382 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12383 ld_shlibs_GO=no
12384 cat <<_LT_EOF 1>&2
12385
12386*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12387*** create shared libraries on Solaris systems. Therefore, libtool
12388*** is disabling shared libraries support. We urge you to upgrade GNU
12389*** binutils to release 2.9.1 or newer. Another option is to modify
12390*** your PATH or compiler configuration so that the native linker is
12391*** used, and then restart.
12392
12393_LT_EOF
12394 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12395 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12396 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12397 else
12398 ld_shlibs_GO=no
12399 fi
12400 ;;
12401
12402 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12403 case `$LD -v 2>&1` in
12404 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12405 ld_shlibs_GO=no
12406 cat <<_LT_EOF 1>&2
12407
12408*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12409*** reliably create shared libraries on SCO systems. Therefore, libtool
12410*** is disabling shared libraries support. We urge you to upgrade GNU
12411*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12412*** your PATH or compiler configuration so that the native linker is
12413*** used, and then restart.
12414
12415_LT_EOF
12416 ;;
12417 *)
12418 # For security reasons, it is highly recommended that you always
12419 # use absolute paths for naming shared libraries, and exclude the
12420 # DT_RUNPATH tag from executables and libraries. But doing so
12421 # requires that you compile everything twice, which is a pain.
12422 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12423 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12424 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12425 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12426 else
12427 ld_shlibs_GO=no
12428 fi
12429 ;;
12430 esac
12431 ;;
12432
12433 sunos4*)
12434 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12435 wlarc=
12436 hardcode_direct_GO=yes
12437 hardcode_shlibpath_var_GO=no
12438 ;;
12439
12440 *)
12441 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
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 if test "$ld_shlibs_GO" = no; then
12451 runpath_var=
12452 hardcode_libdir_flag_spec_GO=
12453 export_dynamic_flag_spec_GO=
12454 whole_archive_flag_spec_GO=
12455 fi
12456 else
12457 # PORTME fill in a description of your system's linker (not GNU ld)
12458 case $host_os in
12459 aix3*)
12460 allow_undefined_flag_GO=unsupported
12461 always_export_symbols_GO=yes
12462 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'
12463 # Note: this linker hardcodes the directories in LIBPATH if there
12464 # are no directories specified by -L.
12465 hardcode_minus_L_GO=yes
12466 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12467 # Neither direct hardcoding nor static linking is supported with a
12468 # broken collect2.
12469 hardcode_direct_GO=unsupported
12470 fi
12471 ;;
12472
12473 aix[4-9]*)
12474 if test "$host_cpu" = ia64; then
12475 # On IA64, the linker does run time linking by default, so we don't
12476 # have to do anything special.
12477 aix_use_runtimelinking=no
12478 exp_sym_flag='-Bexport'
12479 no_entry_flag=""
12480 else
12481 # If we're using GNU nm, then we don't want the "-C" option.
12482 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12483 # Also, AIX nm treats weak defined symbols like other global
12484 # defined symbols, whereas GNU nm marks them as "W".
12485 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12486 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'
12487 else
12488 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'
12489 fi
12490 aix_use_runtimelinking=no
12491
12492 # Test if we are trying to use run time linking or normal
12493 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12494 # need to do runtime linking.
12495 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12496 for ld_flag in $LDFLAGS; do
12497 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12498 aix_use_runtimelinking=yes
12499 break
12500 fi
12501 done
12502 ;;
12503 esac
12504
12505 exp_sym_flag='-bexport'
12506 no_entry_flag='-bnoentry'
12507 fi
12508
12509 # When large executables or shared objects are built, AIX ld can
12510 # have problems creating the table of contents. If linking a library
12511 # or program results in "error TOC overflow" add -mminimal-toc to
12512 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12513 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12514
12515 archive_cmds_GO=''
12516 hardcode_direct_GO=yes
12517 hardcode_direct_absolute_GO=yes
12518 hardcode_libdir_separator_GO=':'
12519 link_all_deplibs_GO=yes
12520 file_list_spec_GO='${wl}-f,'
12521
12522 if test "$GCC" = yes; then
12523 case $host_os in aix4.[012]|aix4.[012].*)
12524 # We only want to do this on AIX 4.2 and lower, the check
12525 # below for broken collect2 doesn't work under 4.3+
12526 collect2name=`${CC} -print-prog-name=collect2`
12527 if test -f "$collect2name" &&
12528 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12529 then
12530 # We have reworked collect2
12531 :
12532 else
12533 # We have old collect2
12534 hardcode_direct_GO=unsupported
12535 # It fails to find uninstalled libraries when the uninstalled
12536 # path is not listed in the libpath. Setting hardcode_minus_L
12537 # to unsupported forces relinking
12538 hardcode_minus_L_GO=yes
12539 hardcode_libdir_flag_spec_GO='-L$libdir'
12540 hardcode_libdir_separator_GO=
12541 fi
12542 ;;
12543 esac
12544 shared_flag='-shared'
12545 if test "$aix_use_runtimelinking" = yes; then
12546 shared_flag="$shared_flag "'${wl}-G'
12547 fi
12548 else
12549 # not using gcc
12550 if test "$host_cpu" = ia64; then
12551 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12552 # chokes on -Wl,-G. The following line is correct:
12553 shared_flag='-G'
12554 else
12555 if test "$aix_use_runtimelinking" = yes; then
12556 shared_flag='${wl}-G'
12557 else
12558 shared_flag='${wl}-bM:SRE'
12559 fi
12560 fi
12561 fi
12562
12563 export_dynamic_flag_spec_GO='${wl}-bexpall'
12564 # It seems that -bexpall does not export symbols beginning with
12565 # underscore (_), so it is better to generate a list of symbols to export.
12566 always_export_symbols_GO=yes
12567 if test "$aix_use_runtimelinking" = yes; then
12568 # Warning - without using the other runtime loading flags (-brtl),
12569 # -berok will link without error, but may produce a broken library.
12570 allow_undefined_flag_GO='-berok'
12571 # Determine the default libpath from the value encoded in an
12572 # empty executable.
12573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12574/* end confdefs.h. */
12575
12576int
12577main ()
12578{
12579
12580 ;
12581 return 0;
12582}
12583_ACEOF
12584if ac_fn_c_try_link "$LINENO"; then :
12585
12586lt_aix_libpath_sed='
12587 /Import File Strings/,/^$/ {
12588 /^0/ {
12589 s/^0 *\(.*\)$/\1/
12590 p
12591 }
12592 }'
12593aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12594# Check for a 64-bit object if we didn't find anything.
12595if test -z "$aix_libpath"; then
12596 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12597fi
12598fi
12599rm -f core conftest.err conftest.$ac_objext \
12600 conftest$ac_exeext conftest.$ac_ext
12601if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12602
12603 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12604 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"
12605 else
12606 if test "$host_cpu" = ia64; then
12607 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12608 allow_undefined_flag_GO="-z nodefs"
12609 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"
12610 else
12611 # Determine the default libpath from the value encoded in an
12612 # empty executable.
12613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12614/* end confdefs.h. */
12615
12616int
12617main ()
12618{
12619
12620 ;
12621 return 0;
12622}
12623_ACEOF
12624if ac_fn_c_try_link "$LINENO"; then :
12625
12626lt_aix_libpath_sed='
12627 /Import File Strings/,/^$/ {
12628 /^0/ {
12629 s/^0 *\(.*\)$/\1/
12630 p
12631 }
12632 }'
12633aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12634# Check for a 64-bit object if we didn't find anything.
12635if test -z "$aix_libpath"; then
12636 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12637fi
12638fi
12639rm -f core conftest.err conftest.$ac_objext \
12640 conftest$ac_exeext conftest.$ac_ext
12641if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12642
12643 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12644 # Warning - without using the other run time loading flags,
12645 # -berok will link without error, but may produce a broken library.
12646 no_undefined_flag_GO=' ${wl}-bernotok'
12647 allow_undefined_flag_GO=' ${wl}-berok'
12648 if test "$with_gnu_ld" = yes; then
12649 # We only use this code for GNU lds that support --whole-archive.
12650 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12651 else
12652 # Exported symbols can be pulled into shared objects from archives
12653 whole_archive_flag_spec_GO='$convenience'
12654 fi
12655 archive_cmds_need_lc_GO=yes
12656 # This is similar to how AIX traditionally builds its shared libraries.
12657 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'
12658 fi
12659 fi
12660 ;;
12661
12662 amigaos*)
12663 case $host_cpu in
12664 powerpc)
12665 # see comment about AmigaOS4 .so support
12666 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12667 archive_expsym_cmds_GO=''
12668 ;;
12669 m68k)
12670 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)'
12671 hardcode_libdir_flag_spec_GO='-L$libdir'
12672 hardcode_minus_L_GO=yes
12673 ;;
12674 esac
12675 ;;
12676
12677 bsdi[45]*)
12678 export_dynamic_flag_spec_GO=-rdynamic
12679 ;;
12680
12681 cygwin* | mingw* | pw32* | cegcc*)
12682 # When not using gcc, we currently assume that we are using
12683 # Microsoft Visual C++.
12684 # hardcode_libdir_flag_spec is actually meaningless, as there is
12685 # no search path for DLLs.
12686 hardcode_libdir_flag_spec_GO=' '
12687 allow_undefined_flag_GO=unsupported
12688 # Tell ltmain to make .lib files, not .a files.
12689 libext=lib
12690 # Tell ltmain to make .dll files, not .so files.
12691 shrext_cmds=".dll"
12692 # FIXME: Setting linknames here is a bad hack.
12693 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12694 # The linker will automatically build a .lib file if we build a DLL.
12695 old_archive_from_new_cmds_GO='true'
12696 # FIXME: Should let the user specify the lib program.
12697 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12698 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12699 enable_shared_with_static_runtimes_GO=yes
12700 ;;
12701
12702 darwin* | rhapsody*)
12703
12704
12705 archive_cmds_need_lc_GO=no
12706 hardcode_direct_GO=no
12707 hardcode_automatic_GO=yes
12708 hardcode_shlibpath_var_GO=unsupported
12709 if test "$lt_cv_ld_force_load" = "yes"; then
12710 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\"`'
12711 else
12712 whole_archive_flag_spec_GO=''
12713 fi
12714 link_all_deplibs_GO=yes
12715 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12716 case $cc_basename in
12717 ifort*) _lt_dar_can_shared=yes ;;
12718 *) _lt_dar_can_shared=$GCC ;;
12719 esac
12720 if test "$_lt_dar_can_shared" = "yes"; then
12721 output_verbose_link_cmd=func_echo_all
12722 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}"
12723 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12724 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}"
12725 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}"
12726
12727 else
12728 ld_shlibs_GO=no
12729 fi
12730
12731 ;;
12732
12733 dgux*)
12734 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12735 hardcode_libdir_flag_spec_GO='-L$libdir'
12736 hardcode_shlibpath_var_GO=no
12737 ;;
12738
e440a328 12739 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12740 # support. Future versions do this automatically, but an explicit c++rt0.o
12741 # does not break anything, and helps significantly (at the cost of a little
12742 # extra space).
12743 freebsd2.2*)
12744 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12745 hardcode_libdir_flag_spec_GO='-R$libdir'
12746 hardcode_direct_GO=yes
12747 hardcode_shlibpath_var_GO=no
12748 ;;
12749
12750 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12751 freebsd2*)
12752 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12753 hardcode_direct_GO=yes
12754 hardcode_minus_L_GO=yes
12755 hardcode_shlibpath_var_GO=no
12756 ;;
12757
12758 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12759 freebsd* | dragonfly*)
12760 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12761 hardcode_libdir_flag_spec_GO='-R$libdir'
12762 hardcode_direct_GO=yes
12763 hardcode_shlibpath_var_GO=no
12764 ;;
12765
12766 hpux9*)
12767 if test "$GCC" = yes; then
12768 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'
12769 else
12770 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'
12771 fi
12772 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12773 hardcode_libdir_separator_GO=:
12774 hardcode_direct_GO=yes
12775
12776 # hardcode_minus_L: Not really in the search PATH,
12777 # but as the default location of the library.
12778 hardcode_minus_L_GO=yes
12779 export_dynamic_flag_spec_GO='${wl}-E'
12780 ;;
12781
12782 hpux10*)
12783 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12784 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12785 else
12786 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12787 fi
12788 if test "$with_gnu_ld" = no; then
12789 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12790 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12791 hardcode_libdir_separator_GO=:
12792 hardcode_direct_GO=yes
12793 hardcode_direct_absolute_GO=yes
12794 export_dynamic_flag_spec_GO='${wl}-E'
12795 # hardcode_minus_L: Not really in the search PATH,
12796 # but as the default location of the library.
12797 hardcode_minus_L_GO=yes
12798 fi
12799 ;;
12800
12801 hpux11*)
12802 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12803 case $host_cpu in
12804 hppa*64*)
12805 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12806 ;;
12807 ia64*)
12808 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12809 ;;
12810 *)
12811 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12812 ;;
12813 esac
12814 else
12815 case $host_cpu in
12816 hppa*64*)
12817 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12818 ;;
12819 ia64*)
12820 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12821 ;;
12822 *)
12823 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12824 ;;
12825 esac
12826 fi
12827 if test "$with_gnu_ld" = no; then
12828 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12829 hardcode_libdir_separator_GO=:
12830
12831 case $host_cpu in
12832 hppa*64*|ia64*)
12833 hardcode_direct_GO=no
12834 hardcode_shlibpath_var_GO=no
12835 ;;
12836 *)
12837 hardcode_direct_GO=yes
12838 hardcode_direct_absolute_GO=yes
12839 export_dynamic_flag_spec_GO='${wl}-E'
12840
12841 # hardcode_minus_L: Not really in the search PATH,
12842 # but as the default location of the library.
12843 hardcode_minus_L_GO=yes
12844 ;;
12845 esac
12846 fi
12847 ;;
12848
12849 irix5* | irix6* | nonstopux*)
12850 if test "$GCC" = yes; then
12851 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'
12852 # Try to use the -exported_symbol ld option, if it does not
12853 # work, assume that -exports_file does not work either and
12854 # implicitly export all symbols.
12855 save_LDFLAGS="$LDFLAGS"
12856 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12858/* end confdefs.h. */
12859int foo(void) {}
12860_ACEOF
12861if ac_fn_c_try_link "$LINENO"; then :
12862 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'
12863
12864fi
12865rm -f core conftest.err conftest.$ac_objext \
12866 conftest$ac_exeext conftest.$ac_ext
12867 LDFLAGS="$save_LDFLAGS"
12868 else
12869 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'
12870 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'
12871 fi
12872 archive_cmds_need_lc_GO='no'
12873 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12874 hardcode_libdir_separator_GO=:
12875 inherit_rpath_GO=yes
12876 link_all_deplibs_GO=yes
12877 ;;
12878
12879 netbsd*)
12880 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12881 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12882 else
12883 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12884 fi
12885 hardcode_libdir_flag_spec_GO='-R$libdir'
12886 hardcode_direct_GO=yes
12887 hardcode_shlibpath_var_GO=no
12888 ;;
12889
12890 newsos6)
12891 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12892 hardcode_direct_GO=yes
12893 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12894 hardcode_libdir_separator_GO=:
12895 hardcode_shlibpath_var_GO=no
12896 ;;
12897
12898 *nto* | *qnx*)
12899 ;;
12900
12901 openbsd*)
12902 if test -f /usr/libexec/ld.so; then
12903 hardcode_direct_GO=yes
12904 hardcode_shlibpath_var_GO=no
12905 hardcode_direct_absolute_GO=yes
12906 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12907 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12908 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12909 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12910 export_dynamic_flag_spec_GO='${wl}-E'
12911 else
12912 case $host_os in
12913 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12914 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12915 hardcode_libdir_flag_spec_GO='-R$libdir'
12916 ;;
12917 *)
12918 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12919 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12920 ;;
12921 esac
12922 fi
12923 else
12924 ld_shlibs_GO=no
12925 fi
12926 ;;
12927
12928 os2*)
12929 hardcode_libdir_flag_spec_GO='-L$libdir'
12930 hardcode_minus_L_GO=yes
12931 allow_undefined_flag_GO=unsupported
12932 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'
12933 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12934 ;;
12935
12936 osf3*)
12937 if test "$GCC" = yes; then
12938 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12939 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'
12940 else
12941 allow_undefined_flag_GO=' -expect_unresolved \*'
12942 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'
12943 fi
12944 archive_cmds_need_lc_GO='no'
12945 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12946 hardcode_libdir_separator_GO=:
12947 ;;
12948
12949 osf4* | osf5*) # as osf3* with the addition of -msym flag
12950 if test "$GCC" = yes; then
12951 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12952 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'
12953 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12954 else
12955 allow_undefined_flag_GO=' -expect_unresolved \*'
12956 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'
12957 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~
12958 $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'
12959
12960 # Both c and cxx compiler support -rpath directly
12961 hardcode_libdir_flag_spec_GO='-rpath $libdir'
12962 fi
12963 archive_cmds_need_lc_GO='no'
12964 hardcode_libdir_separator_GO=:
12965 ;;
12966
12967 solaris*)
12968 no_undefined_flag_GO=' -z defs'
12969 if test "$GCC" = yes; then
12970 wlarc='${wl}'
12971 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12972 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12973 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12974 else
12975 case `$CC -V 2>&1` in
12976 *"Compilers 5.0"*)
12977 wlarc=''
12978 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12979 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12980 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12981 ;;
12982 *)
12983 wlarc='${wl}'
12984 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12985 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12986 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12987 ;;
12988 esac
12989 fi
12990 hardcode_libdir_flag_spec_GO='-R$libdir'
12991 hardcode_shlibpath_var_GO=no
12992 case $host_os in
12993 solaris2.[0-5] | solaris2.[0-5].*) ;;
12994 *)
12995 # The compiler driver will combine and reorder linker options,
12996 # but understands `-z linker_flag'. GCC discards it without `$wl',
12997 # but is careful enough not to reorder.
12998 # Supported since Solaris 2.6 (maybe 2.5.1?)
12999 if test "$GCC" = yes; then
13000 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13001 else
13002 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
13003 fi
13004 ;;
13005 esac
13006 link_all_deplibs_GO=yes
13007 ;;
13008
13009 sunos4*)
13010 if test "x$host_vendor" = xsequent; then
13011 # Use $CC to link under sequent, because it throws in some extra .o
13012 # files that make .init and .fini sections work.
13013 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13014 else
13015 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13016 fi
13017 hardcode_libdir_flag_spec_GO='-L$libdir'
13018 hardcode_direct_GO=yes
13019 hardcode_minus_L_GO=yes
13020 hardcode_shlibpath_var_GO=no
13021 ;;
13022
13023 sysv4)
13024 case $host_vendor in
13025 sni)
13026 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13027 hardcode_direct_GO=yes # is this really true???
13028 ;;
13029 siemens)
13030 ## LD is ld it makes a PLAMLIB
13031 ## CC just makes a GrossModule.
13032 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13033 reload_cmds_GO='$CC -r -o $output$reload_objs'
13034 hardcode_direct_GO=no
13035 ;;
13036 motorola)
13037 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13038 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
13039 ;;
13040 esac
13041 runpath_var='LD_RUN_PATH'
13042 hardcode_shlibpath_var_GO=no
13043 ;;
13044
13045 sysv4.3*)
13046 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13047 hardcode_shlibpath_var_GO=no
13048 export_dynamic_flag_spec_GO='-Bexport'
13049 ;;
13050
13051 sysv4*MP*)
13052 if test -d /usr/nec; then
13053 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13054 hardcode_shlibpath_var_GO=no
13055 runpath_var=LD_RUN_PATH
13056 hardcode_runpath_var=yes
13057 ld_shlibs_GO=yes
13058 fi
13059 ;;
13060
13061 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13062 no_undefined_flag_GO='${wl}-z,text'
13063 archive_cmds_need_lc_GO=no
13064 hardcode_shlibpath_var_GO=no
13065 runpath_var='LD_RUN_PATH'
13066
13067 if test "$GCC" = yes; then
13068 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13069 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13070 else
13071 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13072 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13073 fi
13074 ;;
13075
13076 sysv5* | sco3.2v5* | sco5v6*)
13077 # Note: We can NOT use -z defs as we might desire, because we do not
13078 # link with -lc, and that would cause any symbols used from libc to
13079 # always be unresolved, which means just about no library would
13080 # ever link correctly. If we're not using GNU ld we use -z text
13081 # though, which does catch some bad symbols but isn't as heavy-handed
13082 # as -z defs.
13083 no_undefined_flag_GO='${wl}-z,text'
13084 allow_undefined_flag_GO='${wl}-z,nodefs'
13085 archive_cmds_need_lc_GO=no
13086 hardcode_shlibpath_var_GO=no
13087 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
13088 hardcode_libdir_separator_GO=':'
13089 link_all_deplibs_GO=yes
13090 export_dynamic_flag_spec_GO='${wl}-Bexport'
13091 runpath_var='LD_RUN_PATH'
13092
13093 if test "$GCC" = yes; then
13094 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13095 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13096 else
13097 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13098 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13099 fi
13100 ;;
13101
13102 uts4*)
13103 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13104 hardcode_libdir_flag_spec_GO='-L$libdir'
13105 hardcode_shlibpath_var_GO=no
13106 ;;
13107
13108 *)
13109 ld_shlibs_GO=no
13110 ;;
13111 esac
13112
13113 if test x$host_vendor = xsni; then
13114 case $host in
13115 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13116 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
13117 ;;
13118 esac
13119 fi
13120 fi
13121
13122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13123$as_echo "$ld_shlibs_GO" >&6; }
13124test "$ld_shlibs_GO" = no && can_build_shared=no
13125
13126with_gnu_ld_GO=$with_gnu_ld
13127
13128
13129
13130
13131
13132
13133#
13134# Do we need to explicitly link libc?
13135#
13136case "x$archive_cmds_need_lc_GO" in
13137x|xyes)
13138 # Assume -lc should be added
13139 archive_cmds_need_lc_GO=yes
13140
13141 if test "$enable_shared" = yes && test "$GCC" = yes; then
13142 case $archive_cmds_GO in
13143 *'~'*)
13144 # FIXME: we may have to deal with multi-command sequences.
13145 ;;
13146 '$CC '*)
13147 # Test whether the compiler implicitly links with -lc since on some
13148 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13149 # to ld, don't add -lc before -lgcc.
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13151$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13152if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
13153 $as_echo_n "(cached) " >&6
13154else
13155 $RM conftest*
13156 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13157
13158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13159 (eval $ac_compile) 2>&5
13160 ac_status=$?
13161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13162 test $ac_status = 0; } 2>conftest.err; then
13163 soname=conftest
13164 lib=conftest
13165 libobjs=conftest.$ac_objext
13166 deplibs=
13167 wl=$lt_prog_compiler_wl_GO
13168 pic_flag=$lt_prog_compiler_pic_GO
13169 compiler_flags=-v
13170 linker_flags=-v
13171 verstring=
13172 output_objdir=.
13173 libname=conftest
13174 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
13175 allow_undefined_flag_GO=
13176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13177 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13178 ac_status=$?
13179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13180 test $ac_status = 0; }
13181 then
13182 lt_cv_archive_cmds_need_lc_GO=no
13183 else
13184 lt_cv_archive_cmds_need_lc_GO=yes
13185 fi
13186 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13187 else
13188 cat conftest.err 1>&5
13189 fi
13190 $RM conftest*
13191
13192fi
13193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13194$as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13195 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13196 ;;
13197 esac
13198 fi
13199 ;;
13200esac
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13266$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13267hardcode_action_GO=
13268if test -n "$hardcode_libdir_flag_spec_GO" ||
13269 test -n "$runpath_var_GO" ||
13270 test "X$hardcode_automatic_GO" = "Xyes" ; then
13271
13272 # We can hardcode non-existent directories.
13273 if test "$hardcode_direct_GO" != no &&
13274 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13275 # have to relink, otherwise we might link with an installed library
13276 # when we should be linking with a yet-to-be-installed one
13277 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13278 test "$hardcode_minus_L_GO" != no; then
13279 # Linking always hardcodes the temporary library directory.
13280 hardcode_action_GO=relink
13281 else
13282 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13283 hardcode_action_GO=immediate
13284 fi
13285else
13286 # We cannot hardcode anything, or else we can only hardcode existing
13287 # directories.
13288 hardcode_action_GO=unsupported
13289fi
13290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13291$as_echo "$hardcode_action_GO" >&6; }
13292
13293if test "$hardcode_action_GO" = relink ||
13294 test "$inherit_rpath_GO" = yes; then
13295 # Fast installation is not supported
13296 enable_fast_install=no
13297elif test "$shlibpath_overrides_runpath" = yes ||
13298 test "$enable_shared" = no; then
13299 # Fast installation is not necessary
13300 enable_fast_install=needless
13301fi
13302
13303
13304
13305
13306
13307
13308
13309fi
13310
13311ac_ext=c
13312ac_cpp='$CPP $CPPFLAGS'
13313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13315ac_compiler_gnu=$ac_cv_c_compiler_gnu
13316
13317
13318GCC=$lt_save_GCC
13319CC="$lt_save_CC"
13320
13321
13322
13323
13324 ac_config_commands="$ac_config_commands libtool"
13325
13326
13327
13328
13329# Only expand once:
13330
13331
13332
13333
13334
a27e1015 13335CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13336
13337
d477de41 13338for ac_prog in gawk mawk nawk awk
13339do
13340 # Extract the first word of "$ac_prog", so it can be a program name with args.
13341set dummy $ac_prog; ac_word=$2
13342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13343$as_echo_n "checking for $ac_word... " >&6; }
13344if test "${ac_cv_prog_AWK+set}" = set; then :
13345 $as_echo_n "(cached) " >&6
13346else
13347 if test -n "$AWK"; then
13348 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13349else
13350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13351for as_dir in $PATH
13352do
13353 IFS=$as_save_IFS
13354 test -z "$as_dir" && as_dir=.
13355 for ac_exec_ext in '' $ac_executable_extensions; do
13356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13357 ac_cv_prog_AWK="$ac_prog"
13358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13359 break 2
13360 fi
13361done
13362 done
13363IFS=$as_save_IFS
13364
13365fi
13366fi
13367AWK=$ac_cv_prog_AWK
13368if test -n "$AWK"; then
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13370$as_echo "$AWK" >&6; }
13371else
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13373$as_echo "no" >&6; }
13374fi
13375
13376
13377 test -n "$AWK" && break
13378done
13379
13380
e440a328 13381WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13382
13383
13384WERROR="-Werror"
13385
13386
13387glibgo_toolexecdir=no
13388glibgo_toolexeclibdir=no
13389glibgo_prefixdir=$prefix
13390
13391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13392$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13393# Check whether --enable-version-specific-runtime-libs was given.
13394if test "${enable_version_specific_runtime_libs+set}" = set; then :
13395 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13396 yes) version_specific_libs=yes ;;
13397 no) version_specific_libs=no ;;
13398 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13399 esac
13400else
13401 version_specific_libs=no
13402fi
13403
13404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13405$as_echo "$version_specific_libs" >&6; }
13406
13407# Version-specific runtime libs processing.
13408if test $version_specific_libs = yes; then
13409 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13410 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13411fi
13412
13413# Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13414# Install a library built with a cross compiler in tooldir, not libdir.
13415if test x"$glibgo_toolexecdir" = x"no"; then
13416 if test -n "$with_cross_host" &&
13417 test x"$with_cross_host" != x"no"; then
13418 glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13419 glibgo_toolexeclibdir='${toolexecdir}/lib'
13420 else
13421 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13422 glibgo_toolexeclibdir='${libdir}'
13423 fi
13424 multi_os_directory=`$CC -print-multi-os-directory`
13425 case $multi_os_directory in
13426 .) ;; # Avoid trailing /.
13427 *) glibgo_toolexeclibdir=$glibgo_toolexeclibdir/$multi_os_directory ;;
13428 esac
13429fi
13430
13431
13432
13433
13434
13435# See if the user wants to configure without libffi. Some
13436# architectures don't support it. FIXME: We should set a default
13437# based on the host.
13438
13439# Check whether --with-libffi was given.
13440if test "${with_libffi+set}" = set; then :
13441 withval=$with_libffi; :
13442else
13443 with_libffi=${with_libffi_default-yes}
13444fi
13445
13446
13447LIBFFI=
13448LIBFFIINCS=
13449if test "$with_libffi" != no; then
13450
13451$as_echo "#define USE_LIBFFI 1" >>confdefs.h
13452
13453 LIBFFI=../libffi/libffi_convenience.la
13454 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13455fi
13456
13457
13458
4180345a 13459# Used to tell GNU make to include a file without telling automake to
13460# include it.
13461go_include="-include"
13462
13463
e440a328 13464is_darwin=no
13465is_freebsd=no
524b52f8 13466is_irix=no
e440a328 13467is_linux=no
13468is_rtems=no
cea7ac49 13469is_solaris=no
7731bf71 13470GOOS=unknown
e440a328 13471case ${host} in
cea7ac49 13472 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13473 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
524b52f8 13474 *-*-irix6*) is_irix=yes; GOOS=irix ;;
cea7ac49 13475 *-*-linux*) is_linux=yes; GOOS=linux ;;
13476 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13477 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
e440a328 13478esac
13479 if test $is_darwin = yes; then
13480 LIBGO_IS_DARWIN_TRUE=
13481 LIBGO_IS_DARWIN_FALSE='#'
13482else
13483 LIBGO_IS_DARWIN_TRUE='#'
13484 LIBGO_IS_DARWIN_FALSE=
13485fi
13486
13487 if test $is_freebsd = yes; then
13488 LIBGO_IS_FREEBSD_TRUE=
13489 LIBGO_IS_FREEBSD_FALSE='#'
13490else
13491 LIBGO_IS_FREEBSD_TRUE='#'
13492 LIBGO_IS_FREEBSD_FALSE=
13493fi
13494
524b52f8 13495 if test $is_irix = yes; then
13496 LIBGO_IS_IRIX_TRUE=
13497 LIBGO_IS_IRIX_FALSE='#'
13498else
13499 LIBGO_IS_IRIX_TRUE='#'
13500 LIBGO_IS_IRIX_FALSE=
13501fi
13502
e440a328 13503 if test $is_linux = yes; then
13504 LIBGO_IS_LINUX_TRUE=
13505 LIBGO_IS_LINUX_FALSE='#'
13506else
13507 LIBGO_IS_LINUX_TRUE='#'
13508 LIBGO_IS_LINUX_FALSE=
13509fi
13510
13511 if test $is_rtems = yes; then
13512 LIBGO_IS_RTEMS_TRUE=
13513 LIBGO_IS_RTEMS_FALSE='#'
13514else
13515 LIBGO_IS_RTEMS_TRUE='#'
13516 LIBGO_IS_RTEMS_FALSE=
13517fi
13518
cea7ac49 13519 if test $is_solaris = yes; then
13520 LIBGO_IS_SOLARIS_TRUE=
13521 LIBGO_IS_SOLARIS_FALSE='#'
13522else
13523 LIBGO_IS_SOLARIS_TRUE='#'
13524 LIBGO_IS_SOLARIS_FALSE=
13525fi
13526
e440a328 13527
7731bf71 13528
e440a328 13529is_386=no
16dc3e4d 13530is_alpha=no
e440a328 13531is_arm=no
8fb241fa 13532is_m68k=no
e0519e05 13533mips_abi=unknown
8fb241fa 13534is_ppc=no
13535is_ppc64=no
cea7ac49 13536is_sparc=no
8c846e21 13537is_sparc64=no
cea7ac49 13538is_x86_64=no
7731bf71 13539GOARCH=unknown
e440a328 13540case ${host} in
16dc3e4d 13541 alpha*-*-*)
13542 is_alpha=yes
13543 GOARCH=alpha
13544 ;;
8fb241fa 13545 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13546 is_arm=yes
13547 GOARCH=arm
13548 ;;
7731bf71 13549 i[34567]86-*-* | x86_64-*-*)
13550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13551/* end confdefs.h. */
13552
13553#ifdef __x86_64__
13554#error 64-bit
13555#endif
13556_ACEOF
3ae9cf6a 13557if ac_fn_c_try_compile "$LINENO"; then :
7731bf71 13558 is_386=yes
13559else
13560 is_x86_64=yes
13561fi
3ae9cf6a 13562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7731bf71 13563 if test "$is_386" = "yes"; then
13564 GOARCH=386
e440a328 13565 else
7731bf71 13566 GOARCH=amd64
e440a328 13567 fi
13568 ;;
8fb241fa 13569 m68k*-*-*)
13570 is_m68k=yes
13571 GOARCH=m68k
13572 ;;
13573 mips*-*-*)
13574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13575/* end confdefs.h. */
13576
fa5e552e 13577#if _MIPS_SIM != _ABIO32
13578#error not o32
13579#endif
13580_ACEOF
13581if ac_fn_c_try_compile "$LINENO"; then :
13582 mips_abi="o32"
13583else
13584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13585/* end confdefs.h. */
13586
13587#if _MIPS_SIM != _ABIN32
13588#error not n32
8fb241fa 13589#endif
13590_ACEOF
3ae9cf6a 13591if ac_fn_c_try_compile "$LINENO"; then :
fa5e552e 13592 mips_abi="n32"
8fb241fa 13593else
fa5e552e 13594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13595/* end confdefs.h. */
13596
13597#if _MIPS_SIM != _ABI64
13598#error not n64
13599#endif
13600_ACEOF
13601if ac_fn_c_try_compile "$LINENO"; then :
13602 mips_abi="n64"
13603else
13604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13605/* end confdefs.h. */
13606
13607#if _MIPS_SIM != _ABIO64
13608#error not o64
13609#endif
13610_ACEOF
13611if ac_fn_c_try_compile "$LINENO"; then :
13612 mips_abi="o64"
13613else
13614 as_fn_error "unknown MIPS ABI" "$LINENO" 5
13615mips_abi="n32"
8fb241fa 13616fi
3ae9cf6a 13617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fa5e552e 13618fi
13619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13620fi
13621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13622fi
13623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13624 case "$mips_abi" in
13625 "o32") GOARCH=mipso32 ;;
13626 "n32") GOARCH=mipsn32 ;;
13627 "n64") GOARCH=mipsn64 ;;
13628 "o64") GOARCH=mipso64 ;;
13629 esac
8fb241fa 13630 ;;
13631 rs6000*-*-* | powerpc*-*-*)
13632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13633/* end confdefs.h. */
13634
13635#ifdef _ARCH_PPC64
13636#error 64-bit
13637#endif
13638_ACEOF
3ae9cf6a 13639if ac_fn_c_try_compile "$LINENO"; then :
8fb241fa 13640 is_ppc=yes
13641else
13642 is_ppc64=yes
13643fi
3ae9cf6a 13644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8fb241fa 13645 if test "$is_ppc" = "yes"; then
13646 GOARCH=ppc
13647 else
13648 GOARCH=ppc64
13649 fi
e440a328 13650 ;;
cea7ac49 13651 sparc*-*-*)
13652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13653/* end confdefs.h. */
13654
13655#if defined(__sparcv9) || defined(__arch64__)
13656#error 64-bit
13657#endif
13658_ACEOF
3ae9cf6a 13659if ac_fn_c_try_compile "$LINENO"; then :
cea7ac49 13660 is_sparc=yes
13661else
8c846e21 13662 is_sparc64=yes
cea7ac49 13663fi
3ae9cf6a 13664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cea7ac49 13665 if test "$is_sparc" = "yes"; then
cea7ac49 13666 GOARCH=sparc
13667 else
8c846e21 13668 GOARCH=sparc64
cea7ac49 13669 fi
13670 ;;
e440a328 13671esac
13672 if test $is_386 = yes; then
13673 LIBGO_IS_386_TRUE=
13674 LIBGO_IS_386_FALSE='#'
13675else
13676 LIBGO_IS_386_TRUE='#'
13677 LIBGO_IS_386_FALSE=
13678fi
13679
16dc3e4d 13680 if test $is_alpha = yes; then
13681 LIBGO_IS_ALPHA_TRUE=
13682 LIBGO_IS_ALPHA_FALSE='#'
13683else
13684 LIBGO_IS_ALPHA_TRUE='#'
13685 LIBGO_IS_ALPHA_FALSE=
13686fi
13687
e440a328 13688 if test $is_arm = yes; then
13689 LIBGO_IS_ARM_TRUE=
13690 LIBGO_IS_ARM_FALSE='#'
13691else
13692 LIBGO_IS_ARM_TRUE='#'
13693 LIBGO_IS_ARM_FALSE=
13694fi
13695
8fb241fa 13696 if test $is_m68k = yes; then
13697 LIBGO_IS_M68K_TRUE=
13698 LIBGO_IS_M68K_FALSE='#'
13699else
13700 LIBGO_IS_M68K_TRUE='#'
13701 LIBGO_IS_M68K_FALSE=
13702fi
13703
e0519e05 13704 if test $mips_abi != unknown; then
8fb241fa 13705 LIBGO_IS_MIPS_TRUE=
13706 LIBGO_IS_MIPS_FALSE='#'
13707else
13708 LIBGO_IS_MIPS_TRUE='#'
13709 LIBGO_IS_MIPS_FALSE=
13710fi
13711
fa5e552e 13712 if test $mips_abi = o32; then
13713 LIBGO_IS_MIPSO32_TRUE=
13714 LIBGO_IS_MIPSO32_FALSE='#'
13715else
13716 LIBGO_IS_MIPSO32_TRUE='#'
13717 LIBGO_IS_MIPSO32_FALSE=
13718fi
13719
13720 if test $mips_abi = n32; then
13721 LIBGO_IS_MIPSN32_TRUE=
13722 LIBGO_IS_MIPSN32_FALSE='#'
8fb241fa 13723else
fa5e552e 13724 LIBGO_IS_MIPSN32_TRUE='#'
13725 LIBGO_IS_MIPSN32_FALSE=
13726fi
13727
13728 if test $mips_abi = n64; then
13729 LIBGO_IS_MIPSN64_TRUE=
13730 LIBGO_IS_MIPSN64_FALSE='#'
13731else
13732 LIBGO_IS_MIPSN64_TRUE='#'
13733 LIBGO_IS_MIPSN64_FALSE=
13734fi
13735
13736 if test $mips_abi = o64; then
13737 LIBGO_IS_MIPSO64_TRUE=
13738 LIBGO_IS_MIPSO64_FALSE='#'
13739else
13740 LIBGO_IS_MIPSO64_TRUE='#'
13741 LIBGO_IS_MIPSO64_FALSE=
8fb241fa 13742fi
13743
13744 if test $is_ppc = yes; then
13745 LIBGO_IS_PPC_TRUE=
13746 LIBGO_IS_PPC_FALSE='#'
13747else
13748 LIBGO_IS_PPC_TRUE='#'
13749 LIBGO_IS_PPC_FALSE=
13750fi
13751
13752 if test $is_ppc64 = yes; then
13753 LIBGO_IS_PPC64_TRUE=
13754 LIBGO_IS_PPC64_FALSE='#'
13755else
13756 LIBGO_IS_PPC64_TRUE='#'
13757 LIBGO_IS_PPC64_FALSE=
13758fi
13759
cea7ac49 13760 if test $is_sparc = yes; then
13761 LIBGO_IS_SPARC_TRUE=
13762 LIBGO_IS_SPARC_FALSE='#'
13763else
13764 LIBGO_IS_SPARC_TRUE='#'
13765 LIBGO_IS_SPARC_FALSE=
13766fi
13767
8c846e21 13768 if test $is_sparc64 = yes; then
13769 LIBGO_IS_SPARC64_TRUE=
13770 LIBGO_IS_SPARC64_FALSE='#'
cea7ac49 13771else
8c846e21 13772 LIBGO_IS_SPARC64_TRUE='#'
13773 LIBGO_IS_SPARC64_FALSE=
cea7ac49 13774fi
13775
13776 if test $is_x86_64 = yes; then
13777 LIBGO_IS_X86_64_TRUE=
13778 LIBGO_IS_X86_64_FALSE='#'
13779else
13780 LIBGO_IS_X86_64_TRUE='#'
13781 LIBGO_IS_X86_64_FALSE=
13782fi
13783
e440a328 13784
7731bf71 13785
d477de41 13786GO_LIBCALL_OS_FILE=
13787GO_LIBCALL_OS_ARCH_FILE=
13788GO_SYSCALL_OS_FILE=
13789GO_SYSCALL_OS_ARCH_FILE=
13790if test -f ${srcdir}/go/syscall/libcall_${GOOS}.go; then
13791 GO_LIBCALL_OS_FILE=go/syscall/libcall_${GOOS}.go
8fb241fa 13792fi
d477de41 13793if test -f ${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go; then
13794 GO_LIBCALL_OS_ARCH_FILE=go/syscall/libcall_${GOOS}_${GOARCH}.go
13795fi
13796if test -f ${srcdir}/go/syscall/syscall_${GOOS}.go; then
13797 GO_SYSCALL_OS_FILE=go/syscall/syscall_${GOOS}.go
13798fi
13799if test -f ${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go; then
13800 GO_SYSCALL_OS_ARCH_FILE=go/syscall/syscall_${GOOS}_${GOARCH}.go
13801fi
13802
13803
13804
8fb241fa 13805
13806
69db433d 13807case "$target" in
e0519e05 13808 mips-sgi-irix6.5*)
13809 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
13810 # msghdr in <sys/socket.h>.
13811 OSCFLAGS='-D_XOPEN_SOURCE=500'
13812 ;;
69db433d 13813 *-*-solaris2.[89])
13814 # Solaris 8/9 need this so struct msghdr gets the msg_control
13815 # etc. fields in <sys/socket.h> (_XPG4_2).
13816 OSCFLAGS='-D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D__EXTENSIONS__'
13817 ;;
13818 *-*-solaris2.1[01])
13819 # Solaris 10+ needs this so struct msghdr gets the msg_control
13820 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=500 as
13821 # above doesn't work with C99.
13822 OSCFLAGS='-D_XOPEN_SOURCE=600 -D__EXTENSIONS__'
13823 ;;
13824esac
13825
13826
e440a328 13827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13828$as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
cea7ac49 13829if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
e440a328 13830 $as_echo_n "(cached) " >&6
13831else
13832 CFLAGS_hold=$CFLAGS
13833CFLAGS="$CFLAGS -fsplit-stack"
13834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13835/* end confdefs.h. */
13836int i;
13837_ACEOF
13838if ac_fn_c_try_compile "$LINENO"; then :
cea7ac49 13839 libgo_cv_c_split_stack_supported=yes
e440a328 13840else
cea7ac49 13841 libgo_cv_c_split_stack_supported=no
e440a328 13842fi
13843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13844CFLAGS=$CFLAGS_hold
13845fi
cea7ac49 13846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
13847$as_echo "$libgo_cv_c_split_stack_supported" >&6; }
13848if test "$libgo_cv_c_split_stack_supported" = yes; then
e440a328 13849 SPLIT_STACK=-fsplit-stack
13850
13851$as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13852
13853else
13854 SPLIT_STACK=
13855fi
13856
cea7ac49 13857 if test "$libgo_cv_c_split_stack_supported" = yes; then
e440a328 13858 USING_SPLIT_STACK_TRUE=
13859 USING_SPLIT_STACK_FALSE='#'
13860else
13861 USING_SPLIT_STACK_TRUE='#'
13862 USING_SPLIT_STACK_FALSE=
13863fi
13864
13865
13866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
13867$as_echo_n "checking whether linker supports split stack... " >&6; }
cea7ac49 13868if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
e440a328 13869 $as_echo_n "(cached) " >&6
13870else
cea7ac49 13871 libgo_cv_c_linker_supports_split_stack=no
e440a328 13872if $LD --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
cea7ac49 13873 libgo_cv_c_linker_supports_split_stack=yes
e440a328 13874fi
13875fi
cea7ac49 13876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
13877$as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
13878if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
e440a328 13879
13880$as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
13881
13882fi
13883
7d17fab3 13884MATH_LIBS=
13885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13886$as_echo_n "checking for sqrt in -lm... " >&6; }
13887if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13888 $as_echo_n "(cached) " >&6
13889else
13890 ac_check_lib_save_LIBS=$LIBS
13891LIBS="-lm $LIBS"
13892cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13893/* end confdefs.h. */
13894
13895/* Override any GCC internal prototype to avoid an error.
13896 Use char because int might match the return type of a GCC
13897 builtin and then its argument prototype would still apply. */
13898#ifdef __cplusplus
13899extern "C"
13900#endif
13901char sqrt ();
13902int
13903main ()
13904{
13905return sqrt ();
13906 ;
13907 return 0;
13908}
13909_ACEOF
13910if ac_fn_c_try_link "$LINENO"; then :
13911 ac_cv_lib_m_sqrt=yes
13912else
13913 ac_cv_lib_m_sqrt=no
13914fi
13915rm -f core conftest.err conftest.$ac_objext \
13916 conftest$ac_exeext conftest.$ac_ext
13917LIBS=$ac_check_lib_save_LIBS
13918fi
13919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13920$as_echo "$ac_cv_lib_m_sqrt" >&6; }
13921if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13922 MATH_LIBS=-lm
13923fi
13924
13925
13926
cea7ac49 13927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
13928$as_echo_n "checking for socket libraries... " >&6; }
13929if test "${libgo_cv_lib_sockets+set}" = set; then :
13930 $as_echo_n "(cached) " >&6
13931else
13932 libgo_cv_lib_sockets=
13933 libgo_check_both=no
13934 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
13935if test "x$ac_cv_func_connect" = x""yes; then :
13936 libgo_check_socket=no
13937else
13938 libgo_check_socket=yes
13939fi
13940
13941 if test "$libgo_check_socket" = "yes"; then
13942 unset ac_cv_func_connect
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
13944$as_echo_n "checking for main in -lsocket... " >&6; }
13945if test "${ac_cv_lib_socket_main+set}" = set; then :
13946 $as_echo_n "(cached) " >&6
13947else
13948 ac_check_lib_save_LIBS=$LIBS
13949LIBS="-lsocket $LIBS"
13950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13951/* end confdefs.h. */
13952
13953
13954int
13955main ()
13956{
13957return main ();
13958 ;
13959 return 0;
13960}
13961_ACEOF
13962if ac_fn_c_try_link "$LINENO"; then :
13963 ac_cv_lib_socket_main=yes
13964else
13965 ac_cv_lib_socket_main=no
13966fi
13967rm -f core conftest.err conftest.$ac_objext \
13968 conftest$ac_exeext conftest.$ac_ext
13969LIBS=$ac_check_lib_save_LIBS
13970fi
13971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
13972$as_echo "$ac_cv_lib_socket_main" >&6; }
13973if test "x$ac_cv_lib_socket_main" = x""yes; then :
13974 libgo_cv_lib_sockets="-lsocket"
13975else
13976 libgo_check_both=yes
13977fi
13978
13979 fi
13980 if test "$libgo_check_both" = "yes"; then
13981 libgo_old_libs=$LIBS
13982 LIBS="$LIBS -lsocket -lnsl"
13983 unset ac_cv_func_accept
13984 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
13985if test "x$ac_cv_func_accept" = x""yes; then :
13986 libgo_check_nsl=no
13987 libgo_cv_lib_sockets="-lsocket -lnsl"
13988fi
13989
13990 unset ac_cv_func_accept
13991 LIBS=$libgo_old_libs
13992 fi
13993 unset ac_cv_func_gethostbyname
13994 libgo_old_libs="$LIBS"
13995 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
13996if test "x$ac_cv_func_gethostbyname" = x""yes; then :
13997
13998else
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14000$as_echo_n "checking for main in -lnsl... " >&6; }
14001if test "${ac_cv_lib_nsl_main+set}" = set; then :
14002 $as_echo_n "(cached) " >&6
14003else
14004 ac_check_lib_save_LIBS=$LIBS
14005LIBS="-lnsl $LIBS"
14006cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14007/* end confdefs.h. */
14008
14009
14010int
14011main ()
14012{
14013return main ();
14014 ;
14015 return 0;
14016}
14017_ACEOF
14018if ac_fn_c_try_link "$LINENO"; then :
14019 ac_cv_lib_nsl_main=yes
14020else
14021 ac_cv_lib_nsl_main=no
14022fi
14023rm -f core conftest.err conftest.$ac_objext \
14024 conftest$ac_exeext conftest.$ac_ext
14025LIBS=$ac_check_lib_save_LIBS
14026fi
14027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14028$as_echo "$ac_cv_lib_nsl_main" >&6; }
14029if test "x$ac_cv_lib_nsl_main" = x""yes; then :
14030 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
14031fi
14032
14033fi
14034
14035 unset ac_cv_func_gethostbyname
14036 LIBS=$libgo_old_libs
14037
14038fi
14039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14040$as_echo "$libgo_cv_lib_sockets" >&6; }
14041NET_LIBS="$libgo_cv_lib_sockets"
14042
14043
f555a9df 14044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14045$as_echo_n "checking whether -pthread is supported... " >&6; }
cea7ac49 14046if test "${libgo_cv_lib_pthread+set}" = set; then :
f555a9df 14047 $as_echo_n "(cached) " >&6
14048else
14049 CFLAGS_hold=$CFLAGS
14050CFLAGS="$CFLAGS -pthread"
14051cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14052/* end confdefs.h. */
14053int i;
14054_ACEOF
14055if ac_fn_c_try_compile "$LINENO"; then :
cea7ac49 14056 libgo_cv_lib_pthread=yes
f555a9df 14057else
cea7ac49 14058 libgo_cv_lib_pthread=no
f555a9df 14059fi
14060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14061CFLAGS=$CFLAGS_hold
14062fi
cea7ac49 14063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14064$as_echo "$libgo_cv_lib_pthread" >&6; }
f555a9df 14065PTHREAD_CFLAGS=
cea7ac49 14066if test "$libgo_cv_lib_pthread" = yes; then
f555a9df 14067 PTHREAD_CFLAGS=-pthread
14068fi
14069
14070
14071PTHREAD_LIBS=
14072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14073$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14074if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
14075 $as_echo_n "(cached) " >&6
14076else
14077 ac_check_lib_save_LIBS=$LIBS
14078LIBS="-lpthread $LIBS"
14079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14080/* end confdefs.h. */
14081
14082/* Override any GCC internal prototype to avoid an error.
14083 Use char because int might match the return type of a GCC
14084 builtin and then its argument prototype would still apply. */
14085#ifdef __cplusplus
14086extern "C"
14087#endif
14088char pthread_create ();
14089int
14090main ()
14091{
14092return pthread_create ();
14093 ;
14094 return 0;
14095}
14096_ACEOF
14097if ac_fn_c_try_link "$LINENO"; then :
14098 ac_cv_lib_pthread_pthread_create=yes
14099else
14100 ac_cv_lib_pthread_pthread_create=no
14101fi
14102rm -f core conftest.err conftest.$ac_objext \
14103 conftest$ac_exeext conftest.$ac_ext
14104LIBS=$ac_check_lib_save_LIBS
14105fi
14106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14107$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14108if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
14109 PTHREAD_LIBS=-lpthread
14110fi
14111
14112
14113
554126c9 14114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14115$as_echo_n "checking for library containing sched_yield... " >&6; }
14116if test "${ac_cv_search_sched_yield+set}" = set; then :
14117 $as_echo_n "(cached) " >&6
14118else
14119 ac_func_search_save_LIBS=$LIBS
14120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14121/* end confdefs.h. */
14122
14123/* Override any GCC internal prototype to avoid an error.
14124 Use char because int might match the return type of a GCC
14125 builtin and then its argument prototype would still apply. */
14126#ifdef __cplusplus
14127extern "C"
14128#endif
14129char sched_yield ();
14130int
14131main ()
14132{
14133return sched_yield ();
14134 ;
14135 return 0;
14136}
14137_ACEOF
14138for ac_lib in '' rt; do
14139 if test -z "$ac_lib"; then
14140 ac_res="none required"
14141 else
14142 ac_res=-l$ac_lib
14143 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14144 fi
14145 if ac_fn_c_try_link "$LINENO"; then :
14146 ac_cv_search_sched_yield=$ac_res
14147fi
14148rm -f core conftest.err conftest.$ac_objext \
14149 conftest$ac_exeext
14150 if test "${ac_cv_search_sched_yield+set}" = set; then :
14151 break
14152fi
14153done
14154if test "${ac_cv_search_sched_yield+set}" = set; then :
14155
14156else
14157 ac_cv_search_sched_yield=no
14158fi
14159rm conftest.$ac_ext
14160LIBS=$ac_func_search_save_LIBS
14161fi
14162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14163$as_echo "$ac_cv_search_sched_yield" >&6; }
14164ac_res=$ac_cv_search_sched_yield
14165if test "$ac_res" != no; then :
14166 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14167
14168fi
14169
14170
e440a328 14171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14172$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14173if test "${ac_cv_c_bigendian+set}" = set; then :
14174 $as_echo_n "(cached) " >&6
14175else
14176 ac_cv_c_bigendian=unknown
14177 # See if we're dealing with a universal compiler.
14178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14179/* end confdefs.h. */
14180#ifndef __APPLE_CC__
14181 not a universal capable compiler
14182 #endif
14183 typedef int dummy;
14184
14185_ACEOF
14186if ac_fn_c_try_compile "$LINENO"; then :
14187
14188 # Check for potential -arch flags. It is not universal unless
14189 # there are at least two -arch flags with different values.
14190 ac_arch=
14191 ac_prev=
14192 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14193 if test -n "$ac_prev"; then
14194 case $ac_word in
14195 i?86 | x86_64 | ppc | ppc64)
14196 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14197 ac_arch=$ac_word
14198 else
14199 ac_cv_c_bigendian=universal
14200 break
14201 fi
14202 ;;
14203 esac
14204 ac_prev=
14205 elif test "x$ac_word" = "x-arch"; then
14206 ac_prev=arch
14207 fi
14208 done
14209fi
14210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14211 if test $ac_cv_c_bigendian = unknown; then
14212 # See if sys/param.h defines the BYTE_ORDER macro.
14213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14214/* end confdefs.h. */
14215#include <sys/types.h>
14216 #include <sys/param.h>
14217
14218int
14219main ()
14220{
14221#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14222 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14223 && LITTLE_ENDIAN)
14224 bogus endian macros
14225 #endif
14226
14227 ;
14228 return 0;
14229}
14230_ACEOF
14231if ac_fn_c_try_compile "$LINENO"; then :
14232 # It does; now see whether it defined to BIG_ENDIAN or not.
14233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14234/* end confdefs.h. */
14235#include <sys/types.h>
14236 #include <sys/param.h>
14237
14238int
14239main ()
14240{
14241#if BYTE_ORDER != BIG_ENDIAN
14242 not big endian
14243 #endif
14244
14245 ;
14246 return 0;
14247}
14248_ACEOF
14249if ac_fn_c_try_compile "$LINENO"; then :
14250 ac_cv_c_bigendian=yes
14251else
14252 ac_cv_c_bigendian=no
14253fi
14254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14255fi
14256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14257 fi
14258 if test $ac_cv_c_bigendian = unknown; then
14259 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14261/* end confdefs.h. */
14262#include <limits.h>
14263
14264int
14265main ()
14266{
14267#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14268 bogus endian macros
14269 #endif
14270
14271 ;
14272 return 0;
14273}
14274_ACEOF
14275if ac_fn_c_try_compile "$LINENO"; then :
14276 # It does; now see whether it defined to _BIG_ENDIAN or not.
14277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14278/* end confdefs.h. */
14279#include <limits.h>
14280
14281int
14282main ()
14283{
14284#ifndef _BIG_ENDIAN
14285 not big endian
14286 #endif
14287
14288 ;
14289 return 0;
14290}
14291_ACEOF
14292if ac_fn_c_try_compile "$LINENO"; then :
14293 ac_cv_c_bigendian=yes
14294else
14295 ac_cv_c_bigendian=no
14296fi
14297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14298fi
14299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14300 fi
14301 if test $ac_cv_c_bigendian = unknown; then
14302 # Compile a test program.
14303 if test "$cross_compiling" = yes; then :
14304 # Try to guess by grepping values from an object file.
14305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14306/* end confdefs.h. */
14307short int ascii_mm[] =
14308 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14309 short int ascii_ii[] =
14310 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14311 int use_ascii (int i) {
14312 return ascii_mm[i] + ascii_ii[i];
14313 }
14314 short int ebcdic_ii[] =
14315 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14316 short int ebcdic_mm[] =
14317 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14318 int use_ebcdic (int i) {
14319 return ebcdic_mm[i] + ebcdic_ii[i];
14320 }
14321 extern int foo;
14322
14323int
14324main ()
14325{
14326return use_ascii (foo) == use_ebcdic (foo);
14327 ;
14328 return 0;
14329}
14330_ACEOF
14331if ac_fn_c_try_compile "$LINENO"; then :
14332 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14333 ac_cv_c_bigendian=yes
14334 fi
14335 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14336 if test "$ac_cv_c_bigendian" = unknown; then
14337 ac_cv_c_bigendian=no
14338 else
14339 # finding both strings is unlikely to happen, but who knows?
14340 ac_cv_c_bigendian=unknown
14341 fi
14342 fi
14343fi
14344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14345else
14346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14347/* end confdefs.h. */
14348$ac_includes_default
14349int
14350main ()
14351{
14352
14353 /* Are we little or big endian? From Harbison&Steele. */
14354 union
14355 {
14356 long int l;
14357 char c[sizeof (long int)];
14358 } u;
14359 u.l = 1;
14360 return u.c[sizeof (long int) - 1] == 1;
14361
14362 ;
14363 return 0;
14364}
14365_ACEOF
14366if ac_fn_c_try_run "$LINENO"; then :
14367 ac_cv_c_bigendian=no
14368else
14369 ac_cv_c_bigendian=yes
14370fi
14371rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14372 conftest.$ac_objext conftest.beam conftest.$ac_ext
14373fi
14374
14375 fi
14376fi
14377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14378$as_echo "$ac_cv_c_bigendian" >&6; }
14379 case $ac_cv_c_bigendian in #(
14380 yes)
14381 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14382;; #(
14383 no)
14384 ;; #(
14385 universal)
14386
14387$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14388
14389 ;; #(
14390 *)
14391 as_fn_error "unknown endianness
14392 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14393 esac
14394
14395
14396
14397
14398# Check whether --with-system-libunwind was given.
14399if test "${with_system_libunwind+set}" = set; then :
14400 withval=$with_system_libunwind;
14401fi
14402
14403 # If system-libunwind was not specifically set, pick a default setting.
14404 if test x$with_system_libunwind = x; then
14405 case ${target} in
14406 ia64-*-hpux*) with_system_libunwind=yes ;;
14407 *) with_system_libunwind=no ;;
14408 esac
14409 fi
14410 # Based on system-libunwind and target, do we have ipinfo?
14411 if test x$with_system_libunwind = xyes; then
14412 case ${target} in
14413 ia64-*-*) have_unwind_getipinfo=no ;;
14414 *) have_unwind_getipinfo=yes ;;
14415 esac
14416 else
14417 # Darwin before version 9 does not have _Unwind_GetIPInfo.
14418
14419 case ${target} in
14420 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14421 *) have_unwind_getipinfo=yes ;;
14422 esac
14423
14424 fi
14425
14426 if test x$have_unwind_getipinfo = xyes; then
14427
14428$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14429
14430 fi
14431
14432
c0dd1a83 14433# Check whether --enable-sjlj-exceptions was given.
14434if test "${enable_sjlj_exceptions+set}" = set; then :
14435 enableval=$enable_sjlj_exceptions; case "$enableval" in
14436 yes|no|auto) ;;
14437 *) as_fn_error "unknown argument to --enable-sjlj-exceptions" "$LINENO" 5 ;;
14438 esac
14439else
14440 enable_sjlj_exceptions=auto
14441fi
14442
14443
14444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use setjmp/longjmp exceptions" >&5
14445$as_echo_n "checking whether to use setjmp/longjmp exceptions... " >&6; }
14446if test "${libgo_cv_lib_sjlj_exceptions+set}" = set; then :
14447 $as_echo_n "(cached) " >&6
14448else
14449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14450/* end confdefs.h. */
14451
14452void bar ();
14453void clean (int *);
14454void foo ()
14455{
14456 int i __attribute__ ((cleanup (clean)));
14457 bar();
14458}
14459
14460_ACEOF
14461CFLAGS_hold=$CFLAGS
14462CFLAGS="--save-temps -fexceptions"
14463libgo_cv_lib_sjlj_exceptions=unknown
14464if ac_fn_c_try_compile; then :
14465 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1; then
14466 libgo_cv_lib_sjlj_exceptions=yes
14467 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1; then
14468 libgo_cv_lib_sjlj_exceptions=no
14469 fi
14470fi
14471CFLAGS=$CFLAGS_hold
14472rm -f conftest*
14473
14474fi
14475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sjlj_exceptions" >&5
14476$as_echo "$libgo_cv_lib_sjlj_exceptions" >&6; }
14477
14478if test "$enable_sjlj_exceptions" = "auto"; then
14479 enable_sjlj_exceptions=$libgo_cv_lib_sjlj_exceptions
14480fi
14481
14482case $enable_sjlj_exceptions in
14483yes)
14484
14485$as_echo "#define LIBGO_SJLJ_EXCEPTIONS 1" >>confdefs.h
14486
14487 ;;
14488no)
14489 ;;
14490*)
14491 as_fn_error "unable to detect exception model" "$LINENO" 5
14492 ;;
14493esac
14494
49b4e44b 14495for ac_header in sys/mman.h syscall.h sys/epoll.h sys/ptrace.h sys/syscall.h sys/user.h sys/utsname.h sys/select.h sys/socket.h net/if.h
e440a328 14496do :
14497 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14498ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14499eval as_val=\$$as_ac_Header
14500 if test "x$as_val" = x""yes; then :
14501 cat >>confdefs.h <<_ACEOF
14502#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14503_ACEOF
14504
14505fi
14506
14507done
14508
49b4e44b 14509
14510for ac_header in linux/filter.h linux/netlink.h linux/rtnetlink.h
14511do :
14512 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14513ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
14514#include <sys/socket.h>
14515#endif
14516
14517"
14518eval as_val=\$$as_ac_Header
14519 if test "x$as_val" = x""yes; then :
14520 cat >>confdefs.h <<_ACEOF
14521#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14522_ACEOF
14523
14524fi
14525
14526done
14527
14528
e440a328 14529 if test "$ac_cv_header_sys_mman_h" = yes; then
14530 HAVE_SYS_MMAN_H_TRUE=
14531 HAVE_SYS_MMAN_H_FALSE='#'
14532else
14533 HAVE_SYS_MMAN_H_TRUE='#'
14534 HAVE_SYS_MMAN_H_FALSE=
14535fi
14536
ccd3f476 14537
0ba415ab 14538for ac_func in strerror_r strsignal wait4 mincore setenv
e440a328 14539do :
14540 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14541ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14542eval as_val=\$$as_ac_var
14543 if test "x$as_val" = x""yes; then :
14544 cat >>confdefs.h <<_ACEOF
14545#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14546_ACEOF
14547
14548fi
14549done
14550
ccd3f476 14551 if test "$ac_cv_func_strerror_r" = yes; then
14552 HAVE_STRERROR_R_TRUE=
14553 HAVE_STRERROR_R_FALSE='#'
14554else
14555 HAVE_STRERROR_R_TRUE='#'
14556 HAVE_STRERROR_R_FALSE=
14557fi
14558
37d6b690 14559 if test "$ac_cv_func_wait4" = yes; then
14560 HAVE_WAIT4_TRUE=
14561 HAVE_WAIT4_FALSE='#'
14562else
14563 HAVE_WAIT4_TRUE='#'
14564 HAVE_WAIT4_FALSE=
14565fi
14566
e440a328 14567
a101a385 14568CFLAGS_hold="$CFLAGS"
14569CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14570LIBS_hold="$LIBS"
14571LIBS="$LIBS $PTHREAD_LIBS"
14572for ac_func in sem_timedwait
14573do :
14574 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
14575if test "x$ac_cv_func_sem_timedwait" = x""yes; then :
14576 cat >>confdefs.h <<_ACEOF
14577#define HAVE_SEM_TIMEDWAIT 1
14578_ACEOF
14579
14580fi
14581done
14582
14583CFLAGS="$CFLAGS_hold"
14584LIBS="$LIBS_hold"
14585
12140f2f 14586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
14587$as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
14588if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
14589 $as_echo_n "(cached) " >&6
14590else
14591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14592/* end confdefs.h. */
14593
14594typedef unsigned int uint32 __attribute__ ((mode (SI)));
14595uint32 i;
14596int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14597
14598_ACEOF
14599if ac_fn_c_try_link "$LINENO"; then :
14600 libgo_cv_func___sync_bool_compare_and_swap_4=yes
14601else
14602 libgo_cv_func___sync_bool_compare_and_swap_4=no
14603fi
14604rm -f core conftest.err conftest.$ac_objext \
14605 conftest$ac_exeext conftest.$ac_ext
14606fi
14607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
14608$as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
14609if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
63bcac1c 14610
14611$as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
12140f2f 14612
14613fi
14614
cb6f50ce 14615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
14616$as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
14617if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
14618 $as_echo_n "(cached) " >&6
14619else
14620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14621/* end confdefs.h. */
14622
14623typedef unsigned int uint32 __attribute__ ((mode (SI)));
14624uint32 i;
14625int main() { return __sync_fetch_and_add (&i, 1); }
14626
14627_ACEOF
14628if ac_fn_c_try_link "$LINENO"; then :
14629 libgo_cv_func___sync_fetch_and_add_4=yes
14630else
14631 libgo_cv_func___sync_fetch_and_add_4=no
14632fi
14633rm -f core conftest.err conftest.$ac_objext \
14634 conftest$ac_exeext conftest.$ac_ext
14635fi
14636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
14637$as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
14638if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
14639
14640$as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
14641
14642fi
14643
e440a328 14644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
14645$as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
cea7ac49 14646if test "${libgo_cv_c_stringops+set}" = set; then :
e440a328 14647 $as_echo_n "(cached) " >&6
14648else
14649 CFLAGS_hold=$CFLAGS
14650CFLAGS="$CFLAGS -minline-all-stringops"
14651cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14652/* end confdefs.h. */
14653int i;
14654_ACEOF
14655if ac_fn_c_try_compile "$LINENO"; then :
cea7ac49 14656 libgo_cv_c_stringops=yes
e440a328 14657else
cea7ac49 14658 libgo_cv_c_stringops=no
e440a328 14659fi
14660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14661CFLAGS=$CFLAGS_hold
14662fi
cea7ac49 14663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
14664$as_echo "$libgo_cv_c_stringops" >&6; }
e440a328 14665STRINGOPS_FLAG=
cea7ac49 14666if test "$libgo_cv_c_stringops" = yes; then
e440a328 14667 STRINGOPS_FLAG=-minline-all-stringops
14668fi
14669
14670
14671CFLAGS_hold=$CFLAGS
14672CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
14673ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
14674if test "x$ac_cv_type_off64_t" = x""yes; then :
14675
14676cat >>confdefs.h <<_ACEOF
14677#define HAVE_OFF64_T 1
14678_ACEOF
14679
14680
14681fi
14682
14683CFLAGS=$CFLAGS_hold
14684
d772e63b 14685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
14686$as_echo_n "checking epoll_event size... " >&6; }
14687if test "${libgo_cv_c_epoll_event_size+set}" = set; then :
14688 $as_echo_n "(cached) " >&6
14689else
14690 if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then :
14691
14692else
14693 libgo_cv_c_epoll_event_size=0
14694fi
14695
14696fi
14697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
14698$as_echo "$libgo_cv_c_epoll_event_size" >&6; }
14699SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size}
14700
14701
14702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
14703$as_echo_n "checking epoll_event data.fd offset... " >&6; }
14704if test "${libgo_cv_c_epoll_event_fd_offset+set}" = set; then :
14705 $as_echo_n "(cached) " >&6
14706else
14707 if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h>
14708#include <sys/epoll.h>"; then :
14709
14710else
14711 libgo_cv_c_epoll_event_fd_offset=0
14712fi
14713
14714fi
14715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
14716$as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
14717STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset}
14718
14719
e440a328 14720cat >confcache <<\_ACEOF
14721# This file is a shell script that caches the results of configure
14722# tests run on this system so they can be shared between configure
14723# scripts and configure runs, see configure's option --config-cache.
14724# It is not useful on other systems. If it contains results you don't
14725# want to keep, you may remove or edit it.
14726#
14727# config.status only pays attention to the cache file if you give it
14728# the --recheck option to rerun configure.
14729#
14730# `ac_cv_env_foo' variables (set or unset) will be overridden when
14731# loading this file, other *unset* `ac_cv_foo' will be assigned the
14732# following values.
14733
14734_ACEOF
14735
14736# The following way of writing the cache mishandles newlines in values,
14737# but we know of no workaround that is simple, portable, and efficient.
14738# So, we kill variables containing newlines.
14739# Ultrix sh set writes to stderr and can't be redirected directly,
14740# and sets the high bit in the cache file unless we assign to the vars.
14741(
14742 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14743 eval ac_val=\$$ac_var
14744 case $ac_val in #(
14745 *${as_nl}*)
14746 case $ac_var in #(
14747 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14748$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14749 esac
14750 case $ac_var in #(
14751 _ | IFS | as_nl) ;; #(
14752 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14753 *) { eval $ac_var=; unset $ac_var;} ;;
14754 esac ;;
14755 esac
14756 done
14757
14758 (set) 2>&1 |
14759 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14760 *${as_nl}ac_space=\ *)
14761 # `set' does not quote correctly, so add quotes: double-quote
14762 # substitution turns \\\\ into \\, and sed turns \\ into \.
14763 sed -n \
14764 "s/'/'\\\\''/g;
14765 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14766 ;; #(
14767 *)
14768 # `set' quotes correctly as required by POSIX, so do not add quotes.
14769 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14770 ;;
14771 esac |
14772 sort
14773) |
14774 sed '
14775 /^ac_cv_env_/b end
14776 t clear
14777 :clear
14778 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14779 t end
14780 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14781 :end' >>confcache
14782if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14783 if test -w "$cache_file"; then
14784 test "x$cache_file" != "x/dev/null" &&
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14786$as_echo "$as_me: updating cache $cache_file" >&6;}
14787 cat confcache >$cache_file
14788 else
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14790$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14791 fi
14792fi
14793rm -f confcache
14794
14795if test ${multilib} = yes; then
14796 multilib_arg="--enable-multilib"
14797else
14798 multilib_arg=
14799fi
14800
14801ac_config_files="$ac_config_files Makefile testsuite/Makefile"
14802
14803
14804ac_config_commands="$ac_config_commands default"
14805
14806
14807cat >confcache <<\_ACEOF
14808# This file is a shell script that caches the results of configure
14809# tests run on this system so they can be shared between configure
14810# scripts and configure runs, see configure's option --config-cache.
14811# It is not useful on other systems. If it contains results you don't
14812# want to keep, you may remove or edit it.
14813#
14814# config.status only pays attention to the cache file if you give it
14815# the --recheck option to rerun configure.
14816#
14817# `ac_cv_env_foo' variables (set or unset) will be overridden when
14818# loading this file, other *unset* `ac_cv_foo' will be assigned the
14819# following values.
14820
14821_ACEOF
14822
14823# The following way of writing the cache mishandles newlines in values,
14824# but we know of no workaround that is simple, portable, and efficient.
14825# So, we kill variables containing newlines.
14826# Ultrix sh set writes to stderr and can't be redirected directly,
14827# and sets the high bit in the cache file unless we assign to the vars.
14828(
14829 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14830 eval ac_val=\$$ac_var
14831 case $ac_val in #(
14832 *${as_nl}*)
14833 case $ac_var in #(
14834 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14835$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14836 esac
14837 case $ac_var in #(
14838 _ | IFS | as_nl) ;; #(
14839 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14840 *) { eval $ac_var=; unset $ac_var;} ;;
14841 esac ;;
14842 esac
14843 done
14844
14845 (set) 2>&1 |
14846 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14847 *${as_nl}ac_space=\ *)
14848 # `set' does not quote correctly, so add quotes: double-quote
14849 # substitution turns \\\\ into \\, and sed turns \\ into \.
14850 sed -n \
14851 "s/'/'\\\\''/g;
14852 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14853 ;; #(
14854 *)
14855 # `set' quotes correctly as required by POSIX, so do not add quotes.
14856 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14857 ;;
14858 esac |
14859 sort
14860) |
14861 sed '
14862 /^ac_cv_env_/b end
14863 t clear
14864 :clear
14865 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14866 t end
14867 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14868 :end' >>confcache
14869if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14870 if test -w "$cache_file"; then
14871 test "x$cache_file" != "x/dev/null" &&
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14873$as_echo "$as_me: updating cache $cache_file" >&6;}
14874 cat confcache >$cache_file
14875 else
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14877$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14878 fi
14879fi
14880rm -f confcache
14881
14882test "x$prefix" = xNONE && prefix=$ac_default_prefix
14883# Let make expand exec_prefix.
14884test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14885
14886DEFS=-DHAVE_CONFIG_H
14887
14888ac_libobjs=
14889ac_ltlibobjs=
14890for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14891 # 1. Remove the extension, and $U if already installed.
14892 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14893 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14894 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14895 # will be set to the directory where LIBOBJS objects are built.
14896 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14897 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14898done
14899LIBOBJS=$ac_libobjs
14900
14901LTLIBOBJS=$ac_ltlibobjs
14902
14903
14904 if test -n "$EXEEXT"; then
14905 am__EXEEXT_TRUE=
14906 am__EXEEXT_FALSE='#'
14907else
14908 am__EXEEXT_TRUE='#'
14909 am__EXEEXT_FALSE=
14910fi
14911
14912if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14913 as_fn_error "conditional \"AMDEP\" was never defined.
14914Usually this means the macro was only invoked conditionally." "$LINENO" 5
14915fi
14916if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14917 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14918Usually this means the macro was only invoked conditionally." "$LINENO" 5
14919fi
14920if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14921 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14922Usually this means the macro was only invoked conditionally." "$LINENO" 5
14923fi
14924if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
14925 as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
14926Usually this means the macro was only invoked conditionally." "$LINENO" 5
14927fi
14928if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
14929 as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
14930Usually this means the macro was only invoked conditionally." "$LINENO" 5
524b52f8 14931fi
14932if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
14933 as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined.
14934Usually this means the macro was only invoked conditionally." "$LINENO" 5
e440a328 14935fi
14936if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
14937 as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
14938Usually this means the macro was only invoked conditionally." "$LINENO" 5
14939fi
14940if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
14941 as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
14942Usually this means the macro was only invoked conditionally." "$LINENO" 5
14943fi
cea7ac49 14944if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
14945 as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
e440a328 14946Usually this means the macro was only invoked conditionally." "$LINENO" 5
14947fi
cea7ac49 14948if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
14949 as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
e440a328 14950Usually this means the macro was only invoked conditionally." "$LINENO" 5
14951fi
16dc3e4d 14952if test -z "${LIBGO_IS_ALPHA_TRUE}" && test -z "${LIBGO_IS_ALPHA_FALSE}"; then
14953 as_fn_error "conditional \"LIBGO_IS_ALPHA\" was never defined.
14954Usually this means the macro was only invoked conditionally." "$LINENO" 5
14955fi
e440a328 14956if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
14957 as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
14958Usually this means the macro was only invoked conditionally." "$LINENO" 5
14959fi
8fb241fa 14960if test -z "${LIBGO_IS_M68K_TRUE}" && test -z "${LIBGO_IS_M68K_FALSE}"; then
14961 as_fn_error "conditional \"LIBGO_IS_M68K\" was never defined.
14962Usually this means the macro was only invoked conditionally." "$LINENO" 5
14963fi
14964if test -z "${LIBGO_IS_MIPS_TRUE}" && test -z "${LIBGO_IS_MIPS_FALSE}"; then
14965 as_fn_error "conditional \"LIBGO_IS_MIPS\" was never defined.
14966Usually this means the macro was only invoked conditionally." "$LINENO" 5
14967fi
fa5e552e 14968if test -z "${LIBGO_IS_MIPSO32_TRUE}" && test -z "${LIBGO_IS_MIPSO32_FALSE}"; then
14969 as_fn_error "conditional \"LIBGO_IS_MIPSO32\" was never defined.
14970Usually this means the macro was only invoked conditionally." "$LINENO" 5
14971fi
14972if test -z "${LIBGO_IS_MIPSN32_TRUE}" && test -z "${LIBGO_IS_MIPSN32_FALSE}"; then
14973 as_fn_error "conditional \"LIBGO_IS_MIPSN32\" was never defined.
14974Usually this means the macro was only invoked conditionally." "$LINENO" 5
14975fi
14976if test -z "${LIBGO_IS_MIPSN64_TRUE}" && test -z "${LIBGO_IS_MIPSN64_FALSE}"; then
14977 as_fn_error "conditional \"LIBGO_IS_MIPSN64\" was never defined.
14978Usually this means the macro was only invoked conditionally." "$LINENO" 5
14979fi
14980if test -z "${LIBGO_IS_MIPSO64_TRUE}" && test -z "${LIBGO_IS_MIPSO64_FALSE}"; then
14981 as_fn_error "conditional \"LIBGO_IS_MIPSO64\" was never defined.
8fb241fa 14982Usually this means the macro was only invoked conditionally." "$LINENO" 5
14983fi
14984if test -z "${LIBGO_IS_PPC_TRUE}" && test -z "${LIBGO_IS_PPC_FALSE}"; then
14985 as_fn_error "conditional \"LIBGO_IS_PPC\" was never defined.
14986Usually this means the macro was only invoked conditionally." "$LINENO" 5
14987fi
14988if test -z "${LIBGO_IS_PPC64_TRUE}" && test -z "${LIBGO_IS_PPC64_FALSE}"; then
14989 as_fn_error "conditional \"LIBGO_IS_PPC64\" was never defined.
14990Usually this means the macro was only invoked conditionally." "$LINENO" 5
14991fi
cea7ac49 14992if test -z "${LIBGO_IS_SPARC_TRUE}" && test -z "${LIBGO_IS_SPARC_FALSE}"; then
14993 as_fn_error "conditional \"LIBGO_IS_SPARC\" was never defined.
14994Usually this means the macro was only invoked conditionally." "$LINENO" 5
14995fi
8c846e21 14996if test -z "${LIBGO_IS_SPARC64_TRUE}" && test -z "${LIBGO_IS_SPARC64_FALSE}"; then
14997 as_fn_error "conditional \"LIBGO_IS_SPARC64\" was never defined.
cea7ac49 14998Usually this means the macro was only invoked conditionally." "$LINENO" 5
14999fi
15000if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
15001 as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
15002Usually this means the macro was only invoked conditionally." "$LINENO" 5
15003fi
e440a328 15004if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
15005 as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
15006Usually this means the macro was only invoked conditionally." "$LINENO" 5
15007fi
15008
15009if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
15010 as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
15011Usually this means the macro was only invoked conditionally." "$LINENO" 5
15012fi
ccd3f476 15013if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
15014 as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined.
15015Usually this means the macro was only invoked conditionally." "$LINENO" 5
15016fi
37d6b690 15017if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
15018 as_fn_error "conditional \"HAVE_WAIT4\" was never defined.
15019Usually this means the macro was only invoked conditionally." "$LINENO" 5
15020fi
e440a328 15021
15022: ${CONFIG_STATUS=./config.status}
15023ac_write_fail=0
15024ac_clean_files_save=$ac_clean_files
15025ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15026{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15027$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15028as_write_fail=0
15029cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15030#! $SHELL
15031# Generated by $as_me.
15032# Run this file to recreate the current configuration.
15033# Compiler output produced by configure, useful for debugging
15034# configure, is in config.log if it exists.
15035
15036debug=false
15037ac_cs_recheck=false
15038ac_cs_silent=false
15039
15040SHELL=\${CONFIG_SHELL-$SHELL}
15041export SHELL
15042_ASEOF
15043cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15044## -------------------- ##
15045## M4sh Initialization. ##
15046## -------------------- ##
15047
15048# Be more Bourne compatible
15049DUALCASE=1; export DUALCASE # for MKS sh
15050if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15051 emulate sh
15052 NULLCMD=:
15053 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15054 # is contrary to our usage. Disable this feature.
15055 alias -g '${1+"$@"}'='"$@"'
15056 setopt NO_GLOB_SUBST
15057else
15058 case `(set -o) 2>/dev/null` in #(
15059 *posix*) :
15060 set -o posix ;; #(
15061 *) :
15062 ;;
15063esac
15064fi
15065
15066
15067as_nl='
15068'
15069export as_nl
15070# Printing a long string crashes Solaris 7 /usr/bin/printf.
15071as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15072as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15073as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15074# Prefer a ksh shell builtin over an external printf program on Solaris,
15075# but without wasting forks for bash or zsh.
15076if test -z "$BASH_VERSION$ZSH_VERSION" \
15077 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15078 as_echo='print -r --'
15079 as_echo_n='print -rn --'
15080elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15081 as_echo='printf %s\n'
15082 as_echo_n='printf %s'
15083else
15084 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15085 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15086 as_echo_n='/usr/ucb/echo -n'
15087 else
15088 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15089 as_echo_n_body='eval
15090 arg=$1;
15091 case $arg in #(
15092 *"$as_nl"*)
15093 expr "X$arg" : "X\\(.*\\)$as_nl";
15094 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15095 esac;
15096 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15097 '
15098 export as_echo_n_body
15099 as_echo_n='sh -c $as_echo_n_body as_echo'
15100 fi
15101 export as_echo_body
15102 as_echo='sh -c $as_echo_body as_echo'
15103fi
15104
15105# The user is always right.
15106if test "${PATH_SEPARATOR+set}" != set; then
15107 PATH_SEPARATOR=:
15108 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15109 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15110 PATH_SEPARATOR=';'
15111 }
15112fi
15113
15114
15115# IFS
15116# We need space, tab and new line, in precisely that order. Quoting is
15117# there to prevent editors from complaining about space-tab.
15118# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15119# splitting by setting IFS to empty value.)
15120IFS=" "" $as_nl"
15121
15122# Find who we are. Look in the path if we contain no directory separator.
15123case $0 in #((
15124 *[\\/]* ) as_myself=$0 ;;
15125 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15126for as_dir in $PATH
15127do
15128 IFS=$as_save_IFS
15129 test -z "$as_dir" && as_dir=.
15130 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15131 done
15132IFS=$as_save_IFS
15133
15134 ;;
15135esac
15136# We did not find ourselves, most probably we were run as `sh COMMAND'
15137# in which case we are not to be found in the path.
15138if test "x$as_myself" = x; then
15139 as_myself=$0
15140fi
15141if test ! -f "$as_myself"; then
15142 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15143 exit 1
15144fi
15145
15146# Unset variables that we do not need and which cause bugs (e.g. in
15147# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15148# suppresses any "Segmentation fault" message there. '((' could
15149# trigger a bug in pdksh 5.2.14.
15150for as_var in BASH_ENV ENV MAIL MAILPATH
15151do eval test x\${$as_var+set} = xset \
15152 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15153done
15154PS1='$ '
15155PS2='> '
15156PS4='+ '
15157
15158# NLS nuisances.
15159LC_ALL=C
15160export LC_ALL
15161LANGUAGE=C
15162export LANGUAGE
15163
15164# CDPATH.
15165(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15166
15167
15168# as_fn_error ERROR [LINENO LOG_FD]
15169# ---------------------------------
15170# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15171# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15172# script with status $?, using 1 if that was 0.
15173as_fn_error ()
15174{
15175 as_status=$?; test $as_status -eq 0 && as_status=1
15176 if test "$3"; then
15177 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15178 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15179 fi
15180 $as_echo "$as_me: error: $1" >&2
15181 as_fn_exit $as_status
15182} # as_fn_error
15183
15184
15185# as_fn_set_status STATUS
15186# -----------------------
15187# Set $? to STATUS, without forking.
15188as_fn_set_status ()
15189{
15190 return $1
15191} # as_fn_set_status
15192
15193# as_fn_exit STATUS
15194# -----------------
15195# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15196as_fn_exit ()
15197{
15198 set +e
15199 as_fn_set_status $1
15200 exit $1
15201} # as_fn_exit
15202
15203# as_fn_unset VAR
15204# ---------------
15205# Portably unset VAR.
15206as_fn_unset ()
15207{
15208 { eval $1=; unset $1;}
15209}
15210as_unset=as_fn_unset
15211# as_fn_append VAR VALUE
15212# ----------------------
15213# Append the text in VALUE to the end of the definition contained in VAR. Take
15214# advantage of any shell optimizations that allow amortized linear growth over
15215# repeated appends, instead of the typical quadratic growth present in naive
15216# implementations.
15217if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15218 eval 'as_fn_append ()
15219 {
15220 eval $1+=\$2
15221 }'
15222else
15223 as_fn_append ()
15224 {
15225 eval $1=\$$1\$2
15226 }
15227fi # as_fn_append
15228
15229# as_fn_arith ARG...
15230# ------------------
15231# Perform arithmetic evaluation on the ARGs, and store the result in the
15232# global $as_val. Take advantage of shells that can avoid forks. The arguments
15233# must be portable across $(()) and expr.
15234if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15235 eval 'as_fn_arith ()
15236 {
15237 as_val=$(( $* ))
15238 }'
15239else
15240 as_fn_arith ()
15241 {
15242 as_val=`expr "$@" || test $? -eq 1`
15243 }
15244fi # as_fn_arith
15245
15246
15247if expr a : '\(a\)' >/dev/null 2>&1 &&
15248 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15249 as_expr=expr
15250else
15251 as_expr=false
15252fi
15253
15254if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15255 as_basename=basename
15256else
15257 as_basename=false
15258fi
15259
15260if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15261 as_dirname=dirname
15262else
15263 as_dirname=false
15264fi
15265
15266as_me=`$as_basename -- "$0" ||
15267$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15268 X"$0" : 'X\(//\)$' \| \
15269 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15270$as_echo X/"$0" |
15271 sed '/^.*\/\([^/][^/]*\)\/*$/{
15272 s//\1/
15273 q
15274 }
15275 /^X\/\(\/\/\)$/{
15276 s//\1/
15277 q
15278 }
15279 /^X\/\(\/\).*/{
15280 s//\1/
15281 q
15282 }
15283 s/.*/./; q'`
15284
15285# Avoid depending upon Character Ranges.
15286as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15287as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15288as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15289as_cr_digits='0123456789'
15290as_cr_alnum=$as_cr_Letters$as_cr_digits
15291
15292ECHO_C= ECHO_N= ECHO_T=
15293case `echo -n x` in #(((((
15294-n*)
15295 case `echo 'xy\c'` in
15296 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15297 xy) ECHO_C='\c';;
15298 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15299 ECHO_T=' ';;
15300 esac;;
15301*)
15302 ECHO_N='-n';;
15303esac
15304
15305rm -f conf$$ conf$$.exe conf$$.file
15306if test -d conf$$.dir; then
15307 rm -f conf$$.dir/conf$$.file
15308else
15309 rm -f conf$$.dir
15310 mkdir conf$$.dir 2>/dev/null
15311fi
15312if (echo >conf$$.file) 2>/dev/null; then
15313 if ln -s conf$$.file conf$$ 2>/dev/null; then
15314 as_ln_s='ln -s'
15315 # ... but there are two gotchas:
15316 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15317 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15318 # In both cases, we have to default to `cp -p'.
15319 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15320 as_ln_s='cp -p'
15321 elif ln conf$$.file conf$$ 2>/dev/null; then
15322 as_ln_s=ln
15323 else
15324 as_ln_s='cp -p'
15325 fi
15326else
15327 as_ln_s='cp -p'
15328fi
15329rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15330rmdir conf$$.dir 2>/dev/null
15331
15332
15333# as_fn_mkdir_p
15334# -------------
15335# Create "$as_dir" as a directory, including parents if necessary.
15336as_fn_mkdir_p ()
15337{
15338
15339 case $as_dir in #(
15340 -*) as_dir=./$as_dir;;
15341 esac
15342 test -d "$as_dir" || eval $as_mkdir_p || {
15343 as_dirs=
15344 while :; do
15345 case $as_dir in #(
15346 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15347 *) as_qdir=$as_dir;;
15348 esac
15349 as_dirs="'$as_qdir' $as_dirs"
15350 as_dir=`$as_dirname -- "$as_dir" ||
15351$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15352 X"$as_dir" : 'X\(//\)[^/]' \| \
15353 X"$as_dir" : 'X\(//\)$' \| \
15354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15355$as_echo X"$as_dir" |
15356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15357 s//\1/
15358 q
15359 }
15360 /^X\(\/\/\)[^/].*/{
15361 s//\1/
15362 q
15363 }
15364 /^X\(\/\/\)$/{
15365 s//\1/
15366 q
15367 }
15368 /^X\(\/\).*/{
15369 s//\1/
15370 q
15371 }
15372 s/.*/./; q'`
15373 test -d "$as_dir" && break
15374 done
15375 test -z "$as_dirs" || eval "mkdir $as_dirs"
15376 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15377
15378
15379} # as_fn_mkdir_p
15380if mkdir -p . 2>/dev/null; then
15381 as_mkdir_p='mkdir -p "$as_dir"'
15382else
15383 test -d ./-p && rmdir ./-p
15384 as_mkdir_p=false
15385fi
15386
15387if test -x / >/dev/null 2>&1; then
15388 as_test_x='test -x'
15389else
15390 if ls -dL / >/dev/null 2>&1; then
15391 as_ls_L_option=L
15392 else
15393 as_ls_L_option=
15394 fi
15395 as_test_x='
15396 eval sh -c '\''
15397 if test -d "$1"; then
15398 test -d "$1/.";
15399 else
15400 case $1 in #(
15401 -*)set "./$1";;
15402 esac;
15403 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15404 ???[sx]*):;;*)false;;esac;fi
15405 '\'' sh
15406 '
15407fi
15408as_executable_p=$as_test_x
15409
15410# Sed expression to map a string onto a valid CPP name.
15411as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15412
15413# Sed expression to map a string onto a valid variable name.
15414as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15415
15416
15417exec 6>&1
15418## ----------------------------------- ##
15419## Main body of $CONFIG_STATUS script. ##
15420## ----------------------------------- ##
15421_ASEOF
15422test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15423
15424cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15425# Save the log message, to keep $0 and so on meaningful, and to
15426# report actual input values of CONFIG_FILES etc. instead of their
15427# values after options handling.
15428ac_log="
15429This file was extended by package-unused $as_me version-unused, which was
15430generated by GNU Autoconf 2.64. Invocation command line was
15431
15432 CONFIG_FILES = $CONFIG_FILES
15433 CONFIG_HEADERS = $CONFIG_HEADERS
15434 CONFIG_LINKS = $CONFIG_LINKS
15435 CONFIG_COMMANDS = $CONFIG_COMMANDS
15436 $ $0 $@
15437
15438on `(hostname || uname -n) 2>/dev/null | sed 1q`
15439"
15440
15441_ACEOF
15442
15443case $ac_config_files in *"
15444"*) set x $ac_config_files; shift; ac_config_files=$*;;
15445esac
15446
15447case $ac_config_headers in *"
15448"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15449esac
15450
15451
15452cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15453# Files that config.status was made for.
15454config_files="$ac_config_files"
15455config_headers="$ac_config_headers"
15456config_commands="$ac_config_commands"
15457
15458_ACEOF
15459
15460cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15461ac_cs_usage="\
15462\`$as_me' instantiates files and other configuration actions
15463from templates according to the current configuration. Unless the files
15464and actions are specified as TAGs, all are instantiated by default.
15465
15466Usage: $0 [OPTION]... [TAG]...
15467
15468 -h, --help print this help, then exit
15469 -V, --version print version number and configuration settings, then exit
15470 -q, --quiet, --silent
15471 do not print progress messages
15472 -d, --debug don't remove temporary files
15473 --recheck update $as_me by reconfiguring in the same conditions
15474 --file=FILE[:TEMPLATE]
15475 instantiate the configuration file FILE
15476 --header=FILE[:TEMPLATE]
15477 instantiate the configuration header FILE
15478
15479Configuration files:
15480$config_files
15481
15482Configuration headers:
15483$config_headers
15484
15485Configuration commands:
15486$config_commands
15487
15488Report bugs to the package provider."
15489
15490_ACEOF
15491cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15492ac_cs_version="\\
15493package-unused config.status version-unused
15494configured by $0, generated by GNU Autoconf 2.64,
15495 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15496
15497Copyright (C) 2009 Free Software Foundation, Inc.
15498This config.status script is free software; the Free Software Foundation
15499gives unlimited permission to copy, distribute and modify it."
15500
15501ac_pwd='$ac_pwd'
15502srcdir='$srcdir'
15503INSTALL='$INSTALL'
15504MKDIR_P='$MKDIR_P'
15505AWK='$AWK'
15506test -n "\$AWK" || AWK=awk
15507_ACEOF
15508
15509cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15510# The default lists apply if the user does not specify any file.
15511ac_need_defaults=:
15512while test $# != 0
15513do
15514 case $1 in
15515 --*=*)
15516 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15517 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15518 ac_shift=:
15519 ;;
15520 *)
15521 ac_option=$1
15522 ac_optarg=$2
15523 ac_shift=shift
15524 ;;
15525 esac
15526
15527 case $ac_option in
15528 # Handling of the options.
15529 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15530 ac_cs_recheck=: ;;
15531 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15532 $as_echo "$ac_cs_version"; exit ;;
15533 --debug | --debu | --deb | --de | --d | -d )
15534 debug=: ;;
15535 --file | --fil | --fi | --f )
15536 $ac_shift
15537 case $ac_optarg in
15538 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15539 esac
15540 as_fn_append CONFIG_FILES " '$ac_optarg'"
15541 ac_need_defaults=false;;
15542 --header | --heade | --head | --hea )
15543 $ac_shift
15544 case $ac_optarg in
15545 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15546 esac
15547 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15548 ac_need_defaults=false;;
15549 --he | --h)
15550 # Conflict between --help and --header
15551 as_fn_error "ambiguous option: \`$1'
15552Try \`$0 --help' for more information.";;
15553 --help | --hel | -h )
15554 $as_echo "$ac_cs_usage"; exit ;;
15555 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15556 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15557 ac_cs_silent=: ;;
15558
15559 # This is an error.
15560 -*) as_fn_error "unrecognized option: \`$1'
15561Try \`$0 --help' for more information." ;;
15562
15563 *) as_fn_append ac_config_targets " $1"
15564 ac_need_defaults=false ;;
15565
15566 esac
15567 shift
15568done
15569
15570ac_configure_extra_args=
15571
15572if $ac_cs_silent; then
15573 exec 6>/dev/null
15574 ac_configure_extra_args="$ac_configure_extra_args --silent"
15575fi
15576
15577_ACEOF
15578cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15579if \$ac_cs_recheck; then
15580 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15581 shift
15582 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15583 CONFIG_SHELL='$SHELL'
15584 export CONFIG_SHELL
15585 exec "\$@"
15586fi
15587
15588_ACEOF
15589cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15590exec 5>>config.log
15591{
15592 echo
15593 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15594## Running $as_me. ##
15595_ASBOX
15596 $as_echo "$ac_log"
15597} >&5
15598
15599_ACEOF
15600cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15601#
15602# INIT-COMMANDS
15603#
15604
15605srcdir="$srcdir"
15606host="$host"
15607target="$target"
15608with_multisubdir="$with_multisubdir"
15609with_multisrctop="$with_multisrctop"
15610with_target_subdir="$with_target_subdir"
15611ac_configure_args="${multilib_arg} ${ac_configure_args}"
15612multi_basedir="$multi_basedir"
15613CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15614CC="$CC"
15615CXX="$CXX"
15616GFORTRAN="$GFORTRAN"
15617GCJ="$GCJ"
15618AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15619
15620
15621# The HP-UX ksh and POSIX shell print the target directory to stdout
15622# if CDPATH is set.
15623(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15624
15625sed_quote_subst='$sed_quote_subst'
15626double_quote_subst='$double_quote_subst'
15627delay_variable_subst='$delay_variable_subst'
15628SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15629Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15630GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15631EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15632FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15633SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15634ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15635LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15636macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15637macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15638enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15639enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15640pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15641enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15642host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15643host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15644host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15645build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15646build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15647build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15648NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15649LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15650max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15651ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15652exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15653lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15654lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15655lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15656reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15657reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15658OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15659deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15660file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15661AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15662AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15663STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15664RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15665old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15666old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15667old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15668lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15669CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15670CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15671compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15672GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15673lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15674lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15675lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15676lt_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"`'
15677objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15678MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15679lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15680lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15681lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15682lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15683lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15684need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15685DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15686NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15687LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15688OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15689OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15690libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15691shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15692extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15693archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15694enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15695export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15696whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15697compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15698old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15699old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15700archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15701archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15702module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15703module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15704with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15705allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15706no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15707hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15708hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15709hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15710hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15711hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15712hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15713hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15714hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15715inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15716link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15717fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15718always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15719export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15720exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15721include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15722prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15723file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15724variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15725need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15726need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15727version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15728runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15729shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15730shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15731libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15732library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15733soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15734install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15735postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15736postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15737finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15738finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15739hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15740sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15741sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15742hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15743enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15744enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15745enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15746old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15747striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15748LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
15749reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
15750reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
15751old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
15752compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
15753GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
15754lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
15755lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
15756lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
15757lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
15758lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
15759archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
15760enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
15761export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15762whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15763compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
15764old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
15765old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
15766archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
15767archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
15768module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
15769module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
15770with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
15771allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
15772no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
15773hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15774hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
15775hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
15776hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
15777hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
15778hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
15779hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
15780hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
15781inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
15782link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
15783fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
15784always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
15785export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
15786exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
15787include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
15788prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
15789file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
15790hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
15791
15792LTCC='$LTCC'
15793LTCFLAGS='$LTCFLAGS'
15794compiler='$compiler_DEFAULT'
15795
15796# A function that is used when there is no print builtin or printf.
15797func_fallback_echo ()
15798{
15799 eval 'cat <<_LTECHO_EOF
15800\$1
15801_LTECHO_EOF'
15802}
15803
15804# Quote evaled strings.
15805for var in SED \
15806GREP \
15807EGREP \
15808FGREP \
15809SHELL \
15810ECHO \
15811LD \
15812NM \
15813LN_S \
15814lt_SP2NL \
15815lt_NL2SP \
15816reload_flag \
15817OBJDUMP \
15818deplibs_check_method \
15819file_magic_cmd \
15820AR \
15821AR_FLAGS \
15822STRIP \
15823RANLIB \
15824CC \
15825CFLAGS \
15826compiler \
15827lt_cv_sys_global_symbol_pipe \
15828lt_cv_sys_global_symbol_to_cdecl \
15829lt_cv_sys_global_symbol_to_c_name_address \
15830lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15831lt_prog_compiler_no_builtin_flag \
15832lt_prog_compiler_wl \
15833lt_prog_compiler_pic \
15834lt_prog_compiler_static \
15835lt_cv_prog_compiler_c_o \
15836need_locks \
15837DSYMUTIL \
15838NMEDIT \
15839LIPO \
15840OTOOL \
15841OTOOL64 \
15842shrext_cmds \
15843export_dynamic_flag_spec \
15844whole_archive_flag_spec \
15845compiler_needs_object \
15846with_gnu_ld \
15847allow_undefined_flag \
15848no_undefined_flag \
15849hardcode_libdir_flag_spec \
15850hardcode_libdir_flag_spec_ld \
15851hardcode_libdir_separator \
15852fix_srcfile_path \
15853exclude_expsyms \
15854include_expsyms \
15855file_list_spec \
15856variables_saved_for_relink \
15857libname_spec \
15858library_names_spec \
15859soname_spec \
15860install_override_mode \
15861finish_eval \
15862old_striplib \
15863striplib \
15864LD_GO \
15865reload_flag_GO \
15866compiler_GO \
15867lt_prog_compiler_no_builtin_flag_GO \
15868lt_prog_compiler_wl_GO \
15869lt_prog_compiler_pic_GO \
15870lt_prog_compiler_static_GO \
15871lt_cv_prog_compiler_c_o_GO \
15872export_dynamic_flag_spec_GO \
15873whole_archive_flag_spec_GO \
15874compiler_needs_object_GO \
15875with_gnu_ld_GO \
15876allow_undefined_flag_GO \
15877no_undefined_flag_GO \
15878hardcode_libdir_flag_spec_GO \
15879hardcode_libdir_flag_spec_ld_GO \
15880hardcode_libdir_separator_GO \
15881fix_srcfile_path_GO \
15882exclude_expsyms_GO \
15883include_expsyms_GO \
15884file_list_spec_GO; do
15885 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15886 *[\\\\\\\`\\"\\\$]*)
15887 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15888 ;;
15889 *)
15890 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15891 ;;
15892 esac
15893done
15894
15895# Double-quote double-evaled strings.
15896for var in reload_cmds \
15897old_postinstall_cmds \
15898old_postuninstall_cmds \
15899old_archive_cmds \
15900extract_expsyms_cmds \
15901old_archive_from_new_cmds \
15902old_archive_from_expsyms_cmds \
15903archive_cmds \
15904archive_expsym_cmds \
15905module_cmds \
15906module_expsym_cmds \
15907export_symbols_cmds \
15908prelink_cmds \
15909postinstall_cmds \
15910postuninstall_cmds \
15911finish_cmds \
15912sys_lib_search_path_spec \
15913sys_lib_dlsearch_path_spec \
15914reload_cmds_GO \
15915old_archive_cmds_GO \
15916old_archive_from_new_cmds_GO \
15917old_archive_from_expsyms_cmds_GO \
15918archive_cmds_GO \
15919archive_expsym_cmds_GO \
15920module_cmds_GO \
15921module_expsym_cmds_GO \
15922export_symbols_cmds_GO \
15923prelink_cmds_GO; do
15924 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15925 *[\\\\\\\`\\"\\\$]*)
15926 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15927 ;;
15928 *)
15929 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15930 ;;
15931 esac
15932done
15933
15934ac_aux_dir='$ac_aux_dir'
15935xsi_shell='$xsi_shell'
15936lt_shell_append='$lt_shell_append'
15937
15938# See if we are running on zsh, and set the options which allow our
15939# commands through without removal of \ escapes INIT.
15940if test -n "\${ZSH_VERSION+set}" ; then
15941 setopt NO_GLOB_SUBST
15942fi
15943
15944
15945 PACKAGE='$PACKAGE'
15946 VERSION='$VERSION'
15947 TIMESTAMP='$TIMESTAMP'
15948 RM='$RM'
15949 ofile='$ofile'
15950
15951
15952
15953
15954
15955
15956# Variables needed in config.status (file generation) which aren't already
15957# passed by autoconf.
15958SUBDIRS="$SUBDIRS"
15959
15960
15961_ACEOF
15962
15963cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15964
15965# Handling of arguments.
15966for ac_config_target in $ac_config_targets
15967do
15968 case $ac_config_target in
15969 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15970 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15971 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15972 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15973 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15974 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15975 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15976
15977 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15978 esac
15979done
15980
15981
15982# If the user did not use the arguments to specify the items to instantiate,
15983# then the envvar interface is used. Set only those that are not.
15984# We use the long form for the default assignment because of an extremely
15985# bizarre bug on SunOS 4.1.3.
15986if $ac_need_defaults; then
15987 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15988 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15989 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15990fi
15991
15992# Have a temporary directory for convenience. Make it in the build tree
15993# simply because there is no reason against having it here, and in addition,
15994# creating and moving files from /tmp can sometimes cause problems.
15995# Hook for its removal unless debugging.
15996# Note that there is a small window in which the directory will not be cleaned:
15997# after its creation but before its name has been assigned to `$tmp'.
15998$debug ||
15999{
16000 tmp=
16001 trap 'exit_status=$?
16002 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16003' 0
16004 trap 'as_fn_exit 1' 1 2 13 15
16005}
16006# Create a (secure) tmp directory for tmp files.
16007
16008{
16009 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16010 test -n "$tmp" && test -d "$tmp"
16011} ||
16012{
16013 tmp=./conf$$-$RANDOM
16014 (umask 077 && mkdir "$tmp")
16015} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16016
16017# Set up the scripts for CONFIG_FILES section.
16018# No need to generate them if there are no CONFIG_FILES.
16019# This happens for instance with `./config.status config.h'.
16020if test -n "$CONFIG_FILES"; then
16021
16022
16023ac_cr=`echo X | tr X '\015'`
16024# On cygwin, bash can eat \r inside `` if the user requested igncr.
16025# But we know of no other shell where ac_cr would be empty at this
16026# point, so we can use a bashism as a fallback.
16027if test "x$ac_cr" = x; then
16028 eval ac_cr=\$\'\\r\'
16029fi
16030ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16031if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16032 ac_cs_awk_cr='\r'
16033else
16034 ac_cs_awk_cr=$ac_cr
16035fi
16036
16037echo 'BEGIN {' >"$tmp/subs1.awk" &&
16038_ACEOF
16039
16040
16041{
16042 echo "cat >conf$$subs.awk <<_ACEOF" &&
16043 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16044 echo "_ACEOF"
16045} >conf$$subs.sh ||
16046 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16047ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16048ac_delim='%!_!# '
16049for ac_last_try in false false false false false :; do
16050 . ./conf$$subs.sh ||
16051 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16052
16053 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16054 if test $ac_delim_n = $ac_delim_num; then
16055 break
16056 elif $ac_last_try; then
16057 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16058 else
16059 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16060 fi
16061done
16062rm -f conf$$subs.sh
16063
16064cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16065cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16066_ACEOF
16067sed -n '
16068h
16069s/^/S["/; s/!.*/"]=/
16070p
16071g
16072s/^[^!]*!//
16073:repl
16074t repl
16075s/'"$ac_delim"'$//
16076t delim
16077:nl
16078h
16079s/\(.\{148\}\).*/\1/
16080t more1
16081s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16082p
16083n
16084b repl
16085:more1
16086s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16087p
16088g
16089s/.\{148\}//
16090t nl
16091:delim
16092h
16093s/\(.\{148\}\).*/\1/
16094t more2
16095s/["\\]/\\&/g; s/^/"/; s/$/"/
16096p
16097b
16098:more2
16099s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16100p
16101g
16102s/.\{148\}//
16103t delim
16104' <conf$$subs.awk | sed '
16105/^[^""]/{
16106 N
16107 s/\n//
16108}
16109' >>$CONFIG_STATUS || ac_write_fail=1
16110rm -f conf$$subs.awk
16111cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16112_ACAWK
16113cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16114 for (key in S) S_is_set[key] = 1
16115 FS = "\a"
16116
16117}
16118{
16119 line = $ 0
16120 nfields = split(line, field, "@")
16121 substed = 0
16122 len = length(field[1])
16123 for (i = 2; i < nfields; i++) {
16124 key = field[i]
16125 keylen = length(key)
16126 if (S_is_set[key]) {
16127 value = S[key]
16128 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16129 len += length(value) + length(field[++i])
16130 substed = 1
16131 } else
16132 len += 1 + keylen
16133 }
16134
16135 print line
16136}
16137
16138_ACAWK
16139_ACEOF
16140cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16141if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16142 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16143else
16144 cat
16145fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16146 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16147_ACEOF
16148
16149# VPATH may cause trouble with some makes, so we remove $(srcdir),
16150# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16151# trailing colons and then remove the whole line if VPATH becomes empty
16152# (actually we leave an empty line to preserve line numbers).
16153if test "x$srcdir" = x.; then
16154 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16155s/:*\$(srcdir):*/:/
16156s/:*\${srcdir}:*/:/
16157s/:*@srcdir@:*/:/
16158s/^\([^=]*=[ ]*\):*/\1/
16159s/:*$//
16160s/^[^=]*=[ ]*$//
16161}'
16162fi
16163
16164cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16165fi # test -n "$CONFIG_FILES"
16166
16167# Set up the scripts for CONFIG_HEADERS section.
16168# No need to generate them if there are no CONFIG_HEADERS.
16169# This happens for instance with `./config.status Makefile'.
16170if test -n "$CONFIG_HEADERS"; then
16171cat >"$tmp/defines.awk" <<\_ACAWK ||
16172BEGIN {
16173_ACEOF
16174
16175# Transform confdefs.h into an awk script `defines.awk', embedded as
16176# here-document in config.status, that substitutes the proper values into
16177# config.h.in to produce config.h.
16178
16179# Create a delimiter string that does not exist in confdefs.h, to ease
16180# handling of long lines.
16181ac_delim='%!_!# '
16182for ac_last_try in false false :; do
16183 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16184 if test -z "$ac_t"; then
16185 break
16186 elif $ac_last_try; then
16187 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16188 else
16189 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16190 fi
16191done
16192
16193# For the awk script, D is an array of macro values keyed by name,
16194# likewise P contains macro parameters if any. Preserve backslash
16195# newline sequences.
16196
16197ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16198sed -n '
16199s/.\{148\}/&'"$ac_delim"'/g
16200t rset
16201:rset
16202s/^[ ]*#[ ]*define[ ][ ]*/ /
16203t def
16204d
16205:def
16206s/\\$//
16207t bsnl
16208s/["\\]/\\&/g
16209s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16210D["\1"]=" \3"/p
16211s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16212d
16213:bsnl
16214s/["\\]/\\&/g
16215s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16216D["\1"]=" \3\\\\\\n"\\/p
16217t cont
16218s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16219t cont
16220d
16221:cont
16222n
16223s/.\{148\}/&'"$ac_delim"'/g
16224t clear
16225:clear
16226s/\\$//
16227t bsnlc
16228s/["\\]/\\&/g; s/^/"/; s/$/"/p
16229d
16230:bsnlc
16231s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16232b cont
16233' <confdefs.h | sed '
16234s/'"$ac_delim"'/"\\\
16235"/g' >>$CONFIG_STATUS || ac_write_fail=1
16236
16237cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16238 for (key in D) D_is_set[key] = 1
16239 FS = "\a"
16240}
16241/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16242 line = \$ 0
16243 split(line, arg, " ")
16244 if (arg[1] == "#") {
16245 defundef = arg[2]
16246 mac1 = arg[3]
16247 } else {
16248 defundef = substr(arg[1], 2)
16249 mac1 = arg[2]
16250 }
16251 split(mac1, mac2, "(") #)
16252 macro = mac2[1]
16253 prefix = substr(line, 1, index(line, defundef) - 1)
16254 if (D_is_set[macro]) {
16255 # Preserve the white space surrounding the "#".
16256 print prefix "define", macro P[macro] D[macro]
16257 next
16258 } else {
16259 # Replace #undef with comments. This is necessary, for example,
16260 # in the case of _POSIX_SOURCE, which is predefined and required
16261 # on some systems where configure will not decide to define it.
16262 if (defundef == "undef") {
16263 print "/*", prefix defundef, macro, "*/"
16264 next
16265 }
16266 }
16267}
16268{ print }
16269_ACAWK
16270_ACEOF
16271cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16272 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16273fi # test -n "$CONFIG_HEADERS"
16274
16275
16276eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16277shift
16278for ac_tag
16279do
16280 case $ac_tag in
16281 :[FHLC]) ac_mode=$ac_tag; continue;;
16282 esac
16283 case $ac_mode$ac_tag in
16284 :[FHL]*:*);;
16285 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16286 :[FH]-) ac_tag=-:-;;
16287 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16288 esac
16289 ac_save_IFS=$IFS
16290 IFS=:
16291 set x $ac_tag
16292 IFS=$ac_save_IFS
16293 shift
16294 ac_file=$1
16295 shift
16296
16297 case $ac_mode in
16298 :L) ac_source=$1;;
16299 :[FH])
16300 ac_file_inputs=
16301 for ac_f
16302 do
16303 case $ac_f in
16304 -) ac_f="$tmp/stdin";;
16305 *) # Look for the file first in the build tree, then in the source tree
16306 # (if the path is not absolute). The absolute path cannot be DOS-style,
16307 # because $ac_f cannot contain `:'.
16308 test -f "$ac_f" ||
16309 case $ac_f in
16310 [\\/$]*) false;;
16311 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16312 esac ||
16313 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16314 esac
16315 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16316 as_fn_append ac_file_inputs " '$ac_f'"
16317 done
16318
16319 # Let's still pretend it is `configure' which instantiates (i.e., don't
16320 # use $as_me), people would be surprised to read:
16321 # /* config.h. Generated by config.status. */
16322 configure_input='Generated from '`
16323 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16324 `' by configure.'
16325 if test x"$ac_file" != x-; then
16326 configure_input="$ac_file. $configure_input"
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16328$as_echo "$as_me: creating $ac_file" >&6;}
16329 fi
16330 # Neutralize special characters interpreted by sed in replacement strings.
16331 case $configure_input in #(
16332 *\&* | *\|* | *\\* )
16333 ac_sed_conf_input=`$as_echo "$configure_input" |
16334 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16335 *) ac_sed_conf_input=$configure_input;;
16336 esac
16337
16338 case $ac_tag in
16339 *:-:* | *:-) cat >"$tmp/stdin" \
16340 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16341 esac
16342 ;;
16343 esac
16344
16345 ac_dir=`$as_dirname -- "$ac_file" ||
16346$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16347 X"$ac_file" : 'X\(//\)[^/]' \| \
16348 X"$ac_file" : 'X\(//\)$' \| \
16349 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16350$as_echo X"$ac_file" |
16351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16352 s//\1/
16353 q
16354 }
16355 /^X\(\/\/\)[^/].*/{
16356 s//\1/
16357 q
16358 }
16359 /^X\(\/\/\)$/{
16360 s//\1/
16361 q
16362 }
16363 /^X\(\/\).*/{
16364 s//\1/
16365 q
16366 }
16367 s/.*/./; q'`
16368 as_dir="$ac_dir"; as_fn_mkdir_p
16369 ac_builddir=.
16370
16371case "$ac_dir" in
16372.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16373*)
16374 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16375 # A ".." for each directory in $ac_dir_suffix.
16376 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16377 case $ac_top_builddir_sub in
16378 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16379 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16380 esac ;;
16381esac
16382ac_abs_top_builddir=$ac_pwd
16383ac_abs_builddir=$ac_pwd$ac_dir_suffix
16384# for backward compatibility:
16385ac_top_builddir=$ac_top_build_prefix
16386
16387case $srcdir in
16388 .) # We are building in place.
16389 ac_srcdir=.
16390 ac_top_srcdir=$ac_top_builddir_sub
16391 ac_abs_top_srcdir=$ac_pwd ;;
16392 [\\/]* | ?:[\\/]* ) # Absolute name.
16393 ac_srcdir=$srcdir$ac_dir_suffix;
16394 ac_top_srcdir=$srcdir
16395 ac_abs_top_srcdir=$srcdir ;;
16396 *) # Relative name.
16397 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16398 ac_top_srcdir=$ac_top_build_prefix$srcdir
16399 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16400esac
16401ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16402
16403
16404 case $ac_mode in
16405 :F)
16406 #
16407 # CONFIG_FILE
16408 #
16409
16410 case $INSTALL in
16411 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16412 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16413 esac
16414 ac_MKDIR_P=$MKDIR_P
16415 case $MKDIR_P in
16416 [\\/$]* | ?:[\\/]* ) ;;
16417 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16418 esac
16419_ACEOF
16420
16421cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16422# If the template does not know about datarootdir, expand it.
16423# FIXME: This hack should be removed a few years after 2.60.
16424ac_datarootdir_hack=; ac_datarootdir_seen=
16425ac_sed_dataroot='
16426/datarootdir/ {
16427 p
16428 q
16429}
16430/@datadir@/p
16431/@docdir@/p
16432/@infodir@/p
16433/@localedir@/p
16434/@mandir@/p'
16435case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16436*datarootdir*) ac_datarootdir_seen=yes;;
16437*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16439$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16440_ACEOF
16441cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16442 ac_datarootdir_hack='
16443 s&@datadir@&$datadir&g
16444 s&@docdir@&$docdir&g
16445 s&@infodir@&$infodir&g
16446 s&@localedir@&$localedir&g
16447 s&@mandir@&$mandir&g
16448 s&\\\${datarootdir}&$datarootdir&g' ;;
16449esac
16450_ACEOF
16451
16452# Neutralize VPATH when `$srcdir' = `.'.
16453# Shell code in configure.ac might set extrasub.
16454# FIXME: do we really want to maintain this feature?
16455cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16456ac_sed_extra="$ac_vpsub
16457$extrasub
16458_ACEOF
16459cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16460:t
16461/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16462s|@configure_input@|$ac_sed_conf_input|;t t
16463s&@top_builddir@&$ac_top_builddir_sub&;t t
16464s&@top_build_prefix@&$ac_top_build_prefix&;t t
16465s&@srcdir@&$ac_srcdir&;t t
16466s&@abs_srcdir@&$ac_abs_srcdir&;t t
16467s&@top_srcdir@&$ac_top_srcdir&;t t
16468s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16469s&@builddir@&$ac_builddir&;t t
16470s&@abs_builddir@&$ac_abs_builddir&;t t
16471s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16472s&@INSTALL@&$ac_INSTALL&;t t
16473s&@MKDIR_P@&$ac_MKDIR_P&;t t
16474$ac_datarootdir_hack
16475"
16476eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16477 || as_fn_error "could not create $ac_file" "$LINENO" 5
16478
16479test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16480 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16481 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16483which seems to be undefined. Please make sure it is defined." >&5
16484$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16485which seems to be undefined. Please make sure it is defined." >&2;}
16486
16487 rm -f "$tmp/stdin"
16488 case $ac_file in
16489 -) cat "$tmp/out" && rm -f "$tmp/out";;
16490 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16491 esac \
16492 || as_fn_error "could not create $ac_file" "$LINENO" 5
16493 ;;
16494 :H)
16495 #
16496 # CONFIG_HEADER
16497 #
16498 if test x"$ac_file" != x-; then
16499 {
16500 $as_echo "/* $configure_input */" \
16501 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16502 } >"$tmp/config.h" \
16503 || as_fn_error "could not create $ac_file" "$LINENO" 5
16504 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16506$as_echo "$as_me: $ac_file is unchanged" >&6;}
16507 else
16508 rm -f "$ac_file"
16509 mv "$tmp/config.h" "$ac_file" \
16510 || as_fn_error "could not create $ac_file" "$LINENO" 5
16511 fi
16512 else
16513 $as_echo "/* $configure_input */" \
16514 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16515 || as_fn_error "could not create -" "$LINENO" 5
16516 fi
16517# Compute "$ac_file"'s index in $config_headers.
16518_am_arg="$ac_file"
16519_am_stamp_count=1
16520for _am_header in $config_headers :; do
16521 case $_am_header in
16522 $_am_arg | $_am_arg:* )
16523 break ;;
16524 * )
16525 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16526 esac
16527done
16528echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16529$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16530 X"$_am_arg" : 'X\(//\)[^/]' \| \
16531 X"$_am_arg" : 'X\(//\)$' \| \
16532 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16533$as_echo X"$_am_arg" |
16534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16535 s//\1/
16536 q
16537 }
16538 /^X\(\/\/\)[^/].*/{
16539 s//\1/
16540 q
16541 }
16542 /^X\(\/\/\)$/{
16543 s//\1/
16544 q
16545 }
16546 /^X\(\/\).*/{
16547 s//\1/
16548 q
16549 }
16550 s/.*/./; q'`/stamp-h$_am_stamp_count
16551 ;;
16552
16553 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16554$as_echo "$as_me: executing $ac_file commands" >&6;}
16555 ;;
16556 esac
16557
16558
16559 case $ac_file$ac_mode in
16560 "default-1":C)
16561# Only add multilib support code if we just rebuilt the top-level
16562# Makefile.
16563case " $CONFIG_FILES " in
16564 *" Makefile "*)
16565 ac_file=Makefile . ${multi_basedir}/config-ml.in
16566 ;;
16567esac ;;
16568 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16569 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16570 # are listed without --file. Let's play safe and only enable the eval
16571 # if we detect the quoting.
16572 case $CONFIG_FILES in
16573 *\'*) eval set x "$CONFIG_FILES" ;;
16574 *) set x $CONFIG_FILES ;;
16575 esac
16576 shift
16577 for mf
16578 do
16579 # Strip MF so we end up with the name of the file.
16580 mf=`echo "$mf" | sed -e 's/:.*$//'`
16581 # Check whether this is an Automake generated Makefile or not.
16582 # We used to match only the files named `Makefile.in', but
16583 # some people rename them; so instead we look at the file content.
16584 # Grep'ing the first line is not enough: some people post-process
16585 # each Makefile.in and add a new line on top of each file to say so.
16586 # Grep'ing the whole file is not good either: AIX grep has a line
16587 # limit of 2048, but all sed's we know have understand at least 4000.
16588 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16589 dirpart=`$as_dirname -- "$mf" ||
16590$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16591 X"$mf" : 'X\(//\)[^/]' \| \
16592 X"$mf" : 'X\(//\)$' \| \
16593 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16594$as_echo X"$mf" |
16595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16596 s//\1/
16597 q
16598 }
16599 /^X\(\/\/\)[^/].*/{
16600 s//\1/
16601 q
16602 }
16603 /^X\(\/\/\)$/{
16604 s//\1/
16605 q
16606 }
16607 /^X\(\/\).*/{
16608 s//\1/
16609 q
16610 }
16611 s/.*/./; q'`
16612 else
16613 continue
16614 fi
16615 # Extract the definition of DEPDIR, am__include, and am__quote
16616 # from the Makefile without running `make'.
16617 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16618 test -z "$DEPDIR" && continue
16619 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16620 test -z "am__include" && continue
16621 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16622 # When using ansi2knr, U may be empty or an underscore; expand it
16623 U=`sed -n 's/^U = //p' < "$mf"`
16624 # Find all dependency output files, they are included files with
16625 # $(DEPDIR) in their names. We invoke sed twice because it is the
16626 # simplest approach to changing $(DEPDIR) to its actual value in the
16627 # expansion.
16628 for file in `sed -n "
16629 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16630 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16631 # Make sure the directory exists.
16632 test -f "$dirpart/$file" && continue
16633 fdir=`$as_dirname -- "$file" ||
16634$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16635 X"$file" : 'X\(//\)[^/]' \| \
16636 X"$file" : 'X\(//\)$' \| \
16637 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16638$as_echo X"$file" |
16639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16640 s//\1/
16641 q
16642 }
16643 /^X\(\/\/\)[^/].*/{
16644 s//\1/
16645 q
16646 }
16647 /^X\(\/\/\)$/{
16648 s//\1/
16649 q
16650 }
16651 /^X\(\/\).*/{
16652 s//\1/
16653 q
16654 }
16655 s/.*/./; q'`
16656 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16657 # echo "creating $dirpart/$file"
16658 echo '# dummy' > "$dirpart/$file"
16659 done
16660 done
16661}
16662 ;;
16663 "libtool":C)
16664
16665 # See if we are running on zsh, and set the options which allow our
16666 # commands through without removal of \ escapes.
16667 if test -n "${ZSH_VERSION+set}" ; then
16668 setopt NO_GLOB_SUBST
16669 fi
16670
16671 cfgfile="${ofile}T"
16672 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16673 $RM "$cfgfile"
16674
16675 cat <<_LT_EOF >> "$cfgfile"
16676#! $SHELL
16677
16678# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16679# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16680# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16681# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16682#
16683# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16684# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16685# Written by Gordon Matzigkeit, 1996
16686#
16687# This file is part of GNU Libtool.
16688#
16689# GNU Libtool is free software; you can redistribute it and/or
16690# modify it under the terms of the GNU General Public License as
16691# published by the Free Software Foundation; either version 2 of
16692# the License, or (at your option) any later version.
16693#
16694# As a special exception to the GNU General Public License,
16695# if you distribute this file as part of a program or library that
16696# is built using GNU Libtool, you may include this file under the
16697# same distribution terms that you use for the rest of that program.
16698#
16699# GNU Libtool is distributed in the hope that it will be useful,
16700# but WITHOUT ANY WARRANTY; without even the implied warranty of
16701# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16702# GNU General Public License for more details.
16703#
16704# You should have received a copy of the GNU General Public License
16705# along with GNU Libtool; see the file COPYING. If not, a copy
16706# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16707# obtained by writing to the Free Software Foundation, Inc.,
16708# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16709
16710
16711# The names of the tagged configurations supported by this script.
16712available_tags="GO "
16713
16714# ### BEGIN LIBTOOL CONFIG
16715
16716# A sed program that does not truncate output.
16717SED=$lt_SED
16718
16719# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16720Xsed="\$SED -e 1s/^X//"
16721
16722# A grep program that handles long lines.
16723GREP=$lt_GREP
16724
16725# An ERE matcher.
16726EGREP=$lt_EGREP
16727
16728# A literal string matcher.
16729FGREP=$lt_FGREP
16730
16731# Shell to use when invoking shell scripts.
16732SHELL=$lt_SHELL
16733
16734# An echo program that protects backslashes.
16735ECHO=$lt_ECHO
16736
16737# Which release of libtool.m4 was used?
16738macro_version=$macro_version
16739macro_revision=$macro_revision
16740
16741# Whether or not to build shared libraries.
16742build_libtool_libs=$enable_shared
16743
16744# Whether or not to build static libraries.
16745build_old_libs=$enable_static
16746
16747# What type of objects to build.
16748pic_mode=$pic_mode
16749
16750# Whether or not to optimize for fast installation.
16751fast_install=$enable_fast_install
16752
16753# The host system.
16754host_alias=$host_alias
16755host=$host
16756host_os=$host_os
16757
16758# The build system.
16759build_alias=$build_alias
16760build=$build
16761build_os=$build_os
16762
16763# A BSD- or MS-compatible name lister.
16764NM=$lt_NM
16765
16766# Whether we need soft or hard links.
16767LN_S=$lt_LN_S
16768
16769# What is the maximum length of a command?
16770max_cmd_len=$max_cmd_len
16771
16772# Object file suffix (normally "o").
16773objext=$ac_objext
16774
16775# Executable file suffix (normally "").
16776exeext=$exeext
16777
16778# whether the shell understands "unset".
16779lt_unset=$lt_unset
16780
16781# turn spaces into newlines.
16782SP2NL=$lt_lt_SP2NL
16783
16784# turn newlines into spaces.
16785NL2SP=$lt_lt_NL2SP
16786
16787# An object symbol dumper.
16788OBJDUMP=$lt_OBJDUMP
16789
16790# Method to check whether dependent libraries are shared objects.
16791deplibs_check_method=$lt_deplibs_check_method
16792
16793# Command to use when deplibs_check_method == "file_magic".
16794file_magic_cmd=$lt_file_magic_cmd
16795
16796# The archiver.
16797AR=$lt_AR
16798AR_FLAGS=$lt_AR_FLAGS
16799
16800# A symbol stripping program.
16801STRIP=$lt_STRIP
16802
16803# Commands used to install an old-style archive.
16804RANLIB=$lt_RANLIB
16805old_postinstall_cmds=$lt_old_postinstall_cmds
16806old_postuninstall_cmds=$lt_old_postuninstall_cmds
16807
16808# Whether to use a lock for old archive extraction.
16809lock_old_archive_extraction=$lock_old_archive_extraction
16810
16811# A C compiler.
16812LTCC=$lt_CC
16813
16814# LTCC compiler flags.
16815LTCFLAGS=$lt_CFLAGS
16816
16817# Take the output of nm and produce a listing of raw symbols and C names.
16818global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16819
16820# Transform the output of nm in a proper C declaration.
16821global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16822
16823# Transform the output of nm in a C name address pair.
16824global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16825
16826# Transform the output of nm in a C name address pair when lib prefix is needed.
16827global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16828
16829# The name of the directory that contains temporary libtool files.
16830objdir=$objdir
16831
16832# Used to examine libraries when file_magic_cmd begins with "file".
16833MAGIC_CMD=$MAGIC_CMD
16834
16835# Must we lock files when doing compilation?
16836need_locks=$lt_need_locks
16837
16838# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16839DSYMUTIL=$lt_DSYMUTIL
16840
16841# Tool to change global to local symbols on Mac OS X.
16842NMEDIT=$lt_NMEDIT
16843
16844# Tool to manipulate fat objects and archives on Mac OS X.
16845LIPO=$lt_LIPO
16846
16847# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16848OTOOL=$lt_OTOOL
16849
16850# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16851OTOOL64=$lt_OTOOL64
16852
16853# Old archive suffix (normally "a").
16854libext=$libext
16855
16856# Shared library suffix (normally ".so").
16857shrext_cmds=$lt_shrext_cmds
16858
16859# The commands to extract the exported symbol list from a shared archive.
16860extract_expsyms_cmds=$lt_extract_expsyms_cmds
16861
16862# Variables whose values should be saved in libtool wrapper scripts and
16863# restored at link time.
16864variables_saved_for_relink=$lt_variables_saved_for_relink
16865
16866# Do we need the "lib" prefix for modules?
16867need_lib_prefix=$need_lib_prefix
16868
16869# Do we need a version for libraries?
16870need_version=$need_version
16871
16872# Library versioning type.
16873version_type=$version_type
16874
16875# Shared library runtime path variable.
16876runpath_var=$runpath_var
16877
16878# Shared library path variable.
16879shlibpath_var=$shlibpath_var
16880
16881# Is shlibpath searched before the hard-coded library search path?
16882shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16883
16884# Format of library name prefix.
16885libname_spec=$lt_libname_spec
16886
16887# List of archive names. First name is the real one, the rest are links.
16888# The last name is the one that the linker finds with -lNAME
16889library_names_spec=$lt_library_names_spec
16890
16891# The coded name of the library, if different from the real name.
16892soname_spec=$lt_soname_spec
16893
16894# Permission mode override for installation of shared libraries.
16895install_override_mode=$lt_install_override_mode
16896
16897# Command to use after installation of a shared archive.
16898postinstall_cmds=$lt_postinstall_cmds
16899
16900# Command to use after uninstallation of a shared archive.
16901postuninstall_cmds=$lt_postuninstall_cmds
16902
16903# Commands used to finish a libtool library installation in a directory.
16904finish_cmds=$lt_finish_cmds
16905
16906# As "finish_cmds", except a single script fragment to be evaled but
16907# not shown.
16908finish_eval=$lt_finish_eval
16909
16910# Whether we should hardcode library paths into libraries.
16911hardcode_into_libs=$hardcode_into_libs
16912
16913# Compile-time system search path for libraries.
16914sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16915
16916# Run-time system search path for libraries.
16917sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16918
16919# Whether dlopen is supported.
16920dlopen_support=$enable_dlopen
16921
16922# Whether dlopen of programs is supported.
16923dlopen_self=$enable_dlopen_self
16924
16925# Whether dlopen of statically linked programs is supported.
16926dlopen_self_static=$enable_dlopen_self_static
16927
16928# Commands to strip libraries.
16929old_striplib=$lt_old_striplib
16930striplib=$lt_striplib
16931
16932
16933# The linker used to build libraries.
16934LD=$lt_LD
16935
16936# How to create reloadable object files.
16937reload_flag=$lt_reload_flag
16938reload_cmds=$lt_reload_cmds
16939
16940# Commands used to build an old-style archive.
16941old_archive_cmds=$lt_old_archive_cmds
16942
16943# A language specific compiler.
16944CC=$lt_compiler
16945
16946# Is the compiler the GNU compiler?
16947with_gcc=$GCC
16948
16949# Compiler flag to turn off builtin functions.
16950no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16951
16952# How to pass a linker flag through the compiler.
16953wl=$lt_lt_prog_compiler_wl
16954
16955# Additional compiler flags for building library objects.
16956pic_flag=$lt_lt_prog_compiler_pic
16957
16958# Compiler flag to prevent dynamic linking.
16959link_static_flag=$lt_lt_prog_compiler_static
16960
16961# Does compiler simultaneously support -c and -o options?
16962compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16963
16964# Whether or not to add -lc for building shared libraries.
16965build_libtool_need_lc=$archive_cmds_need_lc
16966
16967# Whether or not to disallow shared libs when runtime libs are static.
16968allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16969
16970# Compiler flag to allow reflexive dlopens.
16971export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16972
16973# Compiler flag to generate shared objects directly from archives.
16974whole_archive_flag_spec=$lt_whole_archive_flag_spec
16975
16976# Whether the compiler copes with passing no objects directly.
16977compiler_needs_object=$lt_compiler_needs_object
16978
16979# Create an old-style archive from a shared archive.
16980old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16981
16982# Create a temporary old-style archive to link instead of a shared archive.
16983old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16984
16985# Commands used to build a shared archive.
16986archive_cmds=$lt_archive_cmds
16987archive_expsym_cmds=$lt_archive_expsym_cmds
16988
16989# Commands used to build a loadable module if different from building
16990# a shared archive.
16991module_cmds=$lt_module_cmds
16992module_expsym_cmds=$lt_module_expsym_cmds
16993
16994# Whether we are building with GNU ld or not.
16995with_gnu_ld=$lt_with_gnu_ld
16996
16997# Flag that allows shared libraries with undefined symbols to be built.
16998allow_undefined_flag=$lt_allow_undefined_flag
16999
17000# Flag that enforces no undefined symbols.
17001no_undefined_flag=$lt_no_undefined_flag
17002
17003# Flag to hardcode \$libdir into a binary during linking.
17004# This must work even if \$libdir does not exist
17005hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17006
17007# If ld is used when linking, flag to hardcode \$libdir into a binary
17008# during linking. This must work even if \$libdir does not exist.
17009hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17010
17011# Whether we need a single "-rpath" flag with a separated argument.
17012hardcode_libdir_separator=$lt_hardcode_libdir_separator
17013
17014# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17015# DIR into the resulting binary.
17016hardcode_direct=$hardcode_direct
17017
17018# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17019# DIR into the resulting binary and the resulting library dependency is
17020# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17021# library is relocated.
17022hardcode_direct_absolute=$hardcode_direct_absolute
17023
17024# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17025# into the resulting binary.
17026hardcode_minus_L=$hardcode_minus_L
17027
17028# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17029# into the resulting binary.
17030hardcode_shlibpath_var=$hardcode_shlibpath_var
17031
17032# Set to "yes" if building a shared library automatically hardcodes DIR
17033# into the library and all subsequent libraries and executables linked
17034# against it.
17035hardcode_automatic=$hardcode_automatic
17036
17037# Set to yes if linker adds runtime paths of dependent libraries
17038# to runtime path list.
17039inherit_rpath=$inherit_rpath
17040
17041# Whether libtool must link a program against all its dependency libraries.
17042link_all_deplibs=$link_all_deplibs
17043
17044# Fix the shell variable \$srcfile for the compiler.
17045fix_srcfile_path=$lt_fix_srcfile_path
17046
17047# Set to "yes" if exported symbols are required.
17048always_export_symbols=$always_export_symbols
17049
17050# The commands to list exported symbols.
17051export_symbols_cmds=$lt_export_symbols_cmds
17052
17053# Symbols that should not be listed in the preloaded symbols.
17054exclude_expsyms=$lt_exclude_expsyms
17055
17056# Symbols that must always be exported.
17057include_expsyms=$lt_include_expsyms
17058
17059# Commands necessary for linking programs (against libraries) with templates.
17060prelink_cmds=$lt_prelink_cmds
17061
17062# Specify filename containing input files.
17063file_list_spec=$lt_file_list_spec
17064
17065# How to hardcode a shared library path into an executable.
17066hardcode_action=$hardcode_action
17067
17068# ### END LIBTOOL CONFIG
17069
17070_LT_EOF
17071
17072 case $host_os in
17073 aix3*)
17074 cat <<\_LT_EOF >> "$cfgfile"
17075# AIX sometimes has problems with the GCC collect2 program. For some
17076# reason, if we set the COLLECT_NAMES environment variable, the problems
17077# vanish in a puff of smoke.
17078if test "X${COLLECT_NAMES+set}" != Xset; then
17079 COLLECT_NAMES=
17080 export COLLECT_NAMES
17081fi
17082_LT_EOF
17083 ;;
17084 esac
17085
17086
17087ltmain="$ac_aux_dir/ltmain.sh"
17088
17089
17090 # We use sed instead of cat because bash on DJGPP gets confused if
17091 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17092 # text mode, it properly converts lines to CR/LF. This bash problem
17093 # is reportedly fixed, but why not run on old versions too?
17094 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17095 || (rm -f "$cfgfile"; exit 1)
17096
17097 case $xsi_shell in
17098 yes)
17099 cat << \_LT_EOF >> "$cfgfile"
17100
17101# func_dirname file append nondir_replacement
17102# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17103# otherwise set result to NONDIR_REPLACEMENT.
17104func_dirname ()
17105{
17106 case ${1} in
17107 */*) func_dirname_result="${1%/*}${2}" ;;
17108 * ) func_dirname_result="${3}" ;;
17109 esac
17110}
17111
17112# func_basename file
17113func_basename ()
17114{
17115 func_basename_result="${1##*/}"
17116}
17117
17118# func_dirname_and_basename file append nondir_replacement
17119# perform func_basename and func_dirname in a single function
17120# call:
17121# dirname: Compute the dirname of FILE. If nonempty,
17122# add APPEND to the result, otherwise set result
17123# to NONDIR_REPLACEMENT.
17124# value returned in "$func_dirname_result"
17125# basename: Compute filename of FILE.
17126# value retuned in "$func_basename_result"
17127# Implementation must be kept synchronized with func_dirname
17128# and func_basename. For efficiency, we do not delegate to
17129# those functions but instead duplicate the functionality here.
17130func_dirname_and_basename ()
17131{
17132 case ${1} in
17133 */*) func_dirname_result="${1%/*}${2}" ;;
17134 * ) func_dirname_result="${3}" ;;
17135 esac
17136 func_basename_result="${1##*/}"
17137}
17138
17139# func_stripname prefix suffix name
17140# strip PREFIX and SUFFIX off of NAME.
17141# PREFIX and SUFFIX must not contain globbing or regex special
17142# characters, hashes, percent signs, but SUFFIX may contain a leading
17143# dot (in which case that matches only a dot).
17144func_stripname ()
17145{
17146 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17147 # positional parameters, so assign one to ordinary parameter first.
17148 func_stripname_result=${3}
17149 func_stripname_result=${func_stripname_result#"${1}"}
17150 func_stripname_result=${func_stripname_result%"${2}"}
17151}
17152
17153# func_opt_split
17154func_opt_split ()
17155{
17156 func_opt_split_opt=${1%%=*}
17157 func_opt_split_arg=${1#*=}
17158}
17159
17160# func_lo2o object
17161func_lo2o ()
17162{
17163 case ${1} in
17164 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17165 *) func_lo2o_result=${1} ;;
17166 esac
17167}
17168
17169# func_xform libobj-or-source
17170func_xform ()
17171{
17172 func_xform_result=${1%.*}.lo
17173}
17174
17175# func_arith arithmetic-term...
17176func_arith ()
17177{
17178 func_arith_result=$(( $* ))
17179}
17180
17181# func_len string
17182# STRING may not start with a hyphen.
17183func_len ()
17184{
17185 func_len_result=${#1}
17186}
17187
17188_LT_EOF
17189 ;;
17190 *) # Bourne compatible functions.
17191 cat << \_LT_EOF >> "$cfgfile"
17192
17193# func_dirname file append nondir_replacement
17194# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17195# otherwise set result to NONDIR_REPLACEMENT.
17196func_dirname ()
17197{
17198 # Extract subdirectory from the argument.
17199 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17200 if test "X$func_dirname_result" = "X${1}"; then
17201 func_dirname_result="${3}"
17202 else
17203 func_dirname_result="$func_dirname_result${2}"
17204 fi
17205}
17206
17207# func_basename file
17208func_basename ()
17209{
17210 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17211}
17212
17213
17214# func_stripname prefix suffix name
17215# strip PREFIX and SUFFIX off of NAME.
17216# PREFIX and SUFFIX must not contain globbing or regex special
17217# characters, hashes, percent signs, but SUFFIX may contain a leading
17218# dot (in which case that matches only a dot).
17219# func_strip_suffix prefix name
17220func_stripname ()
17221{
17222 case ${2} in
17223 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17224 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17225 esac
17226}
17227
17228# sed scripts:
17229my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17230my_sed_long_arg='1s/^-[^=]*=//'
17231
17232# func_opt_split
17233func_opt_split ()
17234{
17235 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17236 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17237}
17238
17239# func_lo2o object
17240func_lo2o ()
17241{
17242 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17243}
17244
17245# func_xform libobj-or-source
17246func_xform ()
17247{
17248 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17249}
17250
17251# func_arith arithmetic-term...
17252func_arith ()
17253{
17254 func_arith_result=`expr "$@"`
17255}
17256
17257# func_len string
17258# STRING may not start with a hyphen.
17259func_len ()
17260{
17261 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17262}
17263
17264_LT_EOF
17265esac
17266
17267case $lt_shell_append in
17268 yes)
17269 cat << \_LT_EOF >> "$cfgfile"
17270
17271# func_append var value
17272# Append VALUE to the end of shell variable VAR.
17273func_append ()
17274{
17275 eval "$1+=\$2"
17276}
17277_LT_EOF
17278 ;;
17279 *)
17280 cat << \_LT_EOF >> "$cfgfile"
17281
17282# func_append var value
17283# Append VALUE to the end of shell variable VAR.
17284func_append ()
17285{
17286 eval "$1=\$$1\$2"
17287}
17288
17289_LT_EOF
17290 ;;
17291 esac
17292
17293
17294 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17295 || (rm -f "$cfgfile"; exit 1)
17296
17297 mv -f "$cfgfile" "$ofile" ||
17298 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17299 chmod +x "$ofile"
17300
17301
17302 cat <<_LT_EOF >> "$ofile"
17303
17304# ### BEGIN LIBTOOL TAG CONFIG: GO
17305
17306# The linker used to build libraries.
17307LD=$lt_LD_GO
17308
17309# How to create reloadable object files.
17310reload_flag=$lt_reload_flag_GO
17311reload_cmds=$lt_reload_cmds_GO
17312
17313# Commands used to build an old-style archive.
17314old_archive_cmds=$lt_old_archive_cmds_GO
17315
17316# A language specific compiler.
17317CC=$lt_compiler_GO
17318
17319# Is the compiler the GNU compiler?
17320with_gcc=$GCC_GO
17321
17322# Compiler flag to turn off builtin functions.
17323no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
17324
17325# How to pass a linker flag through the compiler.
17326wl=$lt_lt_prog_compiler_wl_GO
17327
17328# Additional compiler flags for building library objects.
17329pic_flag=$lt_lt_prog_compiler_pic_GO
17330
17331# Compiler flag to prevent dynamic linking.
17332link_static_flag=$lt_lt_prog_compiler_static_GO
17333
17334# Does compiler simultaneously support -c and -o options?
17335compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
17336
17337# Whether or not to add -lc for building shared libraries.
17338build_libtool_need_lc=$archive_cmds_need_lc_GO
17339
17340# Whether or not to disallow shared libs when runtime libs are static.
17341allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
17342
17343# Compiler flag to allow reflexive dlopens.
17344export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
17345
17346# Compiler flag to generate shared objects directly from archives.
17347whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
17348
17349# Whether the compiler copes with passing no objects directly.
17350compiler_needs_object=$lt_compiler_needs_object_GO
17351
17352# Create an old-style archive from a shared archive.
17353old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
17354
17355# Create a temporary old-style archive to link instead of a shared archive.
17356old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
17357
17358# Commands used to build a shared archive.
17359archive_cmds=$lt_archive_cmds_GO
17360archive_expsym_cmds=$lt_archive_expsym_cmds_GO
17361
17362# Commands used to build a loadable module if different from building
17363# a shared archive.
17364module_cmds=$lt_module_cmds_GO
17365module_expsym_cmds=$lt_module_expsym_cmds_GO
17366
17367# Whether we are building with GNU ld or not.
17368with_gnu_ld=$lt_with_gnu_ld_GO
17369
17370# Flag that allows shared libraries with undefined symbols to be built.
17371allow_undefined_flag=$lt_allow_undefined_flag_GO
17372
17373# Flag that enforces no undefined symbols.
17374no_undefined_flag=$lt_no_undefined_flag_GO
17375
17376# Flag to hardcode \$libdir into a binary during linking.
17377# This must work even if \$libdir does not exist
17378hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
17379
17380# If ld is used when linking, flag to hardcode \$libdir into a binary
17381# during linking. This must work even if \$libdir does not exist.
17382hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
17383
17384# Whether we need a single "-rpath" flag with a separated argument.
17385hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
17386
17387# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17388# DIR into the resulting binary.
17389hardcode_direct=$hardcode_direct_GO
17390
17391# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17392# DIR into the resulting binary and the resulting library dependency is
17393# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17394# library is relocated.
17395hardcode_direct_absolute=$hardcode_direct_absolute_GO
17396
17397# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17398# into the resulting binary.
17399hardcode_minus_L=$hardcode_minus_L_GO
17400
17401# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17402# into the resulting binary.
17403hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
17404
17405# Set to "yes" if building a shared library automatically hardcodes DIR
17406# into the library and all subsequent libraries and executables linked
17407# against it.
17408hardcode_automatic=$hardcode_automatic_GO
17409
17410# Set to yes if linker adds runtime paths of dependent libraries
17411# to runtime path list.
17412inherit_rpath=$inherit_rpath_GO
17413
17414# Whether libtool must link a program against all its dependency libraries.
17415link_all_deplibs=$link_all_deplibs_GO
17416
17417# Fix the shell variable \$srcfile for the compiler.
17418fix_srcfile_path=$lt_fix_srcfile_path_GO
17419
17420# Set to "yes" if exported symbols are required.
17421always_export_symbols=$always_export_symbols_GO
17422
17423# The commands to list exported symbols.
17424export_symbols_cmds=$lt_export_symbols_cmds_GO
17425
17426# Symbols that should not be listed in the preloaded symbols.
17427exclude_expsyms=$lt_exclude_expsyms_GO
17428
17429# Symbols that must always be exported.
17430include_expsyms=$lt_include_expsyms_GO
17431
17432# Commands necessary for linking programs (against libraries) with templates.
17433prelink_cmds=$lt_prelink_cmds_GO
17434
17435# Specify filename containing input files.
17436file_list_spec=$lt_file_list_spec_GO
17437
17438# How to hardcode a shared library path into an executable.
17439hardcode_action=$hardcode_action_GO
17440
17441# ### END LIBTOOL TAG CONFIG: GO
17442_LT_EOF
17443
17444 ;;
17445 "default":C) if test -n "$CONFIG_FILES"; then
17446 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
17447 # that multilib installs will end up installed in the correct place.
17448 # The testsuite needs it for multilib-aware ABI baseline files.
17449 # To work around this not being passed down from config-ml.in ->
17450 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
17451 # append it here. Only modify Makefiles that have just been created.
17452 #
17453 # Also, get rid of this simulated-VPATH thing that automake does.
17454 cat > vpsed << \_EOF
17455s!`test -f '$<' || echo '$(srcdir)/'`!!
17456_EOF
17457 for i in $SUBDIRS; do
17458 case $CONFIG_FILES in
17459 *${i}/Makefile*)
17460 #echo "Adding MULTISUBDIR to $i/Makefile"
17461 sed -f vpsed $i/Makefile > tmp
17462 grep '^MULTISUBDIR =' Makefile >> tmp
17463 mv tmp $i/Makefile
17464 ;;
17465 esac
17466 done
17467 rm vpsed
17468 fi
17469 ;;
17470
17471 esac
17472done # for ac_tag
17473
17474
17475as_fn_exit 0
17476_ACEOF
17477ac_clean_files=$ac_clean_files_save
17478
17479test $ac_write_fail = 0 ||
17480 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17481
17482
17483# configure is writing to config.log, and then calls config.status.
17484# config.status does its own redirection, appending to config.log.
17485# Unfortunately, on DOS this fails, as config.log is still kept open
17486# by configure, so config.status won't be able to write to it; its
17487# output is simply discarded. So we exec the FD to /dev/null,
17488# effectively closing config.log, so it can be properly (re)opened and
17489# appended to by config.status. When coming back to configure, we
17490# need to make the FD available again.
17491if test "$no_create" != yes; then
17492 ac_cs_success=:
17493 ac_config_status_args=
17494 test "$silent" = yes &&
17495 ac_config_status_args="$ac_config_status_args --quiet"
17496 exec 5>/dev/null
17497 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17498 exec 5>>config.log
17499 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17500 # would make configure fail if this is the last instruction.
17501 $ac_cs_success || as_fn_exit $?
17502fi
17503if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17505$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17506fi
17507