]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgo/configure
xtensa: fix xtensa_fallback_frame_state for call0 ABI
[thirdparty/gcc.git] / libgo / configure
CommitLineData
7a938933
ILT
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64 for package-unused version-unused.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183else
184 as_have_required=no
185fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206fi
207fi
208 done;;
209 esac
210 as_found=false
211done
212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215fi; }
216IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238$0: including any error possibly output before this
239$0: message. Then install a modern shell, or manually run
240$0: the script under such a shell if you do have one."
241 fi
242 exit 1
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260 { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_fn_set_status ()
268{
269 return $1
270} # as_fn_set_status
271
272# as_fn_exit STATUS
273# -----------------
274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275as_fn_exit ()
276{
277 set +e
278 as_fn_set_status $1
279 exit $1
280} # as_fn_exit
281
282# as_fn_mkdir_p
283# -------------
284# Create "$as_dir" as a directory, including parents if necessary.
285as_fn_mkdir_p ()
286{
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304$as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328} # as_fn_mkdir_p
329# as_fn_append VAR VALUE
330# ----------------------
331# Append the text in VALUE to the end of the definition contained in VAR. Take
332# advantage of any shell optimizations that allow amortized linear growth over
333# repeated appends, instead of the typical quadratic growth present in naive
334# implementations.
335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345fi # as_fn_append
346
347# as_fn_arith ARG...
348# ------------------
349# Perform arithmetic evaluation on the ARGs, and store the result in the
350# global $as_val. Take advantage of shells that can avoid forks. The arguments
351# must be portable across $(()) and expr.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362fi # as_fn_arith
363
364
365# as_fn_error ERROR [LINENO LOG_FD]
366# ---------------------------------
367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369# script with status $?, using 1 if that was 0.
370as_fn_error ()
371{
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379} # as_fn_error
380
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384else
385 as_expr=false
386fi
387
388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390else
391 as_basename=false
392fi
393
394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396else
397 as_dirname=false
398fi
399
400as_me=`$as_basename -- "$0" ||
401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404$as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419# Avoid depending upon Character Ranges.
420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423as_cr_digits='0123456789'
424as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456}
457
458ECHO_C= ECHO_N= ECHO_T=
459case `echo -n x` in #(((((
460-n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467*)
468 ECHO_N='-n';;
469esac
470
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477fi
478if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492else
493 as_ln_s='cp -p'
494fi
495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
497
498if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503fi
504
505if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525fi
526as_executable_p=$as_test_x
527
528# Sed expression to map a string onto a valid CPP name.
529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531# Sed expression to map a string onto a valid variable name.
532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537exec 7<&0 </dev/null 6>&1
538
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544#
545# Initializations.
546#
547ac_default_prefix=/usr/local
548ac_clean_files=
549ac_config_libobj_dir=.
550LIBOBJS=
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
555
556# Identity of this package.
557PACKAGE_NAME='package-unused'
558PACKAGE_TARNAME='libgo'
559PACKAGE_VERSION='version-unused'
560PACKAGE_STRING='package-unused version-unused'
561PACKAGE_BUGREPORT=''
562PACKAGE_URL=''
563
564ac_unique_file="Makefile.am"
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
568#ifdef HAVE_SYS_TYPES_H
569# include <sys/types.h>
570#endif
571#ifdef HAVE_SYS_STAT_H
572# include <sys/stat.h>
573#endif
574#ifdef STDC_HEADERS
575# include <stdlib.h>
576# include <stddef.h>
577#else
578# ifdef HAVE_STDLIB_H
579# include <stdlib.h>
580# endif
581#endif
582#ifdef HAVE_STRING_H
583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584# include <memory.h>
585# endif
586# include <string.h>
587#endif
588#ifdef HAVE_STRINGS_H
589# include <strings.h>
590#endif
591#ifdef HAVE_INTTYPES_H
592# include <inttypes.h>
593#endif
594#ifdef HAVE_STDINT_H
595# include <stdint.h>
596#endif
597#ifdef HAVE_UNISTD_H
598# include <unistd.h>
599#endif"
600
601ac_subst_vars='am__EXEEXT_FALSE
602am__EXEEXT_TRUE
603LTLIBOBJS
604LIBOBJS
476013d6
ILT
605HAVE_STAT_TIMESPEC_FALSE
606HAVE_STAT_TIMESPEC_TRUE
207c35fa
ILT
607STRUCT_EPOLL_EVENT_FD_OFFSET
608SIZEOF_STRUCT_EPOLL_EVENT
9d465faf 609MATH_FLAG
7a938933 610STRINGOPS_FLAG
0b3189e7
ILT
611HAVE_WAIT4_FALSE
612HAVE_WAIT4_TRUE
8955c80a
ILT
613HAVE_STRERROR_R_FALSE
614HAVE_STRERROR_R_TRUE
7a938933
ILT
615HAVE_SYS_MMAN_H_FALSE
616HAVE_SYS_MMAN_H_TRUE
6c94a9fa
ILT
617PTHREAD_LIBS
618PTHREAD_CFLAGS
f2ee78b8 619NET_LIBS
505b439a 620MATH_LIBS
4c46b5f0
ILT
621GOC_IS_LLGO_FALSE
622GOC_IS_LLGO_TRUE
7a938933
ILT
623USING_SPLIT_STACK_FALSE
624USING_SPLIT_STACK_TRUE
625SPLIT_STACK
90630d19 626OSCFLAGS
de27caac
ILT
627GO_SYSCALL_OS_ARCH_FILE
628GO_SYSCALL_OS_FILE
629GO_LIBCALL_OS_ARCH_FILE
630GO_LIBCALL_OS_FILE
c3b5b97b 631GOARCH
7a938933
ILT
632LIBGO_IS_X86_64_FALSE
633LIBGO_IS_X86_64_TRUE
545d1aa1
ILT
634LIBGO_IS_SPARC64_FALSE
635LIBGO_IS_SPARC64_TRUE
f2ee78b8
ILT
636LIBGO_IS_SPARC_FALSE
637LIBGO_IS_SPARC_TRUE
1fec5f52
ILT
638LIBGO_IS_S390X_FALSE
639LIBGO_IS_S390X_TRUE
640LIBGO_IS_S390_FALSE
641LIBGO_IS_S390_TRUE
6f7ccafa
ILT
642LIBGO_IS_PPC64LE_FALSE
643LIBGO_IS_PPC64LE_TRUE
ca11cc98
ILT
644LIBGO_IS_PPC64_FALSE
645LIBGO_IS_PPC64_TRUE
646LIBGO_IS_PPC_FALSE
647LIBGO_IS_PPC_TRUE
85a09210
ILT
648LIBGO_IS_MIPSO64_FALSE
649LIBGO_IS_MIPSO64_TRUE
650LIBGO_IS_MIPSN64_FALSE
651LIBGO_IS_MIPSN64_TRUE
652LIBGO_IS_MIPSN32_FALSE
653LIBGO_IS_MIPSN32_TRUE
654LIBGO_IS_MIPSO32_FALSE
655LIBGO_IS_MIPSO32_TRUE
ca11cc98
ILT
656LIBGO_IS_MIPS_FALSE
657LIBGO_IS_MIPS_TRUE
658LIBGO_IS_M68K_FALSE
659LIBGO_IS_M68K_TRUE
71d0d50a
ILT
660LIBGO_IS_ARM64_FALSE
661LIBGO_IS_ARM64_TRUE
f2ee78b8
ILT
662LIBGO_IS_ARM_FALSE
663LIBGO_IS_ARM_TRUE
e59b9171
ILT
664LIBGO_IS_ALPHA_FALSE
665LIBGO_IS_ALPHA_TRUE
7a938933
ILT
666LIBGO_IS_386_FALSE
667LIBGO_IS_386_TRUE
7134cf28 668USE_DEJAGNU
c3b5b97b 669GOOS
f2ee78b8
ILT
670LIBGO_IS_SOLARIS_FALSE
671LIBGO_IS_SOLARIS_TRUE
7a938933
ILT
672LIBGO_IS_RTEMS_FALSE
673LIBGO_IS_RTEMS_TRUE
f038dae6
ILT
674LIBGO_IS_DRAGONFLY_FALSE
675LIBGO_IS_DRAGONFLY_TRUE
4ccad563
ILT
676LIBGO_IS_OPENBSD_FALSE
677LIBGO_IS_OPENBSD_TRUE
df4aa89a
ILT
678LIBGO_IS_NETBSD_FALSE
679LIBGO_IS_NETBSD_TRUE
7a938933
ILT
680LIBGO_IS_LINUX_FALSE
681LIBGO_IS_LINUX_TRUE
654d2ec0
ILT
682LIBGO_IS_IRIX_FALSE
683LIBGO_IS_IRIX_TRUE
7a938933
ILT
684LIBGO_IS_FREEBSD_FALSE
685LIBGO_IS_FREEBSD_TRUE
686LIBGO_IS_DARWIN_FALSE
687LIBGO_IS_DARWIN_TRUE
18c70075 688go_include
9a85ed03 689LIBATOMIC
7a938933
ILT
690LIBFFIINCS
691LIBFFI
317ea7c0 692nover_glibgo_toolexeclibdir
7a938933
ILT
693glibgo_toolexeclibdir
694glibgo_toolexecdir
7a938933
ILT
695WERROR
696WARN_FLAGS
d983a802 697CC_FOR_BUILD
7a938933
ILT
698enable_static
699enable_shared
061793a4 700CPP
7a938933
ILT
701OTOOL64
702OTOOL
703LIPO
704NMEDIT
705DSYMUTIL
706AR
707OBJDUMP
708LN_S
709NM
710ac_ct_DUMPBIN
711DUMPBIN
712LIBTOOL
713OBJCOPY
714RANLIB
715LD
716FGREP
717EGREP
718GREP
061793a4 719SED
7a938933
ILT
720MAINT
721MAINTAINER_MODE_FALSE
722MAINTAINER_MODE_TRUE
723GOCFLAGS
724GOC
725am__fastdepCC_FALSE
726am__fastdepCC_TRUE
727CCDEPMODE
44c925bd 728am__nodep
7a938933
ILT
729AMDEPBACKSLASH
730AMDEP_FALSE
731AMDEP_TRUE
732am__quote
733am__include
734DEPDIR
735OBJEXT
736EXEEXT
737ac_ct_CC
738CPPFLAGS
739LDFLAGS
740CFLAGS
741CC
742am__untar
743am__tar
744AMTAR
745am__leading_dot
746SET_MAKE
747AWK
748mkdir_p
749MKDIR_P
750INSTALL_STRIP_PROGRAM
751STRIP
752install_sh
753MAKEINFO
754AUTOHEADER
755AUTOMAKE
756AUTOCONF
757ACLOCAL
758VERSION
759PACKAGE
760CYGPATH_W
761am__isrc
762INSTALL_DATA
763INSTALL_SCRIPT
764INSTALL_PROGRAM
765target_os
766target_vendor
767target_cpu
768target
769host_os
770host_vendor
771host_cpu
772host
773build_os
774build_vendor
775build_cpu
776build
777multi_basedir
778libtool_VERSION
779target_alias
780host_alias
781build_alias
782LIBS
783ECHO_T
784ECHO_N
785ECHO_C
786DEFS
787mandir
788localedir
789libdir
790psdir
791pdfdir
792dvidir
793htmldir
794infodir
795docdir
796oldincludedir
797includedir
798localstatedir
799sharedstatedir
800sysconfdir
801datadir
802datarootdir
803libexecdir
804sbindir
805bindir
806program_transform_name
807prefix
808exec_prefix
809PACKAGE_URL
810PACKAGE_BUGREPORT
811PACKAGE_STRING
812PACKAGE_VERSION
813PACKAGE_TARNAME
814PACKAGE_NAME
815PATH_SEPARATOR
816SHELL'
817ac_subst_files=''
818ac_user_opts='
819enable_option_checking
820enable_multilib
821enable_dependency_tracking
822enable_maintainer_mode
823with_gnu_ld
824enable_shared
825enable_static
826with_pic
827enable_fast_install
828enable_libtool_lock
0d4668c1 829enable_werror
7a938933
ILT
830enable_version_specific_runtime_libs
831with_libffi
9a85ed03 832with_libatomic
7a938933
ILT
833with_system_libunwind
834'
835 ac_precious_vars='build_alias
836host_alias
837target_alias
838CPP
839CPPFLAGS'
840
841
842# Initialize some variables set by options.
843ac_init_help=
844ac_init_version=false
845ac_unrecognized_opts=
846ac_unrecognized_sep=
847# The variables have the same names as the options, with
848# dashes changed to underlines.
849cache_file=/dev/null
850exec_prefix=NONE
851no_create=
852no_recursion=
853prefix=NONE
854program_prefix=NONE
855program_suffix=NONE
856program_transform_name=s,x,x,
857silent=
858site=
859srcdir=
860verbose=
861x_includes=NONE
862x_libraries=NONE
863
864# Installation directory options.
865# These are left unexpanded so users can "make install exec_prefix=/foo"
866# and all the variables that are supposed to be based on exec_prefix
867# by default will actually change.
868# Use braces instead of parens because sh, perl, etc. also accept them.
869# (The list follows the same order as the GNU Coding Standards.)
870bindir='${exec_prefix}/bin'
871sbindir='${exec_prefix}/sbin'
872libexecdir='${exec_prefix}/libexec'
873datarootdir='${prefix}/share'
874datadir='${datarootdir}'
875sysconfdir='${prefix}/etc'
876sharedstatedir='${prefix}/com'
877localstatedir='${prefix}/var'
878includedir='${prefix}/include'
879oldincludedir='/usr/include'
880docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
881infodir='${datarootdir}/info'
882htmldir='${docdir}'
883dvidir='${docdir}'
884pdfdir='${docdir}'
885psdir='${docdir}'
886libdir='${exec_prefix}/lib'
887localedir='${datarootdir}/locale'
888mandir='${datarootdir}/man'
889
890ac_prev=
891ac_dashdash=
892for ac_option
893do
894 # If the previous option needs an argument, assign it.
895 if test -n "$ac_prev"; then
896 eval $ac_prev=\$ac_option
897 ac_prev=
898 continue
899 fi
900
901 case $ac_option in
902 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
903 *) ac_optarg=yes ;;
904 esac
905
906 # Accept the important Cygnus configure options, so we can diagnose typos.
907
908 case $ac_dashdash$ac_option in
909 --)
910 ac_dashdash=yes ;;
911
912 -bindir | --bindir | --bindi | --bind | --bin | --bi)
913 ac_prev=bindir ;;
914 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
915 bindir=$ac_optarg ;;
916
917 -build | --build | --buil | --bui | --bu)
918 ac_prev=build_alias ;;
919 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
920 build_alias=$ac_optarg ;;
921
922 -cache-file | --cache-file | --cache-fil | --cache-fi \
923 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
924 ac_prev=cache_file ;;
925 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
926 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
927 cache_file=$ac_optarg ;;
928
929 --config-cache | -C)
930 cache_file=config.cache ;;
931
932 -datadir | --datadir | --datadi | --datad)
933 ac_prev=datadir ;;
934 -datadir=* | --datadir=* | --datadi=* | --datad=*)
935 datadir=$ac_optarg ;;
936
937 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
938 | --dataroo | --dataro | --datar)
939 ac_prev=datarootdir ;;
940 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
941 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
942 datarootdir=$ac_optarg ;;
943
944 -disable-* | --disable-*)
945 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948 as_fn_error "invalid feature name: $ac_useropt"
949 ac_useropt_orig=$ac_useropt
950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
952 *"
953"enable_$ac_useropt"
954"*) ;;
955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
956 ac_unrecognized_sep=', ';;
957 esac
958 eval enable_$ac_useropt=no ;;
959
960 -docdir | --docdir | --docdi | --doc | --do)
961 ac_prev=docdir ;;
962 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
963 docdir=$ac_optarg ;;
964
965 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
966 ac_prev=dvidir ;;
967 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
968 dvidir=$ac_optarg ;;
969
970 -enable-* | --enable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974 as_fn_error "invalid feature name: $ac_useropt"
975 ac_useropt_orig=$ac_useropt
976 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
978 *"
979"enable_$ac_useropt"
980"*) ;;
981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
982 ac_unrecognized_sep=', ';;
983 esac
984 eval enable_$ac_useropt=\$ac_optarg ;;
985
986 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
987 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
988 | --exec | --exe | --ex)
989 ac_prev=exec_prefix ;;
990 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
991 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
992 | --exec=* | --exe=* | --ex=*)
993 exec_prefix=$ac_optarg ;;
994
995 -gas | --gas | --ga | --g)
996 # Obsolete; use --with-gas.
997 with_gas=yes ;;
998
999 -help | --help | --hel | --he | -h)
1000 ac_init_help=long ;;
1001 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1002 ac_init_help=recursive ;;
1003 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1004 ac_init_help=short ;;
1005
1006 -host | --host | --hos | --ho)
1007 ac_prev=host_alias ;;
1008 -host=* | --host=* | --hos=* | --ho=*)
1009 host_alias=$ac_optarg ;;
1010
1011 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1012 ac_prev=htmldir ;;
1013 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1014 | --ht=*)
1015 htmldir=$ac_optarg ;;
1016
1017 -includedir | --includedir | --includedi | --included | --include \
1018 | --includ | --inclu | --incl | --inc)
1019 ac_prev=includedir ;;
1020 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1021 | --includ=* | --inclu=* | --incl=* | --inc=*)
1022 includedir=$ac_optarg ;;
1023
1024 -infodir | --infodir | --infodi | --infod | --info | --inf)
1025 ac_prev=infodir ;;
1026 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1027 infodir=$ac_optarg ;;
1028
1029 -libdir | --libdir | --libdi | --libd)
1030 ac_prev=libdir ;;
1031 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1032 libdir=$ac_optarg ;;
1033
1034 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1035 | --libexe | --libex | --libe)
1036 ac_prev=libexecdir ;;
1037 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1038 | --libexe=* | --libex=* | --libe=*)
1039 libexecdir=$ac_optarg ;;
1040
1041 -localedir | --localedir | --localedi | --localed | --locale)
1042 ac_prev=localedir ;;
1043 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1044 localedir=$ac_optarg ;;
1045
1046 -localstatedir | --localstatedir | --localstatedi | --localstated \
1047 | --localstate | --localstat | --localsta | --localst | --locals)
1048 ac_prev=localstatedir ;;
1049 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1050 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1051 localstatedir=$ac_optarg ;;
1052
1053 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1054 ac_prev=mandir ;;
1055 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1056 mandir=$ac_optarg ;;
1057
1058 -nfp | --nfp | --nf)
1059 # Obsolete; use --without-fp.
1060 with_fp=no ;;
1061
1062 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1063 | --no-cr | --no-c | -n)
1064 no_create=yes ;;
1065
1066 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1067 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1068 no_recursion=yes ;;
1069
1070 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1071 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1072 | --oldin | --oldi | --old | --ol | --o)
1073 ac_prev=oldincludedir ;;
1074 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1075 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1076 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1077 oldincludedir=$ac_optarg ;;
1078
1079 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1080 ac_prev=prefix ;;
1081 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1082 prefix=$ac_optarg ;;
1083
1084 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1085 | --program-pre | --program-pr | --program-p)
1086 ac_prev=program_prefix ;;
1087 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1088 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1089 program_prefix=$ac_optarg ;;
1090
1091 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1092 | --program-suf | --program-su | --program-s)
1093 ac_prev=program_suffix ;;
1094 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1095 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1096 program_suffix=$ac_optarg ;;
1097
1098 -program-transform-name | --program-transform-name \
1099 | --program-transform-nam | --program-transform-na \
1100 | --program-transform-n | --program-transform- \
1101 | --program-transform | --program-transfor \
1102 | --program-transfo | --program-transf \
1103 | --program-trans | --program-tran \
1104 | --progr-tra | --program-tr | --program-t)
1105 ac_prev=program_transform_name ;;
1106 -program-transform-name=* | --program-transform-name=* \
1107 | --program-transform-nam=* | --program-transform-na=* \
1108 | --program-transform-n=* | --program-transform-=* \
1109 | --program-transform=* | --program-transfor=* \
1110 | --program-transfo=* | --program-transf=* \
1111 | --program-trans=* | --program-tran=* \
1112 | --progr-tra=* | --program-tr=* | --program-t=*)
1113 program_transform_name=$ac_optarg ;;
1114
1115 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1116 ac_prev=pdfdir ;;
1117 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1118 pdfdir=$ac_optarg ;;
1119
1120 -psdir | --psdir | --psdi | --psd | --ps)
1121 ac_prev=psdir ;;
1122 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1123 psdir=$ac_optarg ;;
1124
1125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1126 | -silent | --silent | --silen | --sile | --sil)
1127 silent=yes ;;
1128
1129 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1130 ac_prev=sbindir ;;
1131 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1132 | --sbi=* | --sb=*)
1133 sbindir=$ac_optarg ;;
1134
1135 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1136 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1137 | --sharedst | --shareds | --shared | --share | --shar \
1138 | --sha | --sh)
1139 ac_prev=sharedstatedir ;;
1140 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1141 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1142 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1143 | --sha=* | --sh=*)
1144 sharedstatedir=$ac_optarg ;;
1145
1146 -site | --site | --sit)
1147 ac_prev=site ;;
1148 -site=* | --site=* | --sit=*)
1149 site=$ac_optarg ;;
1150
1151 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1152 ac_prev=srcdir ;;
1153 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1154 srcdir=$ac_optarg ;;
1155
1156 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1157 | --syscon | --sysco | --sysc | --sys | --sy)
1158 ac_prev=sysconfdir ;;
1159 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1160 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1161 sysconfdir=$ac_optarg ;;
1162
1163 -target | --target | --targe | --targ | --tar | --ta | --t)
1164 ac_prev=target_alias ;;
1165 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1166 target_alias=$ac_optarg ;;
1167
1168 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1169 verbose=yes ;;
1170
1171 -version | --version | --versio | --versi | --vers | -V)
1172 ac_init_version=: ;;
1173
1174 -with-* | --with-*)
1175 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178 as_fn_error "invalid package name: $ac_useropt"
1179 ac_useropt_orig=$ac_useropt
1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1182 *"
1183"with_$ac_useropt"
1184"*) ;;
1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1186 ac_unrecognized_sep=', ';;
1187 esac
1188 eval with_$ac_useropt=\$ac_optarg ;;
1189
1190 -without-* | --without-*)
1191 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194 as_fn_error "invalid package name: $ac_useropt"
1195 ac_useropt_orig=$ac_useropt
1196 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1197 case $ac_user_opts in
1198 *"
1199"with_$ac_useropt"
1200"*) ;;
1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1202 ac_unrecognized_sep=', ';;
1203 esac
1204 eval with_$ac_useropt=no ;;
1205
1206 --x)
1207 # Obsolete; use --with-x.
1208 with_x=yes ;;
1209
1210 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1211 | --x-incl | --x-inc | --x-in | --x-i)
1212 ac_prev=x_includes ;;
1213 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1214 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1215 x_includes=$ac_optarg ;;
1216
1217 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1218 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1219 ac_prev=x_libraries ;;
1220 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1221 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1222 x_libraries=$ac_optarg ;;
1223
1224 -*) as_fn_error "unrecognized option: \`$ac_option'
1225Try \`$0 --help' for more information."
1226 ;;
1227
1228 *=*)
1229 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1230 # Reject names that are not valid shell variable names.
1231 case $ac_envvar in #(
1232 '' | [0-9]* | *[!_$as_cr_alnum]* )
1233 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1234 esac
1235 eval $ac_envvar=\$ac_optarg
1236 export $ac_envvar ;;
1237
1238 *)
1239 # FIXME: should be removed in autoconf 3.0.
1240 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1241 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1243 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1244 ;;
1245
1246 esac
1247done
1248
1249if test -n "$ac_prev"; then
1250 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1251 as_fn_error "missing argument to $ac_option"
1252fi
1253
1254if test -n "$ac_unrecognized_opts"; then
1255 case $enable_option_checking in
1256 no) ;;
1257 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1258 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1259 esac
1260fi
1261
1262# Check all directory arguments for consistency.
1263for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1264 datadir sysconfdir sharedstatedir localstatedir includedir \
1265 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1266 libdir localedir mandir
1267do
1268 eval ac_val=\$$ac_var
1269 # Remove trailing slashes.
1270 case $ac_val in
1271 */ )
1272 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1273 eval $ac_var=\$ac_val;;
1274 esac
1275 # Be sure to have absolute directory names.
1276 case $ac_val in
1277 [\\/$]* | ?:[\\/]* ) continue;;
1278 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1279 esac
1280 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1281done
1282
1283# There might be people who depend on the old broken behavior: `$host'
1284# used to hold the argument of --host etc.
1285# FIXME: To remove some day.
1286build=$build_alias
1287host=$host_alias
1288target=$target_alias
1289
1290# FIXME: To remove some day.
1291if test "x$host_alias" != x; then
1292 if test "x$build_alias" = x; then
1293 cross_compiling=maybe
1294 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1295 If a cross compiler is detected then cross compile mode will be used." >&2
1296 elif test "x$build_alias" != "x$host_alias"; then
1297 cross_compiling=yes
1298 fi
1299fi
1300
1301ac_tool_prefix=
1302test -n "$host_alias" && ac_tool_prefix=$host_alias-
1303
1304test "$silent" = yes && exec 6>/dev/null
1305
1306
1307ac_pwd=`pwd` && test -n "$ac_pwd" &&
1308ac_ls_di=`ls -di .` &&
1309ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1310 as_fn_error "working directory cannot be determined"
1311test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1312 as_fn_error "pwd does not report name of working directory"
1313
1314
1315# Find the source files, if location was not specified.
1316if test -z "$srcdir"; then
1317 ac_srcdir_defaulted=yes
1318 # Try the directory containing this script, then the parent directory.
1319 ac_confdir=`$as_dirname -- "$as_myself" ||
1320$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1321 X"$as_myself" : 'X\(//\)[^/]' \| \
1322 X"$as_myself" : 'X\(//\)$' \| \
1323 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1324$as_echo X"$as_myself" |
1325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1326 s//\1/
1327 q
1328 }
1329 /^X\(\/\/\)[^/].*/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\/\)$/{
1334 s//\1/
1335 q
1336 }
1337 /^X\(\/\).*/{
1338 s//\1/
1339 q
1340 }
1341 s/.*/./; q'`
1342 srcdir=$ac_confdir
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1344 srcdir=..
1345 fi
1346else
1347 ac_srcdir_defaulted=no
1348fi
1349if test ! -r "$srcdir/$ac_unique_file"; then
1350 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1351 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1352fi
1353ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1354ac_abs_confdir=`(
1355 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1356 pwd)`
1357# When building in place, set srcdir=.
1358if test "$ac_abs_confdir" = "$ac_pwd"; then
1359 srcdir=.
1360fi
1361# Remove unnecessary trailing slashes from srcdir.
1362# Double slashes in file names in object file debugging info
1363# mess up M-x gdb in Emacs.
1364case $srcdir in
1365*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1366esac
1367for ac_var in $ac_precious_vars; do
1368 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_env_${ac_var}_value=\$${ac_var}
1370 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1372done
1373
1374#
1375# Report the --help message.
1376#
1377if test "$ac_init_help" = "long"; then
1378 # Omit some internal or obsolete options to make the list less imposing.
1379 # This message is too long to be a string in the A/UX 3.1 sh.
1380 cat <<_ACEOF
1381\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1382
1383Usage: $0 [OPTION]... [VAR=VALUE]...
1384
1385To assign environment variables (e.g., CC, CFLAGS...), specify them as
1386VAR=VALUE. See below for descriptions of some of the useful variables.
1387
1388Defaults for the options are specified in brackets.
1389
1390Configuration:
1391 -h, --help display this help and exit
1392 --help=short display options specific to this package
1393 --help=recursive display the short help of all the included packages
1394 -V, --version display version information and exit
1395 -q, --quiet, --silent do not print \`checking...' messages
1396 --cache-file=FILE cache test results in FILE [disabled]
1397 -C, --config-cache alias for \`--cache-file=config.cache'
1398 -n, --no-create do not create output files
1399 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1400
1401Installation directories:
1402 --prefix=PREFIX install architecture-independent files in PREFIX
1403 [$ac_default_prefix]
1404 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1405 [PREFIX]
1406
1407By default, \`make install' will install all the files in
1408\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1409an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1410for instance \`--prefix=\$HOME'.
1411
1412For better control, use the options below.
1413
1414Fine tuning of the installation directories:
1415 --bindir=DIR user executables [EPREFIX/bin]
1416 --sbindir=DIR system admin executables [EPREFIX/sbin]
1417 --libexecdir=DIR program executables [EPREFIX/libexec]
1418 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1419 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1420 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1421 --libdir=DIR object code libraries [EPREFIX/lib]
1422 --includedir=DIR C header files [PREFIX/include]
1423 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1424 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1425 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1426 --infodir=DIR info documentation [DATAROOTDIR/info]
1427 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1428 --mandir=DIR man documentation [DATAROOTDIR/man]
1429 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1430 --htmldir=DIR html documentation [DOCDIR]
1431 --dvidir=DIR dvi documentation [DOCDIR]
1432 --pdfdir=DIR pdf documentation [DOCDIR]
1433 --psdir=DIR ps documentation [DOCDIR]
1434_ACEOF
1435
1436 cat <<\_ACEOF
1437
1438Program names:
1439 --program-prefix=PREFIX prepend PREFIX to installed program names
1440 --program-suffix=SUFFIX append SUFFIX to installed program names
1441 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1442
1443System types:
1444 --build=BUILD configure for building on BUILD [guessed]
1445 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1446 --target=TARGET configure for building compilers for TARGET [HOST]
1447_ACEOF
1448fi
1449
1450if test -n "$ac_init_help"; then
1451 case $ac_init_help in
1452 short | recursive ) echo "Configuration of package-unused version-unused:";;
1453 esac
1454 cat <<\_ACEOF
1455
1456Optional Features:
1457 --disable-option-checking ignore unrecognized --enable/--with options
1458 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1459 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1460 --enable-multilib build many library versions (default)
1461 --disable-dependency-tracking speeds up one-time build
1462 --enable-dependency-tracking do not reject slow dependency extractors
1463 --enable-maintainer-mode enable make rules and dependencies not useful
1464 (and sometimes confusing) to the casual installer
1465 --enable-shared[=PKGS] build shared libraries [default=yes]
1466 --enable-static[=PKGS] build static libraries [default=yes]
1467 --enable-fast-install[=PKGS]
1468 optimize for fast installation [default=yes]
1469 --disable-libtool-lock avoid locking (might break parallel builds)
0d4668c1 1470 --enable-werror turns on -Werror [default=yes]
7a938933
ILT
1471 --enable-version-specific-runtime-libs
1472 Specify that runtime libraries should be installed
1473 in a compiler-specific directory
1474
1475Optional Packages:
1476 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1477 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1478 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1479 --with-pic try to use only PIC/non-PIC objects [default=use
1480 both]
1481 --without-libffi don't use libffi
9a85ed03 1482 --without-libatomic don't use libatomic
7a938933
ILT
1483 --with-system-libunwind use installed libunwind
1484
1485Some influential environment variables:
1486 CC C compiler command
1487 CFLAGS C compiler flags
1488 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1489 nonstandard directory <lib dir>
1490 LIBS libraries to pass to the linker, e.g. -l<library>
1491 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1492 you have headers in a nonstandard directory <include dir>
1493 GOC Go compiler command
1494 GOCFLAGS Go compiler flags
1495 CPP C preprocessor
1496
1497Use these variables to override the choices made by `configure' or to help
1498it to find libraries and programs with nonstandard names/locations.
1499
1500Report bugs to the package provider.
1501_ACEOF
1502ac_status=$?
1503fi
1504
1505if test "$ac_init_help" = "recursive"; then
1506 # If there are subdirs, report their specific --help.
1507 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1508 test -d "$ac_dir" ||
1509 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1510 continue
1511 ac_builddir=.
1512
1513case "$ac_dir" in
1514.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1515*)
1516 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1517 # A ".." for each directory in $ac_dir_suffix.
1518 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1519 case $ac_top_builddir_sub in
1520 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1522 esac ;;
1523esac
1524ac_abs_top_builddir=$ac_pwd
1525ac_abs_builddir=$ac_pwd$ac_dir_suffix
1526# for backward compatibility:
1527ac_top_builddir=$ac_top_build_prefix
1528
1529case $srcdir in
1530 .) # We are building in place.
1531 ac_srcdir=.
1532 ac_top_srcdir=$ac_top_builddir_sub
1533 ac_abs_top_srcdir=$ac_pwd ;;
1534 [\\/]* | ?:[\\/]* ) # Absolute name.
1535 ac_srcdir=$srcdir$ac_dir_suffix;
1536 ac_top_srcdir=$srcdir
1537 ac_abs_top_srcdir=$srcdir ;;
1538 *) # Relative name.
1539 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1540 ac_top_srcdir=$ac_top_build_prefix$srcdir
1541 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1542esac
1543ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1544
1545 cd "$ac_dir" || { ac_status=$?; continue; }
1546 # Check for guested configure.
1547 if test -f "$ac_srcdir/configure.gnu"; then
1548 echo &&
1549 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1550 elif test -f "$ac_srcdir/configure"; then
1551 echo &&
1552 $SHELL "$ac_srcdir/configure" --help=recursive
1553 else
1554 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1555 fi || ac_status=$?
1556 cd "$ac_pwd" || { ac_status=$?; break; }
1557 done
1558fi
1559
1560test -n "$ac_init_help" && exit $ac_status
1561if $ac_init_version; then
1562 cat <<\_ACEOF
1563package-unused configure version-unused
1564generated by GNU Autoconf 2.64
1565
1566Copyright (C) 2009 Free Software Foundation, Inc.
1567This configure script is free software; the Free Software Foundation
1568gives unlimited permission to copy, distribute and modify it.
1569_ACEOF
1570 exit
1571fi
1572
1573## ------------------------ ##
1574## Autoconf initialization. ##
1575## ------------------------ ##
1576
1577# ac_fn_c_try_compile LINENO
1578# --------------------------
1579# Try to compile conftest.$ac_ext, and return whether this succeeded.
1580ac_fn_c_try_compile ()
1581{
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 rm -f conftest.$ac_objext
1584 if { { ac_try="$ac_compile"
1585case "(($ac_try" in
1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587 *) ac_try_echo=$ac_try;;
1588esac
1589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590$as_echo "$ac_try_echo"; } >&5
1591 (eval "$ac_compile") 2>conftest.err
1592 ac_status=$?
1593 if test -s conftest.err; then
1594 grep -v '^ *+' conftest.err >conftest.er1
1595 cat conftest.er1 >&5
1596 mv -f conftest.er1 conftest.err
1597 fi
1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599 test $ac_status = 0; } && {
1600 test -z "$ac_c_werror_flag" ||
1601 test ! -s conftest.err
1602 } && test -s conftest.$ac_objext; then :
1603 ac_retval=0
1604else
1605 $as_echo "$as_me: failed program was:" >&5
1606sed 's/^/| /' conftest.$ac_ext >&5
1607
1608 ac_retval=1
1609fi
1610 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1611 return $ac_retval
1612
1613} # ac_fn_c_try_compile
1614
061793a4
ILT
1615# ac_fn_c_try_link LINENO
1616# -----------------------
1617# Try to link conftest.$ac_ext, and return whether this succeeded.
1618ac_fn_c_try_link ()
7a938933
ILT
1619{
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
061793a4
ILT
1621 rm -f conftest.$ac_objext conftest$ac_exeext
1622 if { { ac_try="$ac_link"
7a938933
ILT
1623case "(($ac_try" in
1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625 *) ac_try_echo=$ac_try;;
1626esac
1627eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628$as_echo "$ac_try_echo"; } >&5
061793a4 1629 (eval "$ac_link") 2>conftest.err
7a938933
ILT
1630 ac_status=$?
1631 if test -s conftest.err; then
1632 grep -v '^ *+' conftest.err >conftest.er1
1633 cat conftest.er1 >&5
1634 mv -f conftest.er1 conftest.err
1635 fi
1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
061793a4
ILT
1637 test $ac_status = 0; } && {
1638 test -z "$ac_c_werror_flag" ||
7a938933 1639 test ! -s conftest.err
061793a4
ILT
1640 } && test -s conftest$ac_exeext && {
1641 test "$cross_compiling" = yes ||
1642 $as_test_x conftest$ac_exeext
7a938933
ILT
1643 }; then :
1644 ac_retval=0
1645else
1646 $as_echo "$as_me: failed program was:" >&5
1647sed 's/^/| /' conftest.$ac_ext >&5
1648
061793a4 1649 ac_retval=1
7a938933 1650fi
061793a4
ILT
1651 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1652 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1653 # interfere with the next link command; also delete a directory that is
1654 # left behind by Apple's compiler. We do this before executing the actions.
7a938933
ILT
1655 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1656 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1657 return $ac_retval
1658
061793a4 1659} # ac_fn_c_try_link
7a938933
ILT
1660
1661# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1662# -------------------------------------------------------
1663# Tests whether HEADER exists and can be compiled using the include files in
1664# INCLUDES, setting the cache variable VAR accordingly.
1665ac_fn_c_check_header_compile ()
1666{
1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1669$as_echo_n "checking for $2... " >&6; }
1670if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1671 $as_echo_n "(cached) " >&6
1672else
1673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1674/* end confdefs.h. */
1675$4
1676#include <$2>
1677_ACEOF
1678if ac_fn_c_try_compile "$LINENO"; then :
1679 eval "$3=yes"
1680else
1681 eval "$3=no"
1682fi
1683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1684fi
1685eval ac_res=\$$3
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1687$as_echo "$ac_res" >&6; }
1688 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1689
1690} # ac_fn_c_check_header_compile
1691
061793a4
ILT
1692# ac_fn_c_try_cpp LINENO
1693# ----------------------
1694# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1695ac_fn_c_try_cpp ()
7a938933
ILT
1696{
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
061793a4 1698 if { { ac_try="$ac_cpp conftest.$ac_ext"
7a938933
ILT
1699case "(($ac_try" in
1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701 *) ac_try_echo=$ac_try;;
1702esac
1703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704$as_echo "$ac_try_echo"; } >&5
061793a4 1705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
7a938933
ILT
1706 ac_status=$?
1707 if test -s conftest.err; then
1708 grep -v '^ *+' conftest.err >conftest.er1
1709 cat conftest.er1 >&5
1710 mv -f conftest.er1 conftest.err
1711 fi
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
061793a4
ILT
1713 test $ac_status = 0; } >/dev/null && {
1714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7a938933
ILT
1715 test ! -s conftest.err
1716 }; then :
1717 ac_retval=0
1718else
1719 $as_echo "$as_me: failed program was:" >&5
1720sed 's/^/| /' conftest.$ac_ext >&5
1721
061793a4
ILT
1722 ac_retval=1
1723fi
1724 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1725 return $ac_retval
1726
1727} # ac_fn_c_try_cpp
1728
1729# ac_fn_c_try_run LINENO
1730# ----------------------
1731# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1732# that executables *can* be run.
1733ac_fn_c_try_run ()
1734{
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 if { { ac_try="$ac_link"
1737case "(($ac_try" in
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1740esac
1741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742$as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_link") 2>&5
1744 ac_status=$?
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1747 { { case "(($ac_try" in
1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749 *) ac_try_echo=$ac_try;;
1750esac
1751eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752$as_echo "$ac_try_echo"; } >&5
1753 (eval "$ac_try") 2>&5
1754 ac_status=$?
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; }; }; then :
1757 ac_retval=0
1758else
1759 $as_echo "$as_me: program exited with status $ac_status" >&5
1760 $as_echo "$as_me: failed program was:" >&5
1761sed 's/^/| /' conftest.$ac_ext >&5
1762
1763 ac_retval=$ac_status
7a938933
ILT
1764fi
1765 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1766 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1767 return $ac_retval
1768
061793a4 1769} # ac_fn_c_try_run
7a938933
ILT
1770
1771# ac_fn_c_check_func LINENO FUNC VAR
1772# ----------------------------------
1773# Tests whether FUNC exists, setting the cache variable VAR accordingly
1774ac_fn_c_check_func ()
1775{
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778$as_echo_n "checking for $2... " >&6; }
1779if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1780 $as_echo_n "(cached) " >&6
1781else
1782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783/* end confdefs.h. */
1784/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1786#define $2 innocuous_$2
1787
1788/* System header to define __stub macros and hopefully few prototypes,
1789 which can conflict with char $2 (); below.
1790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1791 <limits.h> exists even on freestanding compilers. */
1792
1793#ifdef __STDC__
1794# include <limits.h>
1795#else
1796# include <assert.h>
1797#endif
1798
1799#undef $2
1800
1801/* Override any GCC internal prototype to avoid an error.
1802 Use char because int might match the return type of a GCC
1803 builtin and then its argument prototype would still apply. */
1804#ifdef __cplusplus
1805extern "C"
1806#endif
1807char $2 ();
1808/* The GNU C library defines this for functions which it implements
1809 to always fail with ENOSYS. Some functions are actually named
1810 something starting with __ and the normal name is an alias. */
1811#if defined __stub_$2 || defined __stub___$2
1812choke me
1813#endif
1814
1815int
1816main ()
1817{
1818return $2 ();
1819 ;
1820 return 0;
1821}
1822_ACEOF
1823if ac_fn_c_try_link "$LINENO"; then :
1824 eval "$3=yes"
1825else
1826 eval "$3=no"
1827fi
1828rm -f core conftest.err conftest.$ac_objext \
1829 conftest$ac_exeext conftest.$ac_ext
1830fi
1831eval ac_res=\$$3
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833$as_echo "$ac_res" >&6; }
1834 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1835
1836} # ac_fn_c_check_func
1837
1838# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1839# -------------------------------------------------------
1840# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1841# the include files in INCLUDES and setting the cache variable VAR
1842# accordingly.
1843ac_fn_c_check_header_mongrel ()
1844{
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848$as_echo_n "checking for $2... " >&6; }
1849if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1850 $as_echo_n "(cached) " >&6
1851fi
1852eval ac_res=\$$3
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854$as_echo "$ac_res" >&6; }
1855else
1856 # Is the header compilable?
1857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1858$as_echo_n "checking $2 usability... " >&6; }
1859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1860/* end confdefs.h. */
1861$4
1862#include <$2>
1863_ACEOF
1864if ac_fn_c_try_compile "$LINENO"; then :
1865 ac_header_compiler=yes
1866else
1867 ac_header_compiler=no
1868fi
1869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1871$as_echo "$ac_header_compiler" >&6; }
1872
1873# Is the header present?
1874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1875$as_echo_n "checking $2 presence... " >&6; }
1876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877/* end confdefs.h. */
1878#include <$2>
1879_ACEOF
1880if ac_fn_c_try_cpp "$LINENO"; then :
1881 ac_header_preproc=yes
1882else
1883 ac_header_preproc=no
1884fi
1885rm -f conftest.err conftest.$ac_ext
1886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1887$as_echo "$ac_header_preproc" >&6; }
1888
1889# So? What about this header?
1890case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1891 yes:no: )
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1893$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1895$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1896 ;;
1897 no:yes:* )
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1899$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1901$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1903$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1905$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1907$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1908 ;;
1909esac
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1911$as_echo_n "checking for $2... " >&6; }
1912if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1913 $as_echo_n "(cached) " >&6
1914else
1915 eval "$3=\$ac_header_compiler"
1916fi
1917eval ac_res=\$$3
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919$as_echo "$ac_res" >&6; }
1920fi
1921 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1922
1923} # ac_fn_c_check_header_mongrel
1924
1925# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1926# -------------------------------------------
1927# Tests whether TYPE exists after having included INCLUDES, setting cache
1928# variable VAR accordingly.
1929ac_fn_c_check_type ()
1930{
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1933$as_echo_n "checking for $2... " >&6; }
1934if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1935 $as_echo_n "(cached) " >&6
1936else
1937 eval "$3=no"
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939/* end confdefs.h. */
1940$4
1941int
1942main ()
1943{
1944if (sizeof ($2))
1945 return 0;
1946 ;
1947 return 0;
1948}
1949_ACEOF
1950if ac_fn_c_try_compile "$LINENO"; then :
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952/* end confdefs.h. */
1953$4
1954int
1955main ()
1956{
1957if (sizeof (($2)))
1958 return 0;
1959 ;
1960 return 0;
1961}
1962_ACEOF
1963if ac_fn_c_try_compile "$LINENO"; then :
1964
1965else
1966 eval "$3=yes"
1967fi
1968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1969fi
1970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1971fi
1972eval ac_res=\$$3
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1974$as_echo "$ac_res" >&6; }
1975 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1976
1977} # ac_fn_c_check_type
207c35fa
ILT
1978
1979# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1980# --------------------------------------------
1981# Tries to find the compile-time value of EXPR in a program that includes
1982# INCLUDES, setting VAR accordingly. Returns whether the value could be
1983# computed
1984ac_fn_c_compute_int ()
1985{
1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987 if test "$cross_compiling" = yes; then
1988 # Depending upon the size, compute the lo and hi bounds.
1989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990/* end confdefs.h. */
1991$4
1992int
1993main ()
1994{
1995static int test_array [1 - 2 * !(($2) >= 0)];
1996test_array [0] = 0
1997
1998 ;
1999 return 0;
2000}
2001_ACEOF
2002if ac_fn_c_try_compile "$LINENO"; then :
2003 ac_lo=0 ac_mid=0
2004 while :; do
2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006/* end confdefs.h. */
2007$4
2008int
2009main ()
2010{
2011static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2012test_array [0] = 0
2013
2014 ;
2015 return 0;
2016}
2017_ACEOF
2018if ac_fn_c_try_compile "$LINENO"; then :
2019 ac_hi=$ac_mid; break
2020else
2021 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2022 if test $ac_lo -le $ac_mid; then
2023 ac_lo= ac_hi=
2024 break
2025 fi
2026 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2027fi
2028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2029 done
2030else
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032/* end confdefs.h. */
2033$4
2034int
2035main ()
2036{
2037static int test_array [1 - 2 * !(($2) < 0)];
2038test_array [0] = 0
2039
2040 ;
2041 return 0;
2042}
2043_ACEOF
2044if ac_fn_c_try_compile "$LINENO"; then :
2045 ac_hi=-1 ac_mid=-1
2046 while :; do
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048/* end confdefs.h. */
2049$4
2050int
2051main ()
2052{
2053static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2054test_array [0] = 0
2055
2056 ;
2057 return 0;
2058}
2059_ACEOF
2060if ac_fn_c_try_compile "$LINENO"; then :
2061 ac_lo=$ac_mid; break
2062else
2063 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2064 if test $ac_mid -le $ac_hi; then
2065 ac_lo= ac_hi=
2066 break
2067 fi
2068 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2069fi
2070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071 done
2072else
2073 ac_lo= ac_hi=
2074fi
2075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2076fi
2077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2078# Binary search between lo and hi bounds.
2079while test "x$ac_lo" != "x$ac_hi"; do
2080 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082/* end confdefs.h. */
2083$4
2084int
2085main ()
2086{
2087static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2088test_array [0] = 0
2089
2090 ;
2091 return 0;
2092}
2093_ACEOF
2094if ac_fn_c_try_compile "$LINENO"; then :
2095 ac_hi=$ac_mid
2096else
2097 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2098fi
2099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100done
2101case $ac_lo in #((
2102?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2103'') ac_retval=1 ;;
2104esac
2105 else
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107/* end confdefs.h. */
2108$4
2109static long int longval () { return $2; }
2110static unsigned long int ulongval () { return $2; }
2111#include <stdio.h>
2112#include <stdlib.h>
2113int
2114main ()
2115{
2116
2117 FILE *f = fopen ("conftest.val", "w");
2118 if (! f)
2119 return 1;
2120 if (($2) < 0)
2121 {
2122 long int i = longval ();
2123 if (i != ($2))
2124 return 1;
2125 fprintf (f, "%ld", i);
2126 }
2127 else
2128 {
2129 unsigned long int i = ulongval ();
2130 if (i != ($2))
2131 return 1;
2132 fprintf (f, "%lu", i);
2133 }
2134 /* Do not output a trailing newline, as this causes \r\n confusion
2135 on some platforms. */
2136 return ferror (f) || fclose (f) != 0;
2137
2138 ;
2139 return 0;
2140}
2141_ACEOF
2142if ac_fn_c_try_run "$LINENO"; then :
2143 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2144else
2145 ac_retval=1
2146fi
2147rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2148 conftest.$ac_objext conftest.beam conftest.$ac_ext
2149rm -f conftest.val
2150
2151 fi
2152 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2153 return $ac_retval
2154
2155} # ac_fn_c_compute_int
7a938933
ILT
2156cat >config.log <<_ACEOF
2157This file contains any messages produced by compilers while
2158running configure, to aid debugging if configure makes a mistake.
2159
2160It was created by package-unused $as_me version-unused, which was
2161generated by GNU Autoconf 2.64. Invocation command line was
2162
2163 $ $0 $@
2164
2165_ACEOF
2166exec 5>>config.log
2167{
2168cat <<_ASUNAME
2169## --------- ##
2170## Platform. ##
2171## --------- ##
2172
2173hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2174uname -m = `(uname -m) 2>/dev/null || echo unknown`
2175uname -r = `(uname -r) 2>/dev/null || echo unknown`
2176uname -s = `(uname -s) 2>/dev/null || echo unknown`
2177uname -v = `(uname -v) 2>/dev/null || echo unknown`
2178
2179/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2180/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2181
2182/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2183/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2184/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2185/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2186/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2187/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2188/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2189
2190_ASUNAME
2191
2192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193for as_dir in $PATH
2194do
2195 IFS=$as_save_IFS
2196 test -z "$as_dir" && as_dir=.
2197 $as_echo "PATH: $as_dir"
2198 done
2199IFS=$as_save_IFS
2200
2201} >&5
2202
2203cat >&5 <<_ACEOF
2204
2205
2206## ----------- ##
2207## Core tests. ##
2208## ----------- ##
2209
2210_ACEOF
2211
2212
2213# Keep a trace of the command line.
2214# Strip out --no-create and --no-recursion so they do not pile up.
2215# Strip out --silent because we don't want to record it for future runs.
2216# Also quote any args containing shell meta-characters.
2217# Make two passes to allow for proper duplicate-argument suppression.
2218ac_configure_args=
2219ac_configure_args0=
2220ac_configure_args1=
2221ac_must_keep_next=false
2222for ac_pass in 1 2
2223do
2224 for ac_arg
2225 do
2226 case $ac_arg in
2227 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2228 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2229 | -silent | --silent | --silen | --sile | --sil)
2230 continue ;;
2231 *\'*)
2232 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2233 esac
2234 case $ac_pass in
2235 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2236 2)
2237 as_fn_append ac_configure_args1 " '$ac_arg'"
2238 if test $ac_must_keep_next = true; then
2239 ac_must_keep_next=false # Got value, back to normal.
2240 else
2241 case $ac_arg in
2242 *=* | --config-cache | -C | -disable-* | --disable-* \
2243 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2244 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2245 | -with-* | --with-* | -without-* | --without-* | --x)
2246 case "$ac_configure_args0 " in
2247 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2248 esac
2249 ;;
2250 -* ) ac_must_keep_next=true ;;
2251 esac
2252 fi
2253 as_fn_append ac_configure_args " '$ac_arg'"
2254 ;;
2255 esac
2256 done
2257done
2258{ ac_configure_args0=; unset ac_configure_args0;}
2259{ ac_configure_args1=; unset ac_configure_args1;}
2260
2261# When interrupted or exit'd, cleanup temporary files, and complete
2262# config.log. We remove comments because anyway the quotes in there
2263# would cause problems or look ugly.
2264# WARNING: Use '\'' to represent an apostrophe within the trap.
2265# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2266trap 'exit_status=$?
2267 # Save into config.log some information that might help in debugging.
2268 {
2269 echo
2270
2271 cat <<\_ASBOX
2272## ---------------- ##
2273## Cache variables. ##
2274## ---------------- ##
2275_ASBOX
2276 echo
2277 # The following way of writing the cache mishandles newlines in values,
2278(
2279 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2280 eval ac_val=\$$ac_var
2281 case $ac_val in #(
2282 *${as_nl}*)
2283 case $ac_var in #(
2284 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2285$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2286 esac
2287 case $ac_var in #(
2288 _ | IFS | as_nl) ;; #(
2289 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2290 *) { eval $ac_var=; unset $ac_var;} ;;
2291 esac ;;
2292 esac
2293 done
2294 (set) 2>&1 |
2295 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2296 *${as_nl}ac_space=\ *)
2297 sed -n \
2298 "s/'\''/'\''\\\\'\'''\''/g;
2299 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2300 ;; #(
2301 *)
2302 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2303 ;;
2304 esac |
2305 sort
2306)
2307 echo
2308
2309 cat <<\_ASBOX
2310## ----------------- ##
2311## Output variables. ##
2312## ----------------- ##
2313_ASBOX
2314 echo
2315 for ac_var in $ac_subst_vars
2316 do
2317 eval ac_val=\$$ac_var
2318 case $ac_val in
2319 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2320 esac
2321 $as_echo "$ac_var='\''$ac_val'\''"
2322 done | sort
2323 echo
2324
2325 if test -n "$ac_subst_files"; then
2326 cat <<\_ASBOX
2327## ------------------- ##
2328## File substitutions. ##
2329## ------------------- ##
2330_ASBOX
2331 echo
2332 for ac_var in $ac_subst_files
2333 do
2334 eval ac_val=\$$ac_var
2335 case $ac_val in
2336 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2337 esac
2338 $as_echo "$ac_var='\''$ac_val'\''"
2339 done | sort
2340 echo
2341 fi
2342
2343 if test -s confdefs.h; then
2344 cat <<\_ASBOX
2345## ----------- ##
2346## confdefs.h. ##
2347## ----------- ##
2348_ASBOX
2349 echo
2350 cat confdefs.h
2351 echo
2352 fi
2353 test "$ac_signal" != 0 &&
2354 $as_echo "$as_me: caught signal $ac_signal"
2355 $as_echo "$as_me: exit $exit_status"
2356 } >&5
2357 rm -f core *.core core.conftest.* &&
2358 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2359 exit $exit_status
2360' 0
2361for ac_signal in 1 2 13 15; do
2362 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2363done
2364ac_signal=0
2365
2366# confdefs.h avoids OS command line length limits that DEFS can exceed.
2367rm -f -r conftest* confdefs.h
2368
2369$as_echo "/* confdefs.h */" > confdefs.h
2370
2371# Predefined preprocessor variables.
2372
2373cat >>confdefs.h <<_ACEOF
2374#define PACKAGE_NAME "$PACKAGE_NAME"
2375_ACEOF
2376
2377cat >>confdefs.h <<_ACEOF
2378#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2379_ACEOF
2380
2381cat >>confdefs.h <<_ACEOF
2382#define PACKAGE_VERSION "$PACKAGE_VERSION"
2383_ACEOF
2384
2385cat >>confdefs.h <<_ACEOF
2386#define PACKAGE_STRING "$PACKAGE_STRING"
2387_ACEOF
2388
2389cat >>confdefs.h <<_ACEOF
2390#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2391_ACEOF
2392
2393cat >>confdefs.h <<_ACEOF
2394#define PACKAGE_URL "$PACKAGE_URL"
2395_ACEOF
2396
2397
2398# Let the site file select an alternate cache file if it wants to.
2399# Prefer an explicitly selected file to automatically selected ones.
2400ac_site_file1=NONE
2401ac_site_file2=NONE
2402if test -n "$CONFIG_SITE"; then
2403 ac_site_file1=$CONFIG_SITE
2404elif test "x$prefix" != xNONE; then
2405 ac_site_file1=$prefix/share/config.site
2406 ac_site_file2=$prefix/etc/config.site
2407else
2408 ac_site_file1=$ac_default_prefix/share/config.site
2409 ac_site_file2=$ac_default_prefix/etc/config.site
2410fi
2411for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2412do
2413 test "x$ac_site_file" = xNONE && continue
2414 if test -r "$ac_site_file"; then
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2416$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2417 sed 's/^/| /' "$ac_site_file" >&5
2418 . "$ac_site_file"
2419 fi
2420done
2421
2422if test -r "$cache_file"; then
2423 # Some versions of bash will fail to source /dev/null (special
2424 # files actually), so we avoid doing that.
2425 if test -f "$cache_file"; then
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2427$as_echo "$as_me: loading cache $cache_file" >&6;}
2428 case $cache_file in
2429 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2430 *) . "./$cache_file";;
2431 esac
2432 fi
2433else
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2435$as_echo "$as_me: creating cache $cache_file" >&6;}
2436 >$cache_file
2437fi
2438
2439# Check that the precious variables saved in the cache have kept the same
2440# value.
2441ac_cache_corrupted=false
2442for ac_var in $ac_precious_vars; do
2443 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2444 eval ac_new_set=\$ac_env_${ac_var}_set
2445 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2446 eval ac_new_val=\$ac_env_${ac_var}_value
2447 case $ac_old_set,$ac_new_set in
2448 set,)
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2450$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2451 ac_cache_corrupted=: ;;
2452 ,set)
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2454$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2455 ac_cache_corrupted=: ;;
2456 ,);;
2457 *)
2458 if test "x$ac_old_val" != "x$ac_new_val"; then
2459 # differences in whitespace do not lead to failure.
2460 ac_old_val_w=`echo x $ac_old_val`
2461 ac_new_val_w=`echo x $ac_new_val`
2462 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2464$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2465 ac_cache_corrupted=:
2466 else
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2468$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2469 eval $ac_var=\$ac_old_val
2470 fi
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2472$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2474$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2475 fi;;
2476 esac
2477 # Pass precious variables to config.status.
2478 if test "$ac_new_set" = set; then
2479 case $ac_new_val in
2480 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2481 *) ac_arg=$ac_var=$ac_new_val ;;
2482 esac
2483 case " $ac_configure_args " in
2484 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2485 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2486 esac
2487 fi
2488done
2489if $ac_cache_corrupted; then
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2491$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2493$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2494 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2495fi
2496## -------------------- ##
2497## Main body of script. ##
2498## -------------------- ##
2499
2500ac_ext=c
2501ac_cpp='$CPP $CPPFLAGS'
2502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2504ac_compiler_gnu=$ac_cv_c_compiler_gnu
2505
2506
2507
2508
2509
2510
2511ac_config_headers="$ac_config_headers config.h"
2512
2513
d5d9c650 2514libtool_VERSION=7:0:0
7a938933
ILT
2515
2516
2517# Default to --enable-multilib
2518# Check whether --enable-multilib was given.
2519if test "${enable_multilib+set}" = set; then :
2520 enableval=$enable_multilib; case "$enableval" in
2521 yes) multilib=yes ;;
2522 no) multilib=no ;;
2523 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2524 esac
2525else
2526 multilib=yes
2527fi
2528
2529
2530# We may get other options which we leave undocumented:
2531# --with-target-subdir, --with-multisrctop, --with-multisubdir
2532# See config-ml.in if you want the gory details.
2533
2534if test "$srcdir" = "."; then
2535 if test "$with_target_subdir" != "."; then
2536 multi_basedir="$srcdir/$with_multisrctop../.."
2537 else
2538 multi_basedir="$srcdir/$with_multisrctop.."
2539 fi
2540else
2541 multi_basedir="$srcdir/.."
2542fi
2543
2544
2545# Even if the default multilib is not a cross compilation,
2546# it may be that some of the other multilibs are.
2547if test $cross_compiling = no && test $multilib = yes \
2548 && test "x${with_multisubdir}" != x ; then
2549 cross_compiling=maybe
2550fi
2551
2552ac_config_commands="$ac_config_commands default-1"
2553
2554
2555ac_aux_dir=
2556for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2557 for ac_t in install-sh install.sh shtool; do
2558 if test -f "$ac_dir/$ac_t"; then
2559 ac_aux_dir=$ac_dir
2560 ac_install_sh="$ac_aux_dir/$ac_t -c"
2561 break 2
2562 fi
2563 done
2564done
2565if test -z "$ac_aux_dir"; then
2566 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2567fi
2568
2569# These three variables are undocumented and unsupported,
2570# and are intended to be withdrawn in a future Autoconf release.
2571# They can cause serious problems if a builder's source tree is in a directory
2572# whose full name contains unusual characters.
2573ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2574ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2575ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2576
2577
2578# Make sure we can run config.sub.
2579$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2580 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2581
2582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2583$as_echo_n "checking build system type... " >&6; }
2584if test "${ac_cv_build+set}" = set; then :
2585 $as_echo_n "(cached) " >&6
2586else
2587 ac_build_alias=$build_alias
2588test "x$ac_build_alias" = x &&
2589 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2590test "x$ac_build_alias" = x &&
2591 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2592ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2593 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2594
2595fi
2596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2597$as_echo "$ac_cv_build" >&6; }
2598case $ac_cv_build in
2599*-*-*) ;;
2600*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2601esac
2602build=$ac_cv_build
2603ac_save_IFS=$IFS; IFS='-'
2604set x $ac_cv_build
2605shift
2606build_cpu=$1
2607build_vendor=$2
2608shift; shift
2609# Remember, the first character of IFS is used to create $*,
2610# except with old shells:
2611build_os=$*
2612IFS=$ac_save_IFS
2613case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2614
2615
2616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2617$as_echo_n "checking host system type... " >&6; }
2618if test "${ac_cv_host+set}" = set; then :
2619 $as_echo_n "(cached) " >&6
2620else
2621 if test "x$host_alias" = x; then
2622 ac_cv_host=$ac_cv_build
2623else
2624 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2625 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2626fi
2627
2628fi
2629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2630$as_echo "$ac_cv_host" >&6; }
2631case $ac_cv_host in
2632*-*-*) ;;
2633*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2634esac
2635host=$ac_cv_host
2636ac_save_IFS=$IFS; IFS='-'
2637set x $ac_cv_host
2638shift
2639host_cpu=$1
2640host_vendor=$2
2641shift; shift
2642# Remember, the first character of IFS is used to create $*,
2643# except with old shells:
2644host_os=$*
2645IFS=$ac_save_IFS
2646case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2647
2648
2649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2650$as_echo_n "checking target system type... " >&6; }
2651if test "${ac_cv_target+set}" = set; then :
2652 $as_echo_n "(cached) " >&6
2653else
2654 if test "x$target_alias" = x; then
2655 ac_cv_target=$ac_cv_host
2656else
2657 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2658 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2659fi
2660
2661fi
2662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2663$as_echo "$ac_cv_target" >&6; }
2664case $ac_cv_target in
2665*-*-*) ;;
2666*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2667esac
2668target=$ac_cv_target
2669ac_save_IFS=$IFS; IFS='-'
2670set x $ac_cv_target
2671shift
2672target_cpu=$1
2673target_vendor=$2
2674shift; shift
2675# Remember, the first character of IFS is used to create $*,
2676# except with old shells:
2677target_os=$*
2678IFS=$ac_save_IFS
2679case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2680
2681
2682# The aliases save the names the user supplied, while $host etc.
2683# will get canonicalized.
2684test -n "$target_alias" &&
2685 test "$program_prefix$program_suffix$program_transform_name" = \
2686 NONENONEs,x,x, &&
2687 program_prefix=${target_alias}-
2688
2689target_alias=${target_alias-$host_alias}
2690
2691am__api_version='1.11'
2692
2693# Find a good install program. We prefer a C program (faster),
2694# so one script is as good as another. But avoid the broken or
2695# incompatible versions:
2696# SysV /etc/install, /usr/sbin/install
2697# SunOS /usr/etc/install
2698# IRIX /sbin/install
2699# AIX /bin/install
2700# AmigaOS /C/install, which installs bootblocks on floppy discs
2701# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2702# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2703# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2704# OS/2's system install, which has a completely different semantic
2705# ./install, which can be erroneously created by make from ./install.sh.
2706# Reject install programs that cannot install multiple files.
2707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2708$as_echo_n "checking for a BSD-compatible install... " >&6; }
2709if test -z "$INSTALL"; then
2710if test "${ac_cv_path_install+set}" = set; then :
2711 $as_echo_n "(cached) " >&6
2712else
2713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714for as_dir in $PATH
2715do
2716 IFS=$as_save_IFS
2717 test -z "$as_dir" && as_dir=.
2718 # Account for people who put trailing slashes in PATH elements.
2719case $as_dir/ in #((
2720 ./ | .// | /[cC]/* | \
2721 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2722 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2723 /usr/ucb/* ) ;;
2724 *)
2725 # OSF1 and SCO ODT 3.0 have their own names for install.
2726 # Don't use installbsd from OSF since it installs stuff as root
2727 # by default.
2728 for ac_prog in ginstall scoinst install; do
2729 for ac_exec_ext in '' $ac_executable_extensions; do
2730 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2731 if test $ac_prog = install &&
2732 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2733 # AIX install. It has an incompatible calling convention.
2734 :
2735 elif test $ac_prog = install &&
2736 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2737 # program-specific install script used by HP pwplus--don't use.
2738 :
2739 else
2740 rm -rf conftest.one conftest.two conftest.dir
2741 echo one > conftest.one
2742 echo two > conftest.two
2743 mkdir conftest.dir
2744 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2745 test -s conftest.one && test -s conftest.two &&
2746 test -s conftest.dir/conftest.one &&
2747 test -s conftest.dir/conftest.two
2748 then
2749 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2750 break 3
2751 fi
2752 fi
2753 fi
2754 done
2755 done
2756 ;;
2757esac
2758
2759 done
2760IFS=$as_save_IFS
2761
2762rm -rf conftest.one conftest.two conftest.dir
2763
2764fi
2765 if test "${ac_cv_path_install+set}" = set; then
2766 INSTALL=$ac_cv_path_install
2767 else
2768 # As a last resort, use the slow shell script. Don't cache a
2769 # value for INSTALL within a source directory, because that will
2770 # break other packages using the cache if that directory is
2771 # removed, or if the value is a relative name.
2772 INSTALL=$ac_install_sh
2773 fi
2774fi
2775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2776$as_echo "$INSTALL" >&6; }
2777
2778# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2779# It thinks the first close brace ends the variable substitution.
2780test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2781
2782test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2783
2784test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2785
2786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2787$as_echo_n "checking whether build environment is sane... " >&6; }
2788# Just in case
2789sleep 1
2790echo timestamp > conftest.file
2791# Reject unsafe characters in $srcdir or the absolute working directory
2792# name. Accept space and tab only in the latter.
2793am_lf='
2794'
2795case `pwd` in
2796 *[\\\"\#\$\&\'\`$am_lf]*)
2797 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2798esac
2799case $srcdir in
2800 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2801 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2802esac
2803
2804# Do `set' in a subshell so we don't clobber the current shell's
2805# arguments. Must try -L first in case configure is actually a
2806# symlink; some systems play weird games with the mod time of symlinks
2807# (eg FreeBSD returns the mod time of the symlink's containing
2808# directory).
2809if (
2810 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2811 if test "$*" = "X"; then
2812 # -L didn't work.
2813 set X `ls -t "$srcdir/configure" conftest.file`
2814 fi
2815 rm -f conftest.file
2816 if test "$*" != "X $srcdir/configure conftest.file" \
2817 && test "$*" != "X conftest.file $srcdir/configure"; then
2818
2819 # If neither matched, then we have a broken ls. This can happen
2820 # if, for instance, CONFIG_SHELL is bash and it inherits a
2821 # broken ls alias from the environment. This has actually
2822 # happened. Such a system could not be considered "sane".
2823 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2824alias in your environment" "$LINENO" 5
2825 fi
2826
2827 test "$2" = conftest.file
2828 )
2829then
2830 # Ok.
2831 :
2832else
2833 as_fn_error "newly created file is older than distributed files!
2834Check your system clock" "$LINENO" 5
2835fi
2836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2837$as_echo "yes" >&6; }
2838test "$program_prefix" != NONE &&
2839 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2840# Use a double $ so make ignores it.
2841test "$program_suffix" != NONE &&
2842 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2843# Double any \ or $.
2844# By default was `s,x,x', remove it if useless.
2845ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2846program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2847
2848# expand $ac_aux_dir to an absolute path
2849am_aux_dir=`cd $ac_aux_dir && pwd`
2850
2851if test x"${MISSING+set}" != xset; then
2852 case $am_aux_dir in
2853 *\ * | *\ *)
2854 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2855 *)
2856 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2857 esac
2858fi
2859# Use eval to expand $SHELL
2860if eval "$MISSING --run true"; then
2861 am_missing_run="$MISSING --run "
2862else
2863 am_missing_run=
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2865$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2866fi
2867
2868if test x"${install_sh}" != xset; then
2869 case $am_aux_dir in
2870 *\ * | *\ *)
2871 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2872 *)
2873 install_sh="\${SHELL} $am_aux_dir/install-sh"
2874 esac
2875fi
2876
2877# Installed binaries are usually stripped using `strip' when the user
2878# run `make install-strip'. However `strip' might not be the right
2879# tool to use in cross-compilation environments, therefore Automake
2880# will honor the `STRIP' environment variable to overrule this program.
2881if test "$cross_compiling" != no; then
2882 if test -n "$ac_tool_prefix"; then
2883 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2884set dummy ${ac_tool_prefix}strip; ac_word=$2
2885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2886$as_echo_n "checking for $ac_word... " >&6; }
2887if test "${ac_cv_prog_STRIP+set}" = set; then :
2888 $as_echo_n "(cached) " >&6
2889else
2890 if test -n "$STRIP"; then
2891 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2892else
2893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894for as_dir in $PATH
2895do
2896 IFS=$as_save_IFS
2897 test -z "$as_dir" && as_dir=.
2898 for ac_exec_ext in '' $ac_executable_extensions; do
2899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2900 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2902 break 2
2903 fi
2904done
2905 done
2906IFS=$as_save_IFS
2907
2908fi
2909fi
2910STRIP=$ac_cv_prog_STRIP
2911if test -n "$STRIP"; then
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2913$as_echo "$STRIP" >&6; }
2914else
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2916$as_echo "no" >&6; }
2917fi
2918
2919
2920fi
2921if test -z "$ac_cv_prog_STRIP"; then
2922 ac_ct_STRIP=$STRIP
2923 # Extract the first word of "strip", so it can be a program name with args.
2924set dummy strip; ac_word=$2
2925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2926$as_echo_n "checking for $ac_word... " >&6; }
2927if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2928 $as_echo_n "(cached) " >&6
2929else
2930 if test -n "$ac_ct_STRIP"; then
2931 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2932else
2933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934for as_dir in $PATH
2935do
2936 IFS=$as_save_IFS
2937 test -z "$as_dir" && as_dir=.
2938 for ac_exec_ext in '' $ac_executable_extensions; do
2939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2940 ac_cv_prog_ac_ct_STRIP="strip"
2941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2942 break 2
2943 fi
2944done
2945 done
2946IFS=$as_save_IFS
2947
2948fi
2949fi
2950ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2951if test -n "$ac_ct_STRIP"; then
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2953$as_echo "$ac_ct_STRIP" >&6; }
2954else
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956$as_echo "no" >&6; }
2957fi
2958
2959 if test "x$ac_ct_STRIP" = x; then
2960 STRIP=":"
2961 else
2962 case $cross_compiling:$ac_tool_warned in
2963yes:)
2964{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2965$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2966ac_tool_warned=yes ;;
2967esac
2968 STRIP=$ac_ct_STRIP
2969 fi
2970else
2971 STRIP="$ac_cv_prog_STRIP"
2972fi
2973
2974fi
2975INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2976
2977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2978$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2979if test -z "$MKDIR_P"; then
2980 if test "${ac_cv_path_mkdir+set}" = set; then :
2981 $as_echo_n "(cached) " >&6
2982else
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2985do
2986 IFS=$as_save_IFS
2987 test -z "$as_dir" && as_dir=.
2988 for ac_prog in mkdir gmkdir; do
2989 for ac_exec_ext in '' $ac_executable_extensions; do
2990 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2991 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2992 'mkdir (GNU coreutils) '* | \
2993 'mkdir (coreutils) '* | \
2994 'mkdir (fileutils) '4.1*)
2995 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2996 break 3;;
2997 esac
2998 done
2999 done
3000 done
3001IFS=$as_save_IFS
3002
3003fi
3004
3005 if test "${ac_cv_path_mkdir+set}" = set; then
3006 MKDIR_P="$ac_cv_path_mkdir -p"
3007 else
3008 # As a last resort, use the slow shell script. Don't cache a
3009 # value for MKDIR_P within a source directory, because that will
3010 # break other packages using the cache if that directory is
3011 # removed, or if the value is a relative name.
3012 test -d ./--version && rmdir ./--version
3013 MKDIR_P="$ac_install_sh -d"
3014 fi
3015fi
3016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3017$as_echo "$MKDIR_P" >&6; }
3018
3019mkdir_p="$MKDIR_P"
3020case $mkdir_p in
3021 [\\/$]* | ?:[\\/]*) ;;
3022 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3023esac
3024
3025for ac_prog in gawk mawk nawk awk
3026do
3027 # Extract the first word of "$ac_prog", so it can be a program name with args.
3028set dummy $ac_prog; ac_word=$2
3029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3030$as_echo_n "checking for $ac_word... " >&6; }
3031if test "${ac_cv_prog_AWK+set}" = set; then :
3032 $as_echo_n "(cached) " >&6
3033else
3034 if test -n "$AWK"; then
3035 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3036else
3037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038for as_dir in $PATH
3039do
3040 IFS=$as_save_IFS
3041 test -z "$as_dir" && as_dir=.
3042 for ac_exec_ext in '' $ac_executable_extensions; do
3043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3044 ac_cv_prog_AWK="$ac_prog"
3045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3046 break 2
3047 fi
3048done
3049 done
3050IFS=$as_save_IFS
3051
3052fi
3053fi
3054AWK=$ac_cv_prog_AWK
3055if test -n "$AWK"; then
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3057$as_echo "$AWK" >&6; }
3058else
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3060$as_echo "no" >&6; }
3061fi
3062
3063
3064 test -n "$AWK" && break
3065done
3066
3067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3068$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3069set x ${MAKE-make}
3070ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3071if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3072 $as_echo_n "(cached) " >&6
3073else
3074 cat >conftest.make <<\_ACEOF
3075SHELL = /bin/sh
3076all:
3077 @echo '@@@%%%=$(MAKE)=@@@%%%'
3078_ACEOF
3079# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3080case `${MAKE-make} -f conftest.make 2>/dev/null` in
3081 *@@@%%%=?*=@@@%%%*)
3082 eval ac_cv_prog_make_${ac_make}_set=yes;;
3083 *)
3084 eval ac_cv_prog_make_${ac_make}_set=no;;
3085esac
3086rm -f conftest.make
3087fi
3088if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3090$as_echo "yes" >&6; }
3091 SET_MAKE=
3092else
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094$as_echo "no" >&6; }
3095 SET_MAKE="MAKE=${MAKE-make}"
3096fi
3097
3098rm -rf .tst 2>/dev/null
3099mkdir .tst 2>/dev/null
3100if test -d .tst; then
3101 am__leading_dot=.
3102else
3103 am__leading_dot=_
3104fi
3105rmdir .tst 2>/dev/null
3106
3107if test "`cd $srcdir && pwd`" != "`pwd`"; then
3108 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3109 # is not polluted with repeated "-I."
3110 am__isrc=' -I$(srcdir)'
3111 # test to see if srcdir already configured
3112 if test -f $srcdir/config.status; then
3113 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3114 fi
3115fi
3116
3117# test whether we have cygpath
3118if test -z "$CYGPATH_W"; then
3119 if (cygpath --version) >/dev/null 2>/dev/null; then
3120 CYGPATH_W='cygpath -w'
3121 else
3122 CYGPATH_W=echo
3123 fi
3124fi
3125
3126
3127# Define the identity of the package.
3128 PACKAGE='libgo'
3129 VERSION='version-unused'
3130
3131
3132# Some tools Automake needs.
3133
3134ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3135
3136
3137AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3138
3139
3140AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3141
3142
3143AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3144
3145
3146MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3147
3148# We need awk for the "check" target. The system "awk" is bad on
3149# some platforms.
44c925bd
ILT
3150# Always define AMTAR for backward compatibility. Yes, it's still used
3151# in the wild :-( We should find a proper way to deprecate it ...
3152AMTAR='$${TAR-tar}'
7a938933 3153
44c925bd 3154am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
7a938933
ILT
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165ac_ext=c
3166ac_cpp='$CPP $CPPFLAGS'
3167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3169ac_compiler_gnu=$ac_cv_c_compiler_gnu
3170if test -n "$ac_tool_prefix"; then
3171 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3172set dummy ${ac_tool_prefix}gcc; ac_word=$2
3173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174$as_echo_n "checking for $ac_word... " >&6; }
3175if test "${ac_cv_prog_CC+set}" = set; then :
3176 $as_echo_n "(cached) " >&6
3177else
3178 if test -n "$CC"; then
3179 ac_cv_prog_CC="$CC" # Let the user override the test.
3180else
3181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182for as_dir in $PATH
3183do
3184 IFS=$as_save_IFS
3185 test -z "$as_dir" && as_dir=.
3186 for ac_exec_ext in '' $ac_executable_extensions; do
3187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3188 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3190 break 2
3191 fi
3192done
3193 done
3194IFS=$as_save_IFS
3195
3196fi
3197fi
3198CC=$ac_cv_prog_CC
3199if test -n "$CC"; then
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3201$as_echo "$CC" >&6; }
3202else
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204$as_echo "no" >&6; }
3205fi
3206
3207
3208fi
3209if test -z "$ac_cv_prog_CC"; then
3210 ac_ct_CC=$CC
3211 # Extract the first word of "gcc", so it can be a program name with args.
3212set dummy gcc; ac_word=$2
3213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3214$as_echo_n "checking for $ac_word... " >&6; }
3215if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3216 $as_echo_n "(cached) " >&6
3217else
3218 if test -n "$ac_ct_CC"; then
3219 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3220else
3221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222for as_dir in $PATH
3223do
3224 IFS=$as_save_IFS
3225 test -z "$as_dir" && as_dir=.
3226 for ac_exec_ext in '' $ac_executable_extensions; do
3227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3228 ac_cv_prog_ac_ct_CC="gcc"
3229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3230 break 2
3231 fi
3232done
3233 done
3234IFS=$as_save_IFS
3235
3236fi
3237fi
3238ac_ct_CC=$ac_cv_prog_ac_ct_CC
3239if test -n "$ac_ct_CC"; then
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3241$as_echo "$ac_ct_CC" >&6; }
3242else
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244$as_echo "no" >&6; }
3245fi
3246
3247 if test "x$ac_ct_CC" = x; then
3248 CC=""
3249 else
3250 case $cross_compiling:$ac_tool_warned in
3251yes:)
3252{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3253$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3254ac_tool_warned=yes ;;
3255esac
3256 CC=$ac_ct_CC
3257 fi
3258else
3259 CC="$ac_cv_prog_CC"
3260fi
3261
3262if test -z "$CC"; then
3263 if test -n "$ac_tool_prefix"; then
3264 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3265set dummy ${ac_tool_prefix}cc; ac_word=$2
3266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3267$as_echo_n "checking for $ac_word... " >&6; }
3268if test "${ac_cv_prog_CC+set}" = set; then :
3269 $as_echo_n "(cached) " >&6
3270else
3271 if test -n "$CC"; then
3272 ac_cv_prog_CC="$CC" # Let the user override the test.
3273else
3274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275for as_dir in $PATH
3276do
3277 IFS=$as_save_IFS
3278 test -z "$as_dir" && as_dir=.
3279 for ac_exec_ext in '' $ac_executable_extensions; do
3280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3281 ac_cv_prog_CC="${ac_tool_prefix}cc"
3282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3283 break 2
3284 fi
3285done
3286 done
3287IFS=$as_save_IFS
3288
3289fi
3290fi
3291CC=$ac_cv_prog_CC
3292if test -n "$CC"; then
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3294$as_echo "$CC" >&6; }
3295else
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297$as_echo "no" >&6; }
3298fi
3299
3300
3301 fi
3302fi
3303if test -z "$CC"; then
3304 # Extract the first word of "cc", so it can be a program name with args.
3305set dummy cc; ac_word=$2
3306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3307$as_echo_n "checking for $ac_word... " >&6; }
3308if test "${ac_cv_prog_CC+set}" = set; then :
3309 $as_echo_n "(cached) " >&6
3310else
3311 if test -n "$CC"; then
3312 ac_cv_prog_CC="$CC" # Let the user override the test.
3313else
3314 ac_prog_rejected=no
3315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3316for as_dir in $PATH
3317do
3318 IFS=$as_save_IFS
3319 test -z "$as_dir" && as_dir=.
3320 for ac_exec_ext in '' $ac_executable_extensions; do
3321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3322 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3323 ac_prog_rejected=yes
3324 continue
3325 fi
3326 ac_cv_prog_CC="cc"
3327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3328 break 2
3329 fi
3330done
3331 done
3332IFS=$as_save_IFS
3333
3334if test $ac_prog_rejected = yes; then
3335 # We found a bogon in the path, so make sure we never use it.
3336 set dummy $ac_cv_prog_CC
3337 shift
3338 if test $# != 0; then
3339 # We chose a different compiler from the bogus one.
3340 # However, it has the same basename, so the bogon will be chosen
3341 # first if we set CC to just the basename; use the full file name.
3342 shift
3343 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3344 fi
3345fi
3346fi
3347fi
3348CC=$ac_cv_prog_CC
3349if test -n "$CC"; then
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3351$as_echo "$CC" >&6; }
3352else
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3354$as_echo "no" >&6; }
3355fi
3356
3357
3358fi
3359if test -z "$CC"; then
3360 if test -n "$ac_tool_prefix"; then
3361 for ac_prog in cl.exe
3362 do
3363 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3364set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3366$as_echo_n "checking for $ac_word... " >&6; }
3367if test "${ac_cv_prog_CC+set}" = set; then :
3368 $as_echo_n "(cached) " >&6
3369else
3370 if test -n "$CC"; then
3371 ac_cv_prog_CC="$CC" # Let the user override the test.
3372else
3373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374for as_dir in $PATH
3375do
3376 IFS=$as_save_IFS
3377 test -z "$as_dir" && as_dir=.
3378 for ac_exec_ext in '' $ac_executable_extensions; do
3379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3380 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3382 break 2
3383 fi
3384done
3385 done
3386IFS=$as_save_IFS
3387
3388fi
3389fi
3390CC=$ac_cv_prog_CC
3391if test -n "$CC"; then
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3393$as_echo "$CC" >&6; }
3394else
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3396$as_echo "no" >&6; }
3397fi
3398
3399
3400 test -n "$CC" && break
3401 done
3402fi
3403if test -z "$CC"; then
3404 ac_ct_CC=$CC
3405 for ac_prog in cl.exe
3406do
3407 # Extract the first word of "$ac_prog", so it can be a program name with args.
3408set dummy $ac_prog; ac_word=$2
3409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3410$as_echo_n "checking for $ac_word... " >&6; }
3411if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3412 $as_echo_n "(cached) " >&6
3413else
3414 if test -n "$ac_ct_CC"; then
3415 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3416else
3417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418for as_dir in $PATH
3419do
3420 IFS=$as_save_IFS
3421 test -z "$as_dir" && as_dir=.
3422 for ac_exec_ext in '' $ac_executable_extensions; do
3423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3424 ac_cv_prog_ac_ct_CC="$ac_prog"
3425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3426 break 2
3427 fi
3428done
3429 done
3430IFS=$as_save_IFS
3431
3432fi
3433fi
3434ac_ct_CC=$ac_cv_prog_ac_ct_CC
3435if test -n "$ac_ct_CC"; then
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3437$as_echo "$ac_ct_CC" >&6; }
3438else
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3440$as_echo "no" >&6; }
3441fi
3442
3443
3444 test -n "$ac_ct_CC" && break
3445done
3446
3447 if test "x$ac_ct_CC" = x; then
3448 CC=""
3449 else
3450 case $cross_compiling:$ac_tool_warned in
3451yes:)
3452{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3453$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3454ac_tool_warned=yes ;;
3455esac
3456 CC=$ac_ct_CC
3457 fi
3458fi
3459
3460fi
3461
3462
3463test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3464$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3465as_fn_error "no acceptable C compiler found in \$PATH
3466See \`config.log' for more details." "$LINENO" 5; }
3467
3468# Provide some information about the compiler.
3469$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3470set X $ac_compile
3471ac_compiler=$2
3472for ac_option in --version -v -V -qversion; do
3473 { { ac_try="$ac_compiler $ac_option >&5"
3474case "(($ac_try" in
3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3477esac
3478eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3479$as_echo "$ac_try_echo"; } >&5
3480 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3481 ac_status=$?
3482 if test -s conftest.err; then
3483 sed '10a\
3484... rest of stderr output deleted ...
3485 10q' conftest.err >conftest.er1
3486 cat conftest.er1 >&5
3487 rm -f conftest.er1 conftest.err
3488 fi
3489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3490 test $ac_status = 0; }
3491done
3492
3493cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494/* end confdefs.h. */
3495
3496int
3497main ()
3498{
3499
3500 ;
3501 return 0;
3502}
3503_ACEOF
3504ac_clean_files_save=$ac_clean_files
3505ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3506# Try to create an executable without -o first, disregard a.out.
3507# It will help us diagnose broken compilers, and finding out an intuition
3508# of exeext.
3509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3510$as_echo_n "checking for C compiler default output file name... " >&6; }
3511ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3512
3513# The possible output files:
3514ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3515
3516ac_rmfiles=
3517for ac_file in $ac_files
3518do
3519 case $ac_file in
3520 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3521 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3522 esac
3523done
3524rm -f $ac_rmfiles
3525
3526if { { ac_try="$ac_link_default"
3527case "(($ac_try" in
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3530esac
3531eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3532$as_echo "$ac_try_echo"; } >&5
3533 (eval "$ac_link_default") 2>&5
3534 ac_status=$?
3535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3536 test $ac_status = 0; }; then :
3537 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3538# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3539# in a Makefile. We should not override ac_cv_exeext if it was cached,
3540# so that the user can short-circuit this test for compilers unknown to
3541# Autoconf.
3542for ac_file in $ac_files ''
3543do
3544 test -f "$ac_file" || continue
3545 case $ac_file in
3546 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3547 ;;
3548 [ab].out )
3549 # We found the default executable, but exeext='' is most
3550 # certainly right.
3551 break;;
3552 *.* )
3553 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3554 then :; else
3555 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3556 fi
3557 # We set ac_cv_exeext here because the later test for it is not
3558 # safe: cross compilers may not add the suffix if given an `-o'
3559 # argument, so we may need to know it at that point already.
3560 # Even if this section looks crufty: it has the advantage of
3561 # actually working.
3562 break;;
3563 * )
3564 break;;
3565 esac
3566done
3567test "$ac_cv_exeext" = no && ac_cv_exeext=
3568
3569else
3570 ac_file=''
3571fi
3572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3573$as_echo "$ac_file" >&6; }
3574if test -z "$ac_file"; then :
3575 $as_echo "$as_me: failed program was:" >&5
3576sed 's/^/| /' conftest.$ac_ext >&5
3577
3578{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3579$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3580{ as_fn_set_status 77
3581as_fn_error "C compiler cannot create executables
3582See \`config.log' for more details." "$LINENO" 5; }; }
3583fi
3584ac_exeext=$ac_cv_exeext
3585
3586# Check that the compiler produces executables we can run. If not, either
3587# the compiler is broken, or we cross compile.
3588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3589$as_echo_n "checking whether the C compiler works... " >&6; }
3590# If not cross compiling, check that we can run a simple program.
3591if test "$cross_compiling" != yes; then
3592 if { ac_try='./$ac_file'
3593 { { case "(($ac_try" in
3594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595 *) ac_try_echo=$ac_try;;
3596esac
3597eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3598$as_echo "$ac_try_echo"; } >&5
3599 (eval "$ac_try") 2>&5
3600 ac_status=$?
3601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3602 test $ac_status = 0; }; }; then
3603 cross_compiling=no
3604 else
3605 if test "$cross_compiling" = maybe; then
3606 cross_compiling=yes
3607 else
3608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3609$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3610as_fn_error "cannot run C compiled programs.
3611If you meant to cross compile, use \`--host'.
3612See \`config.log' for more details." "$LINENO" 5; }
3613 fi
3614 fi
3615fi
3616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3617$as_echo "yes" >&6; }
3618
3619rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3620ac_clean_files=$ac_clean_files_save
3621# Check that the compiler produces executables we can run. If not, either
3622# the compiler is broken, or we cross compile.
3623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3624$as_echo_n "checking whether we are cross compiling... " >&6; }
3625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3626$as_echo "$cross_compiling" >&6; }
3627
3628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3629$as_echo_n "checking for suffix of executables... " >&6; }
3630if { { ac_try="$ac_link"
3631case "(($ac_try" in
3632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633 *) ac_try_echo=$ac_try;;
3634esac
3635eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3636$as_echo "$ac_try_echo"; } >&5
3637 (eval "$ac_link") 2>&5
3638 ac_status=$?
3639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3640 test $ac_status = 0; }; then :
3641 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3642# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3643# work properly (i.e., refer to `conftest.exe'), while it won't with
3644# `rm'.
3645for ac_file in conftest.exe conftest conftest.*; do
3646 test -f "$ac_file" || continue
3647 case $ac_file in
3648 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3649 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3650 break;;
3651 * ) break;;
3652 esac
3653done
3654else
3655 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3656$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3657as_fn_error "cannot compute suffix of executables: cannot compile and link
3658See \`config.log' for more details." "$LINENO" 5; }
3659fi
3660rm -f conftest$ac_cv_exeext
3661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3662$as_echo "$ac_cv_exeext" >&6; }
3663
3664rm -f conftest.$ac_ext
3665EXEEXT=$ac_cv_exeext
3666ac_exeext=$EXEEXT
3667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3668$as_echo_n "checking for suffix of object files... " >&6; }
3669if test "${ac_cv_objext+set}" = set; then :
3670 $as_echo_n "(cached) " >&6
3671else
3672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3673/* end confdefs.h. */
3674
3675int
3676main ()
3677{
3678
3679 ;
3680 return 0;
3681}
3682_ACEOF
3683rm -f conftest.o conftest.obj
3684if { { ac_try="$ac_compile"
3685case "(($ac_try" in
3686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687 *) ac_try_echo=$ac_try;;
3688esac
3689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3690$as_echo "$ac_try_echo"; } >&5
3691 (eval "$ac_compile") 2>&5
3692 ac_status=$?
3693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3694 test $ac_status = 0; }; then :
3695 for ac_file in conftest.o conftest.obj conftest.*; do
3696 test -f "$ac_file" || continue;
3697 case $ac_file in
3698 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3699 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3700 break;;
3701 esac
3702done
3703else
3704 $as_echo "$as_me: failed program was:" >&5
3705sed 's/^/| /' conftest.$ac_ext >&5
3706
3707{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3708$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3709as_fn_error "cannot compute suffix of object files: cannot compile
3710See \`config.log' for more details." "$LINENO" 5; }
3711fi
3712rm -f conftest.$ac_cv_objext conftest.$ac_ext
3713fi
3714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3715$as_echo "$ac_cv_objext" >&6; }
3716OBJEXT=$ac_cv_objext
3717ac_objext=$OBJEXT
3718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3719$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3720if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3721 $as_echo_n "(cached) " >&6
3722else
3723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724/* end confdefs.h. */
3725
3726int
3727main ()
3728{
3729#ifndef __GNUC__
3730 choke me
3731#endif
3732
3733 ;
3734 return 0;
3735}
3736_ACEOF
3737if ac_fn_c_try_compile "$LINENO"; then :
3738 ac_compiler_gnu=yes
3739else
3740 ac_compiler_gnu=no
3741fi
3742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3743ac_cv_c_compiler_gnu=$ac_compiler_gnu
3744
3745fi
3746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3747$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3748if test $ac_compiler_gnu = yes; then
3749 GCC=yes
3750else
3751 GCC=
3752fi
3753ac_test_CFLAGS=${CFLAGS+set}
3754ac_save_CFLAGS=$CFLAGS
3755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3756$as_echo_n "checking whether $CC accepts -g... " >&6; }
3757if test "${ac_cv_prog_cc_g+set}" = set; then :
3758 $as_echo_n "(cached) " >&6
3759else
3760 ac_save_c_werror_flag=$ac_c_werror_flag
3761 ac_c_werror_flag=yes
3762 ac_cv_prog_cc_g=no
3763 CFLAGS="-g"
3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765/* end confdefs.h. */
3766
3767int
3768main ()
3769{
3770
3771 ;
3772 return 0;
3773}
3774_ACEOF
3775if ac_fn_c_try_compile "$LINENO"; then :
3776 ac_cv_prog_cc_g=yes
3777else
3778 CFLAGS=""
3779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780/* end confdefs.h. */
3781
3782int
3783main ()
3784{
3785
3786 ;
3787 return 0;
3788}
3789_ACEOF
3790if ac_fn_c_try_compile "$LINENO"; then :
3791
3792else
3793 ac_c_werror_flag=$ac_save_c_werror_flag
3794 CFLAGS="-g"
3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796/* end confdefs.h. */
3797
3798int
3799main ()
3800{
3801
3802 ;
3803 return 0;
3804}
3805_ACEOF
3806if ac_fn_c_try_compile "$LINENO"; then :
3807 ac_cv_prog_cc_g=yes
3808fi
3809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3810fi
3811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3812fi
3813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3814 ac_c_werror_flag=$ac_save_c_werror_flag
3815fi
3816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3817$as_echo "$ac_cv_prog_cc_g" >&6; }
3818if test "$ac_test_CFLAGS" = set; then
3819 CFLAGS=$ac_save_CFLAGS
3820elif test $ac_cv_prog_cc_g = yes; then
3821 if test "$GCC" = yes; then
3822 CFLAGS="-g -O2"
3823 else
3824 CFLAGS="-g"
3825 fi
3826else
3827 if test "$GCC" = yes; then
3828 CFLAGS="-O2"
3829 else
3830 CFLAGS=
3831 fi
3832fi
3833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3834$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3835if test "${ac_cv_prog_cc_c89+set}" = set; then :
3836 $as_echo_n "(cached) " >&6
3837else
3838 ac_cv_prog_cc_c89=no
3839ac_save_CC=$CC
3840cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841/* end confdefs.h. */
3842#include <stdarg.h>
3843#include <stdio.h>
3844#include <sys/types.h>
3845#include <sys/stat.h>
3846/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3847struct buf { int x; };
3848FILE * (*rcsopen) (struct buf *, struct stat *, int);
3849static char *e (p, i)
3850 char **p;
3851 int i;
3852{
3853 return p[i];
3854}
3855static char *f (char * (*g) (char **, int), char **p, ...)
3856{
3857 char *s;
3858 va_list v;
3859 va_start (v,p);
3860 s = g (p, va_arg (v,int));
3861 va_end (v);
3862 return s;
3863}
3864
3865/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3866 function prototypes and stuff, but not '\xHH' hex character constants.
3867 These don't provoke an error unfortunately, instead are silently treated
3868 as 'x'. The following induces an error, until -std is added to get
3869 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3870 array size at least. It's necessary to write '\x00'==0 to get something
3871 that's true only with -std. */
3872int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3873
3874/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3875 inside strings and character constants. */
3876#define FOO(x) 'x'
3877int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3878
3879int test (int i, double x);
3880struct s1 {int (*f) (int a);};
3881struct s2 {int (*f) (double a);};
3882int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3883int argc;
3884char **argv;
3885int
3886main ()
3887{
3888return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3889 ;
3890 return 0;
3891}
3892_ACEOF
3893for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3894 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3895do
3896 CC="$ac_save_CC $ac_arg"
3897 if ac_fn_c_try_compile "$LINENO"; then :
3898 ac_cv_prog_cc_c89=$ac_arg
3899fi
3900rm -f core conftest.err conftest.$ac_objext
3901 test "x$ac_cv_prog_cc_c89" != "xno" && break
3902done
3903rm -f conftest.$ac_ext
3904CC=$ac_save_CC
3905
3906fi
3907# AC_CACHE_VAL
3908case "x$ac_cv_prog_cc_c89" in
3909 x)
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3911$as_echo "none needed" >&6; } ;;
3912 xno)
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3914$as_echo "unsupported" >&6; } ;;
3915 *)
3916 CC="$CC $ac_cv_prog_cc_c89"
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3918$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3919esac
3920if test "x$ac_cv_prog_cc_c89" != xno; then :
3921
3922fi
3923
3924ac_ext=c
3925ac_cpp='$CPP $CPPFLAGS'
3926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3928ac_compiler_gnu=$ac_cv_c_compiler_gnu
3929DEPDIR="${am__leading_dot}deps"
3930
3931ac_config_commands="$ac_config_commands depfiles"
3932
3933
3934am_make=${MAKE-make}
3935cat > confinc << 'END'
3936am__doit:
3937 @echo this is the am__doit target
3938.PHONY: am__doit
3939END
3940# If we don't find an include directive, just comment out the code.
3941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3942$as_echo_n "checking for style of include used by $am_make... " >&6; }
3943am__include="#"
3944am__quote=
3945_am_result=none
3946# First try GNU make style include.
3947echo "include confinc" > confmf
3948# Ignore all kinds of additional output from `make'.
3949case `$am_make -s -f confmf 2> /dev/null` in #(
3950*the\ am__doit\ target*)
3951 am__include=include
3952 am__quote=
3953 _am_result=GNU
3954 ;;
3955esac
3956# Now try BSD make style include.
3957if test "$am__include" = "#"; then
3958 echo '.include "confinc"' > confmf
3959 case `$am_make -s -f confmf 2> /dev/null` in #(
3960 *the\ am__doit\ target*)
3961 am__include=.include
3962 am__quote="\""
3963 _am_result=BSD
3964 ;;
3965 esac
3966fi
3967
3968
3969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3970$as_echo "$_am_result" >&6; }
3971rm -f confinc confmf
3972
3973# Check whether --enable-dependency-tracking was given.
3974if test "${enable_dependency_tracking+set}" = set; then :
3975 enableval=$enable_dependency_tracking;
3976fi
3977
3978if test "x$enable_dependency_tracking" != xno; then
3979 am_depcomp="$ac_aux_dir/depcomp"
3980 AMDEPBACKSLASH='\'
44c925bd 3981 am__nodep='_no'
7a938933
ILT
3982fi
3983 if test "x$enable_dependency_tracking" != xno; then
3984 AMDEP_TRUE=
3985 AMDEP_FALSE='#'
3986else
3987 AMDEP_TRUE='#'
3988 AMDEP_FALSE=
3989fi
3990
3991
3992
3993depcc="$CC" am_compiler_list=
3994
3995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3996$as_echo_n "checking dependency style of $depcc... " >&6; }
3997if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3998 $as_echo_n "(cached) " >&6
3999else
4000 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4001 # We make a subdir and do the tests there. Otherwise we can end up
4002 # making bogus files that we don't know about and never remove. For
4003 # instance it was reported that on HP-UX the gcc test will end up
4004 # making a dummy file named `D' -- because `-MD' means `put the output
4005 # in D'.
44c925bd 4006 rm -rf conftest.dir
7a938933
ILT
4007 mkdir conftest.dir
4008 # Copy depcomp to subdir because otherwise we won't find it if we're
4009 # using a relative directory.
4010 cp "$am_depcomp" conftest.dir
4011 cd conftest.dir
4012 # We will build objects and dependencies in a subdirectory because
4013 # it helps to detect inapplicable dependency modes. For instance
4014 # both Tru64's cc and ICC support -MD to output dependencies as a
4015 # side effect of compilation, but ICC will put the dependencies in
4016 # the current directory while Tru64 will put them in the object
4017 # directory.
4018 mkdir sub
4019
4020 am_cv_CC_dependencies_compiler_type=none
4021 if test "$am_compiler_list" = ""; then
4022 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4023 fi
4024 am__universal=false
4025 case " $depcc " in #(
4026 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4027 esac
4028
4029 for depmode in $am_compiler_list; do
4030 # Setup a source with many dependencies, because some compilers
4031 # like to wrap large dependency lists on column 80 (with \), and
4032 # we should not choose a depcomp mode which is confused by this.
4033 #
4034 # We need to recreate these files for each test, as the compiler may
4035 # overwrite some of them when testing with obscure command lines.
4036 # This happens at least with the AIX C compiler.
4037 : > sub/conftest.c
4038 for i in 1 2 3 4 5 6; do
4039 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4040 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4041 # Solaris 8's {/usr,}/bin/sh.
4042 touch sub/conftst$i.h
4043 done
4044 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4045
4046 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4047 # mode. It turns out that the SunPro C++ compiler does not properly
4048 # handle `-M -o', and we need to detect this. Also, some Intel
4049 # versions had trouble with output in subdirs
4050 am__obj=sub/conftest.${OBJEXT-o}
4051 am__minus_obj="-o $am__obj"
4052 case $depmode in
4053 gcc)
4054 # This depmode causes a compiler race in universal mode.
4055 test "$am__universal" = false || continue
4056 ;;
4057 nosideeffect)
4058 # after this tag, mechanisms are not by side-effect, so they'll
4059 # only be used when explicitly requested
4060 if test "x$enable_dependency_tracking" = xyes; then
4061 continue
4062 else
4063 break
4064 fi
4065 ;;
44c925bd 4066 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7a938933
ILT
4067 # This compiler won't grok `-c -o', but also, the minuso test has
4068 # not run yet. These depmodes are late enough in the game, and
4069 # so weak that their functioning should not be impacted.
4070 am__obj=conftest.${OBJEXT-o}
4071 am__minus_obj=
4072 ;;
4073 none) break ;;
4074 esac
4075 if depmode=$depmode \
4076 source=sub/conftest.c object=$am__obj \
4077 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4078 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4079 >/dev/null 2>conftest.err &&
4080 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4081 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4082 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4083 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4084 # icc doesn't choke on unknown options, it will just issue warnings
4085 # or remarks (even with -Werror). So we grep stderr for any message
4086 # that says an option was ignored or not supported.
4087 # When given -MP, icc 7.0 and 7.1 complain thusly:
4088 # icc: Command line warning: ignoring option '-M'; no argument required
4089 # The diagnosis changed in icc 8.0:
4090 # icc: Command line remark: option '-MP' not supported
4091 if (grep 'ignoring option' conftest.err ||
4092 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4093 am_cv_CC_dependencies_compiler_type=$depmode
4094 break
4095 fi
4096 fi
4097 done
4098
4099 cd ..
4100 rm -rf conftest.dir
4101else
4102 am_cv_CC_dependencies_compiler_type=none
4103fi
4104
4105fi
4106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4107$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4108CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4109
4110 if
4111 test "x$enable_dependency_tracking" != xno \
4112 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4113 am__fastdepCC_TRUE=
4114 am__fastdepCC_FALSE='#'
4115else
4116 am__fastdepCC_TRUE='#'
4117 am__fastdepCC_FALSE=
4118fi
4119
4120
4121ac_ext=go
4122ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
4123ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4124ac_compile_gnu=yes
4125if test -n "$ac_tool_prefix"; then
4126 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4127set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4129$as_echo_n "checking for $ac_word... " >&6; }
4130if test "${ac_cv_prog_GOC+set}" = set; then :
4131 $as_echo_n "(cached) " >&6
4132else
4133 if test -n "$GOC"; then
4134 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4135else
4136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137for as_dir in $PATH
4138do
4139 IFS=$as_save_IFS
4140 test -z "$as_dir" && as_dir=.
4141 for ac_exec_ext in '' $ac_executable_extensions; do
4142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4143 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4145 break 2
4146 fi
4147done
4148 done
4149IFS=$as_save_IFS
4150
4151fi
4152fi
4153GOC=$ac_cv_prog_GOC
4154if test -n "$GOC"; then
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4156$as_echo "$GOC" >&6; }
4157else
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4159$as_echo "no" >&6; }
4160fi
4161
4162
4163fi
4164if test -z "$ac_cv_prog_GOC"; then
4165 ac_ct_GOC=$GOC
4166 # Extract the first word of "gccgo", so it can be a program name with args.
4167set dummy gccgo; ac_word=$2
4168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4169$as_echo_n "checking for $ac_word... " >&6; }
4170if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
4171 $as_echo_n "(cached) " >&6
4172else
4173 if test -n "$ac_ct_GOC"; then
4174 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4175else
4176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177for as_dir in $PATH
4178do
4179 IFS=$as_save_IFS
4180 test -z "$as_dir" && as_dir=.
4181 for ac_exec_ext in '' $ac_executable_extensions; do
4182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4183 ac_cv_prog_ac_ct_GOC="gccgo"
4184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4185 break 2
4186 fi
4187done
4188 done
4189IFS=$as_save_IFS
4190
4191fi
4192fi
4193ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4194if test -n "$ac_ct_GOC"; then
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4196$as_echo "$ac_ct_GOC" >&6; }
4197else
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4199$as_echo "no" >&6; }
4200fi
4201
4202 if test "x$ac_ct_GOC" = x; then
4203 GOC=""
4204 else
4205 case $cross_compiling:$ac_tool_warned in
4206yes:)
4207{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4208$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4209ac_tool_warned=yes ;;
4210esac
4211 GOC=$ac_ct_GOC
4212 fi
4213else
4214 GOC="$ac_cv_prog_GOC"
4215fi
4216
4217if test -z "$GOC"; then
4218 if test -n "$ac_tool_prefix"; then
4219 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4220set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4222$as_echo_n "checking for $ac_word... " >&6; }
4223if test "${ac_cv_prog_GOC+set}" = set; then :
4224 $as_echo_n "(cached) " >&6
4225else
4226 if test -n "$GOC"; then
4227 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4228else
4229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230for as_dir in $PATH
4231do
4232 IFS=$as_save_IFS
4233 test -z "$as_dir" && as_dir=.
4234 for ac_exec_ext in '' $ac_executable_extensions; do
4235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4236 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4238 break 2
4239 fi
4240done
4241 done
4242IFS=$as_save_IFS
4243
4244fi
4245fi
4246GOC=$ac_cv_prog_GOC
4247if test -n "$GOC"; then
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4249$as_echo "$GOC" >&6; }
4250else
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4252$as_echo "no" >&6; }
4253fi
4254
4255
4256 fi
4257fi
4258if test -z "$GOC"; then
4259 # Extract the first word of "gccgo", so it can be a program name with args.
4260set dummy gccgo; ac_word=$2
4261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4262$as_echo_n "checking for $ac_word... " >&6; }
4263if test "${ac_cv_prog_GOC+set}" = set; then :
4264 $as_echo_n "(cached) " >&6
4265else
4266 if test -n "$GOC"; then
4267 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4268else
4269 ac_prog_rejected=no
4270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271for as_dir in $PATH
4272do
4273 IFS=$as_save_IFS
4274 test -z "$as_dir" && as_dir=.
4275 for ac_exec_ext in '' $ac_executable_extensions; do
4276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4277 if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4278 ac_prog_rejected=yes
4279 continue
4280 fi
4281 ac_cv_prog_GOC="gccgo"
4282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4283 break 2
4284 fi
4285done
4286 done
4287IFS=$as_save_IFS
4288
4289if test $ac_prog_rejected = yes; then
4290 # We found a bogon in the path, so make sure we never use it.
4291 set dummy $ac_cv_prog_GOC
4292 shift
4293 if test $# != 0; then
4294 # We chose a different compiler from the bogus one.
4295 # However, it has the same basename, so the bogon will be chosen
4296 # first if we set GOC to just the basename; use the full file name.
4297 shift
4298 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4299 fi
4300fi
4301fi
4302fi
4303GOC=$ac_cv_prog_GOC
4304if test -n "$GOC"; then
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4306$as_echo "$GOC" >&6; }
4307else
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4309$as_echo "no" >&6; }
4310fi
4311
4312
4313fi
4314
4315
4316# Provide some information about the compiler.
4317$as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4318set X $ac_compile
4319ac_compiler=$2
4320{ { ac_try="$ac_compiler --version >&5"
4321case "(($ac_try" in
4322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4323 *) ac_try_echo=$ac_try;;
4324esac
4325eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4326$as_echo "$ac_try_echo"; } >&5
4327 (eval "$ac_compiler --version >&5") 2>conftest.err
4328 ac_status=$?
4329 if test -s conftest.err; then
4330 sed '10a\
4331... rest of stderr output deleted ...
4332 10q' conftest.err >conftest.er1
4333 cat conftest.er1 >&5
4334 rm -f conftest.er1 conftest.err
4335 fi
4336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4337 test $ac_status = 0; }
4338GOCFLAGS="-g -O2"
4339ac_ext=c
4340ac_cpp='$CPP $CPPFLAGS'
4341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4343ac_compiler_gnu=$ac_cv_c_compiler_gnu
4344
4345
4346
4347
4348
4349
4350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4351$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4352 # Check whether --enable-maintainer-mode was given.
4353if test "${enable_maintainer_mode+set}" = set; then :
4354 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4355else
4356 USE_MAINTAINER_MODE=no
4357fi
4358
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4360$as_echo "$USE_MAINTAINER_MODE" >&6; }
4361 if test $USE_MAINTAINER_MODE = yes; then
4362 MAINTAINER_MODE_TRUE=
4363 MAINTAINER_MODE_FALSE='#'
4364else
4365 MAINTAINER_MODE_TRUE='#'
4366 MAINTAINER_MODE_FALSE=
4367fi
4368
4369 MAINT=$MAINTAINER_MODE_TRUE
4370
4371
4372
061793a4
ILT
4373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4374$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4375if test "${ac_cv_path_SED+set}" = set; then :
7a938933
ILT
4376 $as_echo_n "(cached) " >&6
4377else
061793a4
ILT
4378 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4379 for ac_i in 1 2 3 4 5 6 7; do
4380 ac_script="$ac_script$as_nl$ac_script"
4381 done
4382 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4383 { ac_script=; unset ac_script;}
4384 if test -z "$SED"; then
4385 ac_path_SED_found=false
4386 # Loop through the user's path and test for each of PROGNAME-LIST
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388for as_dir in $PATH
7a938933 4389do
061793a4
ILT
4390 IFS=$as_save_IFS
4391 test -z "$as_dir" && as_dir=.
4392 for ac_prog in sed gsed; do
4393 for ac_exec_ext in '' $ac_executable_extensions; do
4394 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4395 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4396# Check for GNU ac_path_SED and select it if it is found.
4397 # Check for GNU $ac_path_SED
4398case `"$ac_path_SED" --version 2>&1` in
4399*GNU*)
4400 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4401*)
4402 ac_count=0
4403 $as_echo_n 0123456789 >"conftest.in"
4404 while :
4405 do
4406 cat "conftest.in" "conftest.in" >"conftest.tmp"
4407 mv "conftest.tmp" "conftest.in"
4408 cp "conftest.in" "conftest.nl"
4409 $as_echo '' >> "conftest.nl"
4410 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4411 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4412 as_fn_arith $ac_count + 1 && ac_count=$as_val
4413 if test $ac_count -gt ${ac_path_SED_max-0}; then
4414 # Best one so far, save it but keep looking for a better one
4415 ac_cv_path_SED="$ac_path_SED"
4416 ac_path_SED_max=$ac_count
4417 fi
4418 # 10*(2^10) chars as input seems more than enough
4419 test $ac_count -gt 10 && break
4420 done
4421 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4422esac
7a938933 4423
061793a4
ILT
4424 $ac_path_SED_found && break 3
4425 done
4426 done
4427 done
4428IFS=$as_save_IFS
4429 if test -z "$ac_cv_path_SED"; then
4430 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4431 fi
7a938933 4432else
061793a4 4433 ac_cv_path_SED=$SED
7a938933
ILT
4434fi
4435
4436fi
061793a4
ILT
4437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4438$as_echo "$ac_cv_path_SED" >&6; }
4439 SED="$ac_cv_path_SED"
4440 rm -f conftest.sed
4441
4442test -z "$SED" && SED=sed
4443Xsed="$SED -e 1s/^X//"
4444
7a938933
ILT
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4456$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4457if test "${ac_cv_path_GREP+set}" = set; then :
4458 $as_echo_n "(cached) " >&6
4459else
4460 if test -z "$GREP"; then
4461 ac_path_GREP_found=false
4462 # Loop through the user's path and test for each of PROGNAME-LIST
4463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4465do
4466 IFS=$as_save_IFS
4467 test -z "$as_dir" && as_dir=.
4468 for ac_prog in grep ggrep; do
4469 for ac_exec_ext in '' $ac_executable_extensions; do
4470 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4471 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4472# Check for GNU ac_path_GREP and select it if it is found.
4473 # Check for GNU $ac_path_GREP
4474case `"$ac_path_GREP" --version 2>&1` in
4475*GNU*)
4476 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4477*)
4478 ac_count=0
4479 $as_echo_n 0123456789 >"conftest.in"
4480 while :
4481 do
4482 cat "conftest.in" "conftest.in" >"conftest.tmp"
4483 mv "conftest.tmp" "conftest.in"
4484 cp "conftest.in" "conftest.nl"
4485 $as_echo 'GREP' >> "conftest.nl"
4486 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4487 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4488 as_fn_arith $ac_count + 1 && ac_count=$as_val
4489 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4490 # Best one so far, save it but keep looking for a better one
4491 ac_cv_path_GREP="$ac_path_GREP"
4492 ac_path_GREP_max=$ac_count
4493 fi
4494 # 10*(2^10) chars as input seems more than enough
4495 test $ac_count -gt 10 && break
4496 done
4497 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4498esac
4499
4500 $ac_path_GREP_found && break 3
4501 done
4502 done
4503 done
4504IFS=$as_save_IFS
4505 if test -z "$ac_cv_path_GREP"; then
4506 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4507 fi
4508else
4509 ac_cv_path_GREP=$GREP
4510fi
4511
4512fi
4513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4514$as_echo "$ac_cv_path_GREP" >&6; }
4515 GREP="$ac_cv_path_GREP"
4516
4517
4518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4519$as_echo_n "checking for egrep... " >&6; }
4520if test "${ac_cv_path_EGREP+set}" = set; then :
4521 $as_echo_n "(cached) " >&6
4522else
4523 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4524 then ac_cv_path_EGREP="$GREP -E"
4525 else
4526 if test -z "$EGREP"; then
4527 ac_path_EGREP_found=false
4528 # Loop through the user's path and test for each of PROGNAME-LIST
4529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4531do
4532 IFS=$as_save_IFS
4533 test -z "$as_dir" && as_dir=.
4534 for ac_prog in egrep; do
4535 for ac_exec_ext in '' $ac_executable_extensions; do
4536 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4537 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4538# Check for GNU ac_path_EGREP and select it if it is found.
4539 # Check for GNU $ac_path_EGREP
4540case `"$ac_path_EGREP" --version 2>&1` in
4541*GNU*)
4542 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4543*)
4544 ac_count=0
4545 $as_echo_n 0123456789 >"conftest.in"
4546 while :
4547 do
4548 cat "conftest.in" "conftest.in" >"conftest.tmp"
4549 mv "conftest.tmp" "conftest.in"
4550 cp "conftest.in" "conftest.nl"
4551 $as_echo 'EGREP' >> "conftest.nl"
4552 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4553 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4554 as_fn_arith $ac_count + 1 && ac_count=$as_val
4555 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4556 # Best one so far, save it but keep looking for a better one
4557 ac_cv_path_EGREP="$ac_path_EGREP"
4558 ac_path_EGREP_max=$ac_count
4559 fi
4560 # 10*(2^10) chars as input seems more than enough
4561 test $ac_count -gt 10 && break
4562 done
4563 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4564esac
4565
4566 $ac_path_EGREP_found && break 3
4567 done
4568 done
4569 done
4570IFS=$as_save_IFS
4571 if test -z "$ac_cv_path_EGREP"; then
4572 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4573 fi
4574else
4575 ac_cv_path_EGREP=$EGREP
4576fi
4577
4578 fi
4579fi
4580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4581$as_echo "$ac_cv_path_EGREP" >&6; }
4582 EGREP="$ac_cv_path_EGREP"
4583
4584
061793a4
ILT
4585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4586$as_echo_n "checking for fgrep... " >&6; }
4587if test "${ac_cv_path_FGREP+set}" = set; then :
e02ed81e
ILT
4588 $as_echo_n "(cached) " >&6
4589else
061793a4
ILT
4590 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4591 then ac_cv_path_FGREP="$GREP -F"
4592 else
4593 if test -z "$FGREP"; then
4594 ac_path_FGREP_found=false
7a938933
ILT
4595 # Loop through the user's path and test for each of PROGNAME-LIST
4596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
061793a4 4597for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7a938933
ILT
4598do
4599 IFS=$as_save_IFS
4600 test -z "$as_dir" && as_dir=.
061793a4 4601 for ac_prog in fgrep; do
7a938933 4602 for ac_exec_ext in '' $ac_executable_extensions; do
061793a4
ILT
4603 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4604 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4605# Check for GNU ac_path_FGREP and select it if it is found.
4606 # Check for GNU $ac_path_FGREP
4607case `"$ac_path_FGREP" --version 2>&1` in
7a938933 4608*GNU*)
061793a4 4609 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7a938933
ILT
4610*)
4611 ac_count=0
4612 $as_echo_n 0123456789 >"conftest.in"
4613 while :
4614 do
4615 cat "conftest.in" "conftest.in" >"conftest.tmp"
4616 mv "conftest.tmp" "conftest.in"
4617 cp "conftest.in" "conftest.nl"
061793a4
ILT
4618 $as_echo 'FGREP' >> "conftest.nl"
4619 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7a938933
ILT
4620 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4621 as_fn_arith $ac_count + 1 && ac_count=$as_val
061793a4 4622 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7a938933 4623 # Best one so far, save it but keep looking for a better one
061793a4
ILT
4624 ac_cv_path_FGREP="$ac_path_FGREP"
4625 ac_path_FGREP_max=$ac_count
7a938933
ILT
4626 fi
4627 # 10*(2^10) chars as input seems more than enough
4628 test $ac_count -gt 10 && break
4629 done
4630 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4631esac
4632
061793a4 4633 $ac_path_FGREP_found && break 3
7a938933
ILT
4634 done
4635 done
4636 done
4637IFS=$as_save_IFS
061793a4
ILT
4638 if test -z "$ac_cv_path_FGREP"; then
4639 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7a938933
ILT
4640 fi
4641else
061793a4 4642 ac_cv_path_FGREP=$FGREP
e02ed81e
ILT
4643fi
4644
061793a4 4645 fi
7a938933
ILT
4646fi
4647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4648$as_echo "$ac_cv_path_FGREP" >&6; }
4649 FGREP="$ac_cv_path_FGREP"
4650
4651
4652test -z "$GREP" && GREP=grep
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4671ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4672ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4673
4674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4675$as_echo_n "checking how to print strings... " >&6; }
4676# Test print first, because it will be a builtin if present.
4677if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4678 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4679 ECHO='print -r --'
4680elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4681 ECHO='printf %s\n'
4682else
4683 # Use this function as a fallback that always works.
4684 func_fallback_echo ()
4685 {
4686 eval 'cat <<_LTECHO_EOF
4687$1
4688_LTECHO_EOF'
4689 }
4690 ECHO='func_fallback_echo'
4691fi
4692
4693# func_echo_all arg...
4694# Invoke $ECHO with all args, space-separated.
4695func_echo_all ()
4696{
4697 $ECHO ""
4698}
4699
4700case "$ECHO" in
4701 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4702$as_echo "printf" >&6; } ;;
4703 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4704$as_echo "print -r" >&6; } ;;
4705 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4706$as_echo "cat" >&6; } ;;
4707esac
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724# Check whether --with-gnu-ld was given.
4725if test "${with_gnu_ld+set}" = set; then :
4726 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4727else
4728 with_gnu_ld=no
4729fi
4730
4731ac_prog=ld
4732if test "$GCC" = yes; then
4733 # Check if gcc -print-prog-name=ld gives a path.
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4735$as_echo_n "checking for ld used by $CC... " >&6; }
4736 case $host in
4737 *-*-mingw*)
4738 # gcc leaves a trailing carriage return which upsets mingw
4739 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4740 *)
4741 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4742 esac
4743 case $ac_prog in
4744 # Accept absolute paths.
4745 [\\/]* | ?:[\\/]*)
4746 re_direlt='/[^/][^/]*/\.\./'
4747 # Canonicalize the pathname of ld
4748 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4749 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4750 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4751 done
4752 test -z "$LD" && LD="$ac_prog"
4753 ;;
4754 "")
4755 # If it fails, then pretend we aren't using GCC.
4756 ac_prog=ld
4757 ;;
4758 *)
4759 # If it is relative, then search for the first ld in PATH.
4760 with_gnu_ld=unknown
4761 ;;
4762 esac
4763elif test "$with_gnu_ld" = yes; then
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4765$as_echo_n "checking for GNU ld... " >&6; }
4766else
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4768$as_echo_n "checking for non-GNU ld... " >&6; }
4769fi
4770if test "${lt_cv_path_LD+set}" = set; then :
4771 $as_echo_n "(cached) " >&6
4772else
4773 if test -z "$LD"; then
4774 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4775 for ac_dir in $PATH; do
4776 IFS="$lt_save_ifs"
4777 test -z "$ac_dir" && ac_dir=.
4778 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4779 lt_cv_path_LD="$ac_dir/$ac_prog"
4780 # Check to see if the program is GNU ld. I'd rather use --version,
4781 # but apparently some variants of GNU ld only accept -v.
4782 # Break only if it was the GNU/non-GNU ld that we prefer.
4783 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4784 *GNU* | *'with BFD'*)
4785 test "$with_gnu_ld" != no && break
4786 ;;
4787 *)
4788 test "$with_gnu_ld" != yes && break
4789 ;;
4790 esac
4791 fi
4792 done
4793 IFS="$lt_save_ifs"
4794else
4795 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4796fi
4797fi
4798
4799LD="$lt_cv_path_LD"
4800if test -n "$LD"; then
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4802$as_echo "$LD" >&6; }
4803else
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4805$as_echo "no" >&6; }
4806fi
4807test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4809$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4810if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4811 $as_echo_n "(cached) " >&6
4812else
4813 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4814case `$LD -v 2>&1 </dev/null` in
4815*GNU* | *'with BFD'*)
4816 lt_cv_prog_gnu_ld=yes
4817 ;;
4818*)
4819 lt_cv_prog_gnu_ld=no
4820 ;;
4821esac
4822fi
4823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4824$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4825with_gnu_ld=$lt_cv_prog_gnu_ld
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835if test -n "$ac_tool_prefix"; then
4836 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4837set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4839$as_echo_n "checking for $ac_word... " >&6; }
4840if test "${ac_cv_prog_RANLIB+set}" = set; then :
4841 $as_echo_n "(cached) " >&6
4842else
4843 if test -n "$RANLIB"; then
4844 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4845else
4846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847for as_dir in $PATH
4848do
4849 IFS=$as_save_IFS
4850 test -z "$as_dir" && as_dir=.
4851 for ac_exec_ext in '' $ac_executable_extensions; do
4852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4853 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4855 break 2
4856 fi
4857done
4858 done
4859IFS=$as_save_IFS
4860
4861fi
4862fi
4863RANLIB=$ac_cv_prog_RANLIB
4864if test -n "$RANLIB"; then
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4866$as_echo "$RANLIB" >&6; }
4867else
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4869$as_echo "no" >&6; }
4870fi
4871
4872
4873fi
4874if test -z "$ac_cv_prog_RANLIB"; then
4875 ac_ct_RANLIB=$RANLIB
4876 # Extract the first word of "ranlib", so it can be a program name with args.
4877set dummy ranlib; ac_word=$2
4878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4879$as_echo_n "checking for $ac_word... " >&6; }
4880if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4881 $as_echo_n "(cached) " >&6
4882else
4883 if test -n "$ac_ct_RANLIB"; then
4884 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4885else
4886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887for as_dir in $PATH
4888do
4889 IFS=$as_save_IFS
4890 test -z "$as_dir" && as_dir=.
4891 for ac_exec_ext in '' $ac_executable_extensions; do
4892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4893 ac_cv_prog_ac_ct_RANLIB="ranlib"
4894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4895 break 2
4896 fi
4897done
4898 done
4899IFS=$as_save_IFS
4900
4901fi
4902fi
4903ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4904if test -n "$ac_ct_RANLIB"; then
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4906$as_echo "$ac_ct_RANLIB" >&6; }
4907else
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4909$as_echo "no" >&6; }
4910fi
4911
4912 if test "x$ac_ct_RANLIB" = x; then
4913 RANLIB=":"
4914 else
4915 case $cross_compiling:$ac_tool_warned in
4916yes:)
4917{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4918$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4919ac_tool_warned=yes ;;
4920esac
4921 RANLIB=$ac_ct_RANLIB
4922 fi
4923else
4924 RANLIB="$ac_cv_prog_RANLIB"
4925fi
4926
4927if test -n "$ac_tool_prefix"; then
4928 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4929set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4931$as_echo_n "checking for $ac_word... " >&6; }
4932if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4933 $as_echo_n "(cached) " >&6
4934else
4935 if test -n "$OBJCOPY"; then
4936 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4937else
4938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939for as_dir in $PATH
4940do
4941 IFS=$as_save_IFS
4942 test -z "$as_dir" && as_dir=.
4943 for ac_exec_ext in '' $ac_executable_extensions; do
4944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4945 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4947 break 2
4948 fi
4949done
4950 done
4951IFS=$as_save_IFS
4952
4953fi
4954fi
4955OBJCOPY=$ac_cv_prog_OBJCOPY
4956if test -n "$OBJCOPY"; then
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4958$as_echo "$OBJCOPY" >&6; }
4959else
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4961$as_echo "no" >&6; }
4962fi
4963
4964
4965fi
4966if test -z "$ac_cv_prog_OBJCOPY"; then
4967 ac_ct_OBJCOPY=$OBJCOPY
4968 # Extract the first word of "objcopy", so it can be a program name with args.
4969set dummy objcopy; ac_word=$2
4970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4971$as_echo_n "checking for $ac_word... " >&6; }
4972if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4973 $as_echo_n "(cached) " >&6
4974else
4975 if test -n "$ac_ct_OBJCOPY"; then
4976 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4977else
4978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979for as_dir in $PATH
4980do
4981 IFS=$as_save_IFS
4982 test -z "$as_dir" && as_dir=.
4983 for ac_exec_ext in '' $ac_executable_extensions; do
4984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4985 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4987 break 2
4988 fi
4989done
4990 done
4991IFS=$as_save_IFS
4992
4993fi
4994fi
4995ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4996if test -n "$ac_ct_OBJCOPY"; then
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4998$as_echo "$ac_ct_OBJCOPY" >&6; }
4999else
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5001$as_echo "no" >&6; }
5002fi
5003
5004 if test "x$ac_ct_OBJCOPY" = x; then
5005 OBJCOPY="missing-objcopy"
5006 else
5007 case $cross_compiling:$ac_tool_warned in
5008yes:)
5009{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5010$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5011ac_tool_warned=yes ;;
5012esac
5013 OBJCOPY=$ac_ct_OBJCOPY
5014 fi
5015else
5016 OBJCOPY="$ac_cv_prog_OBJCOPY"
5017fi
5018
5019
5020enable_dlopen=yes
5021
5022
5023
5024case `pwd` in
5025 *\ * | *\ *)
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5027$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5028esac
5029
5030
5031
5032macro_version='2.2.7a'
5033macro_revision='1.3134'
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047ltmain="$ac_aux_dir/ltmain.sh"
5048
5049# Backslashify metacharacters that are still active within
5050# double-quoted strings.
5051sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5052
5053# Same as above, but do not quote variable references.
5054double_quote_subst='s/\(["`\\]\)/\\\1/g'
5055
5056# Sed substitution to delay expansion of an escaped shell variable in a
5057# double_quote_subst'ed string.
5058delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5059
5060# Sed substitution to delay expansion of an escaped single quote.
5061delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5062
5063# Sed substitution to avoid accidental globbing in evaled expressions
5064no_glob_subst='s/\*/\\\*/g'
5065
5066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5067$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5068if test "${lt_cv_path_NM+set}" = set; then :
5069 $as_echo_n "(cached) " >&6
5070else
5071 if test -n "$NM"; then
5072 # Let the user override the test.
5073 lt_cv_path_NM="$NM"
5074else
5075 lt_nm_to_check="${ac_tool_prefix}nm"
5076 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5077 lt_nm_to_check="$lt_nm_to_check nm"
5078 fi
5079 for lt_tmp_nm in $lt_nm_to_check; do
5080 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5081 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5082 IFS="$lt_save_ifs"
5083 test -z "$ac_dir" && ac_dir=.
5084 tmp_nm="$ac_dir/$lt_tmp_nm"
5085 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5086 # Check to see if the nm accepts a BSD-compat flag.
5087 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5088 # nm: unknown option "B" ignored
5089 # Tru64's nm complains that /dev/null is an invalid object file
5090 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5091 */dev/null* | *'Invalid file or object type'*)
5092 lt_cv_path_NM="$tmp_nm -B"
5093 break
5094 ;;
5095 *)
5096 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5097 */dev/null*)
5098 lt_cv_path_NM="$tmp_nm -p"
5099 break
5100 ;;
5101 *)
5102 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5103 continue # so that we can try to find one that supports BSD flags
5104 ;;
5105 esac
5106 ;;
5107 esac
5108 fi
5109 done
5110 IFS="$lt_save_ifs"
5111 done
5112 : ${lt_cv_path_NM=no}
5113fi
5114fi
5115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5116$as_echo "$lt_cv_path_NM" >&6; }
5117if test "$lt_cv_path_NM" != "no"; then
5118 NM="$lt_cv_path_NM"
5119else
5120 # Didn't find any BSD compatible name lister, look for dumpbin.
5121 if test -n "$DUMPBIN"; then :
5122 # Let the user override the test.
5123 else
5124 if test -n "$ac_tool_prefix"; then
5125 for ac_prog in dumpbin "link -dump"
5126 do
5127 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5128set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5130$as_echo_n "checking for $ac_word... " >&6; }
5131if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5132 $as_echo_n "(cached) " >&6
5133else
5134 if test -n "$DUMPBIN"; then
5135 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5136else
5137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138for as_dir in $PATH
5139do
5140 IFS=$as_save_IFS
5141 test -z "$as_dir" && as_dir=.
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5144 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5146 break 2
5147 fi
5148done
5149 done
5150IFS=$as_save_IFS
5151
5152fi
5153fi
5154DUMPBIN=$ac_cv_prog_DUMPBIN
5155if test -n "$DUMPBIN"; then
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5157$as_echo "$DUMPBIN" >&6; }
5158else
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5160$as_echo "no" >&6; }
5161fi
5162
5163
5164 test -n "$DUMPBIN" && break
5165 done
5166fi
5167if test -z "$DUMPBIN"; then
5168 ac_ct_DUMPBIN=$DUMPBIN
5169 for ac_prog in dumpbin "link -dump"
5170do
5171 # Extract the first word of "$ac_prog", so it can be a program name with args.
5172set dummy $ac_prog; ac_word=$2
5173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5174$as_echo_n "checking for $ac_word... " >&6; }
5175if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5176 $as_echo_n "(cached) " >&6
5177else
5178 if test -n "$ac_ct_DUMPBIN"; then
5179 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5180else
5181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182for as_dir in $PATH
5183do
5184 IFS=$as_save_IFS
5185 test -z "$as_dir" && as_dir=.
5186 for ac_exec_ext in '' $ac_executable_extensions; do
5187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5188 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5190 break 2
5191 fi
5192done
5193 done
5194IFS=$as_save_IFS
5195
5196fi
5197fi
5198ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5199if test -n "$ac_ct_DUMPBIN"; then
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5201$as_echo "$ac_ct_DUMPBIN" >&6; }
5202else
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5204$as_echo "no" >&6; }
5205fi
5206
5207
5208 test -n "$ac_ct_DUMPBIN" && break
5209done
5210
5211 if test "x$ac_ct_DUMPBIN" = x; then
5212 DUMPBIN=":"
5213 else
5214 case $cross_compiling:$ac_tool_warned in
5215yes:)
5216{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5218ac_tool_warned=yes ;;
5219esac
5220 DUMPBIN=$ac_ct_DUMPBIN
5221 fi
5222fi
5223
5224 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5225 *COFF*)
5226 DUMPBIN="$DUMPBIN -symbols"
5227 ;;
5228 *)
5229 DUMPBIN=:
5230 ;;
5231 esac
5232 fi
5233
5234 if test "$DUMPBIN" != ":"; then
5235 NM="$DUMPBIN"
5236 fi
5237fi
5238test -z "$NM" && NM=nm
5239
5240
5241
5242
5243
5244
5245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5246$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5247if test "${lt_cv_nm_interface+set}" = set; then :
5248 $as_echo_n "(cached) " >&6
5249else
5250 lt_cv_nm_interface="BSD nm"
5251 echo "int some_variable = 0;" > conftest.$ac_ext
5252 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5253 (eval "$ac_compile" 2>conftest.err)
5254 cat conftest.err >&5
5255 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5256 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5257 cat conftest.err >&5
5258 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5259 cat conftest.out >&5
5260 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5261 lt_cv_nm_interface="MS dumpbin"
5262 fi
5263 rm -f conftest*
5264fi
5265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5266$as_echo "$lt_cv_nm_interface" >&6; }
5267
5268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5269$as_echo_n "checking whether ln -s works... " >&6; }
5270LN_S=$as_ln_s
5271if test "$LN_S" = "ln -s"; then
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5273$as_echo "yes" >&6; }
5274else
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5276$as_echo "no, using $LN_S" >&6; }
5277fi
5278
5279# find the maximum length of command line arguments
5280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5281$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5282if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5283 $as_echo_n "(cached) " >&6
5284else
5285 i=0
5286 teststring="ABCD"
5287
5288 case $build_os in
5289 msdosdjgpp*)
5290 # On DJGPP, this test can blow up pretty badly due to problems in libc
5291 # (any single argument exceeding 2000 bytes causes a buffer overrun
5292 # during glob expansion). Even if it were fixed, the result of this
5293 # check would be larger than it should be.
5294 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5295 ;;
5296
5297 gnu*)
5298 # Under GNU Hurd, this test is not required because there is
5299 # no limit to the length of command line arguments.
5300 # Libtool will interpret -1 as no limit whatsoever
5301 lt_cv_sys_max_cmd_len=-1;
5302 ;;
5303
5304 cygwin* | mingw* | cegcc*)
5305 # On Win9x/ME, this test blows up -- it succeeds, but takes
5306 # about 5 minutes as the teststring grows exponentially.
5307 # Worse, since 9x/ME are not pre-emptively multitasking,
5308 # you end up with a "frozen" computer, even though with patience
5309 # the test eventually succeeds (with a max line length of 256k).
5310 # Instead, let's just punt: use the minimum linelength reported by
5311 # all of the supported platforms: 8192 (on NT/2K/XP).
5312 lt_cv_sys_max_cmd_len=8192;
5313 ;;
5314
5315 mint*)
5316 # On MiNT this can take a long time and run out of memory.
5317 lt_cv_sys_max_cmd_len=8192;
5318 ;;
5319
5320 amigaos*)
5321 # On AmigaOS with pdksh, this test takes hours, literally.
5322 # So we just punt and use a minimum line length of 8192.
5323 lt_cv_sys_max_cmd_len=8192;
5324 ;;
5325
5326 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5327 # This has been around since 386BSD, at least. Likely further.
5328 if test -x /sbin/sysctl; then
5329 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5330 elif test -x /usr/sbin/sysctl; then
5331 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5332 else
5333 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5334 fi
5335 # And add a safety zone
5336 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5337 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5338 ;;
5339
5340 interix*)
5341 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5342 lt_cv_sys_max_cmd_len=196608
5343 ;;
5344
5345 osf*)
5346 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5347 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5348 # nice to cause kernel panics so lets avoid the loop below.
5349 # First set a reasonable default.
5350 lt_cv_sys_max_cmd_len=16384
5351 #
5352 if test -x /sbin/sysconfig; then
5353 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5354 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5355 esac
5356 fi
5357 ;;
5358 sco3.2v5*)
5359 lt_cv_sys_max_cmd_len=102400
5360 ;;
5361 sysv5* | sco5v6* | sysv4.2uw2*)
5362 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5363 if test -n "$kargmax"; then
5364 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5365 else
5366 lt_cv_sys_max_cmd_len=32768
5367 fi
5368 ;;
5369 *)
5370 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5371 if test -n "$lt_cv_sys_max_cmd_len"; then
5372 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5373 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5374 else
5375 # Make teststring a little bigger before we do anything with it.
5376 # a 1K string should be a reasonable start.
5377 for i in 1 2 3 4 5 6 7 8 ; do
5378 teststring=$teststring$teststring
5379 done
5380 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5381 # If test is not a shell built-in, we'll probably end up computing a
5382 # maximum length that is only half of the actual maximum length, but
5383 # we can't tell.
5384 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5385 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5386 test $i != 17 # 1/2 MB should be enough
5387 do
5388 i=`expr $i + 1`
5389 teststring=$teststring$teststring
5390 done
5391 # Only check the string length outside the loop.
5392 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5393 teststring=
5394 # Add a significant safety factor because C++ compilers can tack on
5395 # massive amounts of additional arguments before passing them to the
5396 # linker. It appears as though 1/2 is a usable value.
5397 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5398 fi
5399 ;;
5400 esac
5401
5402fi
5403
5404if test -n $lt_cv_sys_max_cmd_len ; then
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5406$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5407else
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5409$as_echo "none" >&6; }
5410fi
5411max_cmd_len=$lt_cv_sys_max_cmd_len
5412
5413
5414
5415
5416
5417
5418: ${CP="cp -f"}
5419: ${MV="mv -f"}
5420: ${RM="rm -f"}
5421
5422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5423$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5424# Try some XSI features
5425xsi_shell=no
5426( _lt_dummy="a/b/c"
5427 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5428 = c,a/b,, \
5429 && eval 'test $(( 1 + 1 )) -eq 2 \
5430 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5431 && xsi_shell=yes
5432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5433$as_echo "$xsi_shell" >&6; }
5434
5435
5436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5437$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5438lt_shell_append=no
5439( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5440 >/dev/null 2>&1 \
5441 && lt_shell_append=yes
5442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5443$as_echo "$lt_shell_append" >&6; }
5444
5445
5446if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5447 lt_unset=unset
5448else
5449 lt_unset=false
5450fi
5451
5452
5453
5454
5455
5456# test EBCDIC or ASCII
5457case `echo X|tr X '\101'` in
5458 A) # ASCII based system
5459 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5460 lt_SP2NL='tr \040 \012'
5461 lt_NL2SP='tr \015\012 \040\040'
5462 ;;
5463 *) # EBCDIC based system
5464 lt_SP2NL='tr \100 \n'
5465 lt_NL2SP='tr \r\n \100\100'
5466 ;;
5467esac
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5478$as_echo_n "checking for $LD option to reload object files... " >&6; }
5479if test "${lt_cv_ld_reload_flag+set}" = set; then :
5480 $as_echo_n "(cached) " >&6
5481else
5482 lt_cv_ld_reload_flag='-r'
5483fi
5484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5485$as_echo "$lt_cv_ld_reload_flag" >&6; }
5486reload_flag=$lt_cv_ld_reload_flag
5487case $reload_flag in
5488"" | " "*) ;;
5489*) reload_flag=" $reload_flag" ;;
5490esac
5491reload_cmds='$LD$reload_flag -o $output$reload_objs'
5492case $host_os in
5493 darwin*)
5494 if test "$GCC" = yes; then
5495 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5496 else
5497 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5498 fi
5499 ;;
5500esac
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510if test -n "$ac_tool_prefix"; then
5511 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5512set dummy ${ac_tool_prefix}objdump; ac_word=$2
5513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5514$as_echo_n "checking for $ac_word... " >&6; }
5515if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5516 $as_echo_n "(cached) " >&6
5517else
5518 if test -n "$OBJDUMP"; then
5519 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5520else
5521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5522for as_dir in $PATH
5523do
5524 IFS=$as_save_IFS
5525 test -z "$as_dir" && as_dir=.
5526 for ac_exec_ext in '' $ac_executable_extensions; do
5527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5528 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5530 break 2
5531 fi
5532done
5533 done
5534IFS=$as_save_IFS
5535
5536fi
5537fi
5538OBJDUMP=$ac_cv_prog_OBJDUMP
5539if test -n "$OBJDUMP"; then
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5541$as_echo "$OBJDUMP" >&6; }
5542else
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5544$as_echo "no" >&6; }
5545fi
5546
5547
5548fi
5549if test -z "$ac_cv_prog_OBJDUMP"; then
5550 ac_ct_OBJDUMP=$OBJDUMP
5551 # Extract the first word of "objdump", so it can be a program name with args.
5552set dummy objdump; ac_word=$2
5553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5554$as_echo_n "checking for $ac_word... " >&6; }
5555if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5556 $as_echo_n "(cached) " >&6
5557else
5558 if test -n "$ac_ct_OBJDUMP"; then
5559 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5560else
5561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5562for as_dir in $PATH
5563do
5564 IFS=$as_save_IFS
5565 test -z "$as_dir" && as_dir=.
5566 for ac_exec_ext in '' $ac_executable_extensions; do
5567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5568 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5570 break 2
5571 fi
5572done
5573 done
5574IFS=$as_save_IFS
5575
5576fi
5577fi
5578ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5579if test -n "$ac_ct_OBJDUMP"; then
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5581$as_echo "$ac_ct_OBJDUMP" >&6; }
5582else
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5584$as_echo "no" >&6; }
5585fi
5586
5587 if test "x$ac_ct_OBJDUMP" = x; then
5588 OBJDUMP="false"
5589 else
5590 case $cross_compiling:$ac_tool_warned in
5591yes:)
5592{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5593$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5594ac_tool_warned=yes ;;
5595esac
5596 OBJDUMP=$ac_ct_OBJDUMP
5597 fi
5598else
5599 OBJDUMP="$ac_cv_prog_OBJDUMP"
5600fi
5601
5602test -z "$OBJDUMP" && OBJDUMP=objdump
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5613$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5614if test "${lt_cv_deplibs_check_method+set}" = set; then :
5615 $as_echo_n "(cached) " >&6
5616else
5617 lt_cv_file_magic_cmd='$MAGIC_CMD'
5618lt_cv_file_magic_test_file=
5619lt_cv_deplibs_check_method='unknown'
5620# Need to set the preceding variable on all platforms that support
5621# interlibrary dependencies.
5622# 'none' -- dependencies not supported.
5623# `unknown' -- same as none, but documents that we really don't know.
5624# 'pass_all' -- all dependencies passed with no checks.
5625# 'test_compile' -- check by making test program.
5626# 'file_magic [[regex]]' -- check by looking for files in library path
5627# which responds to the $file_magic_cmd with a given extended regex.
5628# If you have `file' or equivalent on your system and you're not sure
5629# whether `pass_all' will *always* work, you probably want this one.
5630
5631case $host_os in
5632aix[4-9]*)
5633 lt_cv_deplibs_check_method=pass_all
5634 ;;
5635
5636beos*)
5637 lt_cv_deplibs_check_method=pass_all
5638 ;;
5639
5640bsdi[45]*)
5641 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5642 lt_cv_file_magic_cmd='/usr/bin/file -L'
5643 lt_cv_file_magic_test_file=/shlib/libc.so
5644 ;;
5645
5646cygwin*)
5647 # func_win32_libid is a shell function defined in ltmain.sh
5648 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5649 lt_cv_file_magic_cmd='func_win32_libid'
5650 ;;
5651
5652mingw* | pw32*)
5653 # Base MSYS/MinGW do not provide the 'file' command needed by
5654 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5655 # unless we find 'file', for example because we are cross-compiling.
5656 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5657 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5658 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5659 lt_cv_file_magic_cmd='func_win32_libid'
5660 else
5661 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5662 lt_cv_file_magic_cmd='$OBJDUMP -f'
5663 fi
5664 ;;
5665
5666cegcc*)
5667 # use the weaker test based on 'objdump'. See mingw*.
5668 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5669 lt_cv_file_magic_cmd='$OBJDUMP -f'
5670 ;;
5671
5672darwin* | rhapsody*)
5673 lt_cv_deplibs_check_method=pass_all
5674 ;;
5675
5676freebsd* | dragonfly*)
5677 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5678 case $host_cpu in
5679 i*86 )
5680 # Not sure whether the presence of OpenBSD here was a mistake.
5681 # Let's accept both of them until this is cleared up.
5682 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5683 lt_cv_file_magic_cmd=/usr/bin/file
5684 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5685 ;;
5686 esac
5687 else
5688 lt_cv_deplibs_check_method=pass_all
5689 fi
5690 ;;
5691
5692gnu*)
5693 lt_cv_deplibs_check_method=pass_all
5694 ;;
5695
5696haiku*)
5697 lt_cv_deplibs_check_method=pass_all
5698 ;;
5699
5700hpux10.20* | hpux11*)
5701 lt_cv_file_magic_cmd=/usr/bin/file
5702 case $host_cpu in
5703 ia64*)
5704 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5705 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5706 ;;
5707 hppa*64*)
5708 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]'
5709 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5710 ;;
5711 *)
5712 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5713 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5714 ;;
5715 esac
5716 ;;
5717
5718interix[3-9]*)
5719 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5720 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5721 ;;
5722
5723irix5* | irix6* | nonstopux*)
5724 case $LD in
5725 *-32|*"-32 ") libmagic=32-bit;;
5726 *-n32|*"-n32 ") libmagic=N32;;
5727 *-64|*"-64 ") libmagic=64-bit;;
5728 *) libmagic=never-match;;
5729 esac
5730 lt_cv_deplibs_check_method=pass_all
5731 ;;
5732
5733# This must be Linux ELF.
5734linux* | k*bsd*-gnu | kopensolaris*-gnu)
5735 lt_cv_deplibs_check_method=pass_all
5736 ;;
5737
5738netbsd*)
5739 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5740 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5741 else
5742 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5743 fi
5744 ;;
5745
5746newos6*)
5747 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5748 lt_cv_file_magic_cmd=/usr/bin/file
5749 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5750 ;;
5751
5752*nto* | *qnx*)
5753 lt_cv_deplibs_check_method=pass_all
5754 ;;
5755
5756openbsd*)
5757 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5758 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5759 else
5760 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5761 fi
5762 ;;
5763
5764osf3* | osf4* | osf5*)
5765 lt_cv_deplibs_check_method=pass_all
5766 ;;
5767
5768rdos*)
5769 lt_cv_deplibs_check_method=pass_all
5770 ;;
5771
5772solaris*)
5773 lt_cv_deplibs_check_method=pass_all
5774 ;;
5775
5776sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5777 lt_cv_deplibs_check_method=pass_all
5778 ;;
5779
5780sysv4 | sysv4.3*)
5781 case $host_vendor in
5782 motorola)
5783 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]'
5784 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5785 ;;
5786 ncr)
5787 lt_cv_deplibs_check_method=pass_all
5788 ;;
5789 sequent)
5790 lt_cv_file_magic_cmd='/bin/file'
5791 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5792 ;;
5793 sni)
5794 lt_cv_file_magic_cmd='/bin/file'
5795 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5796 lt_cv_file_magic_test_file=/lib/libc.so
5797 ;;
5798 siemens)
5799 lt_cv_deplibs_check_method=pass_all
5800 ;;
5801 pc)
5802 lt_cv_deplibs_check_method=pass_all
5803 ;;
5804 esac
5805 ;;
5806
5807tpf*)
5808 lt_cv_deplibs_check_method=pass_all
5809 ;;
5810esac
5811
5812fi
5813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5814$as_echo "$lt_cv_deplibs_check_method" >&6; }
5815file_magic_cmd=$lt_cv_file_magic_cmd
5816deplibs_check_method=$lt_cv_deplibs_check_method
5817test -z "$deplibs_check_method" && deplibs_check_method=unknown
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830if test -n "$ac_tool_prefix"; then
5831 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5832set dummy ${ac_tool_prefix}ar; ac_word=$2
5833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5834$as_echo_n "checking for $ac_word... " >&6; }
5835if test "${ac_cv_prog_AR+set}" = set; then :
5836 $as_echo_n "(cached) " >&6
5837else
5838 if test -n "$AR"; then
5839 ac_cv_prog_AR="$AR" # Let the user override the test.
5840else
5841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842for as_dir in $PATH
5843do
5844 IFS=$as_save_IFS
5845 test -z "$as_dir" && as_dir=.
5846 for ac_exec_ext in '' $ac_executable_extensions; do
5847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5848 ac_cv_prog_AR="${ac_tool_prefix}ar"
5849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5850 break 2
5851 fi
5852done
5853 done
5854IFS=$as_save_IFS
5855
5856fi
5857fi
5858AR=$ac_cv_prog_AR
5859if test -n "$AR"; then
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5861$as_echo "$AR" >&6; }
5862else
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5864$as_echo "no" >&6; }
5865fi
5866
5867
5868fi
5869if test -z "$ac_cv_prog_AR"; then
5870 ac_ct_AR=$AR
5871 # Extract the first word of "ar", so it can be a program name with args.
5872set dummy ar; ac_word=$2
5873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5874$as_echo_n "checking for $ac_word... " >&6; }
5875if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5876 $as_echo_n "(cached) " >&6
5877else
5878 if test -n "$ac_ct_AR"; then
5879 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5880else
5881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882for as_dir in $PATH
5883do
5884 IFS=$as_save_IFS
5885 test -z "$as_dir" && as_dir=.
5886 for ac_exec_ext in '' $ac_executable_extensions; do
5887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5888 ac_cv_prog_ac_ct_AR="ar"
5889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5890 break 2
5891 fi
5892done
5893 done
5894IFS=$as_save_IFS
5895
5896fi
5897fi
5898ac_ct_AR=$ac_cv_prog_ac_ct_AR
5899if test -n "$ac_ct_AR"; then
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5901$as_echo "$ac_ct_AR" >&6; }
5902else
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5904$as_echo "no" >&6; }
5905fi
5906
5907 if test "x$ac_ct_AR" = x; then
5908 AR="false"
5909 else
5910 case $cross_compiling:$ac_tool_warned in
5911yes:)
5912{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5913$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5914ac_tool_warned=yes ;;
5915esac
5916 AR=$ac_ct_AR
5917 fi
5918else
5919 AR="$ac_cv_prog_AR"
5920fi
5921
5922test -z "$AR" && AR=ar
5923test -z "$AR_FLAGS" && AR_FLAGS=cru
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935if test -n "$ac_tool_prefix"; then
5936 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5937set dummy ${ac_tool_prefix}strip; ac_word=$2
5938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5939$as_echo_n "checking for $ac_word... " >&6; }
5940if test "${ac_cv_prog_STRIP+set}" = set; then :
5941 $as_echo_n "(cached) " >&6
5942else
5943 if test -n "$STRIP"; then
5944 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5945else
5946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5947for as_dir in $PATH
5948do
5949 IFS=$as_save_IFS
5950 test -z "$as_dir" && as_dir=.
5951 for ac_exec_ext in '' $ac_executable_extensions; do
5952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5953 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5955 break 2
5956 fi
5957done
5958 done
5959IFS=$as_save_IFS
5960
5961fi
5962fi
5963STRIP=$ac_cv_prog_STRIP
5964if test -n "$STRIP"; then
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5966$as_echo "$STRIP" >&6; }
5967else
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5969$as_echo "no" >&6; }
5970fi
5971
5972
5973fi
5974if test -z "$ac_cv_prog_STRIP"; then
5975 ac_ct_STRIP=$STRIP
5976 # Extract the first word of "strip", so it can be a program name with args.
5977set dummy strip; ac_word=$2
5978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5979$as_echo_n "checking for $ac_word... " >&6; }
5980if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5981 $as_echo_n "(cached) " >&6
5982else
5983 if test -n "$ac_ct_STRIP"; then
5984 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5985else
5986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5987for as_dir in $PATH
5988do
5989 IFS=$as_save_IFS
5990 test -z "$as_dir" && as_dir=.
5991 for ac_exec_ext in '' $ac_executable_extensions; do
5992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5993 ac_cv_prog_ac_ct_STRIP="strip"
5994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5995 break 2
5996 fi
5997done
5998 done
5999IFS=$as_save_IFS
6000
6001fi
6002fi
6003ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6004if test -n "$ac_ct_STRIP"; then
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6006$as_echo "$ac_ct_STRIP" >&6; }
6007else
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6009$as_echo "no" >&6; }
6010fi
6011
6012 if test "x$ac_ct_STRIP" = x; then
6013 STRIP=":"
6014 else
6015 case $cross_compiling:$ac_tool_warned in
6016yes:)
6017{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6018$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6019ac_tool_warned=yes ;;
6020esac
6021 STRIP=$ac_ct_STRIP
6022 fi
6023else
6024 STRIP="$ac_cv_prog_STRIP"
6025fi
6026
6027test -z "$STRIP" && STRIP=:
6028
6029
6030
6031
6032
6033
6034if test -n "$ac_tool_prefix"; then
6035 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6036set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6038$as_echo_n "checking for $ac_word... " >&6; }
6039if test "${ac_cv_prog_RANLIB+set}" = set; then :
6040 $as_echo_n "(cached) " >&6
6041else
6042 if test -n "$RANLIB"; then
6043 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6044else
6045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046for as_dir in $PATH
6047do
6048 IFS=$as_save_IFS
6049 test -z "$as_dir" && as_dir=.
6050 for ac_exec_ext in '' $ac_executable_extensions; do
6051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6052 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6054 break 2
6055 fi
6056done
6057 done
6058IFS=$as_save_IFS
6059
6060fi
6061fi
6062RANLIB=$ac_cv_prog_RANLIB
6063if test -n "$RANLIB"; then
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6065$as_echo "$RANLIB" >&6; }
6066else
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6068$as_echo "no" >&6; }
6069fi
6070
6071
6072fi
6073if test -z "$ac_cv_prog_RANLIB"; then
6074 ac_ct_RANLIB=$RANLIB
6075 # Extract the first word of "ranlib", so it can be a program name with args.
6076set dummy ranlib; ac_word=$2
6077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6078$as_echo_n "checking for $ac_word... " >&6; }
6079if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6080 $as_echo_n "(cached) " >&6
6081else
6082 if test -n "$ac_ct_RANLIB"; then
6083 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6084else
6085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086for as_dir in $PATH
6087do
6088 IFS=$as_save_IFS
6089 test -z "$as_dir" && as_dir=.
6090 for ac_exec_ext in '' $ac_executable_extensions; do
6091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6092 ac_cv_prog_ac_ct_RANLIB="ranlib"
6093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6094 break 2
6095 fi
6096done
6097 done
6098IFS=$as_save_IFS
6099
6100fi
6101fi
6102ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6103if test -n "$ac_ct_RANLIB"; then
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6105$as_echo "$ac_ct_RANLIB" >&6; }
6106else
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6108$as_echo "no" >&6; }
6109fi
6110
6111 if test "x$ac_ct_RANLIB" = x; then
6112 RANLIB=":"
6113 else
6114 case $cross_compiling:$ac_tool_warned in
6115yes:)
6116{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6117$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6118ac_tool_warned=yes ;;
6119esac
6120 RANLIB=$ac_ct_RANLIB
6121 fi
6122else
6123 RANLIB="$ac_cv_prog_RANLIB"
6124fi
6125
6126test -z "$RANLIB" && RANLIB=:
6127
6128
6129
6130
6131
6132
6133# Determine commands to create old-style static archives.
6134old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6135old_postinstall_cmds='chmod 644 $oldlib'
6136old_postuninstall_cmds=
6137
6138if test -n "$RANLIB"; then
6139 case $host_os in
6140 openbsd*)
6141 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6142 ;;
6143 *)
6144 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6145 ;;
6146 esac
6147 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6148fi
6149
6150case $host_os in
6151 darwin*)
6152 lock_old_archive_extraction=yes ;;
6153 *)
6154 lock_old_archive_extraction=no ;;
6155esac
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195# If no C compiler was specified, use CC.
6196LTCC=${LTCC-"$CC"}
6197
6198# If no C compiler flags were specified, use CFLAGS.
6199LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6200
6201# Allow CC to be a program name with arguments.
6202compiler=$CC
6203
6204
6205# Check for command to grab the raw symbol name followed by C symbol from nm.
6206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6207$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6208if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6209 $as_echo_n "(cached) " >&6
6210else
6211
6212# These are sane defaults that work on at least a few old systems.
6213# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6214
6215# Character class describing NM global symbol codes.
6216symcode='[BCDEGRST]'
6217
6218# Regexp to match symbols that can be accessed directly from C.
6219sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6220
6221# Define system-specific variables.
6222case $host_os in
6223aix*)
6224 symcode='[BCDT]'
6225 ;;
6226cygwin* | mingw* | pw32* | cegcc*)
6227 symcode='[ABCDGISTW]'
6228 ;;
6229hpux*)
6230 if test "$host_cpu" = ia64; then
6231 symcode='[ABCDEGRST]'
6232 fi
6233 ;;
6234irix* | nonstopux*)
6235 symcode='[BCDEGRST]'
6236 ;;
6237osf*)
6238 symcode='[BCDEGQRST]'
6239 ;;
6240solaris*)
6241 symcode='[BDRT]'
6242 ;;
6243sco3.2v5*)
6244 symcode='[DT]'
6245 ;;
6246sysv4.2uw2*)
6247 symcode='[DT]'
6248 ;;
6249sysv5* | sco5v6* | unixware* | OpenUNIX*)
6250 symcode='[ABDT]'
6251 ;;
6252sysv4)
6253 symcode='[DFNSTU]'
6254 ;;
6255esac
6256
6257# If we're using GNU nm, then use its standard symbol codes.
6258case `$NM -V 2>&1` in
6259*GNU* | *'with BFD'*)
6260 symcode='[ABCDGIRSTW]' ;;
6261esac
6262
6263# Transform an extracted symbol line into a proper C declaration.
6264# Some systems (esp. on ia64) link data and code symbols differently,
6265# so use this general approach.
6266lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6267
6268# Transform an extracted symbol line into symbol name and symbol address
6269lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6270lt_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'"
6271
6272# Handle CRLF in mingw tool chain
6273opt_cr=
6274case $build_os in
6275mingw*)
6276 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6277 ;;
6278esac
6279
6280# Try without a prefix underscore, then with it.
6281for ac_symprfx in "" "_"; do
6282
6283 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6284 symxfrm="\\1 $ac_symprfx\\2 \\2"
6285
6286 # Write the raw and C identifiers.
6287 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6288 # Fake it for dumpbin and say T for any non-static function
6289 # and D for any global variable.
6290 # Also find C++ and __fastcall symbols from MSVC++,
6291 # which start with @ or ?.
6292 lt_cv_sys_global_symbol_pipe="$AWK '"\
6293" {last_section=section; section=\$ 3};"\
6294" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6295" \$ 0!~/External *\|/{next};"\
6296" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6297" {if(hide[section]) next};"\
6298" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6299" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6300" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6301" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6302" ' prfx=^$ac_symprfx"
6303 else
6304 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6305 fi
6306
6307 # Check to see that the pipe works correctly.
6308 pipe_works=no
6309
6310 rm -f conftest*
6311 cat > conftest.$ac_ext <<_LT_EOF
6312#ifdef __cplusplus
6313extern "C" {
6314#endif
6315char nm_test_var;
6316void nm_test_func(void);
6317void nm_test_func(void){}
6318#ifdef __cplusplus
6319}
6320#endif
6321int main(){nm_test_var='a';nm_test_func();return(0);}
6322_LT_EOF
6323
6324 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6325 (eval $ac_compile) 2>&5
6326 ac_status=$?
6327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6328 test $ac_status = 0; }; then
6329 # Now try to grab the symbols.
6330 nlist=conftest.nm
6331 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6332 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6333 ac_status=$?
6334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6335 test $ac_status = 0; } && test -s "$nlist"; then
6336 # Try sorting and uniquifying the output.
6337 if sort "$nlist" | uniq > "$nlist"T; then
6338 mv -f "$nlist"T "$nlist"
6339 else
6340 rm -f "$nlist"T
6341 fi
6342
6343 # Make sure that we snagged all the symbols we need.
6344 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6345 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6346 cat <<_LT_EOF > conftest.$ac_ext
6347#ifdef __cplusplus
6348extern "C" {
6349#endif
6350
6351_LT_EOF
6352 # Now generate the symbol file.
6353 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6354
6355 cat <<_LT_EOF >> conftest.$ac_ext
6356
6357/* The mapping between symbol names and symbols. */
6358const struct {
6359 const char *name;
6360 void *address;
6361}
6362lt__PROGRAM__LTX_preloaded_symbols[] =
6363{
6364 { "@PROGRAM@", (void *) 0 },
6365_LT_EOF
6366 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6367 cat <<\_LT_EOF >> conftest.$ac_ext
6368 {0, (void *) 0}
6369};
6370
6371/* This works around a problem in FreeBSD linker */
6372#ifdef FREEBSD_WORKAROUND
6373static const void *lt_preloaded_setup() {
6374 return lt__PROGRAM__LTX_preloaded_symbols;
6375}
6376#endif
6377
6378#ifdef __cplusplus
6379}
6380#endif
6381_LT_EOF
6382 # Now try linking the two files.
6383 mv conftest.$ac_objext conftstm.$ac_objext
6384 lt_save_LIBS="$LIBS"
6385 lt_save_CFLAGS="$CFLAGS"
6386 LIBS="conftstm.$ac_objext"
6387 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6388 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6389 (eval $ac_link) 2>&5
6390 ac_status=$?
6391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6392 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6393 pipe_works=yes
6394 fi
6395 LIBS="$lt_save_LIBS"
6396 CFLAGS="$lt_save_CFLAGS"
6397 else
6398 echo "cannot find nm_test_func in $nlist" >&5
6399 fi
6400 else
6401 echo "cannot find nm_test_var in $nlist" >&5
6402 fi
6403 else
6404 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6405 fi
6406 else
6407 echo "$progname: failed program was:" >&5
6408 cat conftest.$ac_ext >&5
6409 fi
6410 rm -rf conftest* conftst*
6411
6412 # Do not use the global_symbol_pipe unless it works.
6413 if test "$pipe_works" = yes; then
6414 break
6415 else
6416 lt_cv_sys_global_symbol_pipe=
6417 fi
6418done
6419
6420fi
6421
6422if test -z "$lt_cv_sys_global_symbol_pipe"; then
6423 lt_cv_sys_global_symbol_to_cdecl=
6424fi
6425if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6427$as_echo "failed" >&6; }
6428else
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6430$as_echo "ok" >&6; }
6431fi
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
061793a4 6452
7a938933
ILT
6453
6454
6455# Check whether --enable-libtool-lock was given.
6456if test "${enable_libtool_lock+set}" = set; then :
6457 enableval=$enable_libtool_lock;
6458fi
6459
6460test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6461
6462# Some flags need to be propagated to the compiler or linker for good
6463# libtool support.
6464case $host in
6465ia64-*-hpux*)
6466 # Find out which ABI we are using.
6467 echo 'int i;' > conftest.$ac_ext
6468 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6469 (eval $ac_compile) 2>&5
6470 ac_status=$?
6471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6472 test $ac_status = 0; }; then
6473 case `/usr/bin/file conftest.$ac_objext` in
6474 *ELF-32*)
6475 HPUX_IA64_MODE="32"
6476 ;;
6477 *ELF-64*)
6478 HPUX_IA64_MODE="64"
6479 ;;
6480 esac
6481 fi
6482 rm -rf conftest*
6483 ;;
6484*-*-irix6*)
6485 # Find out which ABI we are using.
6486 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6487 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6488 (eval $ac_compile) 2>&5
6489 ac_status=$?
6490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6491 test $ac_status = 0; }; then
6492 if test "$lt_cv_prog_gnu_ld" = yes; then
6493 case `/usr/bin/file conftest.$ac_objext` in
6494 *32-bit*)
6495 LD="${LD-ld} -melf32bsmip"
6496 ;;
6497 *N32*)
6498 LD="${LD-ld} -melf32bmipn32"
6499 ;;
6500 *64-bit*)
6501 LD="${LD-ld} -melf64bmip"
6502 ;;
6503 esac
6504 else
6505 case `/usr/bin/file conftest.$ac_objext` in
6506 *32-bit*)
6507 LD="${LD-ld} -32"
6508 ;;
6509 *N32*)
6510 LD="${LD-ld} -n32"
6511 ;;
6512 *64-bit*)
6513 LD="${LD-ld} -64"
6514 ;;
6515 esac
6516 fi
6517 fi
6518 rm -rf conftest*
6519 ;;
6520
6e6bbb60 6521x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7a938933
ILT
6522s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6523 # Find out which ABI we are using.
6524 echo 'int i;' > conftest.$ac_ext
6525 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6526 (eval $ac_compile) 2>&5
6527 ac_status=$?
6528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6529 test $ac_status = 0; }; then
6530 case `/usr/bin/file conftest.o` in
6531 *32-bit*)
6532 case $host in
6533 x86_64-*kfreebsd*-gnu)
6534 LD="${LD-ld} -m elf_i386_fbsd"
6535 ;;
6536 x86_64-*linux*)
327a26a3
ILT
6537 case `/usr/bin/file conftest.o` in
6538 *x86-64*)
6539 LD="${LD-ld} -m elf32_x86_64"
6540 ;;
6541 *)
6542 LD="${LD-ld} -m elf_i386"
6543 ;;
6544 esac
7a938933 6545 ;;
42c447c0 6546 powerpc64le-*linux*)
6e6bbb60
ILT
6547 LD="${LD-ld} -m elf32lppclinux"
6548 ;;
42c447c0 6549 powerpc64-*linux*)
7a938933
ILT
6550 LD="${LD-ld} -m elf32ppclinux"
6551 ;;
6552 s390x-*linux*)
6553 LD="${LD-ld} -m elf_s390"
6554 ;;
6555 sparc64-*linux*)
6556 LD="${LD-ld} -m elf32_sparc"
6557 ;;
6558 esac
6559 ;;
6560 *64-bit*)
6561 case $host in
6562 x86_64-*kfreebsd*-gnu)
6563 LD="${LD-ld} -m elf_x86_64_fbsd"
6564 ;;
6565 x86_64-*linux*)
6566 LD="${LD-ld} -m elf_x86_64"
6567 ;;
42c447c0 6568 powerpcle-*linux*)
6e6bbb60
ILT
6569 LD="${LD-ld} -m elf64lppc"
6570 ;;
42c447c0 6571 powerpc-*linux*)
7a938933
ILT
6572 LD="${LD-ld} -m elf64ppc"
6573 ;;
6574 s390*-*linux*|s390*-*tpf*)
6575 LD="${LD-ld} -m elf64_s390"
6576 ;;
6577 sparc*-*linux*)
6578 LD="${LD-ld} -m elf64_sparc"
6579 ;;
6580 esac
6581 ;;
6582 esac
6583 fi
6584 rm -rf conftest*
6585 ;;
6586
6587*-*-sco3.2v5*)
6588 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6589 SAVE_CFLAGS="$CFLAGS"
6590 CFLAGS="$CFLAGS -belf"
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6592$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6593if test "${lt_cv_cc_needs_belf+set}" = set; then :
6594 $as_echo_n "(cached) " >&6
6595else
6596 ac_ext=c
6597ac_cpp='$CPP $CPPFLAGS'
6598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6600ac_compiler_gnu=$ac_cv_c_compiler_gnu
6601
6602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6603/* end confdefs.h. */
6604
6605int
6606main ()
6607{
6608
6609 ;
6610 return 0;
6611}
6612_ACEOF
6613if ac_fn_c_try_link "$LINENO"; then :
6614 lt_cv_cc_needs_belf=yes
6615else
6616 lt_cv_cc_needs_belf=no
6617fi
6618rm -f core conftest.err conftest.$ac_objext \
6619 conftest$ac_exeext conftest.$ac_ext
6620 ac_ext=c
6621ac_cpp='$CPP $CPPFLAGS'
6622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6624ac_compiler_gnu=$ac_cv_c_compiler_gnu
6625
6626fi
6627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6628$as_echo "$lt_cv_cc_needs_belf" >&6; }
6629 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6630 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6631 CFLAGS="$SAVE_CFLAGS"
6632 fi
6633 ;;
327a26a3 6634sparc*-*solaris*)
7a938933
ILT
6635 # Find out which ABI we are using.
6636 echo 'int i;' > conftest.$ac_ext
6637 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6638 (eval $ac_compile) 2>&5
6639 ac_status=$?
6640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6641 test $ac_status = 0; }; then
6642 case `/usr/bin/file conftest.o` in
6643 *64-bit*)
6644 case $lt_cv_prog_gnu_ld in
327a26a3 6645 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7a938933
ILT
6646 *)
6647 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6648 LD="${LD-ld} -64"
6649 fi
6650 ;;
6651 esac
6652 ;;
6653 esac
6654 fi
6655 rm -rf conftest*
6656 ;;
6657esac
6658
6659need_locks="$enable_libtool_lock"
6660
6661
6662 case $host_os in
6663 rhapsody* | darwin*)
6664 if test -n "$ac_tool_prefix"; then
6665 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6666set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6668$as_echo_n "checking for $ac_word... " >&6; }
6669if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6670 $as_echo_n "(cached) " >&6
6671else
6672 if test -n "$DSYMUTIL"; then
6673 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6674else
6675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676for as_dir in $PATH
6677do
6678 IFS=$as_save_IFS
6679 test -z "$as_dir" && as_dir=.
6680 for ac_exec_ext in '' $ac_executable_extensions; do
6681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6682 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6684 break 2
6685 fi
6686done
6687 done
6688IFS=$as_save_IFS
6689
6690fi
6691fi
6692DSYMUTIL=$ac_cv_prog_DSYMUTIL
6693if test -n "$DSYMUTIL"; then
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6695$as_echo "$DSYMUTIL" >&6; }
6696else
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698$as_echo "no" >&6; }
6699fi
6700
6701
6702fi
6703if test -z "$ac_cv_prog_DSYMUTIL"; then
6704 ac_ct_DSYMUTIL=$DSYMUTIL
6705 # Extract the first word of "dsymutil", so it can be a program name with args.
6706set dummy dsymutil; ac_word=$2
6707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6708$as_echo_n "checking for $ac_word... " >&6; }
6709if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6710 $as_echo_n "(cached) " >&6
6711else
6712 if test -n "$ac_ct_DSYMUTIL"; then
6713 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6714else
6715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716for as_dir in $PATH
6717do
6718 IFS=$as_save_IFS
6719 test -z "$as_dir" && as_dir=.
6720 for ac_exec_ext in '' $ac_executable_extensions; do
6721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6722 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6724 break 2
6725 fi
6726done
6727 done
6728IFS=$as_save_IFS
6729
6730fi
6731fi
6732ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6733if test -n "$ac_ct_DSYMUTIL"; then
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6735$as_echo "$ac_ct_DSYMUTIL" >&6; }
6736else
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6738$as_echo "no" >&6; }
6739fi
6740
6741 if test "x$ac_ct_DSYMUTIL" = x; then
6742 DSYMUTIL=":"
6743 else
6744 case $cross_compiling:$ac_tool_warned in
6745yes:)
6746{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6747$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6748ac_tool_warned=yes ;;
6749esac
6750 DSYMUTIL=$ac_ct_DSYMUTIL
6751 fi
6752else
6753 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6754fi
6755
6756 if test -n "$ac_tool_prefix"; then
6757 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6758set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6760$as_echo_n "checking for $ac_word... " >&6; }
6761if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6762 $as_echo_n "(cached) " >&6
6763else
6764 if test -n "$NMEDIT"; then
6765 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6766else
6767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768for as_dir in $PATH
6769do
6770 IFS=$as_save_IFS
6771 test -z "$as_dir" && as_dir=.
6772 for ac_exec_ext in '' $ac_executable_extensions; do
6773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6774 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6776 break 2
6777 fi
6778done
6779 done
6780IFS=$as_save_IFS
6781
6782fi
6783fi
6784NMEDIT=$ac_cv_prog_NMEDIT
6785if test -n "$NMEDIT"; then
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6787$as_echo "$NMEDIT" >&6; }
6788else
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6790$as_echo "no" >&6; }
6791fi
6792
6793
6794fi
6795if test -z "$ac_cv_prog_NMEDIT"; then
6796 ac_ct_NMEDIT=$NMEDIT
6797 # Extract the first word of "nmedit", so it can be a program name with args.
6798set dummy nmedit; ac_word=$2
6799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6800$as_echo_n "checking for $ac_word... " >&6; }
6801if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6802 $as_echo_n "(cached) " >&6
6803else
6804 if test -n "$ac_ct_NMEDIT"; then
6805 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6806else
6807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808for as_dir in $PATH
6809do
6810 IFS=$as_save_IFS
6811 test -z "$as_dir" && as_dir=.
6812 for ac_exec_ext in '' $ac_executable_extensions; do
6813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6814 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6816 break 2
6817 fi
6818done
6819 done
6820IFS=$as_save_IFS
6821
6822fi
6823fi
6824ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6825if test -n "$ac_ct_NMEDIT"; then
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6827$as_echo "$ac_ct_NMEDIT" >&6; }
6828else
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6830$as_echo "no" >&6; }
6831fi
6832
6833 if test "x$ac_ct_NMEDIT" = x; then
6834 NMEDIT=":"
6835 else
6836 case $cross_compiling:$ac_tool_warned in
6837yes:)
6838{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6839$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6840ac_tool_warned=yes ;;
6841esac
6842 NMEDIT=$ac_ct_NMEDIT
6843 fi
6844else
6845 NMEDIT="$ac_cv_prog_NMEDIT"
6846fi
6847
6848 if test -n "$ac_tool_prefix"; then
6849 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6850set dummy ${ac_tool_prefix}lipo; ac_word=$2
6851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6852$as_echo_n "checking for $ac_word... " >&6; }
6853if test "${ac_cv_prog_LIPO+set}" = set; then :
6854 $as_echo_n "(cached) " >&6
6855else
6856 if test -n "$LIPO"; then
6857 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6858else
6859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860for as_dir in $PATH
6861do
6862 IFS=$as_save_IFS
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6866 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 break 2
6869 fi
6870done
6871 done
6872IFS=$as_save_IFS
6873
6874fi
6875fi
6876LIPO=$ac_cv_prog_LIPO
6877if test -n "$LIPO"; then
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6879$as_echo "$LIPO" >&6; }
6880else
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882$as_echo "no" >&6; }
6883fi
6884
6885
6886fi
6887if test -z "$ac_cv_prog_LIPO"; then
6888 ac_ct_LIPO=$LIPO
6889 # Extract the first word of "lipo", so it can be a program name with args.
6890set dummy lipo; ac_word=$2
6891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6892$as_echo_n "checking for $ac_word... " >&6; }
6893if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6894 $as_echo_n "(cached) " >&6
6895else
6896 if test -n "$ac_ct_LIPO"; then
6897 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6898else
6899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900for as_dir in $PATH
6901do
6902 IFS=$as_save_IFS
6903 test -z "$as_dir" && as_dir=.
6904 for ac_exec_ext in '' $ac_executable_extensions; do
6905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6906 ac_cv_prog_ac_ct_LIPO="lipo"
6907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6908 break 2
6909 fi
6910done
6911 done
6912IFS=$as_save_IFS
6913
6914fi
6915fi
6916ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6917if test -n "$ac_ct_LIPO"; then
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6919$as_echo "$ac_ct_LIPO" >&6; }
6920else
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6922$as_echo "no" >&6; }
6923fi
6924
6925 if test "x$ac_ct_LIPO" = x; then
6926 LIPO=":"
6927 else
6928 case $cross_compiling:$ac_tool_warned in
6929yes:)
6930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6932ac_tool_warned=yes ;;
6933esac
6934 LIPO=$ac_ct_LIPO
6935 fi
6936else
6937 LIPO="$ac_cv_prog_LIPO"
6938fi
6939
6940 if test -n "$ac_tool_prefix"; then
6941 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6942set dummy ${ac_tool_prefix}otool; ac_word=$2
6943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6944$as_echo_n "checking for $ac_word... " >&6; }
6945if test "${ac_cv_prog_OTOOL+set}" = set; then :
6946 $as_echo_n "(cached) " >&6
6947else
6948 if test -n "$OTOOL"; then
6949 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6950else
6951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952for as_dir in $PATH
6953do
6954 IFS=$as_save_IFS
6955 test -z "$as_dir" && as_dir=.
6956 for ac_exec_ext in '' $ac_executable_extensions; do
6957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6958 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6960 break 2
6961 fi
6962done
6963 done
6964IFS=$as_save_IFS
6965
6966fi
6967fi
6968OTOOL=$ac_cv_prog_OTOOL
6969if test -n "$OTOOL"; then
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6971$as_echo "$OTOOL" >&6; }
6972else
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6974$as_echo "no" >&6; }
6975fi
6976
6977
6978fi
6979if test -z "$ac_cv_prog_OTOOL"; then
6980 ac_ct_OTOOL=$OTOOL
6981 # Extract the first word of "otool", so it can be a program name with args.
6982set dummy otool; ac_word=$2
6983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6984$as_echo_n "checking for $ac_word... " >&6; }
6985if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6986 $as_echo_n "(cached) " >&6
6987else
6988 if test -n "$ac_ct_OTOOL"; then
6989 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6990else
6991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992for as_dir in $PATH
6993do
6994 IFS=$as_save_IFS
6995 test -z "$as_dir" && as_dir=.
6996 for ac_exec_ext in '' $ac_executable_extensions; do
6997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6998 ac_cv_prog_ac_ct_OTOOL="otool"
6999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7000 break 2
7001 fi
7002done
7003 done
7004IFS=$as_save_IFS
7005
7006fi
7007fi
7008ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7009if test -n "$ac_ct_OTOOL"; then
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7011$as_echo "$ac_ct_OTOOL" >&6; }
7012else
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7014$as_echo "no" >&6; }
7015fi
7016
7017 if test "x$ac_ct_OTOOL" = x; then
7018 OTOOL=":"
7019 else
7020 case $cross_compiling:$ac_tool_warned in
7021yes:)
7022{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7023$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7024ac_tool_warned=yes ;;
7025esac
7026 OTOOL=$ac_ct_OTOOL
7027 fi
7028else
7029 OTOOL="$ac_cv_prog_OTOOL"
7030fi
7031
7032 if test -n "$ac_tool_prefix"; then
7033 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7034set dummy ${ac_tool_prefix}otool64; ac_word=$2
7035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7036$as_echo_n "checking for $ac_word... " >&6; }
7037if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7038 $as_echo_n "(cached) " >&6
7039else
7040 if test -n "$OTOOL64"; then
7041 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7042else
7043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044for as_dir in $PATH
7045do
7046 IFS=$as_save_IFS
7047 test -z "$as_dir" && as_dir=.
7048 for ac_exec_ext in '' $ac_executable_extensions; do
7049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7050 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7052 break 2
7053 fi
7054done
7055 done
7056IFS=$as_save_IFS
7057
7058fi
7059fi
7060OTOOL64=$ac_cv_prog_OTOOL64
7061if test -n "$OTOOL64"; then
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7063$as_echo "$OTOOL64" >&6; }
7064else
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7066$as_echo "no" >&6; }
7067fi
7068
7069
7070fi
7071if test -z "$ac_cv_prog_OTOOL64"; then
7072 ac_ct_OTOOL64=$OTOOL64
7073 # Extract the first word of "otool64", so it can be a program name with args.
7074set dummy otool64; ac_word=$2
7075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7076$as_echo_n "checking for $ac_word... " >&6; }
7077if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7078 $as_echo_n "(cached) " >&6
7079else
7080 if test -n "$ac_ct_OTOOL64"; then
7081 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7082else
7083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084for as_dir in $PATH
7085do
7086 IFS=$as_save_IFS
7087 test -z "$as_dir" && as_dir=.
7088 for ac_exec_ext in '' $ac_executable_extensions; do
7089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7090 ac_cv_prog_ac_ct_OTOOL64="otool64"
7091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7092 break 2
7093 fi
7094done
7095 done
7096IFS=$as_save_IFS
7097
7098fi
7099fi
7100ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7101if test -n "$ac_ct_OTOOL64"; then
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7103$as_echo "$ac_ct_OTOOL64" >&6; }
7104else
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7106$as_echo "no" >&6; }
7107fi
7108
7109 if test "x$ac_ct_OTOOL64" = x; then
7110 OTOOL64=":"
7111 else
7112 case $cross_compiling:$ac_tool_warned in
7113yes:)
7114{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7115$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7116ac_tool_warned=yes ;;
7117esac
7118 OTOOL64=$ac_ct_OTOOL64
7119 fi
7120else
e02ed81e 7121 OTOOL64="$ac_cv_prog_OTOOL64"
7a938933
ILT
7122fi
7123
7a938933
ILT
7124
7125
7a938933 7126
7a938933 7127
7a938933 7128
7a938933 7129
7a938933 7130
7a938933 7131
7a938933 7132
7a938933 7133
7a938933 7134
7a938933 7135
7a938933 7136
e02ed81e
ILT
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7151$as_echo_n "checking for -single_module linker flag... " >&6; }
7152if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7153 $as_echo_n "(cached) " >&6
7a938933 7154else
e02ed81e
ILT
7155 lt_cv_apple_cc_single_mod=no
7156 if test -z "${LT_MULTI_MODULE}"; then
7157 # By default we will add the -single_module flag. You can override
7158 # by either setting the environment variable LT_MULTI_MODULE
7159 # non-empty at configure time, or by adding -multi_module to the
7160 # link flags.
7161 rm -rf libconftest.dylib*
7162 echo "int foo(void){return 1;}" > conftest.c
7163 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7164-dynamiclib -Wl,-single_module conftest.c" >&5
7165 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7166 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7167 _lt_result=$?
7168 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7169 lt_cv_apple_cc_single_mod=yes
7170 else
7171 cat conftest.err >&5
7172 fi
7173 rm -rf libconftest.dylib*
7174 rm -f conftest.*
7175 fi
7176fi
7177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7178$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7180$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7181if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7182 $as_echo_n "(cached) " >&6
7183else
7184 lt_cv_ld_exported_symbols_list=no
7185 save_LDFLAGS=$LDFLAGS
7186 echo "_main" > conftest.sym
7187 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7a938933 7189/* end confdefs.h. */
7a938933 7190
7a938933
ILT
7191int
7192main ()
7193{
e02ed81e
ILT
7194
7195 ;
7a938933
ILT
7196 return 0;
7197}
7198_ACEOF
e02ed81e
ILT
7199if ac_fn_c_try_link "$LINENO"; then :
7200 lt_cv_ld_exported_symbols_list=yes
7a938933 7201else
e02ed81e 7202 lt_cv_ld_exported_symbols_list=no
7a938933 7203fi
e02ed81e
ILT
7204rm -f core conftest.err conftest.$ac_objext \
7205 conftest$ac_exeext conftest.$ac_ext
7206 LDFLAGS="$save_LDFLAGS"
7a938933
ILT
7207
7208fi
e02ed81e
ILT
7209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7210$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7212$as_echo_n "checking for -force_load linker flag... " >&6; }
7213if test "${lt_cv_ld_force_load+set}" = set; then :
7214 $as_echo_n "(cached) " >&6
7215else
7216 lt_cv_ld_force_load=no
7217 cat > conftest.c << _LT_EOF
7218int forced_loaded() { return 2;}
7219_LT_EOF
7220 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7221 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7222 echo "$AR cru libconftest.a conftest.o" >&5
7223 $AR cru libconftest.a conftest.o 2>&5
7224 cat > conftest.c << _LT_EOF
7225int main() { return 0;}
7226_LT_EOF
7227 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7228 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7229 _lt_result=$?
7230 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7231 lt_cv_ld_force_load=yes
7232 else
7233 cat conftest.err >&5
7234 fi
7235 rm -f conftest.err libconftest.a conftest conftest.c
7236 rm -rf conftest.dSYM
7a938933
ILT
7237
7238fi
e02ed81e
ILT
7239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7240$as_echo "$lt_cv_ld_force_load" >&6; }
7241 case $host_os in
7242 rhapsody* | darwin1.[012])
7243 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7244 darwin1.*)
7245 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7246 darwin*) # darwin 5.x on
7247 # if running on 10.5 or later, the deployment target defaults
7248 # to the OS version, if on x86, and 10.4, the deployment
7249 # target defaults to 10.4. Don't you love it?
7250 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7251 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7252 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
327a26a3 7253 10.[012][,.]*)
e02ed81e
ILT
7254 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7255 10.*)
7256 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7257 esac
7258 ;;
7259 esac
7260 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7261 _lt_dar_single_mod='$single_module'
7262 fi
7263 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7264 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7265 else
7266 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7267 fi
7268 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7269 _lt_dsymutil='~$DSYMUTIL $lib || :'
7270 else
7271 _lt_dsymutil=
7272 fi
7273 ;;
7274 esac
7a938933 7275
061793a4
ILT
7276ac_ext=c
7277ac_cpp='$CPP $CPPFLAGS'
7278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7280ac_compiler_gnu=$ac_cv_c_compiler_gnu
7281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7282$as_echo_n "checking how to run the C preprocessor... " >&6; }
7283# On Suns, sometimes $CPP names a directory.
7284if test -n "$CPP" && test -d "$CPP"; then
7285 CPP=
7286fi
7287if test -z "$CPP"; then
7288 if test "${ac_cv_prog_CPP+set}" = set; then :
7289 $as_echo_n "(cached) " >&6
7290else
7291 # Double quotes because CPP needs to be expanded
7292 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7293 do
7294 ac_preproc_ok=false
7295for ac_c_preproc_warn_flag in '' yes
7296do
7297 # Use a header file that comes with gcc, so configuring glibc
7298 # with a fresh cross-compiler works.
7299 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7300 # <limits.h> exists even on freestanding compilers.
7301 # On the NeXT, cc -E runs the code through the compiler's parser,
7302 # not just through cpp. "Syntax error" is here to catch this case.
7303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7304/* end confdefs.h. */
7305#ifdef __STDC__
7306# include <limits.h>
7307#else
7308# include <assert.h>
7309#endif
7310 Syntax error
7311_ACEOF
7312if ac_fn_c_try_cpp "$LINENO"; then :
7313
7314else
7315 # Broken: fails on valid input.
7316continue
7317fi
7318rm -f conftest.err conftest.$ac_ext
7319
7320 # OK, works on sane cases. Now check whether nonexistent headers
7321 # can be detected and how.
7322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7323/* end confdefs.h. */
7324#include <ac_nonexistent.h>
7325_ACEOF
7326if ac_fn_c_try_cpp "$LINENO"; then :
7327 # Broken: success on invalid input.
7328continue
7329else
7330 # Passes both tests.
7331ac_preproc_ok=:
7332break
7333fi
7334rm -f conftest.err conftest.$ac_ext
7335
7336done
7337# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7338rm -f conftest.err conftest.$ac_ext
7339if $ac_preproc_ok; then :
7340 break
7341fi
7342
7343 done
7344 ac_cv_prog_CPP=$CPP
7345
7346fi
7347 CPP=$ac_cv_prog_CPP
7348else
7349 ac_cv_prog_CPP=$CPP
7350fi
7351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7352$as_echo "$CPP" >&6; }
7353ac_preproc_ok=false
7354for ac_c_preproc_warn_flag in '' yes
7355do
7356 # Use a header file that comes with gcc, so configuring glibc
7357 # with a fresh cross-compiler works.
7358 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7359 # <limits.h> exists even on freestanding compilers.
7360 # On the NeXT, cc -E runs the code through the compiler's parser,
7361 # not just through cpp. "Syntax error" is here to catch this case.
7362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7363/* end confdefs.h. */
7364#ifdef __STDC__
7365# include <limits.h>
7366#else
7367# include <assert.h>
7368#endif
7369 Syntax error
7370_ACEOF
7371if ac_fn_c_try_cpp "$LINENO"; then :
7372
7373else
7374 # Broken: fails on valid input.
7375continue
7376fi
7377rm -f conftest.err conftest.$ac_ext
7378
7379 # OK, works on sane cases. Now check whether nonexistent headers
7380 # can be detected and how.
7381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7382/* end confdefs.h. */
7383#include <ac_nonexistent.h>
7384_ACEOF
7385if ac_fn_c_try_cpp "$LINENO"; then :
7386 # Broken: success on invalid input.
7387continue
7388else
7389 # Passes both tests.
7390ac_preproc_ok=:
7391break
7392fi
7393rm -f conftest.err conftest.$ac_ext
7394
7395done
7396# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7397rm -f conftest.err conftest.$ac_ext
7398if $ac_preproc_ok; then :
7399
7400else
7401 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7402$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7403as_fn_error "C preprocessor \"$CPP\" fails sanity check
7404See \`config.log' for more details." "$LINENO" 5; }
7405fi
7406
7407ac_ext=c
7408ac_cpp='$CPP $CPPFLAGS'
7409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7411ac_compiler_gnu=$ac_cv_c_compiler_gnu
7412
7413
7414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7415$as_echo_n "checking for ANSI C header files... " >&6; }
7416if test "${ac_cv_header_stdc+set}" = set; then :
7417 $as_echo_n "(cached) " >&6
7418else
7419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7420/* end confdefs.h. */
7421#include <stdlib.h>
7422#include <stdarg.h>
7423#include <string.h>
7424#include <float.h>
7425
7426int
7427main ()
7428{
7429
7430 ;
7431 return 0;
7432}
7433_ACEOF
7434if ac_fn_c_try_compile "$LINENO"; then :
7435 ac_cv_header_stdc=yes
7436else
7437 ac_cv_header_stdc=no
7438fi
7439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7440
7441if test $ac_cv_header_stdc = yes; then
7442 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7444/* end confdefs.h. */
7445#include <string.h>
7446
7447_ACEOF
7448if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7449 $EGREP "memchr" >/dev/null 2>&1; then :
7450
7451else
7452 ac_cv_header_stdc=no
7453fi
7454rm -f conftest*
7455
7456fi
7457
7458if test $ac_cv_header_stdc = yes; then
7459 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7461/* end confdefs.h. */
7462#include <stdlib.h>
7463
7464_ACEOF
7465if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7466 $EGREP "free" >/dev/null 2>&1; then :
7467
7468else
7469 ac_cv_header_stdc=no
7470fi
7471rm -f conftest*
7472
7473fi
7474
7475if test $ac_cv_header_stdc = yes; then
7476 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7477 if test "$cross_compiling" = yes; then :
7478 :
7479else
7480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481/* end confdefs.h. */
7482#include <ctype.h>
7483#include <stdlib.h>
7484#if ((' ' & 0x0FF) == 0x020)
7485# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7486# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7487#else
7488# define ISLOWER(c) \
7489 (('a' <= (c) && (c) <= 'i') \
7490 || ('j' <= (c) && (c) <= 'r') \
7491 || ('s' <= (c) && (c) <= 'z'))
7492# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7493#endif
7494
7495#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7496int
7497main ()
7498{
7499 int i;
7500 for (i = 0; i < 256; i++)
7501 if (XOR (islower (i), ISLOWER (i))
7502 || toupper (i) != TOUPPER (i))
7503 return 2;
7504 return 0;
7505}
7506_ACEOF
7507if ac_fn_c_try_run "$LINENO"; then :
7508
7509else
7510 ac_cv_header_stdc=no
7511fi
7512rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7513 conftest.$ac_objext conftest.beam conftest.$ac_ext
7514fi
7515
7516fi
7517fi
7518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7519$as_echo "$ac_cv_header_stdc" >&6; }
7520if test $ac_cv_header_stdc = yes; then
7521
7522$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7523
7524fi
7525
7526# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7527for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7528 inttypes.h stdint.h unistd.h
7529do :
7530 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7531ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7532"
7533eval as_val=\$$as_ac_Header
7534 if test "x$as_val" = x""yes; then :
7535 cat >>confdefs.h <<_ACEOF
7536#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7537_ACEOF
7538
7539fi
7540
7541done
7542
7543
7a938933
ILT
7544for ac_header in dlfcn.h
7545do :
7546 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7547"
7548if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7549 cat >>confdefs.h <<_ACEOF
7550#define HAVE_DLFCN_H 1
7551_ACEOF
7552
7553fi
7554
7555done
7556
7557if test -n "$ac_tool_prefix"; then
7558 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7559set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7561$as_echo_n "checking for $ac_word... " >&6; }
7562if test "${ac_cv_prog_GOC+set}" = set; then :
7563 $as_echo_n "(cached) " >&6
7564else
7565 if test -n "$GOC"; then
7566 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7567else
7568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7569for as_dir in $PATH
7570do
7571 IFS=$as_save_IFS
7572 test -z "$as_dir" && as_dir=.
7573 for ac_exec_ext in '' $ac_executable_extensions; do
7574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7575 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7577 break 2
7578 fi
7579done
7580 done
7581IFS=$as_save_IFS
7582
7583fi
7584fi
7585GOC=$ac_cv_prog_GOC
7586if test -n "$GOC"; then
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7588$as_echo "$GOC" >&6; }
7589else
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7591$as_echo "no" >&6; }
7592fi
7593
7594
7595fi
7596if test -z "$ac_cv_prog_GOC"; then
7597 ac_ct_GOC=$GOC
7598 # Extract the first word of "gccgo", so it can be a program name with args.
7599set dummy gccgo; ac_word=$2
7600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7601$as_echo_n "checking for $ac_word... " >&6; }
7602if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7603 $as_echo_n "(cached) " >&6
7604else
7605 if test -n "$ac_ct_GOC"; then
7606 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7607else
7608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7609for as_dir in $PATH
7610do
7611 IFS=$as_save_IFS
7612 test -z "$as_dir" && as_dir=.
7613 for ac_exec_ext in '' $ac_executable_extensions; do
7614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7615 ac_cv_prog_ac_ct_GOC="gccgo"
7616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7617 break 2
7618 fi
7619done
7620 done
7621IFS=$as_save_IFS
7622
7623fi
7624fi
7625ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7626if test -n "$ac_ct_GOC"; then
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7628$as_echo "$ac_ct_GOC" >&6; }
7629else
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7631$as_echo "no" >&6; }
7632fi
7633
7634 if test "x$ac_ct_GOC" = x; then
7635 GOC=""
7636 else
7637 case $cross_compiling:$ac_tool_warned in
7638yes:)
7639{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7640$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7641ac_tool_warned=yes ;;
7642esac
7643 GOC=$ac_ct_GOC
7644 fi
7645else
7646 GOC="$ac_cv_prog_GOC"
7647fi
7648
7649
7650
7651
7652
7653
7654# Set options
7655
7656
7657
7658
7659 enable_win32_dll=no
7660
7661
7662 # Check whether --enable-shared was given.
7663if test "${enable_shared+set}" = set; then :
7664 enableval=$enable_shared; p=${PACKAGE-default}
7665 case $enableval in
7666 yes) enable_shared=yes ;;
7667 no) enable_shared=no ;;
7668 *)
7669 enable_shared=no
7670 # Look at the argument we got. We use all the common list separators.
7671 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7672 for pkg in $enableval; do
7673 IFS="$lt_save_ifs"
7674 if test "X$pkg" = "X$p"; then
7675 enable_shared=yes
7676 fi
7677 done
7678 IFS="$lt_save_ifs"
7679 ;;
7680 esac
7681else
7682 enable_shared=yes
7683fi
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693 # Check whether --enable-static was given.
7694if test "${enable_static+set}" = set; then :
7695 enableval=$enable_static; p=${PACKAGE-default}
7696 case $enableval in
7697 yes) enable_static=yes ;;
7698 no) enable_static=no ;;
7699 *)
7700 enable_static=no
7701 # Look at the argument we got. We use all the common list separators.
7702 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7703 for pkg in $enableval; do
7704 IFS="$lt_save_ifs"
7705 if test "X$pkg" = "X$p"; then
7706 enable_static=yes
7707 fi
7708 done
7709 IFS="$lt_save_ifs"
7710 ;;
7711 esac
7712else
7713 enable_static=yes
7714fi
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725# Check whether --with-pic was given.
7726if test "${with_pic+set}" = set; then :
7727 withval=$with_pic; pic_mode="$withval"
7728else
7729 pic_mode=default
7730fi
7731
7732
7733test -z "$pic_mode" && pic_mode=default
7734
7735
7736
7737
7738
7739
7740
7741 # Check whether --enable-fast-install was given.
7742if test "${enable_fast_install+set}" = set; then :
7743 enableval=$enable_fast_install; p=${PACKAGE-default}
7744 case $enableval in
7745 yes) enable_fast_install=yes ;;
7746 no) enable_fast_install=no ;;
7747 *)
7748 enable_fast_install=no
7749 # Look at the argument we got. We use all the common list separators.
7750 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7751 for pkg in $enableval; do
7752 IFS="$lt_save_ifs"
7753 if test "X$pkg" = "X$p"; then
7754 enable_fast_install=yes
7755 fi
7756 done
7757 IFS="$lt_save_ifs"
7758 ;;
7759 esac
7760else
7761 enable_fast_install=yes
7762fi
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774# This can be used to rebuild libtool when needed
7775LIBTOOL_DEPS="$ltmain"
7776
7777# Always use our own libtool.
7778LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805test -z "$LN_S" && LN_S="ln -s"
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820if test -n "${ZSH_VERSION+set}" ; then
7821 setopt NO_GLOB_SUBST
7822fi
7823
7824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7825$as_echo_n "checking for objdir... " >&6; }
7826if test "${lt_cv_objdir+set}" = set; then :
7827 $as_echo_n "(cached) " >&6
7828else
7829 rm -f .libs 2>/dev/null
7830mkdir .libs 2>/dev/null
7831if test -d .libs; then
7832 lt_cv_objdir=.libs
7833else
7834 # MS-DOS does not allow filenames that begin with a dot.
7835 lt_cv_objdir=_libs
7836fi
7837rmdir .libs 2>/dev/null
7838fi
7839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7840$as_echo "$lt_cv_objdir" >&6; }
7841objdir=$lt_cv_objdir
7842
7843
7844
7845
7846
7847cat >>confdefs.h <<_ACEOF
7848#define LT_OBJDIR "$lt_cv_objdir/"
7849_ACEOF
7850
7851
7852
7853
7854case $host_os in
7855aix3*)
7856 # AIX sometimes has problems with the GCC collect2 program. For some
7857 # reason, if we set the COLLECT_NAMES environment variable, the problems
7858 # vanish in a puff of smoke.
7859 if test "X${COLLECT_NAMES+set}" != Xset; then
7860 COLLECT_NAMES=
7861 export COLLECT_NAMES
7862 fi
7863 ;;
7864esac
7865
7866# Global variables:
7867ofile=libtool
7868can_build_shared=yes
7869
7870# All known linkers require a `.a' archive for static linking (except MSVC,
7871# which needs '.lib').
7872libext=a
7873
7874with_gnu_ld="$lt_cv_prog_gnu_ld"
7875
7876old_CC="$CC"
7877old_CFLAGS="$CFLAGS"
7878
7879# Set sane defaults for various variables
7880test -z "$CC" && CC=cc
7881test -z "$LTCC" && LTCC=$CC
7882test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7883test -z "$LD" && LD=ld
7884test -z "$ac_objext" && ac_objext=o
7885
7886for cc_temp in $compiler""; do
7887 case $cc_temp in
7888 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7889 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7890 \-*) ;;
7891 *) break;;
7892 esac
7893done
7894cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7895
7896
7897# Only perform the check for file, if the check method requires it
7898test -z "$MAGIC_CMD" && MAGIC_CMD=file
7899case $deplibs_check_method in
7900file_magic*)
7901 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7903$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7904if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7905 $as_echo_n "(cached) " >&6
7906else
7907 case $MAGIC_CMD in
7908[\\/*] | ?:[\\/]*)
7909 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7910 ;;
7911*)
7912 lt_save_MAGIC_CMD="$MAGIC_CMD"
7913 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7914 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7915 for ac_dir in $ac_dummy; do
7916 IFS="$lt_save_ifs"
7917 test -z "$ac_dir" && ac_dir=.
7918 if test -f $ac_dir/${ac_tool_prefix}file; then
7919 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7920 if test -n "$file_magic_test_file"; then
7921 case $deplibs_check_method in
7922 "file_magic "*)
7923 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7924 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7925 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7926 $EGREP "$file_magic_regex" > /dev/null; then
7927 :
7928 else
7929 cat <<_LT_EOF 1>&2
7930
7931*** Warning: the command libtool uses to detect shared libraries,
7932*** $file_magic_cmd, produces output that libtool cannot recognize.
7933*** The result is that libtool may fail to recognize shared libraries
7934*** as such. This will affect the creation of libtool libraries that
7935*** depend on shared libraries, but programs linked with such libtool
7936*** libraries will work regardless of this problem. Nevertheless, you
7937*** may want to report the problem to your system manager and/or to
7938*** bug-libtool@gnu.org
7939
7940_LT_EOF
7941 fi ;;
7942 esac
7943 fi
7944 break
7945 fi
7946 done
7947 IFS="$lt_save_ifs"
7948 MAGIC_CMD="$lt_save_MAGIC_CMD"
7949 ;;
7950esac
7951fi
7952
7953MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7954if test -n "$MAGIC_CMD"; then
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7956$as_echo "$MAGIC_CMD" >&6; }
7957else
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7959$as_echo "no" >&6; }
7960fi
7961
7962
7963
7964
7965
7966if test -z "$lt_cv_path_MAGIC_CMD"; then
7967 if test -n "$ac_tool_prefix"; then
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7969$as_echo_n "checking for file... " >&6; }
7970if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7971 $as_echo_n "(cached) " >&6
7972else
7973 case $MAGIC_CMD in
7974[\\/*] | ?:[\\/]*)
7975 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7976 ;;
7977*)
7978 lt_save_MAGIC_CMD="$MAGIC_CMD"
7979 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7980 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7981 for ac_dir in $ac_dummy; do
7982 IFS="$lt_save_ifs"
7983 test -z "$ac_dir" && ac_dir=.
7984 if test -f $ac_dir/file; then
7985 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7986 if test -n "$file_magic_test_file"; then
7987 case $deplibs_check_method in
7988 "file_magic "*)
7989 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7990 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7991 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7992 $EGREP "$file_magic_regex" > /dev/null; then
7993 :
7994 else
7995 cat <<_LT_EOF 1>&2
7996
7997*** Warning: the command libtool uses to detect shared libraries,
7998*** $file_magic_cmd, produces output that libtool cannot recognize.
7999*** The result is that libtool may fail to recognize shared libraries
8000*** as such. This will affect the creation of libtool libraries that
8001*** depend on shared libraries, but programs linked with such libtool
8002*** libraries will work regardless of this problem. Nevertheless, you
8003*** may want to report the problem to your system manager and/or to
8004*** bug-libtool@gnu.org
8005
8006_LT_EOF
8007 fi ;;
8008 esac
8009 fi
8010 break
8011 fi
8012 done
8013 IFS="$lt_save_ifs"
8014 MAGIC_CMD="$lt_save_MAGIC_CMD"
8015 ;;
8016esac
8017fi
8018
8019MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8020if test -n "$MAGIC_CMD"; then
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8022$as_echo "$MAGIC_CMD" >&6; }
8023else
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8025$as_echo "no" >&6; }
8026fi
8027
8028
8029 else
8030 MAGIC_CMD=:
8031 fi
8032fi
8033
8034 fi
8035 ;;
8036esac
8037
8038# Use C for the default configuration in the libtool script
8039
8040lt_save_CC="$CC"
8041ac_ext=c
8042ac_cpp='$CPP $CPPFLAGS'
8043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8045ac_compiler_gnu=$ac_cv_c_compiler_gnu
8046
8047
8048# Source file extension for C test sources.
8049ac_ext=c
8050
8051# Object file extension for compiled C test sources.
8052objext=o
8053objext=$objext
8054
8055# Code to be used in simple compile tests
8056lt_simple_compile_test_code="int some_variable = 0;"
8057
8058# Code to be used in simple link tests
8059lt_simple_link_test_code='int main(){return(0);}'
8060
8061
8062
8063
8064
8065
8066
8067# If no C compiler was specified, use CC.
8068LTCC=${LTCC-"$CC"}
8069
8070# If no C compiler flags were specified, use CFLAGS.
8071LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8072
8073# Allow CC to be a program name with arguments.
8074compiler=$CC
8075
8076# Save the default compiler, since it gets overwritten when the other
8077# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8078compiler_DEFAULT=$CC
8079
8080# save warnings/boilerplate of simple test code
8081ac_outfile=conftest.$ac_objext
8082echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8083eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8084_lt_compiler_boilerplate=`cat conftest.err`
8085$RM conftest*
8086
8087ac_outfile=conftest.$ac_objext
8088echo "$lt_simple_link_test_code" >conftest.$ac_ext
8089eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8090_lt_linker_boilerplate=`cat conftest.err`
8091$RM -r conftest*
8092
8093
8094## CAVEAT EMPTOR:
8095## There is no encapsulation within the following macros, do not change
8096## the running order or otherwise move them around unless you know exactly
8097## what you are doing...
8098if test -n "$compiler"; then
8099
8100lt_prog_compiler_no_builtin_flag=
8101
8102if test "$GCC" = yes; then
8103 case $cc_basename in
8104 nvcc*)
8105 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8106 *)
8107 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8108 esac
8109
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8111$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8112if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8113 $as_echo_n "(cached) " >&6
8114else
8115 lt_cv_prog_compiler_rtti_exceptions=no
8116 ac_outfile=conftest.$ac_objext
8117 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8118 lt_compiler_flag="-fno-rtti -fno-exceptions"
8119 # Insert the option either (1) after the last *FLAGS variable, or
8120 # (2) before a word containing "conftest.", or (3) at the end.
8121 # Note that $ac_compile itself does not contain backslashes and begins
8122 # with a dollar sign (not a hyphen), so the echo should work correctly.
8123 # The option is referenced via a variable to avoid confusing sed.
8124 lt_compile=`echo "$ac_compile" | $SED \
8125 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8126 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8127 -e 's:$: $lt_compiler_flag:'`
8128 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8129 (eval "$lt_compile" 2>conftest.err)
8130 ac_status=$?
8131 cat conftest.err >&5
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 if (exit $ac_status) && test -s "$ac_outfile"; then
8134 # The compiler can only warn and ignore the option if not recognized
8135 # So say no if there are warnings other than the usual output.
8136 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8137 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8138 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8139 lt_cv_prog_compiler_rtti_exceptions=yes
8140 fi
8141 fi
8142 $RM conftest*
8143
8144fi
8145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8146$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8147
8148if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8149 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8150else
8151 :
8152fi
8153
8154fi
8155
8156
8157
8158
8159
8160
8161 lt_prog_compiler_wl=
8162lt_prog_compiler_pic=
8163lt_prog_compiler_static=
8164
8165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8166$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8167
8168 if test "$GCC" = yes; then
8169 lt_prog_compiler_wl='-Wl,'
8170 lt_prog_compiler_static='-static'
8171
8172 case $host_os in
8173 aix*)
8174 # All AIX code is PIC.
8175 if test "$host_cpu" = ia64; then
8176 # AIX 5 now supports IA64 processor
8177 lt_prog_compiler_static='-Bstatic'
8178 fi
327a26a3 8179 lt_prog_compiler_pic='-fPIC'
7a938933
ILT
8180 ;;
8181
8182 amigaos*)
8183 case $host_cpu in
8184 powerpc)
8185 # see comment about AmigaOS4 .so support
8186 lt_prog_compiler_pic='-fPIC'
8187 ;;
8188 m68k)
8189 # FIXME: we need at least 68020 code to build shared libraries, but
8190 # adding the `-m68020' flag to GCC prevents building anything better,
8191 # like `-m68040'.
8192 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8193 ;;
8194 esac
8195 ;;
8196
8197 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8198 # PIC is the default for these OSes.
8199 ;;
8200
8201 mingw* | cygwin* | pw32* | os2* | cegcc*)
8202 # This hack is so that the source file can tell whether it is being
8203 # built for inclusion in a dll (and should export symbols for example).
8204 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8205 # (--disable-auto-import) libraries
8206 lt_prog_compiler_pic='-DDLL_EXPORT'
8207 ;;
8208
8209 darwin* | rhapsody*)
8210 # PIC is the default on this platform
8211 # Common symbols not allowed in MH_DYLIB files
8212 lt_prog_compiler_pic='-fno-common'
8213 ;;
8214
8215 haiku*)
8216 # PIC is the default for Haiku.
8217 # The "-static" flag exists, but is broken.
8218 lt_prog_compiler_static=
8219 ;;
8220
8221 hpux*)
8222 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8223 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8224 # sets the default TLS model and affects inlining.
8225 case $host_cpu in
8226 hppa*64*)
8227 # +Z the default
8228 ;;
8229 *)
8230 lt_prog_compiler_pic='-fPIC'
8231 ;;
8232 esac
8233 ;;
8234
8235 interix[3-9]*)
8236 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8237 # Instead, we relocate shared libraries at runtime.
8238 ;;
8239
8240 msdosdjgpp*)
8241 # Just because we use GCC doesn't mean we suddenly get shared libraries
8242 # on systems that don't support them.
8243 lt_prog_compiler_can_build_shared=no
8244 enable_shared=no
8245 ;;
8246
8247 *nto* | *qnx*)
8248 # QNX uses GNU C++, but need to define -shared option too, otherwise
8249 # it will coredump.
8250 lt_prog_compiler_pic='-fPIC -shared'
8251 ;;
8252
8253 sysv4*MP*)
8254 if test -d /usr/nec; then
8255 lt_prog_compiler_pic=-Kconform_pic
8256 fi
8257 ;;
8258
8259 *)
8260 lt_prog_compiler_pic='-fPIC'
8261 ;;
8262 esac
8263
8264 case $cc_basename in
8265 nvcc*) # Cuda Compiler Driver 2.2
8266 lt_prog_compiler_wl='-Xlinker '
8267 lt_prog_compiler_pic='-Xcompiler -fPIC'
8268 ;;
8269 esac
8270 else
8271 # PORTME Check for flag to pass linker flags through the system compiler.
8272 case $host_os in
8273 aix*)
8274 lt_prog_compiler_wl='-Wl,'
8275 if test "$host_cpu" = ia64; then
8276 # AIX 5 now supports IA64 processor
8277 lt_prog_compiler_static='-Bstatic'
8278 else
8279 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8280 fi
8281 ;;
8282
8283 mingw* | cygwin* | pw32* | os2* | cegcc*)
8284 # This hack is so that the source file can tell whether it is being
8285 # built for inclusion in a dll (and should export symbols for example).
8286 lt_prog_compiler_pic='-DDLL_EXPORT'
8287 ;;
8288
8289 hpux9* | hpux10* | hpux11*)
8290 lt_prog_compiler_wl='-Wl,'
8291 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8292 # not for PA HP-UX.
8293 case $host_cpu in
8294 hppa*64*|ia64*)
8295 # +Z the default
8296 ;;
8297 *)
8298 lt_prog_compiler_pic='+Z'
8299 ;;
8300 esac
8301 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8302 lt_prog_compiler_static='${wl}-a ${wl}archive'
8303 ;;
8304
8305 irix5* | irix6* | nonstopux*)
8306 lt_prog_compiler_wl='-Wl,'
8307 # PIC (with -KPIC) is the default.
8308 lt_prog_compiler_static='-non_shared'
8309 ;;
8310
8311 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8312 case $cc_basename in
8313 # old Intel for x86_64 which still supported -KPIC.
8314 ecc*)
8315 lt_prog_compiler_wl='-Wl,'
8316 lt_prog_compiler_pic='-KPIC'
8317 lt_prog_compiler_static='-static'
8318 ;;
8319 # icc used to be incompatible with GCC.
8320 # ICC 10 doesn't accept -KPIC any more.
8321 icc* | ifort*)
8322 lt_prog_compiler_wl='-Wl,'
8323 lt_prog_compiler_pic='-fPIC'
8324 lt_prog_compiler_static='-static'
8325 ;;
8326 # Lahey Fortran 8.1.
8327 lf95*)
8328 lt_prog_compiler_wl='-Wl,'
8329 lt_prog_compiler_pic='--shared'
8330 lt_prog_compiler_static='--static'
8331 ;;
8332 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8333 # Portland Group compilers (*not* the Pentium gcc compiler,
8334 # which looks to be a dead project)
8335 lt_prog_compiler_wl='-Wl,'
8336 lt_prog_compiler_pic='-fpic'
8337 lt_prog_compiler_static='-Bstatic'
8338 ;;
8339 ccc*)
8340 lt_prog_compiler_wl='-Wl,'
8341 # All Alpha code is PIC.
8342 lt_prog_compiler_static='-non_shared'
8343 ;;
8344 xl* | bgxl* | bgf* | mpixl*)
8345 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8346 lt_prog_compiler_wl='-Wl,'
8347 lt_prog_compiler_pic='-qpic'
8348 lt_prog_compiler_static='-qstaticlink'
8349 ;;
8350 *)
8351 case `$CC -V 2>&1 | sed 5q` in
8352 *Sun\ F* | *Sun*Fortran*)
8353 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8354 lt_prog_compiler_pic='-KPIC'
8355 lt_prog_compiler_static='-Bstatic'
8356 lt_prog_compiler_wl=''
8357 ;;
8358 *Sun\ C*)
8359 # Sun C 5.9
8360 lt_prog_compiler_pic='-KPIC'
8361 lt_prog_compiler_static='-Bstatic'
8362 lt_prog_compiler_wl='-Wl,'
8363 ;;
8364 esac
8365 ;;
8366 esac
8367 ;;
8368
8369 newsos6)
8370 lt_prog_compiler_pic='-KPIC'
8371 lt_prog_compiler_static='-Bstatic'
8372 ;;
8373
8374 *nto* | *qnx*)
8375 # QNX uses GNU C++, but need to define -shared option too, otherwise
8376 # it will coredump.
8377 lt_prog_compiler_pic='-fPIC -shared'
8378 ;;
8379
8380 osf3* | osf4* | osf5*)
8381 lt_prog_compiler_wl='-Wl,'
8382 # All OSF/1 code is PIC.
8383 lt_prog_compiler_static='-non_shared'
8384 ;;
8385
8386 rdos*)
8387 lt_prog_compiler_static='-non_shared'
8388 ;;
8389
8390 solaris*)
8391 lt_prog_compiler_pic='-KPIC'
8392 lt_prog_compiler_static='-Bstatic'
8393 case $cc_basename in
8394 f77* | f90* | f95*)
8395 lt_prog_compiler_wl='-Qoption ld ';;
8396 *)
8397 lt_prog_compiler_wl='-Wl,';;
8398 esac
8399 ;;
8400
8401 sunos4*)
8402 lt_prog_compiler_wl='-Qoption ld '
8403 lt_prog_compiler_pic='-PIC'
8404 lt_prog_compiler_static='-Bstatic'
8405 ;;
8406
8407 sysv4 | sysv4.2uw2* | sysv4.3*)
8408 lt_prog_compiler_wl='-Wl,'
8409 lt_prog_compiler_pic='-KPIC'
8410 lt_prog_compiler_static='-Bstatic'
8411 ;;
8412
8413 sysv4*MP*)
8414 if test -d /usr/nec ;then
8415 lt_prog_compiler_pic='-Kconform_pic'
8416 lt_prog_compiler_static='-Bstatic'
8417 fi
8418 ;;
8419
8420 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8421 lt_prog_compiler_wl='-Wl,'
8422 lt_prog_compiler_pic='-KPIC'
8423 lt_prog_compiler_static='-Bstatic'
8424 ;;
8425
8426 unicos*)
8427 lt_prog_compiler_wl='-Wl,'
8428 lt_prog_compiler_can_build_shared=no
8429 ;;
8430
8431 uts4*)
8432 lt_prog_compiler_pic='-pic'
8433 lt_prog_compiler_static='-Bstatic'
8434 ;;
8435
8436 *)
8437 lt_prog_compiler_can_build_shared=no
8438 ;;
8439 esac
8440 fi
8441
8442case $host_os in
8443 # For platforms which do not support PIC, -DPIC is meaningless:
8444 *djgpp*)
8445 lt_prog_compiler_pic=
8446 ;;
8447 *)
8448 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8449 ;;
8450esac
8451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8452$as_echo "$lt_prog_compiler_pic" >&6; }
8453
8454
8455
8456
8457
8458
8459#
8460# Check to make sure the PIC flag actually works.
8461#
8462if test -n "$lt_prog_compiler_pic"; then
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8464$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8465if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8466 $as_echo_n "(cached) " >&6
8467else
8468 lt_cv_prog_compiler_pic_works=no
8469 ac_outfile=conftest.$ac_objext
8470 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8471 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8472 # Insert the option either (1) after the last *FLAGS variable, or
8473 # (2) before a word containing "conftest.", or (3) at the end.
8474 # Note that $ac_compile itself does not contain backslashes and begins
8475 # with a dollar sign (not a hyphen), so the echo should work correctly.
8476 # The option is referenced via a variable to avoid confusing sed.
8477 lt_compile=`echo "$ac_compile" | $SED \
8478 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8479 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8480 -e 's:$: $lt_compiler_flag:'`
8481 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8482 (eval "$lt_compile" 2>conftest.err)
8483 ac_status=$?
8484 cat conftest.err >&5
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 if (exit $ac_status) && test -s "$ac_outfile"; then
8487 # The compiler can only warn and ignore the option if not recognized
8488 # So say no if there are warnings other than the usual output.
8489 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8490 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8491 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8492 lt_cv_prog_compiler_pic_works=yes
8493 fi
8494 fi
8495 $RM conftest*
8496
8497fi
8498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8499$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8500
8501if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8502 case $lt_prog_compiler_pic in
8503 "" | " "*) ;;
8504 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8505 esac
8506else
8507 lt_prog_compiler_pic=
8508 lt_prog_compiler_can_build_shared=no
8509fi
8510
8511fi
8512
8513
8514
8515
8516
8517
8518#
8519# Check to make sure the static flag actually works.
8520#
8521wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8523$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8524if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8525 $as_echo_n "(cached) " >&6
8526else
8527 lt_cv_prog_compiler_static_works=no
8528 save_LDFLAGS="$LDFLAGS"
8529 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8530 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8531 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8532 # The linker can only warn and ignore the option if not recognized
8533 # So say no if there are warnings
8534 if test -s conftest.err; then
8535 # Append any errors to the config.log.
8536 cat conftest.err 1>&5
8537 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8538 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8539 if diff conftest.exp conftest.er2 >/dev/null; then
8540 lt_cv_prog_compiler_static_works=yes
8541 fi
8542 else
8543 lt_cv_prog_compiler_static_works=yes
8544 fi
8545 fi
8546 $RM -r conftest*
8547 LDFLAGS="$save_LDFLAGS"
8548
8549fi
8550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8551$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8552
8553if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8554 :
8555else
8556 lt_prog_compiler_static=
8557fi
8558
8559
8560
8561
8562
8563
8564
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8566$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8567if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8568 $as_echo_n "(cached) " >&6
8569else
8570 lt_cv_prog_compiler_c_o=no
8571 $RM -r conftest 2>/dev/null
8572 mkdir conftest
8573 cd conftest
8574 mkdir out
8575 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8576
8577 lt_compiler_flag="-o out/conftest2.$ac_objext"
8578 # Insert the option either (1) after the last *FLAGS variable, or
8579 # (2) before a word containing "conftest.", or (3) at the end.
8580 # Note that $ac_compile itself does not contain backslashes and begins
8581 # with a dollar sign (not a hyphen), so the echo should work correctly.
8582 lt_compile=`echo "$ac_compile" | $SED \
8583 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8584 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8585 -e 's:$: $lt_compiler_flag:'`
8586 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8587 (eval "$lt_compile" 2>out/conftest.err)
8588 ac_status=$?
8589 cat out/conftest.err >&5
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8592 then
8593 # The compiler can only warn and ignore the option if not recognized
8594 # So say no if there are warnings
8595 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8596 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8597 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8598 lt_cv_prog_compiler_c_o=yes
8599 fi
8600 fi
8601 chmod u+w . 2>&5
8602 $RM conftest*
8603 # SGI C++ compiler will create directory out/ii_files/ for
8604 # template instantiation
8605 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8606 $RM out/* && rmdir out
8607 cd ..
8608 $RM -r conftest
8609 $RM conftest*
8610
8611fi
8612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8613$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8614
8615
8616
8617
8618
8619
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8621$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8622if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8623 $as_echo_n "(cached) " >&6
8624else
8625 lt_cv_prog_compiler_c_o=no
8626 $RM -r conftest 2>/dev/null
8627 mkdir conftest
8628 cd conftest
8629 mkdir out
8630 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8631
8632 lt_compiler_flag="-o out/conftest2.$ac_objext"
8633 # Insert the option either (1) after the last *FLAGS variable, or
8634 # (2) before a word containing "conftest.", or (3) at the end.
8635 # Note that $ac_compile itself does not contain backslashes and begins
8636 # with a dollar sign (not a hyphen), so the echo should work correctly.
8637 lt_compile=`echo "$ac_compile" | $SED \
8638 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8639 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8640 -e 's:$: $lt_compiler_flag:'`
8641 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8642 (eval "$lt_compile" 2>out/conftest.err)
8643 ac_status=$?
8644 cat out/conftest.err >&5
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8647 then
8648 # The compiler can only warn and ignore the option if not recognized
8649 # So say no if there are warnings
8650 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8651 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8652 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8653 lt_cv_prog_compiler_c_o=yes
8654 fi
8655 fi
8656 chmod u+w . 2>&5
8657 $RM conftest*
8658 # SGI C++ compiler will create directory out/ii_files/ for
8659 # template instantiation
8660 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8661 $RM out/* && rmdir out
8662 cd ..
8663 $RM -r conftest
8664 $RM conftest*
8665
8666fi
8667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8668$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8669
8670
8671
8672
8673hard_links="nottested"
8674if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8675 # do not overwrite the value of need_locks provided by the user
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8677$as_echo_n "checking if we can lock with hard links... " >&6; }
8678 hard_links=yes
8679 $RM conftest*
8680 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8681 touch conftest.a
8682 ln conftest.a conftest.b 2>&5 || hard_links=no
8683 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8685$as_echo "$hard_links" >&6; }
8686 if test "$hard_links" = no; then
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8688$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8689 need_locks=warn
8690 fi
8691else
8692 need_locks=no
8693fi
8694
8695
8696
8697
8698
8699
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8701$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8702
8703 runpath_var=
8704 allow_undefined_flag=
8705 always_export_symbols=no
8706 archive_cmds=
8707 archive_expsym_cmds=
8708 compiler_needs_object=no
8709 enable_shared_with_static_runtimes=no
8710 export_dynamic_flag_spec=
8711 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8712 hardcode_automatic=no
8713 hardcode_direct=no
8714 hardcode_direct_absolute=no
8715 hardcode_libdir_flag_spec=
8716 hardcode_libdir_flag_spec_ld=
8717 hardcode_libdir_separator=
8718 hardcode_minus_L=no
8719 hardcode_shlibpath_var=unsupported
8720 inherit_rpath=no
8721 link_all_deplibs=unknown
8722 module_cmds=
8723 module_expsym_cmds=
8724 old_archive_from_new_cmds=
8725 old_archive_from_expsyms_cmds=
8726 thread_safe_flag_spec=
8727 whole_archive_flag_spec=
8728 # include_expsyms should be a list of space-separated symbols to be *always*
8729 # included in the symbol list
8730 include_expsyms=
8731 # exclude_expsyms can be an extended regexp of symbols to exclude
8732 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8733 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8734 # as well as any symbol that contains `d'.
8735 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8736 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8737 # platforms (ab)use it in PIC code, but their linkers get confused if
8738 # the symbol is explicitly referenced. Since portable code cannot
8739 # rely on this symbol name, it's probably fine to never include it in
8740 # preloaded symbol tables.
8741 # Exclude shared library initialization/finalization symbols.
8742 extract_expsyms_cmds=
8743
8744 case $host_os in
8745 cygwin* | mingw* | pw32* | cegcc*)
8746 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8747 # When not using gcc, we currently assume that we are using
8748 # Microsoft Visual C++.
8749 if test "$GCC" != yes; then
8750 with_gnu_ld=no
8751 fi
8752 ;;
8753 interix*)
8754 # we just hope/assume this is gcc and not c89 (= MSVC++)
8755 with_gnu_ld=yes
8756 ;;
8757 openbsd*)
8758 with_gnu_ld=no
8759 ;;
8760 esac
8761
8762 ld_shlibs=yes
8763
8764 # On some targets, GNU ld is compatible enough with the native linker
8765 # that we're better off using the native interface for both.
8766 lt_use_gnu_ld_interface=no
8767 if test "$with_gnu_ld" = yes; then
8768 case $host_os in
8769 aix*)
8770 # The AIX port of GNU ld has always aspired to compatibility
8771 # with the native linker. However, as the warning in the GNU ld
8772 # block says, versions before 2.19.5* couldn't really create working
8773 # shared libraries, regardless of the interface used.
8774 case `$LD -v 2>&1` in
8775 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8776 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8777 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8778 *)
8779 lt_use_gnu_ld_interface=yes
8780 ;;
8781 esac
8782 ;;
8783 *)
8784 lt_use_gnu_ld_interface=yes
8785 ;;
8786 esac
8787 fi
8788
8789 if test "$lt_use_gnu_ld_interface" = yes; then
8790 # If archive_cmds runs LD, not CC, wlarc should be empty
8791 wlarc='${wl}'
8792
8793 # Set some defaults for GNU ld with shared library support. These
8794 # are reset later if shared libraries are not supported. Putting them
8795 # here allows them to be overridden if necessary.
8796 runpath_var=LD_RUN_PATH
8797 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8798 export_dynamic_flag_spec='${wl}--export-dynamic'
8799 # ancient GNU ld didn't support --whole-archive et. al.
8800 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8801 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8802 else
8803 whole_archive_flag_spec=
8804 fi
8805 supports_anon_versioning=no
8806 case `$LD -v 2>&1` in
8807 *GNU\ gold*) supports_anon_versioning=yes ;;
8808 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8809 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8810 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8811 *\ 2.11.*) ;; # other 2.11 versions
8812 *) supports_anon_versioning=yes ;;
8813 esac
8814
8815 # See if GNU ld supports shared libraries.
8816 case $host_os in
8817 aix[3-9]*)
8818 # On AIX/PPC, the GNU linker is very broken
8819 if test "$host_cpu" != ia64; then
8820 ld_shlibs=no
8821 cat <<_LT_EOF 1>&2
8822
8823*** Warning: the GNU linker, at least up to release 2.19, is reported
8824*** to be unable to reliably create shared libraries on AIX.
8825*** Therefore, libtool is disabling shared libraries support. If you
8826*** really care for shared libraries, you may want to install binutils
8827*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8828*** You will then need to restart the configuration process.
8829
8830_LT_EOF
8831 fi
8832 ;;
8833
8834 amigaos*)
8835 case $host_cpu in
8836 powerpc)
8837 # see comment about AmigaOS4 .so support
8838 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8839 archive_expsym_cmds=''
8840 ;;
8841 m68k)
8842 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)'
8843 hardcode_libdir_flag_spec='-L$libdir'
8844 hardcode_minus_L=yes
8845 ;;
8846 esac
8847 ;;
8848
8849 beos*)
8850 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8851 allow_undefined_flag=unsupported
8852 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8853 # support --undefined. This deserves some investigation. FIXME
8854 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8855 else
8856 ld_shlibs=no
8857 fi
8858 ;;
8859
8860 cygwin* | mingw* | pw32* | cegcc*)
8861 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8862 # as there is no search path for DLLs.
8863 hardcode_libdir_flag_spec='-L$libdir'
8864 export_dynamic_flag_spec='${wl}--export-all-symbols'
8865 allow_undefined_flag=unsupported
8866 always_export_symbols=no
8867 enable_shared_with_static_runtimes=yes
8868 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8869
8870 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8871 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8872 # If the export-symbols file already is a .def file (1st line
8873 # is EXPORTS), use it as is; otherwise, prepend...
8874 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8875 cp $export_symbols $output_objdir/$soname.def;
8876 else
8877 echo EXPORTS > $output_objdir/$soname.def;
8878 cat $export_symbols >> $output_objdir/$soname.def;
8879 fi~
8880 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8881 else
8882 ld_shlibs=no
8883 fi
8884 ;;
8885
8886 haiku*)
8887 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8888 link_all_deplibs=yes
8889 ;;
8890
8891 interix[3-9]*)
8892 hardcode_direct=no
8893 hardcode_shlibpath_var=no
8894 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8895 export_dynamic_flag_spec='${wl}-E'
8896 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8897 # Instead, shared libraries are loaded at an image base (0x10000000 by
8898 # default) and relocated if they conflict, which is a slow very memory
8899 # consuming and fragmenting process. To avoid this, we pick a random,
8900 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8901 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8902 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8903 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'
8904 ;;
8905
8906 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8907 tmp_diet=no
8908 if test "$host_os" = linux-dietlibc; then
8909 case $cc_basename in
8910 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8911 esac
8912 fi
8913 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8914 && test "$tmp_diet" = no
8915 then
8916 tmp_addflag=
8917 tmp_sharedflag='-shared'
8918 case $cc_basename,$host_cpu in
8919 pgcc*) # Portland Group C compiler
8920 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8921 tmp_addflag=' $pic_flag'
8922 ;;
8923 pgf77* | pgf90* | pgf95* | pgfortran*)
8924 # Portland Group f77 and f90 compilers
8925 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'
8926 tmp_addflag=' $pic_flag -Mnomain' ;;
8927 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8928 tmp_addflag=' -i_dynamic' ;;
8929 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8930 tmp_addflag=' -i_dynamic -nofor_main' ;;
8931 ifc* | ifort*) # Intel Fortran compiler
8932 tmp_addflag=' -nofor_main' ;;
8933 lf95*) # Lahey Fortran 8.1
8934 whole_archive_flag_spec=
8935 tmp_sharedflag='--shared' ;;
8936 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8937 tmp_sharedflag='-qmkshrobj'
8938 tmp_addflag= ;;
8939 nvcc*) # Cuda Compiler Driver 2.2
8940 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'
8941 compiler_needs_object=yes
8942 ;;
8943 esac
8944 case `$CC -V 2>&1 | sed 5q` in
8945 *Sun\ C*) # Sun C 5.9
8946 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'
8947 compiler_needs_object=yes
8948 tmp_sharedflag='-G' ;;
8949 *Sun\ F*) # Sun Fortran 8.3
8950 tmp_sharedflag='-G' ;;
8951 esac
8952 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8953
8954 if test "x$supports_anon_versioning" = xyes; then
8955 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8956 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8957 echo "local: *; };" >> $output_objdir/$libname.ver~
8958 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8959 fi
8960
8961 case $cc_basename in
8962 xlf* | bgf* | bgxlf* | mpixlf*)
8963 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8964 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8965 hardcode_libdir_flag_spec=
8966 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8967 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8968 if test "x$supports_anon_versioning" = xyes; then
8969 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8970 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8971 echo "local: *; };" >> $output_objdir/$libname.ver~
8972 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8973 fi
8974 ;;
8975 esac
8976 else
8977 ld_shlibs=no
8978 fi
8979 ;;
8980
8981 netbsd*)
8982 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8983 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8984 wlarc=
8985 else
8986 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8987 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8988 fi
8989 ;;
8990
8991 solaris*)
8992 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8993 ld_shlibs=no
8994 cat <<_LT_EOF 1>&2
8995
8996*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8997*** create shared libraries on Solaris systems. Therefore, libtool
8998*** is disabling shared libraries support. We urge you to upgrade GNU
8999*** binutils to release 2.9.1 or newer. Another option is to modify
9000*** your PATH or compiler configuration so that the native linker is
9001*** used, and then restart.
9002
9003_LT_EOF
9004 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9005 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9006 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9007 else
9008 ld_shlibs=no
9009 fi
9010 ;;
9011
9012 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9013 case `$LD -v 2>&1` in
9014 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9015 ld_shlibs=no
9016 cat <<_LT_EOF 1>&2
9017
9018*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9019*** reliably create shared libraries on SCO systems. Therefore, libtool
9020*** is disabling shared libraries support. We urge you to upgrade GNU
9021*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9022*** your PATH or compiler configuration so that the native linker is
9023*** used, and then restart.
9024
9025_LT_EOF
9026 ;;
9027 *)
9028 # For security reasons, it is highly recommended that you always
9029 # use absolute paths for naming shared libraries, and exclude the
9030 # DT_RUNPATH tag from executables and libraries. But doing so
9031 # requires that you compile everything twice, which is a pain.
9032 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9033 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9034 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9035 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9036 else
9037 ld_shlibs=no
9038 fi
9039 ;;
9040 esac
9041 ;;
9042
9043 sunos4*)
9044 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9045 wlarc=
9046 hardcode_direct=yes
9047 hardcode_shlibpath_var=no
9048 ;;
9049
9050 *)
9051 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9052 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9053 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9054 else
9055 ld_shlibs=no
9056 fi
9057 ;;
9058 esac
9059
9060 if test "$ld_shlibs" = no; then
9061 runpath_var=
9062 hardcode_libdir_flag_spec=
9063 export_dynamic_flag_spec=
9064 whole_archive_flag_spec=
9065 fi
9066 else
9067 # PORTME fill in a description of your system's linker (not GNU ld)
9068 case $host_os in
9069 aix3*)
9070 allow_undefined_flag=unsupported
9071 always_export_symbols=yes
9072 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'
9073 # Note: this linker hardcodes the directories in LIBPATH if there
9074 # are no directories specified by -L.
9075 hardcode_minus_L=yes
9076 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9077 # Neither direct hardcoding nor static linking is supported with a
9078 # broken collect2.
9079 hardcode_direct=unsupported
9080 fi
9081 ;;
9082
9083 aix[4-9]*)
9084 if test "$host_cpu" = ia64; then
9085 # On IA64, the linker does run time linking by default, so we don't
9086 # have to do anything special.
9087 aix_use_runtimelinking=no
9088 exp_sym_flag='-Bexport'
9089 no_entry_flag=""
9090 else
9091 # If we're using GNU nm, then we don't want the "-C" option.
9092 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9093 # Also, AIX nm treats weak defined symbols like other global
9094 # defined symbols, whereas GNU nm marks them as "W".
9095 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9096 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'
9097 else
9098 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'
9099 fi
9100 aix_use_runtimelinking=no
9101
9102 # Test if we are trying to use run time linking or normal
9103 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9104 # need to do runtime linking.
9105 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9106 for ld_flag in $LDFLAGS; do
9107 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9108 aix_use_runtimelinking=yes
9109 break
9110 fi
9111 done
9112 ;;
9113 esac
9114
9115 exp_sym_flag='-bexport'
9116 no_entry_flag='-bnoentry'
9117 fi
9118
9119 # When large executables or shared objects are built, AIX ld can
9120 # have problems creating the table of contents. If linking a library
9121 # or program results in "error TOC overflow" add -mminimal-toc to
9122 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9123 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9124
9125 archive_cmds=''
9126 hardcode_direct=yes
9127 hardcode_direct_absolute=yes
9128 hardcode_libdir_separator=':'
9129 link_all_deplibs=yes
9130 file_list_spec='${wl}-f,'
9131
9132 if test "$GCC" = yes; then
9133 case $host_os in aix4.[012]|aix4.[012].*)
9134 # We only want to do this on AIX 4.2 and lower, the check
9135 # below for broken collect2 doesn't work under 4.3+
9136 collect2name=`${CC} -print-prog-name=collect2`
9137 if test -f "$collect2name" &&
9138 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9139 then
9140 # We have reworked collect2
9141 :
9142 else
9143 # We have old collect2
9144 hardcode_direct=unsupported
9145 # It fails to find uninstalled libraries when the uninstalled
9146 # path is not listed in the libpath. Setting hardcode_minus_L
9147 # to unsupported forces relinking
9148 hardcode_minus_L=yes
9149 hardcode_libdir_flag_spec='-L$libdir'
9150 hardcode_libdir_separator=
9151 fi
9152 ;;
9153 esac
9154 shared_flag='-shared'
9155 if test "$aix_use_runtimelinking" = yes; then
9156 shared_flag="$shared_flag "'${wl}-G'
9157 fi
9158 else
9159 # not using gcc
9160 if test "$host_cpu" = ia64; then
9161 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9162 # chokes on -Wl,-G. The following line is correct:
9163 shared_flag='-G'
9164 else
9165 if test "$aix_use_runtimelinking" = yes; then
9166 shared_flag='${wl}-G'
9167 else
9168 shared_flag='${wl}-bM:SRE'
9169 fi
9170 fi
9171 fi
9172
9173 export_dynamic_flag_spec='${wl}-bexpall'
9174 # It seems that -bexpall does not export symbols beginning with
9175 # underscore (_), so it is better to generate a list of symbols to export.
9176 always_export_symbols=yes
9177 if test "$aix_use_runtimelinking" = yes; then
9178 # Warning - without using the other runtime loading flags (-brtl),
9179 # -berok will link without error, but may produce a broken library.
9180 allow_undefined_flag='-berok'
9181 # Determine the default libpath from the value encoded in an
9182 # empty executable.
9183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9184/* end confdefs.h. */
9185
9186int
9187main ()
9188{
9189
9190 ;
9191 return 0;
9192}
9193_ACEOF
9194if ac_fn_c_try_link "$LINENO"; then :
9195
9196lt_aix_libpath_sed='
9197 /Import File Strings/,/^$/ {
9198 /^0/ {
9199 s/^0 *\(.*\)$/\1/
9200 p
9201 }
9202 }'
9203aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9204# Check for a 64-bit object if we didn't find anything.
9205if test -z "$aix_libpath"; then
9206 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9207fi
9208fi
9209rm -f core conftest.err conftest.$ac_objext \
9210 conftest$ac_exeext conftest.$ac_ext
9211if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9212
9213 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9214 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"
9215 else
9216 if test "$host_cpu" = ia64; then
9217 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9218 allow_undefined_flag="-z nodefs"
9219 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"
9220 else
9221 # Determine the default libpath from the value encoded in an
9222 # empty executable.
9223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9224/* end confdefs.h. */
9225
9226int
9227main ()
9228{
9229
9230 ;
9231 return 0;
9232}
9233_ACEOF
9234if ac_fn_c_try_link "$LINENO"; then :
9235
9236lt_aix_libpath_sed='
9237 /Import File Strings/,/^$/ {
9238 /^0/ {
9239 s/^0 *\(.*\)$/\1/
9240 p
9241 }
9242 }'
9243aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9244# Check for a 64-bit object if we didn't find anything.
9245if test -z "$aix_libpath"; then
9246 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9247fi
9248fi
9249rm -f core conftest.err conftest.$ac_objext \
9250 conftest$ac_exeext conftest.$ac_ext
9251if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9252
9253 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9254 # Warning - without using the other run time loading flags,
9255 # -berok will link without error, but may produce a broken library.
9256 no_undefined_flag=' ${wl}-bernotok'
9257 allow_undefined_flag=' ${wl}-berok'
9258 if test "$with_gnu_ld" = yes; then
9259 # We only use this code for GNU lds that support --whole-archive.
9260 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9261 else
9262 # Exported symbols can be pulled into shared objects from archives
9263 whole_archive_flag_spec='$convenience'
9264 fi
9265 archive_cmds_need_lc=yes
9266 # This is similar to how AIX traditionally builds its shared libraries.
9267 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'
9268 fi
9269 fi
9270 ;;
9271
9272 amigaos*)
9273 case $host_cpu in
9274 powerpc)
9275 # see comment about AmigaOS4 .so support
9276 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9277 archive_expsym_cmds=''
9278 ;;
9279 m68k)
9280 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)'
9281 hardcode_libdir_flag_spec='-L$libdir'
9282 hardcode_minus_L=yes
9283 ;;
9284 esac
9285 ;;
9286
9287 bsdi[45]*)
9288 export_dynamic_flag_spec=-rdynamic
9289 ;;
9290
9291 cygwin* | mingw* | pw32* | cegcc*)
9292 # When not using gcc, we currently assume that we are using
9293 # Microsoft Visual C++.
9294 # hardcode_libdir_flag_spec is actually meaningless, as there is
9295 # no search path for DLLs.
9296 hardcode_libdir_flag_spec=' '
9297 allow_undefined_flag=unsupported
9298 # Tell ltmain to make .lib files, not .a files.
9299 libext=lib
9300 # Tell ltmain to make .dll files, not .so files.
9301 shrext_cmds=".dll"
9302 # FIXME: Setting linknames here is a bad hack.
9303 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9304 # The linker will automatically build a .lib file if we build a DLL.
9305 old_archive_from_new_cmds='true'
9306 # FIXME: Should let the user specify the lib program.
9307 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9308 fix_srcfile_path='`cygpath -w "$srcfile"`'
9309 enable_shared_with_static_runtimes=yes
9310 ;;
9311
9312 darwin* | rhapsody*)
9313
9314
9315 archive_cmds_need_lc=no
9316 hardcode_direct=no
9317 hardcode_automatic=yes
9318 hardcode_shlibpath_var=unsupported
9319 if test "$lt_cv_ld_force_load" = "yes"; then
9320 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\"`'
9321 else
9322 whole_archive_flag_spec=''
9323 fi
9324 link_all_deplibs=yes
9325 allow_undefined_flag="$_lt_dar_allow_undefined"
9326 case $cc_basename in
9327 ifort*) _lt_dar_can_shared=yes ;;
9328 *) _lt_dar_can_shared=$GCC ;;
9329 esac
9330 if test "$_lt_dar_can_shared" = "yes"; then
9331 output_verbose_link_cmd=func_echo_all
9332 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9333 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9334 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}"
9335 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}"
9336
9337 else
9338 ld_shlibs=no
9339 fi
9340
9341 ;;
9342
9343 dgux*)
9344 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9345 hardcode_libdir_flag_spec='-L$libdir'
9346 hardcode_shlibpath_var=no
9347 ;;
9348
7a938933
ILT
9349 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9350 # support. Future versions do this automatically, but an explicit c++rt0.o
9351 # does not break anything, and helps significantly (at the cost of a little
9352 # extra space).
9353 freebsd2.2*)
9354 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9355 hardcode_libdir_flag_spec='-R$libdir'
9356 hardcode_direct=yes
9357 hardcode_shlibpath_var=no
9358 ;;
9359
9360 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
327a26a3 9361 freebsd2.*)
7a938933
ILT
9362 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9363 hardcode_direct=yes
9364 hardcode_minus_L=yes
9365 hardcode_shlibpath_var=no
9366 ;;
9367
9368 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9369 freebsd* | dragonfly*)
9370 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9371 hardcode_libdir_flag_spec='-R$libdir'
9372 hardcode_direct=yes
9373 hardcode_shlibpath_var=no
9374 ;;
9375
9376 hpux9*)
9377 if test "$GCC" = yes; then
9378 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'
9379 else
9380 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'
9381 fi
9382 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9383 hardcode_libdir_separator=:
9384 hardcode_direct=yes
9385
9386 # hardcode_minus_L: Not really in the search PATH,
9387 # but as the default location of the library.
9388 hardcode_minus_L=yes
9389 export_dynamic_flag_spec='${wl}-E'
9390 ;;
9391
9392 hpux10*)
9393 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9394 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9395 else
9396 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9397 fi
9398 if test "$with_gnu_ld" = no; then
9399 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9400 hardcode_libdir_flag_spec_ld='+b $libdir'
9401 hardcode_libdir_separator=:
9402 hardcode_direct=yes
9403 hardcode_direct_absolute=yes
9404 export_dynamic_flag_spec='${wl}-E'
9405 # hardcode_minus_L: Not really in the search PATH,
9406 # but as the default location of the library.
9407 hardcode_minus_L=yes
9408 fi
9409 ;;
9410
9411 hpux11*)
9412 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9413 case $host_cpu in
9414 hppa*64*)
9415 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9416 ;;
9417 ia64*)
9418 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9419 ;;
9420 *)
9421 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9422 ;;
9423 esac
9424 else
9425 case $host_cpu in
9426 hppa*64*)
9427 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9428 ;;
9429 ia64*)
9430 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9431 ;;
9432 *)
9433
9434 # Older versions of the 11.00 compiler do not understand -b yet
9435 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9437$as_echo_n "checking if $CC understands -b... " >&6; }
9438if test "${lt_cv_prog_compiler__b+set}" = set; then :
9439 $as_echo_n "(cached) " >&6
9440else
9441 lt_cv_prog_compiler__b=no
9442 save_LDFLAGS="$LDFLAGS"
9443 LDFLAGS="$LDFLAGS -b"
9444 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9445 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9446 # The linker can only warn and ignore the option if not recognized
9447 # So say no if there are warnings
9448 if test -s conftest.err; then
9449 # Append any errors to the config.log.
9450 cat conftest.err 1>&5
9451 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9452 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9453 if diff conftest.exp conftest.er2 >/dev/null; then
9454 lt_cv_prog_compiler__b=yes
9455 fi
9456 else
9457 lt_cv_prog_compiler__b=yes
9458 fi
9459 fi
9460 $RM -r conftest*
9461 LDFLAGS="$save_LDFLAGS"
9462
9463fi
9464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9465$as_echo "$lt_cv_prog_compiler__b" >&6; }
9466
9467if test x"$lt_cv_prog_compiler__b" = xyes; then
9468 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9469else
9470 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9471fi
9472
9473 ;;
9474 esac
9475 fi
9476 if test "$with_gnu_ld" = no; then
9477 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9478 hardcode_libdir_separator=:
9479
9480 case $host_cpu in
9481 hppa*64*|ia64*)
9482 hardcode_direct=no
9483 hardcode_shlibpath_var=no
9484 ;;
9485 *)
9486 hardcode_direct=yes
9487 hardcode_direct_absolute=yes
9488 export_dynamic_flag_spec='${wl}-E'
9489
9490 # hardcode_minus_L: Not really in the search PATH,
9491 # but as the default location of the library.
9492 hardcode_minus_L=yes
9493 ;;
9494 esac
9495 fi
9496 ;;
9497
9498 irix5* | irix6* | nonstopux*)
9499 if test "$GCC" = yes; then
9500 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'
9501 # Try to use the -exported_symbol ld option, if it does not
9502 # work, assume that -exports_file does not work either and
9503 # implicitly export all symbols.
9504 save_LDFLAGS="$LDFLAGS"
9505 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9507/* end confdefs.h. */
9508int foo(void) {}
9509_ACEOF
9510if ac_fn_c_try_link "$LINENO"; then :
9511 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'
9512
9513fi
9514rm -f core conftest.err conftest.$ac_objext \
9515 conftest$ac_exeext conftest.$ac_ext
9516 LDFLAGS="$save_LDFLAGS"
9517 else
9518 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'
9519 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'
9520 fi
9521 archive_cmds_need_lc='no'
9522 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9523 hardcode_libdir_separator=:
9524 inherit_rpath=yes
9525 link_all_deplibs=yes
9526 ;;
9527
9528 netbsd*)
9529 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9530 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9531 else
9532 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9533 fi
9534 hardcode_libdir_flag_spec='-R$libdir'
9535 hardcode_direct=yes
9536 hardcode_shlibpath_var=no
9537 ;;
9538
9539 newsos6)
9540 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9541 hardcode_direct=yes
9542 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9543 hardcode_libdir_separator=:
9544 hardcode_shlibpath_var=no
9545 ;;
9546
9547 *nto* | *qnx*)
9548 ;;
9549
9550 openbsd*)
9551 if test -f /usr/libexec/ld.so; then
9552 hardcode_direct=yes
9553 hardcode_shlibpath_var=no
9554 hardcode_direct_absolute=yes
9555 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9556 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9557 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9558 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9559 export_dynamic_flag_spec='${wl}-E'
9560 else
9561 case $host_os in
9562 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9563 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9564 hardcode_libdir_flag_spec='-R$libdir'
9565 ;;
9566 *)
9567 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9568 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9569 ;;
9570 esac
9571 fi
9572 else
9573 ld_shlibs=no
9574 fi
9575 ;;
9576
9577 os2*)
9578 hardcode_libdir_flag_spec='-L$libdir'
9579 hardcode_minus_L=yes
9580 allow_undefined_flag=unsupported
9581 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'
9582 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9583 ;;
9584
9585 osf3*)
9586 if test "$GCC" = yes; then
9587 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9588 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'
9589 else
9590 allow_undefined_flag=' -expect_unresolved \*'
9591 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'
9592 fi
9593 archive_cmds_need_lc='no'
9594 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9595 hardcode_libdir_separator=:
9596 ;;
9597
9598 osf4* | osf5*) # as osf3* with the addition of -msym flag
9599 if test "$GCC" = yes; then
9600 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9601 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'
9602 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9603 else
9604 allow_undefined_flag=' -expect_unresolved \*'
9605 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'
9606 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~
9607 $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'
9608
9609 # Both c and cxx compiler support -rpath directly
9610 hardcode_libdir_flag_spec='-rpath $libdir'
9611 fi
9612 archive_cmds_need_lc='no'
9613 hardcode_libdir_separator=:
9614 ;;
9615
9616 solaris*)
9617 no_undefined_flag=' -z defs'
9618 if test "$GCC" = yes; then
9619 wlarc='${wl}'
9620 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9621 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9622 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9623 else
9624 case `$CC -V 2>&1` in
9625 *"Compilers 5.0"*)
9626 wlarc=''
9627 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9628 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9629 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9630 ;;
9631 *)
9632 wlarc='${wl}'
9633 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9634 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9635 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9636 ;;
9637 esac
9638 fi
9639 hardcode_libdir_flag_spec='-R$libdir'
9640 hardcode_shlibpath_var=no
9641 case $host_os in
9642 solaris2.[0-5] | solaris2.[0-5].*) ;;
9643 *)
9644 # The compiler driver will combine and reorder linker options,
9645 # but understands `-z linker_flag'. GCC discards it without `$wl',
9646 # but is careful enough not to reorder.
9647 # Supported since Solaris 2.6 (maybe 2.5.1?)
9648 if test "$GCC" = yes; then
9649 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9650 else
9651 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9652 fi
9653 ;;
9654 esac
9655 link_all_deplibs=yes
9656 ;;
9657
9658 sunos4*)
9659 if test "x$host_vendor" = xsequent; then
9660 # Use $CC to link under sequent, because it throws in some extra .o
9661 # files that make .init and .fini sections work.
9662 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9663 else
9664 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9665 fi
9666 hardcode_libdir_flag_spec='-L$libdir'
9667 hardcode_direct=yes
9668 hardcode_minus_L=yes
9669 hardcode_shlibpath_var=no
9670 ;;
9671
9672 sysv4)
9673 case $host_vendor in
9674 sni)
9675 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9676 hardcode_direct=yes # is this really true???
9677 ;;
9678 siemens)
9679 ## LD is ld it makes a PLAMLIB
9680 ## CC just makes a GrossModule.
9681 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9682 reload_cmds='$CC -r -o $output$reload_objs'
9683 hardcode_direct=no
9684 ;;
9685 motorola)
9686 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9687 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9688 ;;
9689 esac
9690 runpath_var='LD_RUN_PATH'
9691 hardcode_shlibpath_var=no
9692 ;;
9693
9694 sysv4.3*)
9695 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9696 hardcode_shlibpath_var=no
9697 export_dynamic_flag_spec='-Bexport'
9698 ;;
9699
9700 sysv4*MP*)
9701 if test -d /usr/nec; then
9702 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9703 hardcode_shlibpath_var=no
9704 runpath_var=LD_RUN_PATH
9705 hardcode_runpath_var=yes
9706 ld_shlibs=yes
9707 fi
9708 ;;
9709
9710 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9711 no_undefined_flag='${wl}-z,text'
9712 archive_cmds_need_lc=no
9713 hardcode_shlibpath_var=no
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 sysv5* | sco3.2v5* | sco5v6*)
9726 # Note: We can NOT use -z defs as we might desire, because we do not
9727 # link with -lc, and that would cause any symbols used from libc to
9728 # always be unresolved, which means just about no library would
9729 # ever link correctly. If we're not using GNU ld we use -z text
9730 # though, which does catch some bad symbols but isn't as heavy-handed
9731 # as -z defs.
9732 no_undefined_flag='${wl}-z,text'
9733 allow_undefined_flag='${wl}-z,nodefs'
9734 archive_cmds_need_lc=no
9735 hardcode_shlibpath_var=no
9736 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9737 hardcode_libdir_separator=':'
9738 link_all_deplibs=yes
9739 export_dynamic_flag_spec='${wl}-Bexport'
9740 runpath_var='LD_RUN_PATH'
9741
9742 if test "$GCC" = yes; then
9743 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9744 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9745 else
9746 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9747 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9748 fi
9749 ;;
9750
9751 uts4*)
9752 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9753 hardcode_libdir_flag_spec='-L$libdir'
9754 hardcode_shlibpath_var=no
9755 ;;
9756
9757 *)
9758 ld_shlibs=no
9759 ;;
9760 esac
9761
9762 if test x$host_vendor = xsni; then
9763 case $host in
9764 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9765 export_dynamic_flag_spec='${wl}-Blargedynsym'
9766 ;;
9767 esac
9768 fi
9769 fi
9770
9771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9772$as_echo "$ld_shlibs" >&6; }
9773test "$ld_shlibs" = no && can_build_shared=no
9774
9775with_gnu_ld=$with_gnu_ld
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791#
9792# Do we need to explicitly link libc?
9793#
9794case "x$archive_cmds_need_lc" in
9795x|xyes)
9796 # Assume -lc should be added
9797 archive_cmds_need_lc=yes
9798
9799 if test "$enable_shared" = yes && test "$GCC" = yes; then
9800 case $archive_cmds in
9801 *'~'*)
9802 # FIXME: we may have to deal with multi-command sequences.
9803 ;;
9804 '$CC '*)
9805 # Test whether the compiler implicitly links with -lc since on some
9806 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9807 # to ld, don't add -lc before -lgcc.
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9809$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9810if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9811 $as_echo_n "(cached) " >&6
9812else
9813 $RM conftest*
9814 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9815
9816 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9817 (eval $ac_compile) 2>&5
9818 ac_status=$?
9819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9820 test $ac_status = 0; } 2>conftest.err; then
9821 soname=conftest
9822 lib=conftest
9823 libobjs=conftest.$ac_objext
9824 deplibs=
9825 wl=$lt_prog_compiler_wl
9826 pic_flag=$lt_prog_compiler_pic
9827 compiler_flags=-v
9828 linker_flags=-v
9829 verstring=
9830 output_objdir=.
9831 libname=conftest
9832 lt_save_allow_undefined_flag=$allow_undefined_flag
9833 allow_undefined_flag=
9834 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9835 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9836 ac_status=$?
9837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9838 test $ac_status = 0; }
9839 then
9840 lt_cv_archive_cmds_need_lc=no
9841 else
9842 lt_cv_archive_cmds_need_lc=yes
9843 fi
9844 allow_undefined_flag=$lt_save_allow_undefined_flag
9845 else
9846 cat conftest.err 1>&5
9847 fi
9848 $RM conftest*
9849
9850fi
9851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9852$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9853 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9854 ;;
9855 esac
9856 fi
9857 ;;
9858esac
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10017$as_echo_n "checking dynamic linker characteristics... " >&6; }
10018
10019if test "$GCC" = yes; then
10020 case $host_os in
10021 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10022 *) lt_awk_arg="/^libraries:/" ;;
10023 esac
10024 case $host_os in
10025 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10026 *) lt_sed_strip_eq="s,=/,/,g" ;;
10027 esac
10028 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10029 case $lt_search_path_spec in
10030 *\;*)
10031 # if the path contains ";" then we assume it to be the separator
10032 # otherwise default to the standard path separator (i.e. ":") - it is
10033 # assumed that no part of a normal pathname contains ";" but that should
10034 # okay in the real world where ";" in dirpaths is itself problematic.
10035 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10036 ;;
10037 *)
10038 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10039 ;;
10040 esac
10041 # Ok, now we have the path, separated by spaces, we can step through it
10042 # and add multilib dir if necessary.
10043 lt_tmp_lt_search_path_spec=
10044 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10045 for lt_sys_path in $lt_search_path_spec; do
10046 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10047 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10048 else
10049 test -d "$lt_sys_path" && \
10050 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10051 fi
10052 done
10053 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10054BEGIN {RS=" "; FS="/|\n";} {
10055 lt_foo="";
10056 lt_count=0;
10057 for (lt_i = NF; lt_i > 0; lt_i--) {
10058 if ($lt_i != "" && $lt_i != ".") {
10059 if ($lt_i == "..") {
10060 lt_count++;
10061 } else {
10062 if (lt_count == 0) {
10063 lt_foo="/" $lt_i lt_foo;
10064 } else {
10065 lt_count--;
10066 }
10067 }
10068 }
10069 }
10070 if (lt_foo != "") { lt_freq[lt_foo]++; }
10071 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10072}'`
10073 # AWK program above erroneously prepends '/' to C:/dos/paths
10074 # for these hosts.
10075 case $host_os in
10076 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10077 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10078 esac
10079 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10080else
10081 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10082fi
10083library_names_spec=
10084libname_spec='lib$name'
10085soname_spec=
10086shrext_cmds=".so"
10087postinstall_cmds=
10088postuninstall_cmds=
10089finish_cmds=
10090finish_eval=
10091shlibpath_var=
10092shlibpath_overrides_runpath=unknown
10093version_type=none
10094dynamic_linker="$host_os ld.so"
10095sys_lib_dlsearch_path_spec="/lib /usr/lib"
10096need_lib_prefix=unknown
10097hardcode_into_libs=no
10098
10099# when you set need_version to no, make sure it does not cause -set_version
10100# flags to be left without arguments
10101need_version=unknown
10102
10103case $host_os in
10104aix3*)
10105 version_type=linux
10106 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10107 shlibpath_var=LIBPATH
10108
10109 # AIX 3 has no versioning support, so we append a major version to the name.
10110 soname_spec='${libname}${release}${shared_ext}$major'
10111 ;;
10112
10113aix[4-9]*)
10114 version_type=linux
10115 need_lib_prefix=no
10116 need_version=no
10117 hardcode_into_libs=yes
10118 if test "$host_cpu" = ia64; then
10119 # AIX 5 supports IA64
10120 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10121 shlibpath_var=LD_LIBRARY_PATH
10122 else
10123 # With GCC up to 2.95.x, collect2 would create an import file
10124 # for dependence libraries. The import file would start with
10125 # the line `#! .'. This would cause the generated library to
10126 # depend on `.', always an invalid library. This was fixed in
10127 # development snapshots of GCC prior to 3.0.
10128 case $host_os in
10129 aix4 | aix4.[01] | aix4.[01].*)
10130 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10131 echo ' yes '
10132 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10133 :
10134 else
10135 can_build_shared=no
10136 fi
10137 ;;
10138 esac
10139 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10140 # soname into executable. Probably we can add versioning support to
10141 # collect2, so additional links can be useful in future.
10142 if test "$aix_use_runtimelinking" = yes; then
10143 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10144 # instead of lib<name>.a to let people know that these are not
10145 # typical AIX shared libraries.
10146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10147 else
10148 # We preserve .a as extension for shared libraries through AIX4.2
10149 # and later when we are not doing run time linking.
10150 library_names_spec='${libname}${release}.a $libname.a'
10151 soname_spec='${libname}${release}${shared_ext}$major'
10152 fi
10153 shlibpath_var=LIBPATH
10154 fi
10155 ;;
10156
10157amigaos*)
10158 case $host_cpu in
10159 powerpc)
10160 # Since July 2007 AmigaOS4 officially supports .so libraries.
10161 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10163 ;;
10164 m68k)
10165 library_names_spec='$libname.ixlibrary $libname.a'
10166 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10167 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'
10168 ;;
10169 esac
10170 ;;
10171
10172beos*)
10173 library_names_spec='${libname}${shared_ext}'
10174 dynamic_linker="$host_os ld.so"
10175 shlibpath_var=LIBRARY_PATH
10176 ;;
10177
10178bsdi[45]*)
10179 version_type=linux
10180 need_version=no
10181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10182 soname_spec='${libname}${release}${shared_ext}$major'
10183 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10184 shlibpath_var=LD_LIBRARY_PATH
10185 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10186 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10187 # the default ld.so.conf also contains /usr/contrib/lib and
10188 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10189 # libtool to hard-code these into programs
10190 ;;
10191
10192cygwin* | mingw* | pw32* | cegcc*)
10193 version_type=windows
10194 shrext_cmds=".dll"
10195 need_version=no
10196 need_lib_prefix=no
10197
10198 case $GCC,$host_os in
10199 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10200 library_names_spec='$libname.dll.a'
10201 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10202 postinstall_cmds='base_file=`basename \${file}`~
10203 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10204 dldir=$destdir/`dirname \$dlpath`~
10205 test -d \$dldir || mkdir -p \$dldir~
10206 $install_prog $dir/$dlname \$dldir/$dlname~
10207 chmod a+x \$dldir/$dlname~
10208 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10209 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10210 fi'
10211 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10212 dlpath=$dir/\$dldll~
10213 $RM \$dlpath'
10214 shlibpath_overrides_runpath=yes
10215
10216 case $host_os in
10217 cygwin*)
10218 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10219 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10220
10221 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10222 ;;
10223 mingw* | cegcc*)
10224 # MinGW DLLs use traditional 'lib' prefix
10225 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10226 ;;
10227 pw32*)
10228 # pw32 DLLs use 'pw' prefix rather than 'lib'
10229 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10230 ;;
10231 esac
10232 ;;
10233
10234 *)
10235 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10236 ;;
10237 esac
10238 dynamic_linker='Win32 ld.exe'
10239 # FIXME: first we should search . and the directory the executable is in
10240 shlibpath_var=PATH
10241 ;;
10242
10243darwin* | rhapsody*)
10244 dynamic_linker="$host_os dyld"
10245 version_type=darwin
10246 need_lib_prefix=no
10247 need_version=no
10248 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10249 soname_spec='${libname}${release}${major}$shared_ext'
10250 shlibpath_overrides_runpath=yes
10251 shlibpath_var=DYLD_LIBRARY_PATH
10252 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10253
10254 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10255 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10256 ;;
10257
10258dgux*)
10259 version_type=linux
10260 need_lib_prefix=no
10261 need_version=no
10262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10263 soname_spec='${libname}${release}${shared_ext}$major'
10264 shlibpath_var=LD_LIBRARY_PATH
10265 ;;
10266
7a938933
ILT
10267freebsd* | dragonfly*)
10268 # DragonFly does not have aout. When/if they implement a new
10269 # versioning mechanism, adjust this.
10270 if test -x /usr/bin/objformat; then
10271 objformat=`/usr/bin/objformat`
10272 else
10273 case $host_os in
327a26a3 10274 freebsd[23].*) objformat=aout ;;
7a938933
ILT
10275 *) objformat=elf ;;
10276 esac
10277 fi
10278 version_type=freebsd-$objformat
10279 case $version_type in
10280 freebsd-elf*)
10281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10282 need_version=no
10283 need_lib_prefix=no
10284 ;;
10285 freebsd-*)
10286 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10287 need_version=yes
10288 ;;
10289 esac
10290 shlibpath_var=LD_LIBRARY_PATH
10291 case $host_os in
327a26a3 10292 freebsd2.*)
7a938933
ILT
10293 shlibpath_overrides_runpath=yes
10294 ;;
10295 freebsd3.[01]* | freebsdelf3.[01]*)
10296 shlibpath_overrides_runpath=yes
10297 hardcode_into_libs=yes
10298 ;;
10299 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10300 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10301 shlibpath_overrides_runpath=no
10302 hardcode_into_libs=yes
10303 ;;
10304 *) # from 4.6 on, and DragonFly
10305 shlibpath_overrides_runpath=yes
10306 hardcode_into_libs=yes
10307 ;;
10308 esac
10309 ;;
10310
10311gnu*)
10312 version_type=linux
10313 need_lib_prefix=no
10314 need_version=no
10315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10316 soname_spec='${libname}${release}${shared_ext}$major'
10317 shlibpath_var=LD_LIBRARY_PATH
10318 hardcode_into_libs=yes
10319 ;;
10320
10321haiku*)
10322 version_type=linux
10323 need_lib_prefix=no
10324 need_version=no
10325 dynamic_linker="$host_os runtime_loader"
10326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10327 soname_spec='${libname}${release}${shared_ext}$major'
10328 shlibpath_var=LIBRARY_PATH
10329 shlibpath_overrides_runpath=yes
10330 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10331 hardcode_into_libs=yes
10332 ;;
10333
10334hpux9* | hpux10* | hpux11*)
10335 # Give a soname corresponding to the major version so that dld.sl refuses to
10336 # link against other versions.
10337 version_type=sunos
10338 need_lib_prefix=no
10339 need_version=no
10340 case $host_cpu in
10341 ia64*)
10342 shrext_cmds='.so'
10343 hardcode_into_libs=yes
10344 dynamic_linker="$host_os dld.so"
10345 shlibpath_var=LD_LIBRARY_PATH
10346 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10348 soname_spec='${libname}${release}${shared_ext}$major'
10349 if test "X$HPUX_IA64_MODE" = X32; then
10350 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10351 else
10352 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10353 fi
10354 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10355 ;;
10356 hppa*64*)
10357 shrext_cmds='.sl'
10358 hardcode_into_libs=yes
10359 dynamic_linker="$host_os dld.sl"
10360 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10361 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10363 soname_spec='${libname}${release}${shared_ext}$major'
10364 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10365 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10366 ;;
10367 *)
10368 shrext_cmds='.sl'
10369 dynamic_linker="$host_os dld.sl"
10370 shlibpath_var=SHLIB_PATH
10371 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10373 soname_spec='${libname}${release}${shared_ext}$major'
10374 ;;
10375 esac
10376 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10377 postinstall_cmds='chmod 555 $lib'
10378 # or fails outright, so override atomically:
10379 install_override_mode=555
10380 ;;
10381
10382interix[3-9]*)
10383 version_type=linux
10384 need_lib_prefix=no
10385 need_version=no
10386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10387 soname_spec='${libname}${release}${shared_ext}$major'
10388 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10389 shlibpath_var=LD_LIBRARY_PATH
10390 shlibpath_overrides_runpath=no
10391 hardcode_into_libs=yes
10392 ;;
10393
10394irix5* | irix6* | nonstopux*)
10395 case $host_os in
10396 nonstopux*) version_type=nonstopux ;;
10397 *)
10398 if test "$lt_cv_prog_gnu_ld" = yes; then
10399 version_type=linux
10400 else
10401 version_type=irix
10402 fi ;;
10403 esac
10404 need_lib_prefix=no
10405 need_version=no
10406 soname_spec='${libname}${release}${shared_ext}$major'
10407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10408 case $host_os in
10409 irix5* | nonstopux*)
10410 libsuff= shlibsuff=
10411 ;;
10412 *)
10413 case $LD in # libtool.m4 will add one of these switches to LD
10414 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10415 libsuff= shlibsuff= libmagic=32-bit;;
10416 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10417 libsuff=32 shlibsuff=N32 libmagic=N32;;
10418 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10419 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10420 *) libsuff= shlibsuff= libmagic=never-match;;
10421 esac
10422 ;;
10423 esac
10424 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10425 shlibpath_overrides_runpath=no
10426 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10427 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10428 hardcode_into_libs=yes
10429 ;;
10430
10431# No shared lib support for Linux oldld, aout, or coff.
10432linux*oldld* | linux*aout* | linux*coff*)
10433 dynamic_linker=no
10434 ;;
10435
10436# This must be Linux ELF.
10437linux* | k*bsd*-gnu | kopensolaris*-gnu)
10438 version_type=linux
10439 need_lib_prefix=no
10440 need_version=no
10441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10442 soname_spec='${libname}${release}${shared_ext}$major'
10443 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10444 shlibpath_var=LD_LIBRARY_PATH
10445 shlibpath_overrides_runpath=no
10446
10447 # Some binutils ld are patched to set DT_RUNPATH
10448 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10449 $as_echo_n "(cached) " >&6
10450else
10451 lt_cv_shlibpath_overrides_runpath=no
10452 save_LDFLAGS=$LDFLAGS
10453 save_libdir=$libdir
10454 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10455 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10457/* end confdefs.h. */
10458
10459int
10460main ()
10461{
10462
10463 ;
10464 return 0;
10465}
10466_ACEOF
10467if ac_fn_c_try_link "$LINENO"; then :
10468 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10469 lt_cv_shlibpath_overrides_runpath=yes
10470fi
10471fi
10472rm -f core conftest.err conftest.$ac_objext \
10473 conftest$ac_exeext conftest.$ac_ext
10474 LDFLAGS=$save_LDFLAGS
10475 libdir=$save_libdir
10476
10477fi
10478
10479 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10480
10481 # This implies no fast_install, which is unacceptable.
10482 # Some rework will be needed to allow for fast_install
10483 # before this can be enabled.
10484 hardcode_into_libs=yes
10485
10486 # Append ld.so.conf contents to the search path
10487 if test -f /etc/ld.so.conf; then
10488 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' ' '`
10489 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10490 fi
10491
10492 # We used to test for /lib/ld.so.1 and disable shared libraries on
10493 # powerpc, because MkLinux only supported shared libraries with the
10494 # GNU dynamic linker. Since this was broken with cross compilers,
10495 # most powerpc-linux boxes support dynamic linking these days and
10496 # people can always --disable-shared, the test was removed, and we
10497 # assume the GNU/Linux dynamic linker is in use.
10498 dynamic_linker='GNU/Linux ld.so'
10499 ;;
10500
10501netbsd*)
10502 version_type=sunos
10503 need_lib_prefix=no
10504 need_version=no
10505 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10507 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10508 dynamic_linker='NetBSD (a.out) ld.so'
10509 else
10510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10511 soname_spec='${libname}${release}${shared_ext}$major'
10512 dynamic_linker='NetBSD ld.elf_so'
10513 fi
10514 shlibpath_var=LD_LIBRARY_PATH
10515 shlibpath_overrides_runpath=yes
10516 hardcode_into_libs=yes
10517 ;;
10518
10519newsos6)
10520 version_type=linux
10521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10522 shlibpath_var=LD_LIBRARY_PATH
10523 shlibpath_overrides_runpath=yes
10524 ;;
10525
10526*nto* | *qnx*)
10527 version_type=qnx
10528 need_lib_prefix=no
10529 need_version=no
10530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10531 soname_spec='${libname}${release}${shared_ext}$major'
10532 shlibpath_var=LD_LIBRARY_PATH
10533 shlibpath_overrides_runpath=no
10534 hardcode_into_libs=yes
10535 dynamic_linker='ldqnx.so'
10536 ;;
10537
10538openbsd*)
10539 version_type=sunos
10540 sys_lib_dlsearch_path_spec="/usr/lib"
10541 need_lib_prefix=no
10542 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10543 case $host_os in
10544 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10545 *) need_version=no ;;
10546 esac
10547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10548 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10549 shlibpath_var=LD_LIBRARY_PATH
10550 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10551 case $host_os in
10552 openbsd2.[89] | openbsd2.[89].*)
10553 shlibpath_overrides_runpath=no
10554 ;;
10555 *)
10556 shlibpath_overrides_runpath=yes
10557 ;;
10558 esac
10559 else
10560 shlibpath_overrides_runpath=yes
10561 fi
10562 ;;
10563
10564os2*)
10565 libname_spec='$name'
10566 shrext_cmds=".dll"
10567 need_lib_prefix=no
10568 library_names_spec='$libname${shared_ext} $libname.a'
10569 dynamic_linker='OS/2 ld.exe'
10570 shlibpath_var=LIBPATH
10571 ;;
10572
10573osf3* | osf4* | osf5*)
10574 version_type=osf
10575 need_lib_prefix=no
10576 need_version=no
10577 soname_spec='${libname}${release}${shared_ext}$major'
10578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10579 shlibpath_var=LD_LIBRARY_PATH
10580 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10581 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10582 ;;
10583
10584rdos*)
10585 dynamic_linker=no
10586 ;;
10587
10588solaris*)
10589 version_type=linux
10590 need_lib_prefix=no
10591 need_version=no
10592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10593 soname_spec='${libname}${release}${shared_ext}$major'
10594 shlibpath_var=LD_LIBRARY_PATH
10595 shlibpath_overrides_runpath=yes
10596 hardcode_into_libs=yes
10597 # ldd complains unless libraries are executable
10598 postinstall_cmds='chmod +x $lib'
10599 ;;
10600
10601sunos4*)
10602 version_type=sunos
10603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10604 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10605 shlibpath_var=LD_LIBRARY_PATH
10606 shlibpath_overrides_runpath=yes
10607 if test "$with_gnu_ld" = yes; then
10608 need_lib_prefix=no
10609 fi
10610 need_version=yes
10611 ;;
10612
10613sysv4 | sysv4.3*)
10614 version_type=linux
10615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10616 soname_spec='${libname}${release}${shared_ext}$major'
10617 shlibpath_var=LD_LIBRARY_PATH
10618 case $host_vendor in
10619 sni)
10620 shlibpath_overrides_runpath=no
10621 need_lib_prefix=no
10622 runpath_var=LD_RUN_PATH
10623 ;;
10624 siemens)
10625 need_lib_prefix=no
10626 ;;
10627 motorola)
10628 need_lib_prefix=no
10629 need_version=no
10630 shlibpath_overrides_runpath=no
10631 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10632 ;;
10633 esac
10634 ;;
10635
10636sysv4*MP*)
10637 if test -d /usr/nec ;then
10638 version_type=linux
10639 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10640 soname_spec='$libname${shared_ext}.$major'
10641 shlibpath_var=LD_LIBRARY_PATH
10642 fi
10643 ;;
10644
10645sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10646 version_type=freebsd-elf
10647 need_lib_prefix=no
10648 need_version=no
10649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10650 soname_spec='${libname}${release}${shared_ext}$major'
10651 shlibpath_var=LD_LIBRARY_PATH
10652 shlibpath_overrides_runpath=yes
10653 hardcode_into_libs=yes
10654 if test "$with_gnu_ld" = yes; then
10655 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10656 else
10657 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10658 case $host_os in
10659 sco3.2v5*)
10660 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10661 ;;
10662 esac
10663 fi
10664 sys_lib_dlsearch_path_spec='/usr/lib'
10665 ;;
10666
10667tpf*)
10668 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10669 version_type=linux
10670 need_lib_prefix=no
10671 need_version=no
10672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10673 shlibpath_var=LD_LIBRARY_PATH
10674 shlibpath_overrides_runpath=no
10675 hardcode_into_libs=yes
10676 ;;
10677
10678uts4*)
10679 version_type=linux
10680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10681 soname_spec='${libname}${release}${shared_ext}$major'
10682 shlibpath_var=LD_LIBRARY_PATH
10683 ;;
10684
10685*)
10686 dynamic_linker=no
10687 ;;
10688esac
10689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10690$as_echo "$dynamic_linker" >&6; }
10691test "$dynamic_linker" = no && can_build_shared=no
10692
10693variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10694if test "$GCC" = yes; then
10695 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10696fi
10697
10698if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10699 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10700fi
10701if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10702 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10703fi
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10797$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10798hardcode_action=
10799if test -n "$hardcode_libdir_flag_spec" ||
10800 test -n "$runpath_var" ||
10801 test "X$hardcode_automatic" = "Xyes" ; then
10802
10803 # We can hardcode non-existent directories.
10804 if test "$hardcode_direct" != no &&
10805 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10806 # have to relink, otherwise we might link with an installed library
10807 # when we should be linking with a yet-to-be-installed one
10808 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10809 test "$hardcode_minus_L" != no; then
10810 # Linking always hardcodes the temporary library directory.
10811 hardcode_action=relink
10812 else
10813 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10814 hardcode_action=immediate
10815 fi
10816else
10817 # We cannot hardcode anything, or else we can only hardcode existing
10818 # directories.
10819 hardcode_action=unsupported
10820fi
10821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10822$as_echo "$hardcode_action" >&6; }
10823
10824if test "$hardcode_action" = relink ||
10825 test "$inherit_rpath" = yes; then
10826 # Fast installation is not supported
10827 enable_fast_install=no
10828elif test "$shlibpath_overrides_runpath" = yes ||
10829 test "$enable_shared" = no; then
10830 # Fast installation is not necessary
10831 enable_fast_install=needless
10832fi
10833
10834
10835
10836
10837
10838
10839 if test "x$enable_dlopen" != xyes; then
10840 enable_dlopen=unknown
10841 enable_dlopen_self=unknown
10842 enable_dlopen_self_static=unknown
10843else
10844 lt_cv_dlopen=no
10845 lt_cv_dlopen_libs=
10846
10847 case $host_os in
10848 beos*)
10849 lt_cv_dlopen="load_add_on"
10850 lt_cv_dlopen_libs=
10851 lt_cv_dlopen_self=yes
10852 ;;
10853
10854 mingw* | pw32* | cegcc*)
10855 lt_cv_dlopen="LoadLibrary"
10856 lt_cv_dlopen_libs=
10857 ;;
10858
10859 cygwin*)
10860 lt_cv_dlopen="dlopen"
10861 lt_cv_dlopen_libs=
10862 ;;
10863
10864 darwin*)
10865 # if libdl is installed we need to link against it
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10867$as_echo_n "checking for dlopen in -ldl... " >&6; }
10868if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10869 $as_echo_n "(cached) " >&6
10870else
10871 ac_check_lib_save_LIBS=$LIBS
10872LIBS="-ldl $LIBS"
10873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10874/* end confdefs.h. */
10875
10876/* Override any GCC internal prototype to avoid an error.
10877 Use char because int might match the return type of a GCC
10878 builtin and then its argument prototype would still apply. */
10879#ifdef __cplusplus
10880extern "C"
10881#endif
10882char dlopen ();
10883int
10884main ()
10885{
10886return dlopen ();
10887 ;
10888 return 0;
10889}
10890_ACEOF
10891if ac_fn_c_try_link "$LINENO"; then :
10892 ac_cv_lib_dl_dlopen=yes
10893else
10894 ac_cv_lib_dl_dlopen=no
10895fi
10896rm -f core conftest.err conftest.$ac_objext \
10897 conftest$ac_exeext conftest.$ac_ext
10898LIBS=$ac_check_lib_save_LIBS
10899fi
10900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10901$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10902if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10903 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10904else
10905
10906 lt_cv_dlopen="dyld"
10907 lt_cv_dlopen_libs=
10908 lt_cv_dlopen_self=yes
10909
10910fi
10911
10912 ;;
10913
10914 *)
10915 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10916if test "x$ac_cv_func_shl_load" = x""yes; then :
10917 lt_cv_dlopen="shl_load"
10918else
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10920$as_echo_n "checking for shl_load in -ldld... " >&6; }
10921if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10922 $as_echo_n "(cached) " >&6
10923else
10924 ac_check_lib_save_LIBS=$LIBS
10925LIBS="-ldld $LIBS"
10926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10927/* end confdefs.h. */
10928
10929/* Override any GCC internal prototype to avoid an error.
10930 Use char because int might match the return type of a GCC
10931 builtin and then its argument prototype would still apply. */
10932#ifdef __cplusplus
10933extern "C"
10934#endif
10935char shl_load ();
10936int
10937main ()
10938{
10939return shl_load ();
10940 ;
10941 return 0;
10942}
10943_ACEOF
10944if ac_fn_c_try_link "$LINENO"; then :
10945 ac_cv_lib_dld_shl_load=yes
10946else
10947 ac_cv_lib_dld_shl_load=no
10948fi
10949rm -f core conftest.err conftest.$ac_objext \
10950 conftest$ac_exeext conftest.$ac_ext
10951LIBS=$ac_check_lib_save_LIBS
10952fi
10953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10954$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10955if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10956 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10957else
10958 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10959if test "x$ac_cv_func_dlopen" = x""yes; then :
10960 lt_cv_dlopen="dlopen"
10961else
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10963$as_echo_n "checking for dlopen in -ldl... " >&6; }
10964if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10965 $as_echo_n "(cached) " >&6
10966else
10967 ac_check_lib_save_LIBS=$LIBS
10968LIBS="-ldl $LIBS"
10969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10970/* end confdefs.h. */
10971
10972/* Override any GCC internal prototype to avoid an error.
10973 Use char because int might match the return type of a GCC
10974 builtin and then its argument prototype would still apply. */
10975#ifdef __cplusplus
10976extern "C"
10977#endif
10978char dlopen ();
10979int
10980main ()
10981{
10982return dlopen ();
10983 ;
10984 return 0;
10985}
10986_ACEOF
10987if ac_fn_c_try_link "$LINENO"; then :
10988 ac_cv_lib_dl_dlopen=yes
10989else
10990 ac_cv_lib_dl_dlopen=no
10991fi
10992rm -f core conftest.err conftest.$ac_objext \
10993 conftest$ac_exeext conftest.$ac_ext
10994LIBS=$ac_check_lib_save_LIBS
10995fi
10996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10997$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10998if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10999 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11000else
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11002$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11003if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11004 $as_echo_n "(cached) " >&6
11005else
11006 ac_check_lib_save_LIBS=$LIBS
11007LIBS="-lsvld $LIBS"
11008cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11009/* end confdefs.h. */
11010
11011/* Override any GCC internal prototype to avoid an error.
11012 Use char because int might match the return type of a GCC
11013 builtin and then its argument prototype would still apply. */
11014#ifdef __cplusplus
11015extern "C"
11016#endif
11017char dlopen ();
11018int
11019main ()
11020{
11021return dlopen ();
11022 ;
11023 return 0;
11024}
11025_ACEOF
11026if ac_fn_c_try_link "$LINENO"; then :
11027 ac_cv_lib_svld_dlopen=yes
11028else
11029 ac_cv_lib_svld_dlopen=no
11030fi
11031rm -f core conftest.err conftest.$ac_objext \
11032 conftest$ac_exeext conftest.$ac_ext
11033LIBS=$ac_check_lib_save_LIBS
11034fi
11035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11036$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11037if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11038 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11039else
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11041$as_echo_n "checking for dld_link in -ldld... " >&6; }
11042if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11043 $as_echo_n "(cached) " >&6
11044else
11045 ac_check_lib_save_LIBS=$LIBS
11046LIBS="-ldld $LIBS"
11047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11048/* end confdefs.h. */
11049
11050/* Override any GCC internal prototype to avoid an error.
11051 Use char because int might match the return type of a GCC
11052 builtin and then its argument prototype would still apply. */
11053#ifdef __cplusplus
11054extern "C"
11055#endif
11056char dld_link ();
11057int
11058main ()
11059{
11060return dld_link ();
11061 ;
11062 return 0;
11063}
11064_ACEOF
11065if ac_fn_c_try_link "$LINENO"; then :
11066 ac_cv_lib_dld_dld_link=yes
11067else
11068 ac_cv_lib_dld_dld_link=no
11069fi
11070rm -f core conftest.err conftest.$ac_objext \
11071 conftest$ac_exeext conftest.$ac_ext
11072LIBS=$ac_check_lib_save_LIBS
11073fi
11074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11075$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11076if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11077 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11078fi
11079
11080
11081fi
11082
11083
11084fi
11085
11086
11087fi
11088
11089
11090fi
11091
11092
11093fi
11094
11095 ;;
11096 esac
11097
11098 if test "x$lt_cv_dlopen" != xno; then
11099 enable_dlopen=yes
11100 else
11101 enable_dlopen=no
11102 fi
11103
11104 case $lt_cv_dlopen in
11105 dlopen)
11106 save_CPPFLAGS="$CPPFLAGS"
11107 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11108
11109 save_LDFLAGS="$LDFLAGS"
11110 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11111
11112 save_LIBS="$LIBS"
11113 LIBS="$lt_cv_dlopen_libs $LIBS"
11114
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11116$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11117if test "${lt_cv_dlopen_self+set}" = set; then :
11118 $as_echo_n "(cached) " >&6
11119else
11120 if test "$cross_compiling" = yes; then :
11121 lt_cv_dlopen_self=cross
11122else
11123 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11124 lt_status=$lt_dlunknown
11125 cat > conftest.$ac_ext <<_LT_EOF
44c925bd 11126#line 11126 "configure"
7a938933
ILT
11127#include "confdefs.h"
11128
11129#if HAVE_DLFCN_H
11130#include <dlfcn.h>
11131#endif
11132
11133#include <stdio.h>
11134
11135#ifdef RTLD_GLOBAL
11136# define LT_DLGLOBAL RTLD_GLOBAL
11137#else
11138# ifdef DL_GLOBAL
11139# define LT_DLGLOBAL DL_GLOBAL
11140# else
11141# define LT_DLGLOBAL 0
11142# endif
11143#endif
11144
11145/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11146 find out it does not work in some platform. */
11147#ifndef LT_DLLAZY_OR_NOW
11148# ifdef RTLD_LAZY
11149# define LT_DLLAZY_OR_NOW RTLD_LAZY
11150# else
11151# ifdef DL_LAZY
11152# define LT_DLLAZY_OR_NOW DL_LAZY
11153# else
11154# ifdef RTLD_NOW
11155# define LT_DLLAZY_OR_NOW RTLD_NOW
11156# else
11157# ifdef DL_NOW
11158# define LT_DLLAZY_OR_NOW DL_NOW
11159# else
11160# define LT_DLLAZY_OR_NOW 0
11161# endif
11162# endif
11163# endif
11164# endif
11165#endif
11166
11167/* When -fvisbility=hidden is used, assume the code has been annotated
11168 correspondingly for the symbols needed. */
11169#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11170void fnord () __attribute__((visibility("default")));
11171#endif
11172
11173void fnord () { int i=42; }
11174int main ()
11175{
11176 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11177 int status = $lt_dlunknown;
11178
11179 if (self)
11180 {
11181 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11182 else
11183 {
11184 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11185 else puts (dlerror ());
11186 }
11187 /* dlclose (self); */
11188 }
11189 else
11190 puts (dlerror ());
11191
11192 return status;
11193}
11194_LT_EOF
11195 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11196 (eval $ac_link) 2>&5
11197 ac_status=$?
11198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11199 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11200 (./conftest; exit; ) >&5 2>/dev/null
11201 lt_status=$?
11202 case x$lt_status in
11203 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11204 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11205 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11206 esac
11207 else :
11208 # compilation failed
11209 lt_cv_dlopen_self=no
11210 fi
11211fi
11212rm -fr conftest*
11213
11214
11215fi
11216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11217$as_echo "$lt_cv_dlopen_self" >&6; }
11218
11219 if test "x$lt_cv_dlopen_self" = xyes; then
11220 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11222$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11223if test "${lt_cv_dlopen_self_static+set}" = set; then :
11224 $as_echo_n "(cached) " >&6
11225else
11226 if test "$cross_compiling" = yes; then :
11227 lt_cv_dlopen_self_static=cross
11228else
11229 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11230 lt_status=$lt_dlunknown
11231 cat > conftest.$ac_ext <<_LT_EOF
44c925bd 11232#line 11232 "configure"
7a938933
ILT
11233#include "confdefs.h"
11234
11235#if HAVE_DLFCN_H
11236#include <dlfcn.h>
11237#endif
11238
11239#include <stdio.h>
11240
11241#ifdef RTLD_GLOBAL
11242# define LT_DLGLOBAL RTLD_GLOBAL
11243#else
11244# ifdef DL_GLOBAL
11245# define LT_DLGLOBAL DL_GLOBAL
11246# else
11247# define LT_DLGLOBAL 0
11248# endif
11249#endif
11250
11251/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11252 find out it does not work in some platform. */
11253#ifndef LT_DLLAZY_OR_NOW
11254# ifdef RTLD_LAZY
11255# define LT_DLLAZY_OR_NOW RTLD_LAZY
11256# else
11257# ifdef DL_LAZY
11258# define LT_DLLAZY_OR_NOW DL_LAZY
11259# else
11260# ifdef RTLD_NOW
11261# define LT_DLLAZY_OR_NOW RTLD_NOW
11262# else
11263# ifdef DL_NOW
11264# define LT_DLLAZY_OR_NOW DL_NOW
11265# else
11266# define LT_DLLAZY_OR_NOW 0
11267# endif
11268# endif
11269# endif
11270# endif
11271#endif
11272
11273/* When -fvisbility=hidden is used, assume the code has been annotated
11274 correspondingly for the symbols needed. */
11275#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11276void fnord () __attribute__((visibility("default")));
11277#endif
11278
11279void fnord () { int i=42; }
11280int main ()
11281{
11282 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11283 int status = $lt_dlunknown;
11284
11285 if (self)
11286 {
11287 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11288 else
11289 {
11290 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11291 else puts (dlerror ());
11292 }
11293 /* dlclose (self); */
11294 }
11295 else
11296 puts (dlerror ());
11297
11298 return status;
11299}
11300_LT_EOF
11301 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11302 (eval $ac_link) 2>&5
11303 ac_status=$?
11304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11305 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11306 (./conftest; exit; ) >&5 2>/dev/null
11307 lt_status=$?
11308 case x$lt_status in
11309 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11310 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11311 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11312 esac
11313 else :
11314 # compilation failed
11315 lt_cv_dlopen_self_static=no
11316 fi
11317fi
11318rm -fr conftest*
11319
11320
11321fi
11322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11323$as_echo "$lt_cv_dlopen_self_static" >&6; }
11324 fi
11325
11326 CPPFLAGS="$save_CPPFLAGS"
11327 LDFLAGS="$save_LDFLAGS"
11328 LIBS="$save_LIBS"
11329 ;;
11330 esac
11331
11332 case $lt_cv_dlopen_self in
11333 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11334 *) enable_dlopen_self=unknown ;;
11335 esac
11336
11337 case $lt_cv_dlopen_self_static in
11338 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11339 *) enable_dlopen_self_static=unknown ;;
11340 esac
11341fi
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359striplib=
11360old_striplib=
11361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11362$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11363if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11364 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11365 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11367$as_echo "yes" >&6; }
11368else
11369# FIXME - insert some real tests, host_os isn't really good enough
11370 case $host_os in
11371 darwin*)
11372 if test -n "$STRIP" ; then
11373 striplib="$STRIP -x"
11374 old_striplib="$STRIP -S"
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11376$as_echo "yes" >&6; }
11377 else
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11379$as_echo "no" >&6; }
11380 fi
11381 ;;
11382 *)
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11384$as_echo "no" >&6; }
11385 ;;
11386 esac
11387fi
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400 # Report which library types will actually be built
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11402$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11404$as_echo "$can_build_shared" >&6; }
11405
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11407$as_echo_n "checking whether to build shared libraries... " >&6; }
11408 test "$can_build_shared" = "no" && enable_shared=no
11409
11410 # On AIX, shared libraries and static libraries use the same namespace, and
11411 # are all built from PIC.
11412 case $host_os in
11413 aix3*)
11414 test "$enable_shared" = yes && enable_static=no
11415 if test -n "$RANLIB"; then
11416 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11417 postinstall_cmds='$RANLIB $lib'
11418 fi
11419 ;;
11420
11421 aix[4-9]*)
11422 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11423 test "$enable_shared" = yes && enable_static=no
11424 fi
11425 ;;
11426 esac
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11428$as_echo "$enable_shared" >&6; }
11429
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11431$as_echo_n "checking whether to build static libraries... " >&6; }
11432 # Make sure either enable_shared or enable_static is yes.
11433 test "$enable_shared" = yes || enable_static=yes
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11435$as_echo "$enable_static" >&6; }
11436
11437
11438
11439
11440fi
11441ac_ext=c
11442ac_cpp='$CPP $CPPFLAGS'
11443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11445ac_compiler_gnu=$ac_cv_c_compiler_gnu
11446
11447CC="$lt_save_CC"
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461# Source file extension for Go test sources.
11462ac_ext=go
11463
11464# Object file extension for compiled Go test sources.
11465objext=o
11466objext_GO=$objext
11467
11468# Code to be used in simple compile tests
11469lt_simple_compile_test_code="package main; func main() { }"
11470
11471# Code to be used in simple link tests
11472lt_simple_link_test_code='package main; func main() { }'
11473
11474# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11475
11476
11477
11478
11479
11480
11481# If no C compiler was specified, use CC.
11482LTCC=${LTCC-"$CC"}
11483
11484# If no C compiler flags were specified, use CFLAGS.
11485LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11486
11487# Allow CC to be a program name with arguments.
11488compiler=$CC
11489
11490
11491# save warnings/boilerplate of simple test code
11492ac_outfile=conftest.$ac_objext
11493echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11494eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11495_lt_compiler_boilerplate=`cat conftest.err`
11496$RM conftest*
11497
11498ac_outfile=conftest.$ac_objext
11499echo "$lt_simple_link_test_code" >conftest.$ac_ext
11500eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11501_lt_linker_boilerplate=`cat conftest.err`
11502$RM -r conftest*
11503
11504
11505# Allow CC to be a program name with arguments.
11506lt_save_CC="$CC"
11507lt_save_GCC="$GCC"
11508GCC=yes
11509CC=${GOC-"gccgo"}
11510compiler=$CC
11511compiler_GO=$CC
11512LD_GO="$LD"
11513for cc_temp in $compiler""; do
11514 case $cc_temp in
11515 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11516 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11517 \-*) ;;
11518 *) break;;
11519 esac
11520done
11521cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11522
11523
11524# Go did not exist at the time GCC didn't implicitly link libc in.
11525archive_cmds_need_lc_GO=no
11526
11527old_archive_cmds_GO=$old_archive_cmds
11528
11529## CAVEAT EMPTOR:
11530## There is no encapsulation within the following macros, do not change
11531## the running order or otherwise move them around unless you know exactly
11532## what you are doing...
11533if test -n "$compiler"; then
11534
11535lt_prog_compiler_no_builtin_flag_GO=
11536
11537if test "$GCC" = yes; then
11538 case $cc_basename in
11539 nvcc*)
11540 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11541 *)
11542 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11543 esac
11544
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11546$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11547if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11548 $as_echo_n "(cached) " >&6
11549else
11550 lt_cv_prog_compiler_rtti_exceptions=no
11551 ac_outfile=conftest.$ac_objext
11552 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11553 lt_compiler_flag="-fno-rtti -fno-exceptions"
11554 # Insert the option either (1) after the last *FLAGS variable, or
11555 # (2) before a word containing "conftest.", or (3) at the end.
11556 # Note that $ac_compile itself does not contain backslashes and begins
11557 # with a dollar sign (not a hyphen), so the echo should work correctly.
11558 # The option is referenced via a variable to avoid confusing sed.
11559 lt_compile=`echo "$ac_compile" | $SED \
11560 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11561 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11562 -e 's:$: $lt_compiler_flag:'`
11563 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11564 (eval "$lt_compile" 2>conftest.err)
11565 ac_status=$?
11566 cat conftest.err >&5
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 if (exit $ac_status) && test -s "$ac_outfile"; then
11569 # The compiler can only warn and ignore the option if not recognized
11570 # So say no if there are warnings other than the usual output.
11571 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11572 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11573 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11574 lt_cv_prog_compiler_rtti_exceptions=yes
11575 fi
11576 fi
11577 $RM conftest*
11578
11579fi
11580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11581$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11582
11583if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11584 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11585else
11586 :
11587fi
11588
11589fi
11590
11591
11592
11593 lt_prog_compiler_wl_GO=
11594lt_prog_compiler_pic_GO=
11595lt_prog_compiler_static_GO=
11596
11597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11598$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11599
11600 if test "$GCC" = yes; then
11601 lt_prog_compiler_wl_GO='-Wl,'
11602 lt_prog_compiler_static_GO='-static'
11603
11604 case $host_os in
11605 aix*)
11606 # All AIX code is PIC.
11607 if test "$host_cpu" = ia64; then
11608 # AIX 5 now supports IA64 processor
11609 lt_prog_compiler_static_GO='-Bstatic'
11610 fi
327a26a3 11611 lt_prog_compiler_pic_GO='-fPIC'
7a938933
ILT
11612 ;;
11613
11614 amigaos*)
11615 case $host_cpu in
11616 powerpc)
11617 # see comment about AmigaOS4 .so support
11618 lt_prog_compiler_pic_GO='-fPIC'
11619 ;;
11620 m68k)
11621 # FIXME: we need at least 68020 code to build shared libraries, but
11622 # adding the `-m68020' flag to GCC prevents building anything better,
11623 # like `-m68040'.
11624 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11625 ;;
11626 esac
11627 ;;
11628
11629 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11630 # PIC is the default for these OSes.
11631 ;;
11632
11633 mingw* | cygwin* | pw32* | os2* | cegcc*)
11634 # This hack is so that the source file can tell whether it is being
11635 # built for inclusion in a dll (and should export symbols for example).
11636 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11637 # (--disable-auto-import) libraries
11638 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11639 ;;
11640
11641 darwin* | rhapsody*)
11642 # PIC is the default on this platform
11643 # Common symbols not allowed in MH_DYLIB files
11644 lt_prog_compiler_pic_GO='-fno-common'
11645 ;;
11646
11647 haiku*)
11648 # PIC is the default for Haiku.
11649 # The "-static" flag exists, but is broken.
11650 lt_prog_compiler_static_GO=
11651 ;;
11652
11653 hpux*)
11654 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11655 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11656 # sets the default TLS model and affects inlining.
11657 case $host_cpu in
11658 hppa*64*)
11659 # +Z the default
11660 ;;
11661 *)
11662 lt_prog_compiler_pic_GO='-fPIC'
11663 ;;
11664 esac
11665 ;;
11666
11667 interix[3-9]*)
11668 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11669 # Instead, we relocate shared libraries at runtime.
11670 ;;
11671
11672 msdosdjgpp*)
11673 # Just because we use GCC doesn't mean we suddenly get shared libraries
11674 # on systems that don't support them.
11675 lt_prog_compiler_can_build_shared_GO=no
11676 enable_shared=no
11677 ;;
11678
11679 *nto* | *qnx*)
11680 # QNX uses GNU C++, but need to define -shared option too, otherwise
11681 # it will coredump.
11682 lt_prog_compiler_pic_GO='-fPIC -shared'
11683 ;;
11684
11685 sysv4*MP*)
11686 if test -d /usr/nec; then
11687 lt_prog_compiler_pic_GO=-Kconform_pic
11688 fi
11689 ;;
11690
11691 *)
11692 lt_prog_compiler_pic_GO='-fPIC'
11693 ;;
11694 esac
11695
11696 case $cc_basename in
11697 nvcc*) # Cuda Compiler Driver 2.2
11698 lt_prog_compiler_wl_GO='-Xlinker '
11699 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11700 ;;
11701 esac
11702 else
11703 # PORTME Check for flag to pass linker flags through the system compiler.
11704 case $host_os in
11705 aix*)
11706 lt_prog_compiler_wl_GO='-Wl,'
11707 if test "$host_cpu" = ia64; then
11708 # AIX 5 now supports IA64 processor
11709 lt_prog_compiler_static_GO='-Bstatic'
11710 else
11711 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11712 fi
11713 ;;
11714
11715 mingw* | cygwin* | pw32* | os2* | cegcc*)
11716 # This hack is so that the source file can tell whether it is being
11717 # built for inclusion in a dll (and should export symbols for example).
11718 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11719 ;;
11720
11721 hpux9* | hpux10* | hpux11*)
11722 lt_prog_compiler_wl_GO='-Wl,'
11723 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11724 # not for PA HP-UX.
11725 case $host_cpu in
11726 hppa*64*|ia64*)
11727 # +Z the default
11728 ;;
11729 *)
11730 lt_prog_compiler_pic_GO='+Z'
11731 ;;
11732 esac
11733 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11734 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11735 ;;
11736
11737 irix5* | irix6* | nonstopux*)
11738 lt_prog_compiler_wl_GO='-Wl,'
11739 # PIC (with -KPIC) is the default.
11740 lt_prog_compiler_static_GO='-non_shared'
11741 ;;
11742
11743 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11744 case $cc_basename in
11745 # old Intel for x86_64 which still supported -KPIC.
11746 ecc*)
11747 lt_prog_compiler_wl_GO='-Wl,'
11748 lt_prog_compiler_pic_GO='-KPIC'
11749 lt_prog_compiler_static_GO='-static'
11750 ;;
11751 # icc used to be incompatible with GCC.
11752 # ICC 10 doesn't accept -KPIC any more.
11753 icc* | ifort*)
11754 lt_prog_compiler_wl_GO='-Wl,'
11755 lt_prog_compiler_pic_GO='-fPIC'
11756 lt_prog_compiler_static_GO='-static'
11757 ;;
11758 # Lahey Fortran 8.1.
11759 lf95*)
11760 lt_prog_compiler_wl_GO='-Wl,'
11761 lt_prog_compiler_pic_GO='--shared'
11762 lt_prog_compiler_static_GO='--static'
11763 ;;
11764 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11765 # Portland Group compilers (*not* the Pentium gcc compiler,
11766 # which looks to be a dead project)
11767 lt_prog_compiler_wl_GO='-Wl,'
11768 lt_prog_compiler_pic_GO='-fpic'
11769 lt_prog_compiler_static_GO='-Bstatic'
11770 ;;
11771 ccc*)
11772 lt_prog_compiler_wl_GO='-Wl,'
11773 # All Alpha code is PIC.
11774 lt_prog_compiler_static_GO='-non_shared'
11775 ;;
11776 xl* | bgxl* | bgf* | mpixl*)
11777 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11778 lt_prog_compiler_wl_GO='-Wl,'
11779 lt_prog_compiler_pic_GO='-qpic'
11780 lt_prog_compiler_static_GO='-qstaticlink'
11781 ;;
11782 *)
11783 case `$CC -V 2>&1 | sed 5q` in
11784 *Sun\ F* | *Sun*Fortran*)
11785 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11786 lt_prog_compiler_pic_GO='-KPIC'
11787 lt_prog_compiler_static_GO='-Bstatic'
11788 lt_prog_compiler_wl_GO=''
11789 ;;
11790 *Sun\ C*)
11791 # Sun C 5.9
11792 lt_prog_compiler_pic_GO='-KPIC'
11793 lt_prog_compiler_static_GO='-Bstatic'
11794 lt_prog_compiler_wl_GO='-Wl,'
11795 ;;
11796 esac
11797 ;;
11798 esac
11799 ;;
11800
11801 newsos6)
11802 lt_prog_compiler_pic_GO='-KPIC'
11803 lt_prog_compiler_static_GO='-Bstatic'
11804 ;;
11805
11806 *nto* | *qnx*)
11807 # QNX uses GNU C++, but need to define -shared option too, otherwise
11808 # it will coredump.
11809 lt_prog_compiler_pic_GO='-fPIC -shared'
11810 ;;
11811
11812 osf3* | osf4* | osf5*)
11813 lt_prog_compiler_wl_GO='-Wl,'
11814 # All OSF/1 code is PIC.
11815 lt_prog_compiler_static_GO='-non_shared'
11816 ;;
11817
11818 rdos*)
11819 lt_prog_compiler_static_GO='-non_shared'
11820 ;;
11821
11822 solaris*)
11823 lt_prog_compiler_pic_GO='-KPIC'
11824 lt_prog_compiler_static_GO='-Bstatic'
11825 case $cc_basename in
11826 f77* | f90* | f95*)
11827 lt_prog_compiler_wl_GO='-Qoption ld ';;
11828 *)
11829 lt_prog_compiler_wl_GO='-Wl,';;
11830 esac
11831 ;;
11832
11833 sunos4*)
11834 lt_prog_compiler_wl_GO='-Qoption ld '
11835 lt_prog_compiler_pic_GO='-PIC'
11836 lt_prog_compiler_static_GO='-Bstatic'
11837 ;;
11838
11839 sysv4 | sysv4.2uw2* | sysv4.3*)
11840 lt_prog_compiler_wl_GO='-Wl,'
11841 lt_prog_compiler_pic_GO='-KPIC'
11842 lt_prog_compiler_static_GO='-Bstatic'
11843 ;;
11844
11845 sysv4*MP*)
11846 if test -d /usr/nec ;then
11847 lt_prog_compiler_pic_GO='-Kconform_pic'
11848 lt_prog_compiler_static_GO='-Bstatic'
11849 fi
11850 ;;
11851
11852 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11853 lt_prog_compiler_wl_GO='-Wl,'
11854 lt_prog_compiler_pic_GO='-KPIC'
11855 lt_prog_compiler_static_GO='-Bstatic'
11856 ;;
11857
11858 unicos*)
11859 lt_prog_compiler_wl_GO='-Wl,'
11860 lt_prog_compiler_can_build_shared_GO=no
11861 ;;
11862
11863 uts4*)
11864 lt_prog_compiler_pic_GO='-pic'
11865 lt_prog_compiler_static_GO='-Bstatic'
11866 ;;
11867
11868 *)
11869 lt_prog_compiler_can_build_shared_GO=no
11870 ;;
11871 esac
11872 fi
11873
11874case $host_os in
11875 # For platforms which do not support PIC, -DPIC is meaningless:
11876 *djgpp*)
11877 lt_prog_compiler_pic_GO=
11878 ;;
11879 *)
11880 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11881 ;;
11882esac
11883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11884$as_echo "$lt_prog_compiler_pic_GO" >&6; }
11885
11886
11887
11888#
11889# Check to make sure the PIC flag actually works.
11890#
11891if test -n "$lt_prog_compiler_pic_GO"; then
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11893$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11894if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11895 $as_echo_n "(cached) " >&6
11896else
11897 lt_cv_prog_compiler_pic_works_GO=no
11898 ac_outfile=conftest.$ac_objext
11899 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11900 lt_compiler_flag="$lt_prog_compiler_pic_GO"
11901 # Insert the option either (1) after the last *FLAGS variable, or
11902 # (2) before a word containing "conftest.", or (3) at the end.
11903 # Note that $ac_compile itself does not contain backslashes and begins
11904 # with a dollar sign (not a hyphen), so the echo should work correctly.
11905 # The option is referenced via a variable to avoid confusing sed.
11906 lt_compile=`echo "$ac_compile" | $SED \
11907 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11908 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11909 -e 's:$: $lt_compiler_flag:'`
11910 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11911 (eval "$lt_compile" 2>conftest.err)
11912 ac_status=$?
11913 cat conftest.err >&5
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 if (exit $ac_status) && test -s "$ac_outfile"; then
11916 # The compiler can only warn and ignore the option if not recognized
11917 # So say no if there are warnings other than the usual output.
11918 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11919 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11920 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11921 lt_cv_prog_compiler_pic_works_GO=yes
11922 fi
11923 fi
11924 $RM conftest*
11925
11926fi
11927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11928$as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11929
11930if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11931 case $lt_prog_compiler_pic_GO in
11932 "" | " "*) ;;
11933 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11934 esac
11935else
11936 lt_prog_compiler_pic_GO=
11937 lt_prog_compiler_can_build_shared_GO=no
11938fi
11939
11940fi
11941
11942
11943
11944#
11945# Check to make sure the static flag actually works.
11946#
11947wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11949$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11950if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11951 $as_echo_n "(cached) " >&6
11952else
11953 lt_cv_prog_compiler_static_works_GO=no
11954 save_LDFLAGS="$LDFLAGS"
11955 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11956 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11957 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11958 # The linker can only warn and ignore the option if not recognized
11959 # So say no if there are warnings
11960 if test -s conftest.err; then
11961 # Append any errors to the config.log.
11962 cat conftest.err 1>&5
11963 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11964 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11965 if diff conftest.exp conftest.er2 >/dev/null; then
11966 lt_cv_prog_compiler_static_works_GO=yes
11967 fi
11968 else
11969 lt_cv_prog_compiler_static_works_GO=yes
11970 fi
11971 fi
11972 $RM -r conftest*
11973 LDFLAGS="$save_LDFLAGS"
11974
11975fi
11976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11977$as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11978
11979if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11980 :
11981else
11982 lt_prog_compiler_static_GO=
11983fi
11984
11985
11986
11987
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11989$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11990if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11991 $as_echo_n "(cached) " >&6
11992else
11993 lt_cv_prog_compiler_c_o_GO=no
11994 $RM -r conftest 2>/dev/null
11995 mkdir conftest
11996 cd conftest
11997 mkdir out
11998 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11999
12000 lt_compiler_flag="-o out/conftest2.$ac_objext"
12001 # Insert the option either (1) after the last *FLAGS variable, or
12002 # (2) before a word containing "conftest.", or (3) at the end.
12003 # Note that $ac_compile itself does not contain backslashes and begins
12004 # with a dollar sign (not a hyphen), so the echo should work correctly.
12005 lt_compile=`echo "$ac_compile" | $SED \
12006 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12007 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12008 -e 's:$: $lt_compiler_flag:'`
12009 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12010 (eval "$lt_compile" 2>out/conftest.err)
12011 ac_status=$?
12012 cat out/conftest.err >&5
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12015 then
12016 # The compiler can only warn and ignore the option if not recognized
12017 # So say no if there are warnings
12018 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12019 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12020 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12021 lt_cv_prog_compiler_c_o_GO=yes
12022 fi
12023 fi
12024 chmod u+w . 2>&5
12025 $RM conftest*
12026 # SGI C++ compiler will create directory out/ii_files/ for
12027 # template instantiation
12028 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12029 $RM out/* && rmdir out
12030 cd ..
12031 $RM -r conftest
12032 $RM conftest*
12033
12034fi
12035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12036$as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12037
12038
12039
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12041$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12042if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
12043 $as_echo_n "(cached) " >&6
12044else
12045 lt_cv_prog_compiler_c_o_GO=no
12046 $RM -r conftest 2>/dev/null
12047 mkdir conftest
12048 cd conftest
12049 mkdir out
12050 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12051
12052 lt_compiler_flag="-o out/conftest2.$ac_objext"
12053 # Insert the option either (1) after the last *FLAGS variable, or
12054 # (2) before a word containing "conftest.", or (3) at the end.
12055 # Note that $ac_compile itself does not contain backslashes and begins
12056 # with a dollar sign (not a hyphen), so the echo should work correctly.
12057 lt_compile=`echo "$ac_compile" | $SED \
12058 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12059 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12060 -e 's:$: $lt_compiler_flag:'`
12061 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12062 (eval "$lt_compile" 2>out/conftest.err)
12063 ac_status=$?
12064 cat out/conftest.err >&5
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12067 then
12068 # The compiler can only warn and ignore the option if not recognized
12069 # So say no if there are warnings
12070 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12071 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12072 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12073 lt_cv_prog_compiler_c_o_GO=yes
12074 fi
12075 fi
12076 chmod u+w . 2>&5
12077 $RM conftest*
12078 # SGI C++ compiler will create directory out/ii_files/ for
12079 # template instantiation
12080 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12081 $RM out/* && rmdir out
12082 cd ..
12083 $RM -r conftest
12084 $RM conftest*
12085
12086fi
12087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12088$as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12089
12090
12091
12092
12093hard_links="nottested"
12094if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
12095 # do not overwrite the value of need_locks provided by the user
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12097$as_echo_n "checking if we can lock with hard links... " >&6; }
12098 hard_links=yes
12099 $RM conftest*
12100 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12101 touch conftest.a
12102 ln conftest.a conftest.b 2>&5 || hard_links=no
12103 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12105$as_echo "$hard_links" >&6; }
12106 if test "$hard_links" = no; then
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12108$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12109 need_locks=warn
12110 fi
12111else
12112 need_locks=no
12113fi
12114
12115
12116
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12118$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12119
12120 runpath_var=
12121 allow_undefined_flag_GO=
12122 always_export_symbols_GO=no
12123 archive_cmds_GO=
12124 archive_expsym_cmds_GO=
12125 compiler_needs_object_GO=no
12126 enable_shared_with_static_runtimes_GO=no
12127 export_dynamic_flag_spec_GO=
12128 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12129 hardcode_automatic_GO=no
12130 hardcode_direct_GO=no
12131 hardcode_direct_absolute_GO=no
12132 hardcode_libdir_flag_spec_GO=
12133 hardcode_libdir_flag_spec_ld_GO=
12134 hardcode_libdir_separator_GO=
12135 hardcode_minus_L_GO=no
12136 hardcode_shlibpath_var_GO=unsupported
12137 inherit_rpath_GO=no
12138 link_all_deplibs_GO=unknown
12139 module_cmds_GO=
12140 module_expsym_cmds_GO=
12141 old_archive_from_new_cmds_GO=
12142 old_archive_from_expsyms_cmds_GO=
12143 thread_safe_flag_spec_GO=
12144 whole_archive_flag_spec_GO=
12145 # include_expsyms should be a list of space-separated symbols to be *always*
12146 # included in the symbol list
12147 include_expsyms_GO=
12148 # exclude_expsyms can be an extended regexp of symbols to exclude
12149 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12150 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12151 # as well as any symbol that contains `d'.
12152 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12153 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12154 # platforms (ab)use it in PIC code, but their linkers get confused if
12155 # the symbol is explicitly referenced. Since portable code cannot
12156 # rely on this symbol name, it's probably fine to never include it in
12157 # preloaded symbol tables.
12158 # Exclude shared library initialization/finalization symbols.
12159 extract_expsyms_cmds=
12160
12161 case $host_os in
12162 cygwin* | mingw* | pw32* | cegcc*)
12163 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12164 # When not using gcc, we currently assume that we are using
12165 # Microsoft Visual C++.
12166 if test "$GCC" != yes; then
12167 with_gnu_ld=no
12168 fi
12169 ;;
12170 interix*)
12171 # we just hope/assume this is gcc and not c89 (= MSVC++)
12172 with_gnu_ld=yes
12173 ;;
12174 openbsd*)
12175 with_gnu_ld=no
12176 ;;
12177 esac
12178
12179 ld_shlibs_GO=yes
12180
12181 # On some targets, GNU ld is compatible enough with the native linker
12182 # that we're better off using the native interface for both.
12183 lt_use_gnu_ld_interface=no
12184 if test "$with_gnu_ld" = yes; then
12185 case $host_os in
12186 aix*)
12187 # The AIX port of GNU ld has always aspired to compatibility
12188 # with the native linker. However, as the warning in the GNU ld
12189 # block says, versions before 2.19.5* couldn't really create working
12190 # shared libraries, regardless of the interface used.
12191 case `$LD -v 2>&1` in
12192 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12193 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12194 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12195 *)
12196 lt_use_gnu_ld_interface=yes
12197 ;;
12198 esac
12199 ;;
12200 *)
12201 lt_use_gnu_ld_interface=yes
12202 ;;
12203 esac
12204 fi
12205
12206 if test "$lt_use_gnu_ld_interface" = yes; then
12207 # If archive_cmds runs LD, not CC, wlarc should be empty
12208 wlarc='${wl}'
12209
12210 # Set some defaults for GNU ld with shared library support. These
12211 # are reset later if shared libraries are not supported. Putting them
12212 # here allows them to be overridden if necessary.
12213 runpath_var=LD_RUN_PATH
12214 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12215 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12216 # ancient GNU ld didn't support --whole-archive et. al.
12217 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12218 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12219 else
12220 whole_archive_flag_spec_GO=
12221 fi
12222 supports_anon_versioning=no
12223 case `$LD -v 2>&1` in
12224 *GNU\ gold*) supports_anon_versioning=yes ;;
12225 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12226 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12227 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12228 *\ 2.11.*) ;; # other 2.11 versions
12229 *) supports_anon_versioning=yes ;;
12230 esac
12231
12232 # See if GNU ld supports shared libraries.
12233 case $host_os in
12234 aix[3-9]*)
12235 # On AIX/PPC, the GNU linker is very broken
12236 if test "$host_cpu" != ia64; then
12237 ld_shlibs_GO=no
12238 cat <<_LT_EOF 1>&2
12239
12240*** Warning: the GNU linker, at least up to release 2.19, is reported
12241*** to be unable to reliably create shared libraries on AIX.
12242*** Therefore, libtool is disabling shared libraries support. If you
12243*** really care for shared libraries, you may want to install binutils
12244*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12245*** You will then need to restart the configuration process.
12246
12247_LT_EOF
12248 fi
12249 ;;
12250
12251 amigaos*)
12252 case $host_cpu in
12253 powerpc)
12254 # see comment about AmigaOS4 .so support
12255 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12256 archive_expsym_cmds_GO=''
12257 ;;
12258 m68k)
12259 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)'
12260 hardcode_libdir_flag_spec_GO='-L$libdir'
12261 hardcode_minus_L_GO=yes
12262 ;;
12263 esac
12264 ;;
12265
12266 beos*)
12267 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12268 allow_undefined_flag_GO=unsupported
12269 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12270 # support --undefined. This deserves some investigation. FIXME
12271 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12272 else
12273 ld_shlibs_GO=no
12274 fi
12275 ;;
12276
12277 cygwin* | mingw* | pw32* | cegcc*)
12278 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12279 # as there is no search path for DLLs.
12280 hardcode_libdir_flag_spec_GO='-L$libdir'
12281 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12282 allow_undefined_flag_GO=unsupported
12283 always_export_symbols_GO=no
12284 enable_shared_with_static_runtimes_GO=yes
12285 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12286
12287 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12288 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12289 # If the export-symbols file already is a .def file (1st line
12290 # is EXPORTS), use it as is; otherwise, prepend...
12291 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12292 cp $export_symbols $output_objdir/$soname.def;
12293 else
12294 echo EXPORTS > $output_objdir/$soname.def;
12295 cat $export_symbols >> $output_objdir/$soname.def;
12296 fi~
12297 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12298 else
12299 ld_shlibs_GO=no
12300 fi
12301 ;;
12302
12303 haiku*)
12304 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12305 link_all_deplibs_GO=yes
12306 ;;
12307
12308 interix[3-9]*)
12309 hardcode_direct_GO=no
12310 hardcode_shlibpath_var_GO=no
12311 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12312 export_dynamic_flag_spec_GO='${wl}-E'
12313 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12314 # Instead, shared libraries are loaded at an image base (0x10000000 by
12315 # default) and relocated if they conflict, which is a slow very memory
12316 # consuming and fragmenting process. To avoid this, we pick a random,
12317 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12318 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12319 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'
12320 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'
12321 ;;
12322
12323 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12324 tmp_diet=no
12325 if test "$host_os" = linux-dietlibc; then
12326 case $cc_basename in
12327 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12328 esac
12329 fi
12330 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12331 && test "$tmp_diet" = no
12332 then
12333 tmp_addflag=
12334 tmp_sharedflag='-shared'
12335 case $cc_basename,$host_cpu in
12336 pgcc*) # Portland Group C compiler
12337 whole_archive_flag_spec_GO='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12338 tmp_addflag=' $pic_flag'
12339 ;;
12340 pgf77* | pgf90* | pgf95* | pgfortran*)
12341 # Portland Group f77 and f90 compilers
12342 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'
12343 tmp_addflag=' $pic_flag -Mnomain' ;;
12344 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12345 tmp_addflag=' -i_dynamic' ;;
12346 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12347 tmp_addflag=' -i_dynamic -nofor_main' ;;
12348 ifc* | ifort*) # Intel Fortran compiler
12349 tmp_addflag=' -nofor_main' ;;
12350 lf95*) # Lahey Fortran 8.1
12351 whole_archive_flag_spec_GO=
12352 tmp_sharedflag='--shared' ;;
12353 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12354 tmp_sharedflag='-qmkshrobj'
12355 tmp_addflag= ;;
12356 nvcc*) # Cuda Compiler Driver 2.2
12357 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'
12358 compiler_needs_object_GO=yes
12359 ;;
12360 esac
12361 case `$CC -V 2>&1 | sed 5q` in
12362 *Sun\ C*) # Sun C 5.9
12363 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'
12364 compiler_needs_object_GO=yes
12365 tmp_sharedflag='-G' ;;
12366 *Sun\ F*) # Sun Fortran 8.3
12367 tmp_sharedflag='-G' ;;
12368 esac
12369 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12370
12371 if test "x$supports_anon_versioning" = xyes; then
12372 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12373 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12374 echo "local: *; };" >> $output_objdir/$libname.ver~
12375 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12376 fi
12377
12378 case $cc_basename in
12379 xlf* | bgf* | bgxlf* | mpixlf*)
12380 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12381 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12382 hardcode_libdir_flag_spec_GO=
12383 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12384 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12385 if test "x$supports_anon_versioning" = xyes; then
12386 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12387 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12388 echo "local: *; };" >> $output_objdir/$libname.ver~
12389 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12390 fi
12391 ;;
12392 esac
12393 else
12394 ld_shlibs_GO=no
12395 fi
12396 ;;
12397
12398 netbsd*)
12399 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12400 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12401 wlarc=
12402 else
12403 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12404 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12405 fi
12406 ;;
12407
12408 solaris*)
12409 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12410 ld_shlibs_GO=no
12411 cat <<_LT_EOF 1>&2
12412
12413*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12414*** create shared libraries on Solaris systems. Therefore, libtool
12415*** is disabling shared libraries support. We urge you to upgrade GNU
12416*** binutils to release 2.9.1 or newer. Another option is to modify
12417*** your PATH or compiler configuration so that the native linker is
12418*** used, and then restart.
12419
12420_LT_EOF
12421 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12422 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12423 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12424 else
12425 ld_shlibs_GO=no
12426 fi
12427 ;;
12428
12429 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12430 case `$LD -v 2>&1` in
12431 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12432 ld_shlibs_GO=no
12433 cat <<_LT_EOF 1>&2
12434
12435*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12436*** reliably create shared libraries on SCO systems. Therefore, libtool
12437*** is disabling shared libraries support. We urge you to upgrade GNU
12438*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12439*** your PATH or compiler configuration so that the native linker is
12440*** used, and then restart.
12441
12442_LT_EOF
12443 ;;
12444 *)
12445 # For security reasons, it is highly recommended that you always
12446 # use absolute paths for naming shared libraries, and exclude the
12447 # DT_RUNPATH tag from executables and libraries. But doing so
12448 # requires that you compile everything twice, which is a pain.
12449 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12450 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12451 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12452 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12453 else
12454 ld_shlibs_GO=no
12455 fi
12456 ;;
12457 esac
12458 ;;
12459
12460 sunos4*)
12461 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12462 wlarc=
12463 hardcode_direct_GO=yes
12464 hardcode_shlibpath_var_GO=no
12465 ;;
12466
12467 *)
12468 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12469 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12470 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12471 else
12472 ld_shlibs_GO=no
12473 fi
12474 ;;
12475 esac
12476
12477 if test "$ld_shlibs_GO" = no; then
12478 runpath_var=
12479 hardcode_libdir_flag_spec_GO=
12480 export_dynamic_flag_spec_GO=
12481 whole_archive_flag_spec_GO=
12482 fi
12483 else
12484 # PORTME fill in a description of your system's linker (not GNU ld)
12485 case $host_os in
12486 aix3*)
12487 allow_undefined_flag_GO=unsupported
12488 always_export_symbols_GO=yes
12489 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'
12490 # Note: this linker hardcodes the directories in LIBPATH if there
12491 # are no directories specified by -L.
12492 hardcode_minus_L_GO=yes
12493 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12494 # Neither direct hardcoding nor static linking is supported with a
12495 # broken collect2.
12496 hardcode_direct_GO=unsupported
12497 fi
12498 ;;
12499
12500 aix[4-9]*)
12501 if test "$host_cpu" = ia64; then
12502 # On IA64, the linker does run time linking by default, so we don't
12503 # have to do anything special.
12504 aix_use_runtimelinking=no
12505 exp_sym_flag='-Bexport'
12506 no_entry_flag=""
12507 else
12508 # If we're using GNU nm, then we don't want the "-C" option.
12509 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12510 # Also, AIX nm treats weak defined symbols like other global
12511 # defined symbols, whereas GNU nm marks them as "W".
12512 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12513 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'
12514 else
12515 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'
12516 fi
12517 aix_use_runtimelinking=no
12518
12519 # Test if we are trying to use run time linking or normal
12520 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12521 # need to do runtime linking.
12522 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12523 for ld_flag in $LDFLAGS; do
12524 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12525 aix_use_runtimelinking=yes
12526 break
12527 fi
12528 done
12529 ;;
12530 esac
12531
12532 exp_sym_flag='-bexport'
12533 no_entry_flag='-bnoentry'
12534 fi
12535
12536 # When large executables or shared objects are built, AIX ld can
12537 # have problems creating the table of contents. If linking a library
12538 # or program results in "error TOC overflow" add -mminimal-toc to
12539 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12540 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12541
12542 archive_cmds_GO=''
12543 hardcode_direct_GO=yes
12544 hardcode_direct_absolute_GO=yes
12545 hardcode_libdir_separator_GO=':'
12546 link_all_deplibs_GO=yes
12547 file_list_spec_GO='${wl}-f,'
12548
12549 if test "$GCC" = yes; then
12550 case $host_os in aix4.[012]|aix4.[012].*)
12551 # We only want to do this on AIX 4.2 and lower, the check
12552 # below for broken collect2 doesn't work under 4.3+
12553 collect2name=`${CC} -print-prog-name=collect2`
12554 if test -f "$collect2name" &&
12555 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12556 then
12557 # We have reworked collect2
12558 :
12559 else
12560 # We have old collect2
12561 hardcode_direct_GO=unsupported
12562 # It fails to find uninstalled libraries when the uninstalled
12563 # path is not listed in the libpath. Setting hardcode_minus_L
12564 # to unsupported forces relinking
12565 hardcode_minus_L_GO=yes
12566 hardcode_libdir_flag_spec_GO='-L$libdir'
12567 hardcode_libdir_separator_GO=
12568 fi
12569 ;;
12570 esac
12571 shared_flag='-shared'
12572 if test "$aix_use_runtimelinking" = yes; then
12573 shared_flag="$shared_flag "'${wl}-G'
12574 fi
12575 else
12576 # not using gcc
12577 if test "$host_cpu" = ia64; then
12578 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12579 # chokes on -Wl,-G. The following line is correct:
12580 shared_flag='-G'
12581 else
12582 if test "$aix_use_runtimelinking" = yes; then
12583 shared_flag='${wl}-G'
12584 else
12585 shared_flag='${wl}-bM:SRE'
12586 fi
12587 fi
12588 fi
12589
12590 export_dynamic_flag_spec_GO='${wl}-bexpall'
12591 # It seems that -bexpall does not export symbols beginning with
12592 # underscore (_), so it is better to generate a list of symbols to export.
12593 always_export_symbols_GO=yes
12594 if test "$aix_use_runtimelinking" = yes; then
12595 # Warning - without using the other runtime loading flags (-brtl),
12596 # -berok will link without error, but may produce a broken library.
12597 allow_undefined_flag_GO='-berok'
12598 # Determine the default libpath from the value encoded in an
12599 # empty executable.
12600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12601/* end confdefs.h. */
12602
12603int
12604main ()
12605{
12606
12607 ;
12608 return 0;
12609}
12610_ACEOF
12611if ac_fn_c_try_link "$LINENO"; then :
12612
12613lt_aix_libpath_sed='
12614 /Import File Strings/,/^$/ {
12615 /^0/ {
12616 s/^0 *\(.*\)$/\1/
12617 p
12618 }
12619 }'
12620aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12621# Check for a 64-bit object if we didn't find anything.
12622if test -z "$aix_libpath"; then
12623 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12624fi
12625fi
12626rm -f core conftest.err conftest.$ac_objext \
12627 conftest$ac_exeext conftest.$ac_ext
12628if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12629
12630 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12631 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"
12632 else
12633 if test "$host_cpu" = ia64; then
12634 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12635 allow_undefined_flag_GO="-z nodefs"
12636 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"
12637 else
12638 # Determine the default libpath from the value encoded in an
12639 # empty executable.
12640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12641/* end confdefs.h. */
12642
12643int
12644main ()
12645{
12646
12647 ;
12648 return 0;
12649}
12650_ACEOF
12651if ac_fn_c_try_link "$LINENO"; then :
12652
12653lt_aix_libpath_sed='
12654 /Import File Strings/,/^$/ {
12655 /^0/ {
12656 s/^0 *\(.*\)$/\1/
12657 p
12658 }
12659 }'
12660aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12661# Check for a 64-bit object if we didn't find anything.
12662if test -z "$aix_libpath"; then
12663 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12664fi
12665fi
12666rm -f core conftest.err conftest.$ac_objext \
12667 conftest$ac_exeext conftest.$ac_ext
12668if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12669
12670 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12671 # Warning - without using the other run time loading flags,
12672 # -berok will link without error, but may produce a broken library.
12673 no_undefined_flag_GO=' ${wl}-bernotok'
12674 allow_undefined_flag_GO=' ${wl}-berok'
12675 if test "$with_gnu_ld" = yes; then
12676 # We only use this code for GNU lds that support --whole-archive.
12677 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12678 else
12679 # Exported symbols can be pulled into shared objects from archives
12680 whole_archive_flag_spec_GO='$convenience'
12681 fi
12682 archive_cmds_need_lc_GO=yes
12683 # This is similar to how AIX traditionally builds its shared libraries.
12684 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'
12685 fi
12686 fi
12687 ;;
12688
12689 amigaos*)
12690 case $host_cpu in
12691 powerpc)
12692 # see comment about AmigaOS4 .so support
12693 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12694 archive_expsym_cmds_GO=''
12695 ;;
12696 m68k)
12697 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)'
12698 hardcode_libdir_flag_spec_GO='-L$libdir'
12699 hardcode_minus_L_GO=yes
12700 ;;
12701 esac
12702 ;;
12703
12704 bsdi[45]*)
12705 export_dynamic_flag_spec_GO=-rdynamic
12706 ;;
12707
12708 cygwin* | mingw* | pw32* | cegcc*)
12709 # When not using gcc, we currently assume that we are using
12710 # Microsoft Visual C++.
12711 # hardcode_libdir_flag_spec is actually meaningless, as there is
12712 # no search path for DLLs.
12713 hardcode_libdir_flag_spec_GO=' '
12714 allow_undefined_flag_GO=unsupported
12715 # Tell ltmain to make .lib files, not .a files.
12716 libext=lib
12717 # Tell ltmain to make .dll files, not .so files.
12718 shrext_cmds=".dll"
12719 # FIXME: Setting linknames here is a bad hack.
12720 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12721 # The linker will automatically build a .lib file if we build a DLL.
12722 old_archive_from_new_cmds_GO='true'
12723 # FIXME: Should let the user specify the lib program.
12724 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12725 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12726 enable_shared_with_static_runtimes_GO=yes
12727 ;;
12728
12729 darwin* | rhapsody*)
12730
12731
12732 archive_cmds_need_lc_GO=no
12733 hardcode_direct_GO=no
12734 hardcode_automatic_GO=yes
12735 hardcode_shlibpath_var_GO=unsupported
12736 if test "$lt_cv_ld_force_load" = "yes"; then
12737 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\"`'
12738 else
12739 whole_archive_flag_spec_GO=''
12740 fi
12741 link_all_deplibs_GO=yes
12742 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12743 case $cc_basename in
12744 ifort*) _lt_dar_can_shared=yes ;;
12745 *) _lt_dar_can_shared=$GCC ;;
12746 esac
12747 if test "$_lt_dar_can_shared" = "yes"; then
12748 output_verbose_link_cmd=func_echo_all
12749 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}"
12750 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12751 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}"
12752 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}"
12753
12754 else
12755 ld_shlibs_GO=no
12756 fi
12757
12758 ;;
12759
12760 dgux*)
12761 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12762 hardcode_libdir_flag_spec_GO='-L$libdir'
12763 hardcode_shlibpath_var_GO=no
12764 ;;
12765
7a938933
ILT
12766 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12767 # support. Future versions do this automatically, but an explicit c++rt0.o
12768 # does not break anything, and helps significantly (at the cost of a little
12769 # extra space).
12770 freebsd2.2*)
12771 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12772 hardcode_libdir_flag_spec_GO='-R$libdir'
12773 hardcode_direct_GO=yes
12774 hardcode_shlibpath_var_GO=no
12775 ;;
12776
12777 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
327a26a3 12778 freebsd2.*)
7a938933
ILT
12779 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12780 hardcode_direct_GO=yes
12781 hardcode_minus_L_GO=yes
12782 hardcode_shlibpath_var_GO=no
12783 ;;
12784
12785 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12786 freebsd* | dragonfly*)
12787 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12788 hardcode_libdir_flag_spec_GO='-R$libdir'
12789 hardcode_direct_GO=yes
12790 hardcode_shlibpath_var_GO=no
12791 ;;
12792
12793 hpux9*)
12794 if test "$GCC" = yes; then
12795 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'
12796 else
12797 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'
12798 fi
12799 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12800 hardcode_libdir_separator_GO=:
12801 hardcode_direct_GO=yes
12802
12803 # hardcode_minus_L: Not really in the search PATH,
12804 # but as the default location of the library.
12805 hardcode_minus_L_GO=yes
12806 export_dynamic_flag_spec_GO='${wl}-E'
12807 ;;
12808
12809 hpux10*)
12810 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12811 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12812 else
12813 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12814 fi
12815 if test "$with_gnu_ld" = no; then
12816 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12817 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12818 hardcode_libdir_separator_GO=:
12819 hardcode_direct_GO=yes
12820 hardcode_direct_absolute_GO=yes
12821 export_dynamic_flag_spec_GO='${wl}-E'
12822 # hardcode_minus_L: Not really in the search PATH,
12823 # but as the default location of the library.
12824 hardcode_minus_L_GO=yes
12825 fi
12826 ;;
12827
12828 hpux11*)
12829 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12830 case $host_cpu in
12831 hppa*64*)
12832 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12833 ;;
12834 ia64*)
12835 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12836 ;;
12837 *)
12838 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12839 ;;
12840 esac
12841 else
12842 case $host_cpu in
12843 hppa*64*)
12844 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12845 ;;
12846 ia64*)
12847 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12848 ;;
12849 *)
12850 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12851 ;;
12852 esac
12853 fi
12854 if test "$with_gnu_ld" = no; then
12855 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12856 hardcode_libdir_separator_GO=:
12857
12858 case $host_cpu in
12859 hppa*64*|ia64*)
12860 hardcode_direct_GO=no
12861 hardcode_shlibpath_var_GO=no
12862 ;;
12863 *)
12864 hardcode_direct_GO=yes
12865 hardcode_direct_absolute_GO=yes
12866 export_dynamic_flag_spec_GO='${wl}-E'
12867
12868 # hardcode_minus_L: Not really in the search PATH,
12869 # but as the default location of the library.
12870 hardcode_minus_L_GO=yes
12871 ;;
12872 esac
12873 fi
12874 ;;
12875
12876 irix5* | irix6* | nonstopux*)
12877 if test "$GCC" = yes; then
12878 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'
12879 # Try to use the -exported_symbol ld option, if it does not
12880 # work, assume that -exports_file does not work either and
12881 # implicitly export all symbols.
12882 save_LDFLAGS="$LDFLAGS"
12883 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12885/* end confdefs.h. */
12886int foo(void) {}
12887_ACEOF
12888if ac_fn_c_try_link "$LINENO"; then :
12889 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'
12890
12891fi
12892rm -f core conftest.err conftest.$ac_objext \
12893 conftest$ac_exeext conftest.$ac_ext
12894 LDFLAGS="$save_LDFLAGS"
12895 else
12896 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'
12897 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'
12898 fi
12899 archive_cmds_need_lc_GO='no'
12900 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12901 hardcode_libdir_separator_GO=:
12902 inherit_rpath_GO=yes
12903 link_all_deplibs_GO=yes
12904 ;;
12905
12906 netbsd*)
12907 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12908 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12909 else
12910 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12911 fi
12912 hardcode_libdir_flag_spec_GO='-R$libdir'
12913 hardcode_direct_GO=yes
12914 hardcode_shlibpath_var_GO=no
12915 ;;
12916
12917 newsos6)
12918 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12919 hardcode_direct_GO=yes
12920 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12921 hardcode_libdir_separator_GO=:
12922 hardcode_shlibpath_var_GO=no
12923 ;;
12924
12925 *nto* | *qnx*)
12926 ;;
12927
12928 openbsd*)
12929 if test -f /usr/libexec/ld.so; then
12930 hardcode_direct_GO=yes
12931 hardcode_shlibpath_var_GO=no
12932 hardcode_direct_absolute_GO=yes
12933 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12934 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12935 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12936 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12937 export_dynamic_flag_spec_GO='${wl}-E'
12938 else
12939 case $host_os in
12940 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12941 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12942 hardcode_libdir_flag_spec_GO='-R$libdir'
12943 ;;
12944 *)
12945 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12946 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12947 ;;
12948 esac
12949 fi
12950 else
12951 ld_shlibs_GO=no
12952 fi
12953 ;;
12954
12955 os2*)
12956 hardcode_libdir_flag_spec_GO='-L$libdir'
12957 hardcode_minus_L_GO=yes
12958 allow_undefined_flag_GO=unsupported
12959 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'
12960 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12961 ;;
12962
12963 osf3*)
12964 if test "$GCC" = yes; then
12965 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12966 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'
12967 else
12968 allow_undefined_flag_GO=' -expect_unresolved \*'
12969 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'
12970 fi
12971 archive_cmds_need_lc_GO='no'
12972 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12973 hardcode_libdir_separator_GO=:
12974 ;;
12975
12976 osf4* | osf5*) # as osf3* with the addition of -msym flag
12977 if test "$GCC" = yes; then
12978 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12979 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'
12980 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12981 else
12982 allow_undefined_flag_GO=' -expect_unresolved \*'
12983 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'
12984 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~
12985 $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'
12986
12987 # Both c and cxx compiler support -rpath directly
12988 hardcode_libdir_flag_spec_GO='-rpath $libdir'
12989 fi
12990 archive_cmds_need_lc_GO='no'
12991 hardcode_libdir_separator_GO=:
12992 ;;
12993
12994 solaris*)
12995 no_undefined_flag_GO=' -z defs'
12996 if test "$GCC" = yes; then
12997 wlarc='${wl}'
12998 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12999 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13000 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13001 else
13002 case `$CC -V 2>&1` in
13003 *"Compilers 5.0"*)
13004 wlarc=''
13005 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13006 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13007 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13008 ;;
13009 *)
13010 wlarc='${wl}'
13011 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13012 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13013 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13014 ;;
13015 esac
13016 fi
13017 hardcode_libdir_flag_spec_GO='-R$libdir'
13018 hardcode_shlibpath_var_GO=no
13019 case $host_os in
13020 solaris2.[0-5] | solaris2.[0-5].*) ;;
13021 *)
13022 # The compiler driver will combine and reorder linker options,
13023 # but understands `-z linker_flag'. GCC discards it without `$wl',
13024 # but is careful enough not to reorder.
13025 # Supported since Solaris 2.6 (maybe 2.5.1?)
13026 if test "$GCC" = yes; then
13027 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13028 else
13029 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
13030 fi
13031 ;;
13032 esac
13033 link_all_deplibs_GO=yes
13034 ;;
13035
13036 sunos4*)
13037 if test "x$host_vendor" = xsequent; then
13038 # Use $CC to link under sequent, because it throws in some extra .o
13039 # files that make .init and .fini sections work.
13040 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13041 else
13042 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13043 fi
13044 hardcode_libdir_flag_spec_GO='-L$libdir'
13045 hardcode_direct_GO=yes
13046 hardcode_minus_L_GO=yes
13047 hardcode_shlibpath_var_GO=no
13048 ;;
13049
13050 sysv4)
13051 case $host_vendor in
13052 sni)
13053 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13054 hardcode_direct_GO=yes # is this really true???
13055 ;;
13056 siemens)
13057 ## LD is ld it makes a PLAMLIB
13058 ## CC just makes a GrossModule.
13059 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13060 reload_cmds_GO='$CC -r -o $output$reload_objs'
13061 hardcode_direct_GO=no
13062 ;;
13063 motorola)
13064 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13065 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
13066 ;;
13067 esac
13068 runpath_var='LD_RUN_PATH'
13069 hardcode_shlibpath_var_GO=no
13070 ;;
13071
13072 sysv4.3*)
13073 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13074 hardcode_shlibpath_var_GO=no
13075 export_dynamic_flag_spec_GO='-Bexport'
13076 ;;
13077
13078 sysv4*MP*)
13079 if test -d /usr/nec; then
13080 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13081 hardcode_shlibpath_var_GO=no
13082 runpath_var=LD_RUN_PATH
13083 hardcode_runpath_var=yes
13084 ld_shlibs_GO=yes
13085 fi
13086 ;;
13087
13088 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13089 no_undefined_flag_GO='${wl}-z,text'
13090 archive_cmds_need_lc_GO=no
13091 hardcode_shlibpath_var_GO=no
13092 runpath_var='LD_RUN_PATH'
13093
13094 if test "$GCC" = yes; then
13095 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13096 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13097 else
13098 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13099 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13100 fi
13101 ;;
13102
13103 sysv5* | sco3.2v5* | sco5v6*)
13104 # Note: We can NOT use -z defs as we might desire, because we do not
13105 # link with -lc, and that would cause any symbols used from libc to
13106 # always be unresolved, which means just about no library would
13107 # ever link correctly. If we're not using GNU ld we use -z text
13108 # though, which does catch some bad symbols but isn't as heavy-handed
13109 # as -z defs.
13110 no_undefined_flag_GO='${wl}-z,text'
13111 allow_undefined_flag_GO='${wl}-z,nodefs'
13112 archive_cmds_need_lc_GO=no
13113 hardcode_shlibpath_var_GO=no
13114 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
13115 hardcode_libdir_separator_GO=':'
13116 link_all_deplibs_GO=yes
13117 export_dynamic_flag_spec_GO='${wl}-Bexport'
13118 runpath_var='LD_RUN_PATH'
13119
13120 if test "$GCC" = yes; then
13121 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13122 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13123 else
13124 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13125 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13126 fi
13127 ;;
13128
13129 uts4*)
13130 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13131 hardcode_libdir_flag_spec_GO='-L$libdir'
13132 hardcode_shlibpath_var_GO=no
13133 ;;
13134
13135 *)
13136 ld_shlibs_GO=no
13137 ;;
13138 esac
13139
13140 if test x$host_vendor = xsni; then
13141 case $host in
13142 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13143 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
13144 ;;
13145 esac
13146 fi
13147 fi
13148
13149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13150$as_echo "$ld_shlibs_GO" >&6; }
13151test "$ld_shlibs_GO" = no && can_build_shared=no
13152
13153with_gnu_ld_GO=$with_gnu_ld
13154
13155
13156
13157
13158
13159
13160#
13161# Do we need to explicitly link libc?
13162#
13163case "x$archive_cmds_need_lc_GO" in
13164x|xyes)
13165 # Assume -lc should be added
13166 archive_cmds_need_lc_GO=yes
13167
13168 if test "$enable_shared" = yes && test "$GCC" = yes; then
13169 case $archive_cmds_GO in
13170 *'~'*)
13171 # FIXME: we may have to deal with multi-command sequences.
13172 ;;
13173 '$CC '*)
13174 # Test whether the compiler implicitly links with -lc since on some
13175 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13176 # to ld, don't add -lc before -lgcc.
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13178$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13179if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
13180 $as_echo_n "(cached) " >&6
13181else
13182 $RM conftest*
13183 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13184
13185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13186 (eval $ac_compile) 2>&5
13187 ac_status=$?
13188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13189 test $ac_status = 0; } 2>conftest.err; then
13190 soname=conftest
13191 lib=conftest
13192 libobjs=conftest.$ac_objext
13193 deplibs=
13194 wl=$lt_prog_compiler_wl_GO
13195 pic_flag=$lt_prog_compiler_pic_GO
13196 compiler_flags=-v
13197 linker_flags=-v
13198 verstring=
13199 output_objdir=.
13200 libname=conftest
13201 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
13202 allow_undefined_flag_GO=
13203 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13204 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13205 ac_status=$?
13206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13207 test $ac_status = 0; }
13208 then
13209 lt_cv_archive_cmds_need_lc_GO=no
13210 else
13211 lt_cv_archive_cmds_need_lc_GO=yes
13212 fi
13213 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13214 else
13215 cat conftest.err 1>&5
13216 fi
13217 $RM conftest*
13218
13219fi
13220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13221$as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13222 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13223 ;;
13224 esac
13225 fi
13226 ;;
13227esac
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13293$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13294hardcode_action_GO=
13295if test -n "$hardcode_libdir_flag_spec_GO" ||
13296 test -n "$runpath_var_GO" ||
13297 test "X$hardcode_automatic_GO" = "Xyes" ; then
13298
13299 # We can hardcode non-existent directories.
13300 if test "$hardcode_direct_GO" != no &&
13301 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13302 # have to relink, otherwise we might link with an installed library
13303 # when we should be linking with a yet-to-be-installed one
13304 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13305 test "$hardcode_minus_L_GO" != no; then
13306 # Linking always hardcodes the temporary library directory.
13307 hardcode_action_GO=relink
13308 else
13309 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13310 hardcode_action_GO=immediate
13311 fi
13312else
13313 # We cannot hardcode anything, or else we can only hardcode existing
13314 # directories.
13315 hardcode_action_GO=unsupported
13316fi
13317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13318$as_echo "$hardcode_action_GO" >&6; }
13319
13320if test "$hardcode_action_GO" = relink ||
13321 test "$inherit_rpath_GO" = yes; then
13322 # Fast installation is not supported
13323 enable_fast_install=no
13324elif test "$shlibpath_overrides_runpath" = yes ||
13325 test "$enable_shared" = no; then
13326 # Fast installation is not necessary
13327 enable_fast_install=needless
13328fi
13329
13330
13331
13332
13333
13334
13335
13336fi
13337
13338ac_ext=c
13339ac_cpp='$CPP $CPPFLAGS'
13340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13342ac_compiler_gnu=$ac_cv_c_compiler_gnu
13343
13344
13345GCC=$lt_save_GCC
13346CC="$lt_save_CC"
13347
13348
13349
13350
13351 ac_config_commands="$ac_config_commands libtool"
13352
13353
13354
13355
13356# Only expand once:
13357
13358
13359
13360
13361
d983a802
ILT
13362CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13363
13364
de27caac
ILT
13365for ac_prog in gawk mawk nawk awk
13366do
13367 # Extract the first word of "$ac_prog", so it can be a program name with args.
13368set dummy $ac_prog; ac_word=$2
13369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13370$as_echo_n "checking for $ac_word... " >&6; }
13371if test "${ac_cv_prog_AWK+set}" = set; then :
13372 $as_echo_n "(cached) " >&6
13373else
13374 if test -n "$AWK"; then
13375 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13376else
13377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13378for as_dir in $PATH
13379do
13380 IFS=$as_save_IFS
13381 test -z "$as_dir" && as_dir=.
13382 for ac_exec_ext in '' $ac_executable_extensions; do
13383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13384 ac_cv_prog_AWK="$ac_prog"
13385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13386 break 2
13387 fi
13388done
13389 done
13390IFS=$as_save_IFS
13391
13392fi
13393fi
13394AWK=$ac_cv_prog_AWK
13395if test -n "$AWK"; then
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13397$as_echo "$AWK" >&6; }
13398else
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13400$as_echo "no" >&6; }
13401fi
13402
13403
13404 test -n "$AWK" && break
13405done
13406
13407
7a938933
ILT
13408WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13409
13410
0d4668c1
ILT
13411# Check whether --enable-werror was given.
13412if test "${enable_werror+set}" = set; then :
13413 enableval=$enable_werror;
13414fi
13415
13416if test "x$enable_werror" != "xno"; then
13417 WERROR="-Werror"
13418fi
7a938933
ILT
13419
13420
13421glibgo_toolexecdir=no
13422glibgo_toolexeclibdir=no
7a938933
ILT
13423
13424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13425$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13426# Check whether --enable-version-specific-runtime-libs was given.
13427if test "${enable_version_specific_runtime_libs+set}" = set; then :
13428 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13429 yes) version_specific_libs=yes ;;
13430 no) version_specific_libs=no ;;
13431 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13432 esac
13433else
13434 version_specific_libs=no
13435fi
13436
13437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13438$as_echo "$version_specific_libs" >&6; }
13439
13440# Version-specific runtime libs processing.
13441if test $version_specific_libs = yes; then
13442 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13443 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13444fi
13445
13446# Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13447# Install a library built with a cross compiler in tooldir, not libdir.
317ea7c0
ILT
13448if test -n "$with_cross_host" &&
13449 test x"$with_cross_host" != x"no"; then
13450 nover_glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13451 nover_glibgo_toolexeclibdir='${toolexecdir}/lib'
13452else
13453 nover_glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13454 nover_glibgo_toolexeclibdir='${libdir}'
13455fi
6c76a95d 13456multi_os_directory=`$GOC -print-multi-os-directory`
317ea7c0
ILT
13457case $multi_os_directory in
13458 .) ;; # Avoid trailing /.
13459 *) nover_glibgo_toolexeclibdir=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;;
13460esac
13461
7a938933 13462if test x"$glibgo_toolexecdir" = x"no"; then
317ea7c0
ILT
13463 glibgo_toolexecdir="${nover_glibgo_toolexecdir}"
13464 glibgo_toolexeclibdir="${nover_glibgo_toolexeclibdir}"
7a938933
ILT
13465fi
13466
13467
13468
13469
13470
13471# See if the user wants to configure without libffi. Some
13472# architectures don't support it. FIXME: We should set a default
13473# based on the host.
13474
13475# Check whether --with-libffi was given.
13476if test "${with_libffi+set}" = set; then :
13477 withval=$with_libffi; :
13478else
13479 with_libffi=${with_libffi_default-yes}
13480fi
13481
13482
13483LIBFFI=
13484LIBFFIINCS=
13485if test "$with_libffi" != no; then
13486
13487$as_echo "#define USE_LIBFFI 1" >>confdefs.h
13488
13489 LIBFFI=../libffi/libffi_convenience.la
13490 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13491fi
13492
13493
13494
9a85ed03
ILT
13495# See if the user wants to configure without libatomic. This is useful if we are
13496# on an architecture for which libgo does not need an atomic support library and
13497# libatomic does not support our C compiler.
13498
13499# Check whether --with-libatomic was given.
13500if test "${with_libatomic+set}" = set; then :
13501 withval=$with_libatomic; :
13502else
13503 with_libatomic=${with_libatomic_default-yes}
13504fi
13505
13506
13507LIBATOMIC=
13508if test "$with_libatomic" != no; then
13509 LIBATOMIC=../libatomic/libatomic_convenience.la
13510fi
13511
13512
18c70075
ILT
13513# Used to tell GNU make to include a file without telling automake to
13514# include it.
13515go_include="-include"
13516
13517
7a938933
ILT
13518is_darwin=no
13519is_freebsd=no
654d2ec0 13520is_irix=no
7a938933 13521is_linux=no
1efa38d1 13522is_netbsd=no
4ccad563 13523is_openbsd=no
f038dae6 13524is_dragonfly=no
7a938933 13525is_rtems=no
f2ee78b8 13526is_solaris=no
c3b5b97b 13527GOOS=unknown
7a938933 13528case ${host} in
f2ee78b8
ILT
13529 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13530 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
654d2ec0 13531 *-*-irix6*) is_irix=yes; GOOS=irix ;;
f2ee78b8 13532 *-*-linux*) is_linux=yes; GOOS=linux ;;
df4aa89a 13533 *-*-netbsd*) is_netbsd=yes; GOOS=netbsd ;;
4ccad563 13534 *-*-openbsd*) is_openbsd=yes; GOOS=openbsd ;;
f038dae6 13535 *-*-dragonfly*) is_dragonfly=yes; GOOS=dragonfly ;;
f2ee78b8
ILT
13536 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13537 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
7a938933
ILT
13538esac
13539 if test $is_darwin = yes; then
13540 LIBGO_IS_DARWIN_TRUE=
13541 LIBGO_IS_DARWIN_FALSE='#'
13542else
13543 LIBGO_IS_DARWIN_TRUE='#'
13544 LIBGO_IS_DARWIN_FALSE=
13545fi
13546
13547 if test $is_freebsd = yes; then
13548 LIBGO_IS_FREEBSD_TRUE=
13549 LIBGO_IS_FREEBSD_FALSE='#'
13550else
13551 LIBGO_IS_FREEBSD_TRUE='#'
13552 LIBGO_IS_FREEBSD_FALSE=
13553fi
13554
654d2ec0
ILT
13555 if test $is_irix = yes; then
13556 LIBGO_IS_IRIX_TRUE=
13557 LIBGO_IS_IRIX_FALSE='#'
13558else
13559 LIBGO_IS_IRIX_TRUE='#'
13560 LIBGO_IS_IRIX_FALSE=
13561fi
13562
7a938933
ILT
13563 if test $is_linux = yes; then
13564 LIBGO_IS_LINUX_TRUE=
13565 LIBGO_IS_LINUX_FALSE='#'
13566else
13567 LIBGO_IS_LINUX_TRUE='#'
13568 LIBGO_IS_LINUX_FALSE=
13569fi
13570
df4aa89a
ILT
13571 if test $is_netbsd = yes; then
13572 LIBGO_IS_NETBSD_TRUE=
13573 LIBGO_IS_NETBSD_FALSE='#'
13574else
13575 LIBGO_IS_NETBSD_TRUE='#'
13576 LIBGO_IS_NETBSD_FALSE=
13577fi
13578
4ccad563
ILT
13579 if test $is_openbsd = yes; then
13580 LIBGO_IS_OPENBSD_TRUE=
13581 LIBGO_IS_OPENBSD_FALSE='#'
13582else
13583 LIBGO_IS_OPENBSD_TRUE='#'
13584 LIBGO_IS_OPENBSD_FALSE=
13585fi
13586
824393bd 13587 if test $is_dragonfly = yes; then
f038dae6
ILT
13588 LIBGO_IS_DRAGONFLY_TRUE=
13589 LIBGO_IS_DRAGONFLY_FALSE='#'
13590else
13591 LIBGO_IS_DRAGONFLY_TRUE='#'
13592 LIBGO_IS_DRAGONFLY_FALSE=
13593fi
13594
7a938933
ILT
13595 if test $is_rtems = yes; then
13596 LIBGO_IS_RTEMS_TRUE=
13597 LIBGO_IS_RTEMS_FALSE='#'
13598else
13599 LIBGO_IS_RTEMS_TRUE='#'
13600 LIBGO_IS_RTEMS_FALSE=
13601fi
13602
f2ee78b8
ILT
13603 if test $is_solaris = yes; then
13604 LIBGO_IS_SOLARIS_TRUE=
13605 LIBGO_IS_SOLARIS_FALSE='#'
13606else
13607 LIBGO_IS_SOLARIS_TRUE='#'
13608 LIBGO_IS_SOLARIS_FALSE=
13609fi
13610
7a938933 13611
c3b5b97b 13612
7134cf28
ILT
13613USE_DEJAGNU=no
13614case ${host} in
13615 *-*-rtems*) USE_DEJAGNU=yes ;;
553752e1 13616 ${build}) ;;
7134cf28
ILT
13617 *) USE_DEJAGNU=yes ;;
13618esac
13619
13620
7a938933 13621is_386=no
e59b9171 13622is_alpha=no
7a938933 13623is_arm=no
71d0d50a 13624is_arm64=no
ca11cc98 13625is_m68k=no
9f3b1e6c 13626mips_abi=unknown
ca11cc98
ILT
13627is_ppc=no
13628is_ppc64=no
6f7ccafa 13629is_ppc64le=no
1fec5f52
ILT
13630is_s390=no
13631is_s390x=no
f2ee78b8 13632is_sparc=no
545d1aa1 13633is_sparc64=no
f2ee78b8 13634is_x86_64=no
c3b5b97b 13635GOARCH=unknown
7a938933 13636case ${host} in
e59b9171
ILT
13637 alpha*-*-*)
13638 is_alpha=yes
13639 GOARCH=alpha
13640 ;;
71d0d50a
ILT
13641 aarch64-*-*)
13642 is_arm64=yes
13643 GOARCH=arm64
13644 ;;
ca11cc98
ILT
13645 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13646 is_arm=yes
13647 GOARCH=arm
13648 ;;
c3b5b97b
ILT
13649 i[34567]86-*-* | x86_64-*-*)
13650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13651/* end confdefs.h. */
13652
13653#ifdef __x86_64__
13654#error 64-bit
13655#endif
13656_ACEOF
4a299bf4 13657if ac_fn_c_try_compile "$LINENO"; then :
c3b5b97b
ILT
13658 is_386=yes
13659else
13660 is_x86_64=yes
13661fi
4a299bf4 13662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3b5b97b
ILT
13663 if test "$is_386" = "yes"; then
13664 GOARCH=386
7a938933 13665 else
c3b5b97b 13666 GOARCH=amd64
7a938933
ILT
13667 fi
13668 ;;
ca11cc98
ILT
13669 m68k*-*-*)
13670 is_m68k=yes
13671 GOARCH=m68k
13672 ;;
13673 mips*-*-*)
13674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13675/* end confdefs.h. */
13676
85a09210
ILT
13677#if _MIPS_SIM != _ABIO32
13678#error not o32
13679#endif
13680_ACEOF
13681if ac_fn_c_try_compile "$LINENO"; then :
13682 mips_abi="o32"
13683else
13684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13685/* end confdefs.h. */
13686
13687#if _MIPS_SIM != _ABIN32
13688#error not n32
ca11cc98
ILT
13689#endif
13690_ACEOF
4a299bf4 13691if ac_fn_c_try_compile "$LINENO"; then :
85a09210 13692 mips_abi="n32"
ca11cc98 13693else
85a09210
ILT
13694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13695/* end confdefs.h. */
13696
13697#if _MIPS_SIM != _ABI64
13698#error not n64
13699#endif
13700_ACEOF
13701if ac_fn_c_try_compile "$LINENO"; then :
13702 mips_abi="n64"
13703else
13704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13705/* end confdefs.h. */
13706
13707#if _MIPS_SIM != _ABIO64
13708#error not o64
13709#endif
13710_ACEOF
13711if ac_fn_c_try_compile "$LINENO"; then :
13712 mips_abi="o64"
13713else
13714 as_fn_error "unknown MIPS ABI" "$LINENO" 5
13715mips_abi="n32"
ca11cc98 13716fi
4a299bf4 13717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
85a09210
ILT
13718fi
13719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13720fi
13721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13722fi
13723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13724 case "$mips_abi" in
13725 "o32") GOARCH=mipso32 ;;
13726 "n32") GOARCH=mipsn32 ;;
13727 "n64") GOARCH=mipsn64 ;;
13728 "o64") GOARCH=mipso64 ;;
13729 esac
ca11cc98
ILT
13730 ;;
13731 rs6000*-*-* | powerpc*-*-*)
13732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13733/* end confdefs.h. */
13734
13735#ifdef _ARCH_PPC64
13736#error 64-bit
13737#endif
13738_ACEOF
4a299bf4 13739if ac_fn_c_try_compile "$LINENO"; then :
ca11cc98 13740 is_ppc=yes
6f7ccafa
ILT
13741else
13742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13743/* end confdefs.h. */
13744
13745#if defined(_BIG_ENDIAN) || defined(__BIG_ENDIAN__)
13746#error 64be
13747#endif
13748_ACEOF
13749if ac_fn_c_try_compile "$LINENO"; then :
13750 is_ppc64le=yes
ca11cc98
ILT
13751else
13752 is_ppc64=yes
13753fi
6f7ccafa
ILT
13754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13755fi
4a299bf4 13756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ca11cc98
ILT
13757 if test "$is_ppc" = "yes"; then
13758 GOARCH=ppc
6f7ccafa 13759 elif test "$is_ppc64" = "yes"; then
ca11cc98 13760 GOARCH=ppc64
6f7ccafa
ILT
13761 else
13762 GOARCH=ppc64le
ca11cc98 13763 fi
7a938933 13764 ;;
1fec5f52
ILT
13765 s390*-*-*)
13766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13767/* end confdefs.h. */
13768
13769#if defined(__s390x__)
13770#error 64-bit
13771#endif
13772_ACEOF
13773if ac_fn_c_try_compile "$LINENO"; then :
13774 is_s390=yes
13775else
13776 is_s390x=yes
13777fi
13778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13779 if test "$is_s390" = "yes"; then
13780 GOARCH=s390
13781 else
13782 GOARCH=s390x
13783 fi
13784 ;;
f2ee78b8
ILT
13785 sparc*-*-*)
13786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13787/* end confdefs.h. */
13788
13789#if defined(__sparcv9) || defined(__arch64__)
13790#error 64-bit
13791#endif
13792_ACEOF
4a299bf4 13793if ac_fn_c_try_compile "$LINENO"; then :
f2ee78b8
ILT
13794 is_sparc=yes
13795else
545d1aa1 13796 is_sparc64=yes
f2ee78b8 13797fi
4a299bf4 13798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f2ee78b8 13799 if test "$is_sparc" = "yes"; then
f2ee78b8
ILT
13800 GOARCH=sparc
13801 else
545d1aa1 13802 GOARCH=sparc64
f2ee78b8
ILT
13803 fi
13804 ;;
7a938933
ILT
13805esac
13806 if test $is_386 = yes; then
13807 LIBGO_IS_386_TRUE=
13808 LIBGO_IS_386_FALSE='#'
13809else
13810 LIBGO_IS_386_TRUE='#'
13811 LIBGO_IS_386_FALSE=
13812fi
13813
e59b9171
ILT
13814 if test $is_alpha = yes; then
13815 LIBGO_IS_ALPHA_TRUE=
13816 LIBGO_IS_ALPHA_FALSE='#'
13817else
13818 LIBGO_IS_ALPHA_TRUE='#'
13819 LIBGO_IS_ALPHA_FALSE=
13820fi
13821
7a938933
ILT
13822 if test $is_arm = yes; then
13823 LIBGO_IS_ARM_TRUE=
13824 LIBGO_IS_ARM_FALSE='#'
13825else
13826 LIBGO_IS_ARM_TRUE='#'
13827 LIBGO_IS_ARM_FALSE=
13828fi
13829
71d0d50a
ILT
13830 if test $is_arm64 = yes; then
13831 LIBGO_IS_ARM64_TRUE=
13832 LIBGO_IS_ARM64_FALSE='#'
13833else
13834 LIBGO_IS_ARM64_TRUE='#'
13835 LIBGO_IS_ARM64_FALSE=
13836fi
13837
ca11cc98
ILT
13838 if test $is_m68k = yes; then
13839 LIBGO_IS_M68K_TRUE=
13840 LIBGO_IS_M68K_FALSE='#'
13841else
13842 LIBGO_IS_M68K_TRUE='#'
13843 LIBGO_IS_M68K_FALSE=
13844fi
13845
9f3b1e6c 13846 if test $mips_abi != unknown; then
ca11cc98
ILT
13847 LIBGO_IS_MIPS_TRUE=
13848 LIBGO_IS_MIPS_FALSE='#'
13849else
13850 LIBGO_IS_MIPS_TRUE='#'
13851 LIBGO_IS_MIPS_FALSE=
13852fi
13853
85a09210
ILT
13854 if test $mips_abi = o32; then
13855 LIBGO_IS_MIPSO32_TRUE=
13856 LIBGO_IS_MIPSO32_FALSE='#'
13857else
13858 LIBGO_IS_MIPSO32_TRUE='#'
13859 LIBGO_IS_MIPSO32_FALSE=
13860fi
13861
13862 if test $mips_abi = n32; then
13863 LIBGO_IS_MIPSN32_TRUE=
13864 LIBGO_IS_MIPSN32_FALSE='#'
ca11cc98 13865else
85a09210
ILT
13866 LIBGO_IS_MIPSN32_TRUE='#'
13867 LIBGO_IS_MIPSN32_FALSE=
13868fi
13869
13870 if test $mips_abi = n64; then
13871 LIBGO_IS_MIPSN64_TRUE=
13872 LIBGO_IS_MIPSN64_FALSE='#'
13873else
13874 LIBGO_IS_MIPSN64_TRUE='#'
13875 LIBGO_IS_MIPSN64_FALSE=
13876fi
13877
13878 if test $mips_abi = o64; then
13879 LIBGO_IS_MIPSO64_TRUE=
13880 LIBGO_IS_MIPSO64_FALSE='#'
13881else
13882 LIBGO_IS_MIPSO64_TRUE='#'
13883 LIBGO_IS_MIPSO64_FALSE=
ca11cc98
ILT
13884fi
13885
13886 if test $is_ppc = yes; then
13887 LIBGO_IS_PPC_TRUE=
13888 LIBGO_IS_PPC_FALSE='#'
13889else
13890 LIBGO_IS_PPC_TRUE='#'
13891 LIBGO_IS_PPC_FALSE=
13892fi
13893
13894 if test $is_ppc64 = yes; then
13895 LIBGO_IS_PPC64_TRUE=
13896 LIBGO_IS_PPC64_FALSE='#'
13897else
13898 LIBGO_IS_PPC64_TRUE='#'
13899 LIBGO_IS_PPC64_FALSE=
13900fi
13901
6f7ccafa
ILT
13902 if test $is_ppc64le = yes; then
13903 LIBGO_IS_PPC64LE_TRUE=
13904 LIBGO_IS_PPC64LE_FALSE='#'
13905else
13906 LIBGO_IS_PPC64LE_TRUE='#'
13907 LIBGO_IS_PPC64LE_FALSE=
13908fi
13909
1fec5f52
ILT
13910 if test $is_s390 = yes; then
13911 LIBGO_IS_S390_TRUE=
13912 LIBGO_IS_S390_FALSE='#'
13913else
13914 LIBGO_IS_S390_TRUE='#'
13915 LIBGO_IS_S390_FALSE=
13916fi
13917
13918 if test $is_s390x = yes; then
13919 LIBGO_IS_S390X_TRUE=
13920 LIBGO_IS_S390X_FALSE='#'
13921else
13922 LIBGO_IS_S390X_TRUE='#'
13923 LIBGO_IS_S390X_FALSE=
13924fi
13925
f2ee78b8
ILT
13926 if test $is_sparc = yes; then
13927 LIBGO_IS_SPARC_TRUE=
13928 LIBGO_IS_SPARC_FALSE='#'
13929else
13930 LIBGO_IS_SPARC_TRUE='#'
13931 LIBGO_IS_SPARC_FALSE=
13932fi
13933
545d1aa1
ILT
13934 if test $is_sparc64 = yes; then
13935 LIBGO_IS_SPARC64_TRUE=
13936 LIBGO_IS_SPARC64_FALSE='#'
f2ee78b8 13937else
545d1aa1
ILT
13938 LIBGO_IS_SPARC64_TRUE='#'
13939 LIBGO_IS_SPARC64_FALSE=
f2ee78b8
ILT
13940fi
13941
13942 if test $is_x86_64 = yes; then
13943 LIBGO_IS_X86_64_TRUE=
13944 LIBGO_IS_X86_64_FALSE='#'
13945else
13946 LIBGO_IS_X86_64_TRUE='#'
13947 LIBGO_IS_X86_64_FALSE=
13948fi
13949
7a938933 13950
c3b5b97b 13951
de27caac
ILT
13952GO_LIBCALL_OS_FILE=
13953GO_LIBCALL_OS_ARCH_FILE=
13954GO_SYSCALL_OS_FILE=
13955GO_SYSCALL_OS_ARCH_FILE=
204b9fc2
ILT
13956if test -f "${srcdir}/go/syscall/libcall_${GOOS}.go"; then
13957 GO_LIBCALL_OS_FILE="go/syscall/libcall_${GOOS}.go"
ca11cc98 13958fi
204b9fc2
ILT
13959if test -f "${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go"; then
13960 GO_LIBCALL_OS_ARCH_FILE="go/syscall/libcall_${GOOS}_${GOARCH}.go"
de27caac 13961fi
204b9fc2
ILT
13962if test -f "${srcdir}/go/syscall/syscall_${GOOS}.go"; then
13963 GO_SYSCALL_OS_FILE="go/syscall/syscall_${GOOS}.go"
de27caac 13964fi
204b9fc2
ILT
13965if test -f "${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go"; then
13966 GO_SYSCALL_OS_ARCH_FILE="go/syscall/syscall_${GOOS}_${GOARCH}.go"
de27caac
ILT
13967fi
13968
13969
13970
ca11cc98
ILT
13971
13972
d48be5df 13973OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
90630d19 13974case "$target" in
9f3b1e6c
ILT
13975 mips-sgi-irix6.5*)
13976 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
13977 # msghdr in <sys/socket.h>.
d48be5df 13978 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
9f3b1e6c 13979 ;;
90630d19
ILT
13980 *-*-solaris2.1[01])
13981 # Solaris 10+ needs this so struct msghdr gets the msg_control
bbe847a1 13982 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
90630d19 13983 # above doesn't work with C99.
bbe847a1 13984 OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
90630d19
ILT
13985 ;;
13986esac
13987
13988
7a938933
ILT
13989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13990$as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
f2ee78b8 13991if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
7a938933
ILT
13992 $as_echo_n "(cached) " >&6
13993else
13994 CFLAGS_hold=$CFLAGS
13995CFLAGS="$CFLAGS -fsplit-stack"
13996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13997/* end confdefs.h. */
13998int i;
13999_ACEOF
14000if ac_fn_c_try_compile "$LINENO"; then :
f2ee78b8 14001 libgo_cv_c_split_stack_supported=yes
7a938933 14002else
f2ee78b8 14003 libgo_cv_c_split_stack_supported=no
7a938933
ILT
14004fi
14005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14006CFLAGS=$CFLAGS_hold
14007fi
f2ee78b8
ILT
14008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
14009$as_echo "$libgo_cv_c_split_stack_supported" >&6; }
c33c18cd
ILT
14010
14011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split/non-split linked together" >&5
14012$as_echo_n "checking whether linker supports split/non-split linked together... " >&6; }
14013if test "${libgo_cv_c_linker_split_non_split+set}" = set; then :
14014 $as_echo_n "(cached) " >&6
14015else
14016 cat > conftest1.c << EOF
14017extern void f();
14018int main() { f(); return 0; }
14019EOF
14020cat > conftest2.c << EOF
14021void f() {}
14022EOF
14023$CC -c -fsplit-stack $CFLAGS $CPPFLAGS conftest1.c
14024$CC -c $CFLAGS $CPPFLAGS conftest2.c
14025if $CC -o conftest conftest1.$ac_objext conftest2.$ac_objext; then
14026 libgo_cv_c_linker_split_non_split=yes
14027else
14028 libgo_cv_c_linker_split_non_split=no
14029fi
14030rm -f conftest1.* conftest2.* conftest
14031fi
14032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_split_non_split" >&5
14033$as_echo "$libgo_cv_c_linker_split_non_split" >&6; }
14034
14035if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
7a938933
ILT
14036 SPLIT_STACK=-fsplit-stack
14037
14038$as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
14039
14040else
14041 SPLIT_STACK=
14042fi
14043
c33c18cd 14044 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
7a938933
ILT
14045 USING_SPLIT_STACK_TRUE=
14046 USING_SPLIT_STACK_FALSE='#'
14047else
14048 USING_SPLIT_STACK_TRUE='#'
14049 USING_SPLIT_STACK_FALSE=
14050fi
14051
14052
14053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
14054$as_echo_n "checking whether linker supports split stack... " >&6; }
f2ee78b8 14055if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
7a938933
ILT
14056 $as_echo_n "(cached) " >&6
14057else
f2ee78b8 14058 libgo_cv_c_linker_supports_split_stack=no
f56c5dd1 14059if $GOC -Wl,--help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
f2ee78b8 14060 libgo_cv_c_linker_supports_split_stack=yes
7a938933
ILT
14061fi
14062fi
f2ee78b8
ILT
14063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
14064$as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
14065if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
7a938933
ILT
14066
14067$as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
14068
14069fi
14070
4c46b5f0
ILT
14071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is llgo" >&5
14072$as_echo_n "checking whether compiler is llgo... " >&6; }
14073if test "${libgo_cv_c_goc_is_llgo+set}" = set; then :
14074 $as_echo_n "(cached) " >&6
14075else
14076 libgo_cv_c_goc_is_llgo=no
14077if $GOC -dumpversion 2>/dev/null | grep llgo >/dev/null 2>&1; then
14078 libgo_cv_c_goc_is_llgo=yes
14079fi
14080fi
14081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_goc_is_llgo" >&5
14082$as_echo "$libgo_cv_c_goc_is_llgo" >&6; }
14083 if test "$libgo_cv_c_goc_is_llgo" = yes; then
14084 GOC_IS_LLGO_TRUE=
14085 GOC_IS_LLGO_FALSE='#'
14086else
14087 GOC_IS_LLGO_TRUE='#'
14088 GOC_IS_LLGO_FALSE=
14089fi
14090
14091
505b439a
ILT
14092MATH_LIBS=
14093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14094$as_echo_n "checking for sqrt in -lm... " >&6; }
14095if test "${ac_cv_lib_m_sqrt+set}" = set; then :
14096 $as_echo_n "(cached) " >&6
14097else
14098 ac_check_lib_save_LIBS=$LIBS
14099LIBS="-lm $LIBS"
14100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14101/* end confdefs.h. */
14102
14103/* Override any GCC internal prototype to avoid an error.
14104 Use char because int might match the return type of a GCC
14105 builtin and then its argument prototype would still apply. */
14106#ifdef __cplusplus
14107extern "C"
14108#endif
14109char sqrt ();
14110int
14111main ()
14112{
14113return sqrt ();
14114 ;
14115 return 0;
14116}
14117_ACEOF
14118if ac_fn_c_try_link "$LINENO"; then :
14119 ac_cv_lib_m_sqrt=yes
14120else
14121 ac_cv_lib_m_sqrt=no
14122fi
14123rm -f core conftest.err conftest.$ac_objext \
14124 conftest$ac_exeext conftest.$ac_ext
14125LIBS=$ac_check_lib_save_LIBS
14126fi
14127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14128$as_echo "$ac_cv_lib_m_sqrt" >&6; }
14129if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
14130 MATH_LIBS=-lm
14131fi
14132
14133
14134
f2ee78b8
ILT
14135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14136$as_echo_n "checking for socket libraries... " >&6; }
14137if test "${libgo_cv_lib_sockets+set}" = set; then :
14138 $as_echo_n "(cached) " >&6
14139else
14140 libgo_cv_lib_sockets=
14141 libgo_check_both=no
14142 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14143if test "x$ac_cv_func_connect" = x""yes; then :
14144 libgo_check_socket=no
14145else
14146 libgo_check_socket=yes
14147fi
14148
14149 if test "$libgo_check_socket" = "yes"; then
14150 unset ac_cv_func_connect
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14152$as_echo_n "checking for main in -lsocket... " >&6; }
14153if test "${ac_cv_lib_socket_main+set}" = set; then :
14154 $as_echo_n "(cached) " >&6
14155else
14156 ac_check_lib_save_LIBS=$LIBS
14157LIBS="-lsocket $LIBS"
14158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14159/* end confdefs.h. */
14160
14161
14162int
14163main ()
14164{
14165return main ();
14166 ;
14167 return 0;
14168}
14169_ACEOF
14170if ac_fn_c_try_link "$LINENO"; then :
14171 ac_cv_lib_socket_main=yes
14172else
14173 ac_cv_lib_socket_main=no
14174fi
14175rm -f core conftest.err conftest.$ac_objext \
14176 conftest$ac_exeext conftest.$ac_ext
14177LIBS=$ac_check_lib_save_LIBS
14178fi
14179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14180$as_echo "$ac_cv_lib_socket_main" >&6; }
14181if test "x$ac_cv_lib_socket_main" = x""yes; then :
14182 libgo_cv_lib_sockets="-lsocket"
14183else
14184 libgo_check_both=yes
14185fi
14186
14187 fi
14188 if test "$libgo_check_both" = "yes"; then
14189 libgo_old_libs=$LIBS
14190 LIBS="$LIBS -lsocket -lnsl"
14191 unset ac_cv_func_accept
14192 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14193if test "x$ac_cv_func_accept" = x""yes; then :
14194 libgo_check_nsl=no
14195 libgo_cv_lib_sockets="-lsocket -lnsl"
14196fi
14197
14198 unset ac_cv_func_accept
14199 LIBS=$libgo_old_libs
14200 fi
14201 unset ac_cv_func_gethostbyname
14202 libgo_old_libs="$LIBS"
14203 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14204if test "x$ac_cv_func_gethostbyname" = x""yes; then :
14205
14206else
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14208$as_echo_n "checking for main in -lnsl... " >&6; }
14209if test "${ac_cv_lib_nsl_main+set}" = set; then :
14210 $as_echo_n "(cached) " >&6
14211else
14212 ac_check_lib_save_LIBS=$LIBS
14213LIBS="-lnsl $LIBS"
14214cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14215/* end confdefs.h. */
14216
14217
14218int
14219main ()
14220{
14221return main ();
14222 ;
14223 return 0;
14224}
14225_ACEOF
14226if ac_fn_c_try_link "$LINENO"; then :
14227 ac_cv_lib_nsl_main=yes
14228else
14229 ac_cv_lib_nsl_main=no
14230fi
14231rm -f core conftest.err conftest.$ac_objext \
14232 conftest$ac_exeext conftest.$ac_ext
14233LIBS=$ac_check_lib_save_LIBS
14234fi
14235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14236$as_echo "$ac_cv_lib_nsl_main" >&6; }
14237if test "x$ac_cv_lib_nsl_main" = x""yes; then :
14238 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
14239fi
14240
14241fi
14242
14243 unset ac_cv_func_gethostbyname
14244 LIBS=$libgo_old_libs
14245
14246fi
14247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14248$as_echo "$libgo_cv_lib_sockets" >&6; }
14249NET_LIBS="$libgo_cv_lib_sockets"
14250
14251
6c94a9fa
ILT
14252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14253$as_echo_n "checking whether -pthread is supported... " >&6; }
f2ee78b8 14254if test "${libgo_cv_lib_pthread+set}" = set; then :
6c94a9fa
ILT
14255 $as_echo_n "(cached) " >&6
14256else
14257 CFLAGS_hold=$CFLAGS
14258CFLAGS="$CFLAGS -pthread"
14259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14260/* end confdefs.h. */
14261int i;
14262_ACEOF
14263if ac_fn_c_try_compile "$LINENO"; then :
f2ee78b8 14264 libgo_cv_lib_pthread=yes
6c94a9fa 14265else
f2ee78b8 14266 libgo_cv_lib_pthread=no
6c94a9fa
ILT
14267fi
14268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14269CFLAGS=$CFLAGS_hold
14270fi
f2ee78b8
ILT
14271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14272$as_echo "$libgo_cv_lib_pthread" >&6; }
6c94a9fa 14273PTHREAD_CFLAGS=
f2ee78b8 14274if test "$libgo_cv_lib_pthread" = yes; then
6c94a9fa
ILT
14275 PTHREAD_CFLAGS=-pthread
14276fi
14277
14278
14279PTHREAD_LIBS=
14280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14281$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14282if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
14283 $as_echo_n "(cached) " >&6
14284else
14285 ac_check_lib_save_LIBS=$LIBS
14286LIBS="-lpthread $LIBS"
14287cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14288/* end confdefs.h. */
14289
14290/* Override any GCC internal prototype to avoid an error.
14291 Use char because int might match the return type of a GCC
14292 builtin and then its argument prototype would still apply. */
14293#ifdef __cplusplus
14294extern "C"
14295#endif
14296char pthread_create ();
14297int
14298main ()
14299{
14300return pthread_create ();
14301 ;
14302 return 0;
14303}
14304_ACEOF
14305if ac_fn_c_try_link "$LINENO"; then :
14306 ac_cv_lib_pthread_pthread_create=yes
14307else
14308 ac_cv_lib_pthread_pthread_create=no
14309fi
14310rm -f core conftest.err conftest.$ac_objext \
14311 conftest$ac_exeext conftest.$ac_ext
14312LIBS=$ac_check_lib_save_LIBS
14313fi
14314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14315$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14316if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
14317 PTHREAD_LIBS=-lpthread
14318fi
14319
14320
14321
ed4ebabc
ILT
14322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14323$as_echo_n "checking for library containing sched_yield... " >&6; }
14324if test "${ac_cv_search_sched_yield+set}" = set; then :
14325 $as_echo_n "(cached) " >&6
14326else
14327 ac_func_search_save_LIBS=$LIBS
14328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14329/* end confdefs.h. */
14330
14331/* Override any GCC internal prototype to avoid an error.
14332 Use char because int might match the return type of a GCC
14333 builtin and then its argument prototype would still apply. */
14334#ifdef __cplusplus
14335extern "C"
14336#endif
14337char sched_yield ();
14338int
14339main ()
14340{
14341return sched_yield ();
14342 ;
14343 return 0;
14344}
14345_ACEOF
14346for ac_lib in '' rt; do
14347 if test -z "$ac_lib"; then
14348 ac_res="none required"
14349 else
14350 ac_res=-l$ac_lib
14351 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14352 fi
14353 if ac_fn_c_try_link "$LINENO"; then :
14354 ac_cv_search_sched_yield=$ac_res
14355fi
14356rm -f core conftest.err conftest.$ac_objext \
14357 conftest$ac_exeext
14358 if test "${ac_cv_search_sched_yield+set}" = set; then :
14359 break
14360fi
14361done
14362if test "${ac_cv_search_sched_yield+set}" = set; then :
14363
14364else
14365 ac_cv_search_sched_yield=no
14366fi
14367rm conftest.$ac_ext
14368LIBS=$ac_func_search_save_LIBS
14369fi
14370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14371$as_echo "$ac_cv_search_sched_yield" >&6; }
14372ac_res=$ac_cv_search_sched_yield
14373if test "$ac_res" != no; then :
14374 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14375
ae135907
ILT
14376fi
14377
14378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14379$as_echo_n "checking for library containing nanosleep... " >&6; }
14380if test "${ac_cv_search_nanosleep+set}" = set; then :
14381 $as_echo_n "(cached) " >&6
14382else
14383 ac_func_search_save_LIBS=$LIBS
14384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14385/* end confdefs.h. */
14386
14387/* Override any GCC internal prototype to avoid an error.
14388 Use char because int might match the return type of a GCC
14389 builtin and then its argument prototype would still apply. */
14390#ifdef __cplusplus
14391extern "C"
14392#endif
14393char nanosleep ();
14394int
14395main ()
14396{
14397return nanosleep ();
14398 ;
14399 return 0;
14400}
14401_ACEOF
14402for ac_lib in '' rt; do
14403 if test -z "$ac_lib"; then
14404 ac_res="none required"
14405 else
14406 ac_res=-l$ac_lib
14407 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14408 fi
14409 if ac_fn_c_try_link "$LINENO"; then :
14410 ac_cv_search_nanosleep=$ac_res
14411fi
14412rm -f core conftest.err conftest.$ac_objext \
14413 conftest$ac_exeext
14414 if test "${ac_cv_search_nanosleep+set}" = set; then :
14415 break
14416fi
14417done
14418if test "${ac_cv_search_nanosleep+set}" = set; then :
14419
14420else
14421 ac_cv_search_nanosleep=no
14422fi
14423rm conftest.$ac_ext
14424LIBS=$ac_func_search_save_LIBS
14425fi
14426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14427$as_echo "$ac_cv_search_nanosleep" >&6; }
14428ac_res=$ac_cv_search_nanosleep
14429if test "$ac_res" != no; then :
14430 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14431
ed4ebabc
ILT
14432fi
14433
14434
7a938933
ILT
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14436$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14437if test "${ac_cv_c_bigendian+set}" = set; then :
14438 $as_echo_n "(cached) " >&6
14439else
14440 ac_cv_c_bigendian=unknown
14441 # See if we're dealing with a universal compiler.
14442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14443/* end confdefs.h. */
14444#ifndef __APPLE_CC__
14445 not a universal capable compiler
14446 #endif
14447 typedef int dummy;
14448
14449_ACEOF
14450if ac_fn_c_try_compile "$LINENO"; then :
14451
14452 # Check for potential -arch flags. It is not universal unless
14453 # there are at least two -arch flags with different values.
14454 ac_arch=
14455 ac_prev=
14456 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14457 if test -n "$ac_prev"; then
14458 case $ac_word in
14459 i?86 | x86_64 | ppc | ppc64)
14460 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14461 ac_arch=$ac_word
14462 else
14463 ac_cv_c_bigendian=universal
14464 break
14465 fi
14466 ;;
14467 esac
14468 ac_prev=
14469 elif test "x$ac_word" = "x-arch"; then
14470 ac_prev=arch
14471 fi
14472 done
14473fi
14474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14475 if test $ac_cv_c_bigendian = unknown; then
14476 # See if sys/param.h defines the BYTE_ORDER macro.
14477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14478/* end confdefs.h. */
14479#include <sys/types.h>
14480 #include <sys/param.h>
14481
14482int
14483main ()
14484{
14485#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14486 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14487 && LITTLE_ENDIAN)
14488 bogus endian macros
14489 #endif
14490
14491 ;
14492 return 0;
14493}
14494_ACEOF
14495if ac_fn_c_try_compile "$LINENO"; then :
14496 # It does; now see whether it defined to BIG_ENDIAN or not.
14497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14498/* end confdefs.h. */
14499#include <sys/types.h>
14500 #include <sys/param.h>
14501
14502int
14503main ()
14504{
14505#if BYTE_ORDER != BIG_ENDIAN
14506 not big endian
14507 #endif
14508
14509 ;
14510 return 0;
14511}
14512_ACEOF
14513if ac_fn_c_try_compile "$LINENO"; then :
14514 ac_cv_c_bigendian=yes
14515else
14516 ac_cv_c_bigendian=no
14517fi
14518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14519fi
14520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14521 fi
14522 if test $ac_cv_c_bigendian = unknown; then
14523 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14525/* end confdefs.h. */
14526#include <limits.h>
14527
14528int
14529main ()
14530{
14531#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14532 bogus endian macros
14533 #endif
14534
14535 ;
14536 return 0;
14537}
14538_ACEOF
14539if ac_fn_c_try_compile "$LINENO"; then :
14540 # It does; now see whether it defined to _BIG_ENDIAN or not.
14541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14542/* end confdefs.h. */
14543#include <limits.h>
14544
14545int
14546main ()
14547{
14548#ifndef _BIG_ENDIAN
14549 not big endian
14550 #endif
14551
14552 ;
14553 return 0;
14554}
14555_ACEOF
14556if ac_fn_c_try_compile "$LINENO"; then :
14557 ac_cv_c_bigendian=yes
14558else
14559 ac_cv_c_bigendian=no
14560fi
14561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14562fi
14563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14564 fi
14565 if test $ac_cv_c_bigendian = unknown; then
14566 # Compile a test program.
14567 if test "$cross_compiling" = yes; then :
14568 # Try to guess by grepping values from an object file.
14569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14570/* end confdefs.h. */
14571short int ascii_mm[] =
14572 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14573 short int ascii_ii[] =
14574 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14575 int use_ascii (int i) {
14576 return ascii_mm[i] + ascii_ii[i];
14577 }
14578 short int ebcdic_ii[] =
14579 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14580 short int ebcdic_mm[] =
14581 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14582 int use_ebcdic (int i) {
14583 return ebcdic_mm[i] + ebcdic_ii[i];
14584 }
14585 extern int foo;
14586
14587int
14588main ()
14589{
14590return use_ascii (foo) == use_ebcdic (foo);
14591 ;
14592 return 0;
14593}
14594_ACEOF
14595if ac_fn_c_try_compile "$LINENO"; then :
14596 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14597 ac_cv_c_bigendian=yes
14598 fi
14599 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14600 if test "$ac_cv_c_bigendian" = unknown; then
14601 ac_cv_c_bigendian=no
14602 else
14603 # finding both strings is unlikely to happen, but who knows?
14604 ac_cv_c_bigendian=unknown
14605 fi
14606 fi
14607fi
14608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14609else
14610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14611/* end confdefs.h. */
14612$ac_includes_default
14613int
14614main ()
14615{
14616
14617 /* Are we little or big endian? From Harbison&Steele. */
14618 union
14619 {
14620 long int l;
14621 char c[sizeof (long int)];
14622 } u;
14623 u.l = 1;
14624 return u.c[sizeof (long int) - 1] == 1;
14625
14626 ;
14627 return 0;
14628}
14629_ACEOF
14630if ac_fn_c_try_run "$LINENO"; then :
14631 ac_cv_c_bigendian=no
14632else
14633 ac_cv_c_bigendian=yes
14634fi
14635rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14636 conftest.$ac_objext conftest.beam conftest.$ac_ext
14637fi
14638
14639 fi
14640fi
14641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14642$as_echo "$ac_cv_c_bigendian" >&6; }
14643 case $ac_cv_c_bigendian in #(
14644 yes)
14645 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14646;; #(
14647 no)
14648 ;; #(
14649 universal)
14650
14651$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14652
14653 ;; #(
14654 *)
14655 as_fn_error "unknown endianness
14656 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14657 esac
14658
14659
14660
14661
14662# Check whether --with-system-libunwind was given.
14663if test "${with_system_libunwind+set}" = set; then :
14664 withval=$with_system_libunwind;
14665fi
14666
14667 # If system-libunwind was not specifically set, pick a default setting.
14668 if test x$with_system_libunwind = x; then
14669 case ${target} in
14670 ia64-*-hpux*) with_system_libunwind=yes ;;
14671 *) with_system_libunwind=no ;;
14672 esac
14673 fi
14674 # Based on system-libunwind and target, do we have ipinfo?
14675 if test x$with_system_libunwind = xyes; then
14676 case ${target} in
14677 ia64-*-*) have_unwind_getipinfo=no ;;
14678 *) have_unwind_getipinfo=yes ;;
14679 esac
14680 else
14681 # Darwin before version 9 does not have _Unwind_GetIPInfo.
14682
14683 case ${target} in
14684 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14685 *) have_unwind_getipinfo=yes ;;
14686 esac
14687
14688 fi
14689
14690 if test x$have_unwind_getipinfo = xyes; then
14691
14692$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14693
14694 fi
14695
14696
d3b4df0b 14697for ac_header in sched.h sys/file.h sys/mman.h syscall.h sys/epoll.h sys/inotify.h sys/ptrace.h sys/syscall.h sys/user.h sys/utsname.h sys/select.h sys/socket.h net/if.h net/if_arp.h net/route.h netpacket/packet.h sys/prctl.h sys/mount.h sys/vfs.h sys/statfs.h sys/timex.h sys/sysinfo.h utime.h linux/ether.h linux/fs.h linux/reboot.h netinet/icmp6.h netinet/in_syst.h netinet/ip.h netinet/ip_mroute.h netinet/if_ether.h
7a938933
ILT
14698do :
14699 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14700ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14701eval as_val=\$$as_ac_Header
14702 if test "x$as_val" = x""yes; then :
14703 cat >>confdefs.h <<_ACEOF
14704#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14705_ACEOF
14706
14707fi
14708
14709done
14710
adb0401d 14711
1410c222 14712for ac_header in linux/filter.h linux/if_addr.h linux/if_ether.h linux/if_tun.h linux/netlink.h linux/rtnetlink.h
adb0401d
ILT
14713do :
14714 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14715ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
14716#include <sys/socket.h>
14717#endif
14718
14719"
14720eval as_val=\$$as_ac_Header
14721 if test "x$as_val" = x""yes; then :
14722 cat >>confdefs.h <<_ACEOF
14723#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14724_ACEOF
14725
14726fi
14727
14728done
14729
14730
2aeaf0fb
ILT
14731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <ustat.h> can be used" >&5
14732$as_echo_n "checking whether <ustat.h> can be used... " >&6; }
14733if test "${libgo_cv_c_ustat_h+set}" = set; then :
14734 $as_echo_n "(cached) " >&6
14735else
dbe1e4a5
ILT
14736 CFLAGS_hold=$CFLAGS
14737CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE $OSCFLAGS"
14738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2aeaf0fb
ILT
14739/* end confdefs.h. */
14740
14741#include <sys/types.h>
14742#ifdef HAVE_LINUX_FILTER_H
14743#include <linux/filter.h>
14744#endif
14745#include <ustat.h>
14746
14747_ACEOF
14748if ac_fn_c_try_compile "$LINENO"; then :
14749 libgo_cv_c_ustat_h=yes
14750else
14751 libgo_cv_c_ustat_h=no
14752fi
14753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
dbe1e4a5 14754CFLAGS=$CFLAGS_hold
2aeaf0fb
ILT
14755fi
14756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_ustat_h" >&5
14757$as_echo "$libgo_cv_c_ustat_h" >&6; }
14758if test $libgo_cv_c_ustat_h = yes; then
14759
14760$as_echo "#define HAVE_USTAT_H 1" >>confdefs.h
14761
14762fi
14763
7a938933
ILT
14764 if test "$ac_cv_header_sys_mman_h" = yes; then
14765 HAVE_SYS_MMAN_H_TRUE=
14766 HAVE_SYS_MMAN_H_FALSE='#'
14767else
14768 HAVE_SYS_MMAN_H_TRUE='#'
14769 HAVE_SYS_MMAN_H_FALSE=
14770fi
14771
8955c80a 14772
f8d9fa9e 14773for ac_func in strerror_r strsignal wait4 mincore setenv unsetenv dl_iterate_phdr
7a938933
ILT
14774do :
14775 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14776ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14777eval as_val=\$$as_ac_var
14778 if test "x$as_val" = x""yes; then :
14779 cat >>confdefs.h <<_ACEOF
14780#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14781_ACEOF
14782
14783fi
14784done
14785
8955c80a
ILT
14786 if test "$ac_cv_func_strerror_r" = yes; then
14787 HAVE_STRERROR_R_TRUE=
14788 HAVE_STRERROR_R_FALSE='#'
14789else
14790 HAVE_STRERROR_R_TRUE='#'
14791 HAVE_STRERROR_R_FALSE=
14792fi
14793
0b3189e7
ILT
14794 if test "$ac_cv_func_wait4" = yes; then
14795 HAVE_WAIT4_TRUE=
14796 HAVE_WAIT4_FALSE='#'
14797else
14798 HAVE_WAIT4_TRUE='#'
14799 HAVE_WAIT4_FALSE=
14800fi
14801
7a938933 14802
6b05fadd 14803for ac_func in accept4 dup3 epoll_create1 faccessat fallocate fchmodat fchownat futimesat getxattr inotify_add_watch inotify_init inotify_init1 inotify_rm_watch listxattr mkdirat mknodat open64 openat pipe2 removexattr renameat setxattr sync_file_range splice tee unlinkat unshare utimensat
e02ed81e
ILT
14804do :
14805 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14806ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14807eval as_val=\$$as_ac_var
14808 if test "x$as_val" = x""yes; then :
14809 cat >>confdefs.h <<_ACEOF
14810#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14811_ACEOF
14812
14813fi
14814done
14815
5d46bf05
ILT
14816ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14817if test "x$ac_cv_type_off_t" = x""yes; then :
14818
14819else
14820
14821cat >>confdefs.h <<_ACEOF
14822#define off_t long int
14823_ACEOF
14824
14825fi
14826
e02ed81e
ILT
14827ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
14828if test "x$ac_cv_type_loff_t" = x""yes; then :
14829
14830cat >>confdefs.h <<_ACEOF
14831#define HAVE_LOFF_T 1
14832_ACEOF
14833
14834
14835fi
14836
14837
324612b3
ILT
14838LIBS_hold="$LIBS"
14839LIBS="$LIBS -lm"
14840for ac_func in cosl expl logl sinl tanl acosl asinl atanl atan2l expm1l ldexpl log10l log1pl
14841do :
14842 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14843ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14844eval as_val=\$$as_ac_var
14845 if test "x$as_val" = x""yes; then :
14846 cat >>confdefs.h <<_ACEOF
14847#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14848_ACEOF
14849
14850fi
14851done
14852
14853LIBS="$LIBS_hold"
14854
08ee945e
ILT
14855CFLAGS_hold="$CFLAGS"
14856CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14857LIBS_hold="$LIBS"
14858LIBS="$LIBS $PTHREAD_LIBS"
14859for ac_func in sem_timedwait
14860do :
14861 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
14862if test "x$ac_cv_func_sem_timedwait" = x""yes; then :
14863 cat >>confdefs.h <<_ACEOF
14864#define HAVE_SEM_TIMEDWAIT 1
14865_ACEOF
14866
14867fi
14868done
14869
14870CFLAGS="$CFLAGS_hold"
14871LIBS="$LIBS_hold"
14872
d2b480bc
ILT
14873LIBS_hold="$LIBS"
14874LIBS="$LIBS $MATH_LIBS"
14875for ac_func in matherr
14876do :
14877 ac_fn_c_check_func "$LINENO" "matherr" "ac_cv_func_matherr"
14878if test "x$ac_cv_func_matherr" = x""yes; then :
14879 cat >>confdefs.h <<_ACEOF
14880#define HAVE_MATHERR 1
14881_ACEOF
14882
14883fi
14884done
14885
14886LIBS="$LIBS_hold"
14887
a7c48c8e
ILT
14888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
14889$as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
14890if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
14891 $as_echo_n "(cached) " >&6
14892else
14893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14894/* end confdefs.h. */
14895
14896typedef unsigned int uint32 __attribute__ ((mode (SI)));
14897uint32 i;
14898int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14899
14900_ACEOF
14901if ac_fn_c_try_link "$LINENO"; then :
14902 libgo_cv_func___sync_bool_compare_and_swap_4=yes
14903else
14904 libgo_cv_func___sync_bool_compare_and_swap_4=no
14905fi
14906rm -f core conftest.err conftest.$ac_objext \
14907 conftest$ac_exeext conftest.$ac_ext
14908fi
14909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
14910$as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
14911if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
932e3237
ILT
14912
14913$as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
a7c48c8e
ILT
14914
14915fi
14916
12e3c396
ILT
14917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_8" >&5
14918$as_echo_n "checking for __sync_bool_compare_and_swap_8... " >&6; }
14919if test "${libgo_cv_func___sync_bool_compare_and_swap_8+set}" = set; then :
14920 $as_echo_n "(cached) " >&6
14921else
14922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14923/* end confdefs.h. */
14924
14925typedef unsigned int uint64 __attribute__ ((mode (DI)));
14926uint64 i;
14927int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14928
14929_ACEOF
14930if ac_fn_c_try_link "$LINENO"; then :
14931 libgo_cv_func___sync_bool_compare_and_swap_8=yes
14932else
14933 libgo_cv_func___sync_bool_compare_and_swap_8=no
14934fi
14935rm -f core conftest.err conftest.$ac_objext \
14936 conftest$ac_exeext conftest.$ac_ext
14937fi
14938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_8" >&5
14939$as_echo "$libgo_cv_func___sync_bool_compare_and_swap_8" >&6; }
14940if test "$libgo_cv_func___sync_bool_compare_and_swap_8" = "yes"; then
14941
14942$as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_8 1" >>confdefs.h
14943
14944fi
14945
084996f1
ILT
14946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
14947$as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
14948if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
14949 $as_echo_n "(cached) " >&6
14950else
14951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14952/* end confdefs.h. */
14953
14954typedef unsigned int uint32 __attribute__ ((mode (SI)));
14955uint32 i;
14956int main() { return __sync_fetch_and_add (&i, 1); }
14957
14958_ACEOF
14959if ac_fn_c_try_link "$LINENO"; then :
14960 libgo_cv_func___sync_fetch_and_add_4=yes
14961else
14962 libgo_cv_func___sync_fetch_and_add_4=no
14963fi
14964rm -f core conftest.err conftest.$ac_objext \
14965 conftest$ac_exeext conftest.$ac_ext
14966fi
14967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
14968$as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
14969if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
14970
14971$as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
14972
14973fi
14974
12e3c396
ILT
14975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_add_and_fetch_8" >&5
14976$as_echo_n "checking for __sync_add_and_fetch_8... " >&6; }
14977if test "${libgo_cv_func___sync_add_and_fetch_8+set}" = set; then :
14978 $as_echo_n "(cached) " >&6
14979else
14980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14981/* end confdefs.h. */
14982
14983typedef unsigned int uint64 __attribute__ ((mode (DI)));
14984uint64 i;
14985int main() { return __sync_add_and_fetch (&i, 1); }
14986
14987_ACEOF
14988if ac_fn_c_try_link "$LINENO"; then :
14989 libgo_cv_func___sync_add_and_fetch_8=yes
14990else
14991 libgo_cv_func___sync_add_and_fetch_8=no
14992fi
14993rm -f core conftest.err conftest.$ac_objext \
14994 conftest$ac_exeext conftest.$ac_ext
14995fi
14996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_add_and_fetch_8" >&5
14997$as_echo "$libgo_cv_func___sync_add_and_fetch_8" >&6; }
14998if test "$libgo_cv_func___sync_add_and_fetch_8" = "yes"; then
14999
15000$as_echo "#define HAVE_SYNC_ADD_AND_FETCH_8 1" >>confdefs.h
15001
15002fi
15003
7a938933
ILT
15004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
15005$as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
f2ee78b8 15006if test "${libgo_cv_c_stringops+set}" = set; then :
7a938933
ILT
15007 $as_echo_n "(cached) " >&6
15008else
15009 CFLAGS_hold=$CFLAGS
15010CFLAGS="$CFLAGS -minline-all-stringops"
15011cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15012/* end confdefs.h. */
15013int i;
15014_ACEOF
15015if ac_fn_c_try_compile "$LINENO"; then :
f2ee78b8 15016 libgo_cv_c_stringops=yes
7a938933 15017else
f2ee78b8 15018 libgo_cv_c_stringops=no
7a938933
ILT
15019fi
15020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15021CFLAGS=$CFLAGS_hold
15022fi
f2ee78b8
ILT
15023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
15024$as_echo "$libgo_cv_c_stringops" >&6; }
7a938933 15025STRINGOPS_FLAG=
f2ee78b8 15026if test "$libgo_cv_c_stringops" = yes; then
7a938933
ILT
15027 STRINGOPS_FLAG=-minline-all-stringops
15028fi
15029
15030
9d465faf
ILT
15031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5
15032$as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; }
15033if test "${libgo_cv_c_fancymath+set}" = set; then :
15034 $as_echo_n "(cached) " >&6
15035else
15036 CFLAGS_hold=$CFLAGS
15037CFLAGS="$CFLAGS -mfancy-math-387"
15038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15039/* end confdefs.h. */
15040int i;
15041_ACEOF
15042if ac_fn_c_try_compile "$LINENO"; then :
15043 libgo_cv_c_fancymath=yes
15044else
15045 libgo_cv_c_fancymath=no
15046fi
15047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15048CFLAGS=$CFLAGS_hold
15049fi
15050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5
15051$as_echo "$libgo_cv_c_fancymath" >&6; }
15052MATH_FLAG=
15053if test "$libgo_cv_c_fancymath" = yes; then
15054 MATH_FLAG="-mfancy-math-387 -funsafe-math-optimizations"
33a9145b
ILT
15055else
15056 MATH_FLAG="-ffp-contract=off"
9d465faf
ILT
15057fi
15058
15059
7a938933
ILT
15060CFLAGS_hold=$CFLAGS
15061CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
15062ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
15063if test "x$ac_cv_type_off64_t" = x""yes; then :
15064
15065cat >>confdefs.h <<_ACEOF
15066#define HAVE_OFF64_T 1
15067_ACEOF
15068
15069
15070fi
15071
15072CFLAGS=$CFLAGS_hold
15073
207c35fa
ILT
15074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
15075$as_echo_n "checking epoll_event size... " >&6; }
15076if test "${libgo_cv_c_epoll_event_size+set}" = set; then :
15077 $as_echo_n "(cached) " >&6
15078else
15079 if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then :
15080
15081else
15082 libgo_cv_c_epoll_event_size=0
15083fi
15084
15085fi
15086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
15087$as_echo "$libgo_cv_c_epoll_event_size" >&6; }
15088SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size}
15089
15090
15091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
15092$as_echo_n "checking epoll_event data.fd offset... " >&6; }
15093if test "${libgo_cv_c_epoll_event_fd_offset+set}" = set; then :
15094 $as_echo_n "(cached) " >&6
15095else
15096 if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h>
15097#include <sys/epoll.h>"; then :
15098
15099else
15100 libgo_cv_c_epoll_event_fd_offset=0
15101fi
15102
15103fi
15104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
15105$as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
15106STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset}
15107
15108
476013d6
ILT
15109cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15110/* end confdefs.h. */
15111#include <sys/stat.h>
15112
15113_ACEOF
15114if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15115 $EGREP "timespec_t.*st_atim" >/dev/null 2>&1; then :
15116 have_stat_timespec=yes
15117else
15118 have_stat_timespec=no
15119fi
15120rm -f conftest*
15121
15122 if test $have_stat_timespec = yes; then
15123 HAVE_STAT_TIMESPEC_TRUE=
15124 HAVE_STAT_TIMESPEC_FALSE='#'
15125else
15126 HAVE_STAT_TIMESPEC_TRUE='#'
15127 HAVE_STAT_TIMESPEC_FALSE=
15128fi
15129
15130
d2b480bc
ILT
15131ac_fn_c_check_type "$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include <math.h>
15132"
15133if test "x$ac_cv_type_struct_exception" = x""yes; then :
15134 libgo_has_struct_exception=yes
15135else
15136 libgo_has_struct_exception=no
15137fi
15138
15139if test "$libgo_has_struct_exception" = "yes"; then
15140
15141$as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
15142
15143fi
15144
7f57843f
ILT
15145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5
15146$as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; }
15147if test "${libgo_cv_lib_setcontext_clobbers_tls+set}" = set; then :
15148 $as_echo_n "(cached) " >&6
15149else
e6c5817d
ILT
15150 CFLAGS_hold="$CFLAGS"
15151CFLAGS="$PTHREAD_CFLAGS"
15152LIBS_hold="$LIBS"
7f57843f 15153LIBS="$LIBS $PTHREAD_LIBS"
e6c5817d
ILT
15154# The cast to long int works around a bug in the HP C Compiler
15155# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15156# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15157# This bug is HP SR number 8606223364.
15158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15159$as_echo_n "checking size of void *... " >&6; }
15160if test "${ac_cv_sizeof_void_p+set}" = set; then :
15161 $as_echo_n "(cached) " >&6
15162else
15163 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15164
15165else
15166 if test "$ac_cv_type_void_p" = yes; then
15167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15168$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15169{ as_fn_set_status 77
15170as_fn_error "cannot compute sizeof (void *)
15171See \`config.log' for more details." "$LINENO" 5; }; }
15172 else
15173 ac_cv_sizeof_void_p=0
15174 fi
15175fi
15176
15177fi
15178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15179$as_echo "$ac_cv_sizeof_void_p" >&6; }
15180
15181
15182
15183cat >>confdefs.h <<_ACEOF
15184#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15185_ACEOF
15186
15187
15188as_fn_arith $ac_cv_sizeof_void_p \* 8 && ptr_type_size=$as_val
7f57843f 15189if test "$cross_compiling" = yes; then :
e6c5817d
ILT
15190 case "$target:$ptr_type_size" in
15191 i?86-*-solaris2.1[01]:64 | x86_64*-*-solaris2.1[01]:64)
15192 libgo_cv_lib_setcontext_clobbers_tls=yes ;;
15193 *)
15194 libgo_cv_lib_setcontext_clobbers_tls=no ;;
7f57843f
ILT
15195 esac
15196
15197else
15198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15199/* end confdefs.h. */
15200
15201#include <pthread.h>
15202#include <stdlib.h>
15203#include <ucontext.h>
15204#include <unistd.h>
15205
15206__thread int tls;
15207
15208static char stack[10 * 1024 * 1024];
15209static ucontext_t c;
15210
15211/* Called via makecontext/setcontext. */
15212
15213static void
15214cfn (void)
15215{
15216 exit (tls);
15217}
15218
15219/* Called via pthread_create. */
15220
15221static void *
15222tfn (void *dummy)
15223{
15224 /* The thread should still see this value after calling
15225 setcontext. */
15226 tls = 0;
15227
15228 setcontext (&c);
15229
15230 /* The call to setcontext should not return. */
15231 abort ();
15232}
15233
15234int
15235main ()
15236{
15237 pthread_t tid;
15238
15239 /* The thread should not see this value. */
15240 tls = 1;
15241
15242 if (getcontext (&c) < 0)
15243 abort ();
15244
15245 c.uc_stack.ss_sp = stack;
ca59d219
ILT
15246#ifdef MAKECONTEXT_STACK_TOP
15247 c.uc_stack.ss_sp += sizeof stack;
15248#endif
7f57843f
ILT
15249 c.uc_stack.ss_flags = 0;
15250 c.uc_stack.ss_size = sizeof stack;
15251 c.uc_link = NULL;
15252 makecontext (&c, cfn, 0);
15253
15254 if (pthread_create (&tid, NULL, tfn, NULL) != 0)
15255 abort ();
15256
15257 if (pthread_join (tid, NULL) != 0)
15258 abort ();
15259
15260 /* The thread should have called exit. */
15261 abort ();
15262}
15263
15264_ACEOF
15265if ac_fn_c_try_run "$LINENO"; then :
15266 libgo_cv_lib_setcontext_clobbers_tls=no
15267else
15268 libgo_cv_lib_setcontext_clobbers_tls=yes
15269fi
15270rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15271 conftest.$ac_objext conftest.beam conftest.$ac_ext
15272fi
15273
e6c5817d 15274CFLAGS="$CFLAGS_hold"
7f57843f
ILT
15275LIBS="$LIBS_hold"
15276
15277fi
15278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5
15279$as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; }
15280if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
15281
15282$as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h
15283
15284fi
15285
cc1a9ac8
ILT
15286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
15287$as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
15288if test "${libgo_cv_ro_eh_frame+set}" = set; then :
15289 $as_echo_n "(cached) " >&6
15290else
15291
15292libgo_cv_ro_eh_frame=no
15293echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
15294if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
15295 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
15296 libgo_cv_ro_eh_frame=yes
15297 elif grep '.section.*eh_frame.*#alloc' conftest.c \
15298 | grep -v '#write' > /dev/null; then
15299 libgo_cv_ro_eh_frame=yes
15300 fi
15301fi
15302rm -f conftest.*
15303
15304fi
15305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ro_eh_frame" >&5
15306$as_echo "$libgo_cv_ro_eh_frame" >&6; }
15307if test "x$libgo_cv_ro_eh_frame" = xyes; then
15308
15309$as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
15310
15311else
15312
15313$as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
15314
15315fi
15316
a819231d
ILT
15317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Qunused-arguments" >&5
15318$as_echo_n "checking if compiler supports -Qunused-arguments... " >&6; }
15319if test "${libgo_cv_c_unused_arguments+set}" = set; then :
15320 $as_echo_n "(cached) " >&6
15321else
15322 CFLAGS_hold=$CFLAGS
15323CFLAGS="$CFLAGS -Qunused-arguments"
15324cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15325/* end confdefs.h. */
15326int i;
15327_ACEOF
15328if ac_fn_c_try_compile "$LINENO"; then :
15329 libgo_cv_c_unused_arguments=yes
15330else
15331 libgo_cv_c_unused_arguments=no
15332fi
15333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15334CFLAGS=$CFLAGS_hold
15335fi
15336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_unused_arguments" >&5
15337$as_echo "$libgo_cv_c_unused_arguments" >&6; }
15338
cc1a9ac8
ILT
15339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports GNU comdat group syntax" >&5
15340$as_echo_n "checking if assembler supports GNU comdat group syntax... " >&6; }
15341if test "${libgo_cv_as_comdat_gnu+set}" = set; then :
15342 $as_echo_n "(cached) " >&6
15343else
15344
15345echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
a819231d
ILT
15346CFLAGS_hold=$CFLAGS
15347if test "$libgo_cv_c_unused_arguments" = yes; then
15348 CFLAGS="$CFLAGS -Qunused-arguments"
15349fi
cc1a9ac8
ILT
15350if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
15351 libgo_cv_as_comdat_gnu=yes
15352else
15353 libgo_cv_as_comdat_gnu=no
15354fi
a819231d 15355CFLAGS=$CFLAGS_hold
cc1a9ac8
ILT
15356
15357fi
15358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_comdat_gnu" >&5
15359$as_echo "$libgo_cv_as_comdat_gnu" >&6; }
15360if test "x$libgo_cv_as_comdat_gnu" = xyes; then
15361
15362$as_echo "#define HAVE_AS_COMDAT_GAS 1" >>confdefs.h
15363
15364fi
15365
15366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15367$as_echo_n "checking assembler supports pc related relocs... " >&6; }
15368if test "${libgo_cv_as_x86_pcrel+set}" = set; then :
15369 $as_echo_n "(cached) " >&6
15370else
15371
15372libgo_cv_as_x86_pcrel=yes
15373echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
a819231d
ILT
15374CFLAGS_hold=$CFLAGS
15375if test "$libgo_cv_c_unused_arguments" = yes; then
15376 CFLAGS="$CFLAGS -Qunused-arguments"
15377fi
cc1a9ac8
ILT
15378if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
15379 libgo_cv_as_x86_pcrel=no
15380fi
a819231d 15381CFLAGS=$CFLAGS_hold
cc1a9ac8
ILT
15382
15383fi
15384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_pcrel" >&5
15385$as_echo "$libgo_cv_as_x86_pcrel" >&6; }
15386if test "x$libgo_cv_as_x86_pcrel" = xyes; then
15387
15388$as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
15389
15390fi
15391
15392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
15393$as_echo_n "checking assembler supports unwind section type... " >&6; }
15394if test "${libgo_cv_as_x86_64_unwind_section_type+set}" = set; then :
15395 $as_echo_n "(cached) " >&6
15396else
15397
15398libgo_cv_as_x86_64_unwind_section_type=yes
15399echo '.section .eh_frame,"a",@unwind' > conftest.s
a819231d
ILT
15400CFLAGS_hold=$CFLAGS
15401if test "$libgo_cv_c_unused_arguments" = yes; then
15402 CFLAGS="$CFLAGS -Qunused-arguments"
15403fi
cc1a9ac8
ILT
15404if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
15405 libgo_cv_as_x86_64_unwind_section_type=no
15406fi
a819231d 15407CFLAGS=$CFLAGS_hold
cc1a9ac8
ILT
15408
15409fi
15410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_64_unwind_section_type" >&5
15411$as_echo "$libgo_cv_as_x86_64_unwind_section_type" >&6; }
15412if test "x$libgo_cv_as_x86_64_unwind_section_type" = xyes; then
15413
15414$as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
15415
15416fi
15417
7a938933
ILT
15418cat >confcache <<\_ACEOF
15419# This file is a shell script that caches the results of configure
15420# tests run on this system so they can be shared between configure
15421# scripts and configure runs, see configure's option --config-cache.
15422# It is not useful on other systems. If it contains results you don't
15423# want to keep, you may remove or edit it.
15424#
15425# config.status only pays attention to the cache file if you give it
15426# the --recheck option to rerun configure.
15427#
15428# `ac_cv_env_foo' variables (set or unset) will be overridden when
15429# loading this file, other *unset* `ac_cv_foo' will be assigned the
15430# following values.
15431
15432_ACEOF
15433
15434# The following way of writing the cache mishandles newlines in values,
15435# but we know of no workaround that is simple, portable, and efficient.
15436# So, we kill variables containing newlines.
15437# Ultrix sh set writes to stderr and can't be redirected directly,
15438# and sets the high bit in the cache file unless we assign to the vars.
15439(
15440 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15441 eval ac_val=\$$ac_var
15442 case $ac_val in #(
15443 *${as_nl}*)
15444 case $ac_var in #(
15445 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15446$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15447 esac
15448 case $ac_var in #(
15449 _ | IFS | as_nl) ;; #(
15450 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15451 *) { eval $ac_var=; unset $ac_var;} ;;
15452 esac ;;
15453 esac
15454 done
15455
15456 (set) 2>&1 |
15457 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15458 *${as_nl}ac_space=\ *)
15459 # `set' does not quote correctly, so add quotes: double-quote
15460 # substitution turns \\\\ into \\, and sed turns \\ into \.
15461 sed -n \
15462 "s/'/'\\\\''/g;
15463 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15464 ;; #(
15465 *)
15466 # `set' quotes correctly as required by POSIX, so do not add quotes.
15467 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15468 ;;
15469 esac |
15470 sort
15471) |
15472 sed '
15473 /^ac_cv_env_/b end
15474 t clear
15475 :clear
15476 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15477 t end
15478 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15479 :end' >>confcache
15480if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15481 if test -w "$cache_file"; then
15482 test "x$cache_file" != "x/dev/null" &&
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15484$as_echo "$as_me: updating cache $cache_file" >&6;}
15485 cat confcache >$cache_file
15486 else
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15488$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15489 fi
15490fi
15491rm -f confcache
15492
15493if test ${multilib} = yes; then
15494 multilib_arg="--enable-multilib"
15495else
15496 multilib_arg=
15497fi
15498
15499ac_config_files="$ac_config_files Makefile testsuite/Makefile"
15500
15501
15502ac_config_commands="$ac_config_commands default"
15503
15504
15505cat >confcache <<\_ACEOF
15506# This file is a shell script that caches the results of configure
15507# tests run on this system so they can be shared between configure
15508# scripts and configure runs, see configure's option --config-cache.
15509# It is not useful on other systems. If it contains results you don't
15510# want to keep, you may remove or edit it.
15511#
15512# config.status only pays attention to the cache file if you give it
15513# the --recheck option to rerun configure.
15514#
15515# `ac_cv_env_foo' variables (set or unset) will be overridden when
15516# loading this file, other *unset* `ac_cv_foo' will be assigned the
15517# following values.
15518
15519_ACEOF
15520
15521# The following way of writing the cache mishandles newlines in values,
15522# but we know of no workaround that is simple, portable, and efficient.
15523# So, we kill variables containing newlines.
15524# Ultrix sh set writes to stderr and can't be redirected directly,
15525# and sets the high bit in the cache file unless we assign to the vars.
15526(
15527 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15528 eval ac_val=\$$ac_var
15529 case $ac_val in #(
15530 *${as_nl}*)
15531 case $ac_var in #(
15532 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15533$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15534 esac
15535 case $ac_var in #(
15536 _ | IFS | as_nl) ;; #(
15537 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15538 *) { eval $ac_var=; unset $ac_var;} ;;
15539 esac ;;
15540 esac
15541 done
15542
15543 (set) 2>&1 |
15544 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15545 *${as_nl}ac_space=\ *)
15546 # `set' does not quote correctly, so add quotes: double-quote
15547 # substitution turns \\\\ into \\, and sed turns \\ into \.
15548 sed -n \
15549 "s/'/'\\\\''/g;
15550 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15551 ;; #(
15552 *)
15553 # `set' quotes correctly as required by POSIX, so do not add quotes.
15554 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15555 ;;
15556 esac |
15557 sort
15558) |
15559 sed '
15560 /^ac_cv_env_/b end
15561 t clear
15562 :clear
15563 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15564 t end
15565 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15566 :end' >>confcache
15567if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15568 if test -w "$cache_file"; then
15569 test "x$cache_file" != "x/dev/null" &&
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15571$as_echo "$as_me: updating cache $cache_file" >&6;}
15572 cat confcache >$cache_file
15573 else
15574 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15575$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15576 fi
15577fi
15578rm -f confcache
15579
15580test "x$prefix" = xNONE && prefix=$ac_default_prefix
15581# Let make expand exec_prefix.
15582test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15583
15584DEFS=-DHAVE_CONFIG_H
15585
15586ac_libobjs=
15587ac_ltlibobjs=
15588for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15589 # 1. Remove the extension, and $U if already installed.
15590 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15591 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15592 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15593 # will be set to the directory where LIBOBJS objects are built.
15594 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15595 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15596done
15597LIBOBJS=$ac_libobjs
15598
15599LTLIBOBJS=$ac_ltlibobjs
15600
15601
15602 if test -n "$EXEEXT"; then
15603 am__EXEEXT_TRUE=
15604 am__EXEEXT_FALSE='#'
15605else
15606 am__EXEEXT_TRUE='#'
15607 am__EXEEXT_FALSE=
15608fi
15609
15610if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15611 as_fn_error "conditional \"AMDEP\" was never defined.
15612Usually this means the macro was only invoked conditionally." "$LINENO" 5
15613fi
15614if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15615 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15616Usually this means the macro was only invoked conditionally." "$LINENO" 5
15617fi
15618if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15619 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15620Usually this means the macro was only invoked conditionally." "$LINENO" 5
15621fi
15622if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
15623 as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
15624Usually this means the macro was only invoked conditionally." "$LINENO" 5
15625fi
15626if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
15627 as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
15628Usually this means the macro was only invoked conditionally." "$LINENO" 5
654d2ec0
ILT
15629fi
15630if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
15631 as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined.
15632Usually this means the macro was only invoked conditionally." "$LINENO" 5
7a938933
ILT
15633fi
15634if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
15635 as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
15636Usually this means the macro was only invoked conditionally." "$LINENO" 5
15637fi
df4aa89a
ILT
15638if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
15639 as_fn_error "conditional \"LIBGO_IS_NETBSD\" was never defined.
15640Usually this means the macro was only invoked conditionally." "$LINENO" 5
15641fi
4ccad563
ILT
15642if test -z "${LIBGO_IS_OPENBSD_TRUE}" && test -z "${LIBGO_IS_OPENBSD_FALSE}"; then
15643 as_fn_error "conditional \"LIBGO_IS_OPENBSD\" was never defined.
15644Usually this means the macro was only invoked conditionally." "$LINENO" 5
15645fi
f038dae6
ILT
15646if test -z "${LIBGO_IS_DRAGONFLY_TRUE}" && test -z "${LIBGO_IS_DRAGONFLY_FALSE}"; then
15647 as_fn_error "conditional \"LIBGO_IS_DRAGONFLY\" was never defined.
15648Usually this means the macro was only invoked conditionally." "$LINENO" 5
15649fi
7a938933
ILT
15650if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
15651 as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
15652Usually this means the macro was only invoked conditionally." "$LINENO" 5
15653fi
f2ee78b8
ILT
15654if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
15655 as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
7a938933
ILT
15656Usually this means the macro was only invoked conditionally." "$LINENO" 5
15657fi
f2ee78b8
ILT
15658if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
15659 as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
7a938933
ILT
15660Usually this means the macro was only invoked conditionally." "$LINENO" 5
15661fi
e59b9171
ILT
15662if test -z "${LIBGO_IS_ALPHA_TRUE}" && test -z "${LIBGO_IS_ALPHA_FALSE}"; then
15663 as_fn_error "conditional \"LIBGO_IS_ALPHA\" was never defined.
15664Usually this means the macro was only invoked conditionally." "$LINENO" 5
15665fi
7a938933
ILT
15666if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
15667 as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
15668Usually this means the macro was only invoked conditionally." "$LINENO" 5
15669fi
71d0d50a
ILT
15670if test -z "${LIBGO_IS_ARM64_TRUE}" && test -z "${LIBGO_IS_ARM64_FALSE}"; then
15671 as_fn_error "conditional \"LIBGO_IS_ARM64\" was never defined.
15672Usually this means the macro was only invoked conditionally." "$LINENO" 5
15673fi
ca11cc98
ILT
15674if test -z "${LIBGO_IS_M68K_TRUE}" && test -z "${LIBGO_IS_M68K_FALSE}"; then
15675 as_fn_error "conditional \"LIBGO_IS_M68K\" was never defined.
15676Usually this means the macro was only invoked conditionally." "$LINENO" 5
15677fi
15678if test -z "${LIBGO_IS_MIPS_TRUE}" && test -z "${LIBGO_IS_MIPS_FALSE}"; then
15679 as_fn_error "conditional \"LIBGO_IS_MIPS\" was never defined.
15680Usually this means the macro was only invoked conditionally." "$LINENO" 5
15681fi
85a09210
ILT
15682if test -z "${LIBGO_IS_MIPSO32_TRUE}" && test -z "${LIBGO_IS_MIPSO32_FALSE}"; then
15683 as_fn_error "conditional \"LIBGO_IS_MIPSO32\" was never defined.
15684Usually this means the macro was only invoked conditionally." "$LINENO" 5
15685fi
15686if test -z "${LIBGO_IS_MIPSN32_TRUE}" && test -z "${LIBGO_IS_MIPSN32_FALSE}"; then
15687 as_fn_error "conditional \"LIBGO_IS_MIPSN32\" was never defined.
15688Usually this means the macro was only invoked conditionally." "$LINENO" 5
15689fi
15690if test -z "${LIBGO_IS_MIPSN64_TRUE}" && test -z "${LIBGO_IS_MIPSN64_FALSE}"; then
15691 as_fn_error "conditional \"LIBGO_IS_MIPSN64\" was never defined.
15692Usually this means the macro was only invoked conditionally." "$LINENO" 5
15693fi
15694if test -z "${LIBGO_IS_MIPSO64_TRUE}" && test -z "${LIBGO_IS_MIPSO64_FALSE}"; then
15695 as_fn_error "conditional \"LIBGO_IS_MIPSO64\" was never defined.
ca11cc98
ILT
15696Usually this means the macro was only invoked conditionally." "$LINENO" 5
15697fi
15698if test -z "${LIBGO_IS_PPC_TRUE}" && test -z "${LIBGO_IS_PPC_FALSE}"; then
15699 as_fn_error "conditional \"LIBGO_IS_PPC\" was never defined.
15700Usually this means the macro was only invoked conditionally." "$LINENO" 5
15701fi
15702if test -z "${LIBGO_IS_PPC64_TRUE}" && test -z "${LIBGO_IS_PPC64_FALSE}"; then
15703 as_fn_error "conditional \"LIBGO_IS_PPC64\" was never defined.
15704Usually this means the macro was only invoked conditionally." "$LINENO" 5
15705fi
6f7ccafa
ILT
15706if test -z "${LIBGO_IS_PPC64LE_TRUE}" && test -z "${LIBGO_IS_PPC64LE_FALSE}"; then
15707 as_fn_error "conditional \"LIBGO_IS_PPC64LE\" was never defined.
15708Usually this means the macro was only invoked conditionally." "$LINENO" 5
15709fi
1fec5f52
ILT
15710if test -z "${LIBGO_IS_S390_TRUE}" && test -z "${LIBGO_IS_S390_FALSE}"; then
15711 as_fn_error "conditional \"LIBGO_IS_S390\" was never defined.
15712Usually this means the macro was only invoked conditionally." "$LINENO" 5
15713fi
15714if test -z "${LIBGO_IS_S390X_TRUE}" && test -z "${LIBGO_IS_S390X_FALSE}"; then
15715 as_fn_error "conditional \"LIBGO_IS_S390X\" was never defined.
15716Usually this means the macro was only invoked conditionally." "$LINENO" 5
15717fi
f2ee78b8
ILT
15718if test -z "${LIBGO_IS_SPARC_TRUE}" && test -z "${LIBGO_IS_SPARC_FALSE}"; then
15719 as_fn_error "conditional \"LIBGO_IS_SPARC\" was never defined.
15720Usually this means the macro was only invoked conditionally." "$LINENO" 5
15721fi
545d1aa1
ILT
15722if test -z "${LIBGO_IS_SPARC64_TRUE}" && test -z "${LIBGO_IS_SPARC64_FALSE}"; then
15723 as_fn_error "conditional \"LIBGO_IS_SPARC64\" was never defined.
f2ee78b8
ILT
15724Usually this means the macro was only invoked conditionally." "$LINENO" 5
15725fi
15726if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
15727 as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
15728Usually this means the macro was only invoked conditionally." "$LINENO" 5
15729fi
7a938933
ILT
15730if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
15731 as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
15732Usually this means the macro was only invoked conditionally." "$LINENO" 5
4c46b5f0
ILT
15733fi
15734if test -z "${GOC_IS_LLGO_TRUE}" && test -z "${GOC_IS_LLGO_FALSE}"; then
15735 as_fn_error "conditional \"GOC_IS_LLGO\" was never defined.
15736Usually this means the macro was only invoked conditionally." "$LINENO" 5
7a938933
ILT
15737fi
15738
15739if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
15740 as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
15741Usually this means the macro was only invoked conditionally." "$LINENO" 5
15742fi
8955c80a
ILT
15743if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
15744 as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined.
15745Usually this means the macro was only invoked conditionally." "$LINENO" 5
15746fi
0b3189e7
ILT
15747if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
15748 as_fn_error "conditional \"HAVE_WAIT4\" was never defined.
15749Usually this means the macro was only invoked conditionally." "$LINENO" 5
15750fi
476013d6
ILT
15751if test -z "${HAVE_STAT_TIMESPEC_TRUE}" && test -z "${HAVE_STAT_TIMESPEC_FALSE}"; then
15752 as_fn_error "conditional \"HAVE_STAT_TIMESPEC\" was never defined.
15753Usually this means the macro was only invoked conditionally." "$LINENO" 5
15754fi
7a938933
ILT
15755
15756: ${CONFIG_STATUS=./config.status}
15757ac_write_fail=0
15758ac_clean_files_save=$ac_clean_files
15759ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15760{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15761$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15762as_write_fail=0
15763cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15764#! $SHELL
15765# Generated by $as_me.
15766# Run this file to recreate the current configuration.
15767# Compiler output produced by configure, useful for debugging
15768# configure, is in config.log if it exists.
15769
15770debug=false
15771ac_cs_recheck=false
15772ac_cs_silent=false
15773
15774SHELL=\${CONFIG_SHELL-$SHELL}
15775export SHELL
15776_ASEOF
15777cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15778## -------------------- ##
15779## M4sh Initialization. ##
15780## -------------------- ##
15781
15782# Be more Bourne compatible
15783DUALCASE=1; export DUALCASE # for MKS sh
15784if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15785 emulate sh
15786 NULLCMD=:
15787 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15788 # is contrary to our usage. Disable this feature.
15789 alias -g '${1+"$@"}'='"$@"'
15790 setopt NO_GLOB_SUBST
15791else
15792 case `(set -o) 2>/dev/null` in #(
15793 *posix*) :
15794 set -o posix ;; #(
15795 *) :
15796 ;;
15797esac
15798fi
15799
15800
15801as_nl='
15802'
15803export as_nl
15804# Printing a long string crashes Solaris 7 /usr/bin/printf.
15805as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15806as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15807as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15808# Prefer a ksh shell builtin over an external printf program on Solaris,
15809# but without wasting forks for bash or zsh.
15810if test -z "$BASH_VERSION$ZSH_VERSION" \
15811 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15812 as_echo='print -r --'
15813 as_echo_n='print -rn --'
15814elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15815 as_echo='printf %s\n'
15816 as_echo_n='printf %s'
15817else
15818 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15819 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15820 as_echo_n='/usr/ucb/echo -n'
15821 else
15822 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15823 as_echo_n_body='eval
15824 arg=$1;
15825 case $arg in #(
15826 *"$as_nl"*)
15827 expr "X$arg" : "X\\(.*\\)$as_nl";
15828 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15829 esac;
15830 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15831 '
15832 export as_echo_n_body
15833 as_echo_n='sh -c $as_echo_n_body as_echo'
15834 fi
15835 export as_echo_body
15836 as_echo='sh -c $as_echo_body as_echo'
15837fi
15838
15839# The user is always right.
15840if test "${PATH_SEPARATOR+set}" != set; then
15841 PATH_SEPARATOR=:
15842 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15843 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15844 PATH_SEPARATOR=';'
15845 }
15846fi
15847
15848
15849# IFS
15850# We need space, tab and new line, in precisely that order. Quoting is
15851# there to prevent editors from complaining about space-tab.
15852# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15853# splitting by setting IFS to empty value.)
15854IFS=" "" $as_nl"
15855
15856# Find who we are. Look in the path if we contain no directory separator.
15857case $0 in #((
15858 *[\\/]* ) as_myself=$0 ;;
15859 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15860for as_dir in $PATH
15861do
15862 IFS=$as_save_IFS
15863 test -z "$as_dir" && as_dir=.
15864 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15865 done
15866IFS=$as_save_IFS
15867
15868 ;;
15869esac
15870# We did not find ourselves, most probably we were run as `sh COMMAND'
15871# in which case we are not to be found in the path.
15872if test "x$as_myself" = x; then
15873 as_myself=$0
15874fi
15875if test ! -f "$as_myself"; then
15876 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15877 exit 1
15878fi
15879
15880# Unset variables that we do not need and which cause bugs (e.g. in
15881# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15882# suppresses any "Segmentation fault" message there. '((' could
15883# trigger a bug in pdksh 5.2.14.
15884for as_var in BASH_ENV ENV MAIL MAILPATH
15885do eval test x\${$as_var+set} = xset \
15886 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15887done
15888PS1='$ '
15889PS2='> '
15890PS4='+ '
15891
15892# NLS nuisances.
15893LC_ALL=C
15894export LC_ALL
15895LANGUAGE=C
15896export LANGUAGE
15897
15898# CDPATH.
15899(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15900
15901
15902# as_fn_error ERROR [LINENO LOG_FD]
15903# ---------------------------------
15904# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15905# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15906# script with status $?, using 1 if that was 0.
15907as_fn_error ()
15908{
15909 as_status=$?; test $as_status -eq 0 && as_status=1
15910 if test "$3"; then
15911 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15912 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15913 fi
15914 $as_echo "$as_me: error: $1" >&2
15915 as_fn_exit $as_status
15916} # as_fn_error
15917
15918
15919# as_fn_set_status STATUS
15920# -----------------------
15921# Set $? to STATUS, without forking.
15922as_fn_set_status ()
15923{
15924 return $1
15925} # as_fn_set_status
15926
15927# as_fn_exit STATUS
15928# -----------------
15929# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15930as_fn_exit ()
15931{
15932 set +e
15933 as_fn_set_status $1
15934 exit $1
15935} # as_fn_exit
15936
15937# as_fn_unset VAR
15938# ---------------
15939# Portably unset VAR.
15940as_fn_unset ()
15941{
15942 { eval $1=; unset $1;}
15943}
15944as_unset=as_fn_unset
15945# as_fn_append VAR VALUE
15946# ----------------------
15947# Append the text in VALUE to the end of the definition contained in VAR. Take
15948# advantage of any shell optimizations that allow amortized linear growth over
15949# repeated appends, instead of the typical quadratic growth present in naive
15950# implementations.
15951if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15952 eval 'as_fn_append ()
15953 {
15954 eval $1+=\$2
15955 }'
15956else
15957 as_fn_append ()
15958 {
15959 eval $1=\$$1\$2
15960 }
15961fi # as_fn_append
15962
15963# as_fn_arith ARG...
15964# ------------------
15965# Perform arithmetic evaluation on the ARGs, and store the result in the
15966# global $as_val. Take advantage of shells that can avoid forks. The arguments
15967# must be portable across $(()) and expr.
15968if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15969 eval 'as_fn_arith ()
15970 {
15971 as_val=$(( $* ))
15972 }'
15973else
15974 as_fn_arith ()
15975 {
15976 as_val=`expr "$@" || test $? -eq 1`
15977 }
15978fi # as_fn_arith
15979
15980
15981if expr a : '\(a\)' >/dev/null 2>&1 &&
15982 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15983 as_expr=expr
15984else
15985 as_expr=false
15986fi
15987
15988if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15989 as_basename=basename
15990else
15991 as_basename=false
15992fi
15993
15994if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15995 as_dirname=dirname
15996else
15997 as_dirname=false
15998fi
15999
16000as_me=`$as_basename -- "$0" ||
16001$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16002 X"$0" : 'X\(//\)$' \| \
16003 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16004$as_echo X/"$0" |
16005 sed '/^.*\/\([^/][^/]*\)\/*$/{
16006 s//\1/
16007 q
16008 }
16009 /^X\/\(\/\/\)$/{
16010 s//\1/
16011 q
16012 }
16013 /^X\/\(\/\).*/{
16014 s//\1/
16015 q
16016 }
16017 s/.*/./; q'`
16018
16019# Avoid depending upon Character Ranges.
16020as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16021as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16022as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16023as_cr_digits='0123456789'
16024as_cr_alnum=$as_cr_Letters$as_cr_digits
16025
16026ECHO_C= ECHO_N= ECHO_T=
16027case `echo -n x` in #(((((
16028-n*)
16029 case `echo 'xy\c'` in
16030 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16031 xy) ECHO_C='\c';;
16032 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16033 ECHO_T=' ';;
16034 esac;;
16035*)
16036 ECHO_N='-n';;
16037esac
16038
16039rm -f conf$$ conf$$.exe conf$$.file
16040if test -d conf$$.dir; then
16041 rm -f conf$$.dir/conf$$.file
16042else
16043 rm -f conf$$.dir
16044 mkdir conf$$.dir 2>/dev/null
16045fi
16046if (echo >conf$$.file) 2>/dev/null; then
16047 if ln -s conf$$.file conf$$ 2>/dev/null; then
16048 as_ln_s='ln -s'
16049 # ... but there are two gotchas:
16050 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16051 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16052 # In both cases, we have to default to `cp -p'.
16053 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16054 as_ln_s='cp -p'
16055 elif ln conf$$.file conf$$ 2>/dev/null; then
16056 as_ln_s=ln
16057 else
16058 as_ln_s='cp -p'
16059 fi
16060else
16061 as_ln_s='cp -p'
16062fi
16063rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16064rmdir conf$$.dir 2>/dev/null
16065
16066
16067# as_fn_mkdir_p
16068# -------------
16069# Create "$as_dir" as a directory, including parents if necessary.
16070as_fn_mkdir_p ()
16071{
16072
16073 case $as_dir in #(
16074 -*) as_dir=./$as_dir;;
16075 esac
16076 test -d "$as_dir" || eval $as_mkdir_p || {
16077 as_dirs=
16078 while :; do
16079 case $as_dir in #(
16080 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16081 *) as_qdir=$as_dir;;
16082 esac
16083 as_dirs="'$as_qdir' $as_dirs"
16084 as_dir=`$as_dirname -- "$as_dir" ||
16085$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16086 X"$as_dir" : 'X\(//\)[^/]' \| \
16087 X"$as_dir" : 'X\(//\)$' \| \
16088 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16089$as_echo X"$as_dir" |
16090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16091 s//\1/
16092 q
16093 }
16094 /^X\(\/\/\)[^/].*/{
16095 s//\1/
16096 q
16097 }
16098 /^X\(\/\/\)$/{
16099 s//\1/
16100 q
16101 }
16102 /^X\(\/\).*/{
16103 s//\1/
16104 q
16105 }
16106 s/.*/./; q'`
16107 test -d "$as_dir" && break
16108 done
16109 test -z "$as_dirs" || eval "mkdir $as_dirs"
16110 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16111
16112
16113} # as_fn_mkdir_p
16114if mkdir -p . 2>/dev/null; then
16115 as_mkdir_p='mkdir -p "$as_dir"'
16116else
16117 test -d ./-p && rmdir ./-p
16118 as_mkdir_p=false
16119fi
16120
16121if test -x / >/dev/null 2>&1; then
16122 as_test_x='test -x'
16123else
16124 if ls -dL / >/dev/null 2>&1; then
16125 as_ls_L_option=L
16126 else
16127 as_ls_L_option=
16128 fi
16129 as_test_x='
16130 eval sh -c '\''
16131 if test -d "$1"; then
16132 test -d "$1/.";
16133 else
16134 case $1 in #(
16135 -*)set "./$1";;
16136 esac;
16137 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16138 ???[sx]*):;;*)false;;esac;fi
16139 '\'' sh
16140 '
16141fi
16142as_executable_p=$as_test_x
16143
16144# Sed expression to map a string onto a valid CPP name.
16145as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16146
16147# Sed expression to map a string onto a valid variable name.
16148as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16149
16150
16151exec 6>&1
16152## ----------------------------------- ##
16153## Main body of $CONFIG_STATUS script. ##
16154## ----------------------------------- ##
16155_ASEOF
16156test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16157
16158cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16159# Save the log message, to keep $0 and so on meaningful, and to
16160# report actual input values of CONFIG_FILES etc. instead of their
16161# values after options handling.
16162ac_log="
16163This file was extended by package-unused $as_me version-unused, which was
16164generated by GNU Autoconf 2.64. Invocation command line was
16165
16166 CONFIG_FILES = $CONFIG_FILES
16167 CONFIG_HEADERS = $CONFIG_HEADERS
16168 CONFIG_LINKS = $CONFIG_LINKS
16169 CONFIG_COMMANDS = $CONFIG_COMMANDS
16170 $ $0 $@
16171
16172on `(hostname || uname -n) 2>/dev/null | sed 1q`
16173"
16174
16175_ACEOF
16176
16177case $ac_config_files in *"
16178"*) set x $ac_config_files; shift; ac_config_files=$*;;
16179esac
16180
16181case $ac_config_headers in *"
16182"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16183esac
16184
16185
16186cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16187# Files that config.status was made for.
16188config_files="$ac_config_files"
16189config_headers="$ac_config_headers"
16190config_commands="$ac_config_commands"
16191
16192_ACEOF
16193
16194cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16195ac_cs_usage="\
16196\`$as_me' instantiates files and other configuration actions
16197from templates according to the current configuration. Unless the files
16198and actions are specified as TAGs, all are instantiated by default.
16199
16200Usage: $0 [OPTION]... [TAG]...
16201
16202 -h, --help print this help, then exit
16203 -V, --version print version number and configuration settings, then exit
16204 -q, --quiet, --silent
16205 do not print progress messages
16206 -d, --debug don't remove temporary files
16207 --recheck update $as_me by reconfiguring in the same conditions
16208 --file=FILE[:TEMPLATE]
16209 instantiate the configuration file FILE
16210 --header=FILE[:TEMPLATE]
16211 instantiate the configuration header FILE
16212
16213Configuration files:
16214$config_files
16215
16216Configuration headers:
16217$config_headers
16218
16219Configuration commands:
16220$config_commands
16221
16222Report bugs to the package provider."
16223
16224_ACEOF
16225cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16226ac_cs_version="\\
16227package-unused config.status version-unused
16228configured by $0, generated by GNU Autoconf 2.64,
16229 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16230
16231Copyright (C) 2009 Free Software Foundation, Inc.
16232This config.status script is free software; the Free Software Foundation
16233gives unlimited permission to copy, distribute and modify it."
16234
16235ac_pwd='$ac_pwd'
16236srcdir='$srcdir'
16237INSTALL='$INSTALL'
16238MKDIR_P='$MKDIR_P'
16239AWK='$AWK'
16240test -n "\$AWK" || AWK=awk
16241_ACEOF
16242
16243cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16244# The default lists apply if the user does not specify any file.
16245ac_need_defaults=:
16246while test $# != 0
16247do
16248 case $1 in
16249 --*=*)
16250 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16251 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16252 ac_shift=:
16253 ;;
16254 *)
16255 ac_option=$1
16256 ac_optarg=$2
16257 ac_shift=shift
16258 ;;
16259 esac
16260
16261 case $ac_option in
16262 # Handling of the options.
16263 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16264 ac_cs_recheck=: ;;
16265 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16266 $as_echo "$ac_cs_version"; exit ;;
16267 --debug | --debu | --deb | --de | --d | -d )
16268 debug=: ;;
16269 --file | --fil | --fi | --f )
16270 $ac_shift
16271 case $ac_optarg in
16272 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16273 esac
16274 as_fn_append CONFIG_FILES " '$ac_optarg'"
16275 ac_need_defaults=false;;
16276 --header | --heade | --head | --hea )
16277 $ac_shift
16278 case $ac_optarg in
16279 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16280 esac
16281 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16282 ac_need_defaults=false;;
16283 --he | --h)
16284 # Conflict between --help and --header
16285 as_fn_error "ambiguous option: \`$1'
16286Try \`$0 --help' for more information.";;
16287 --help | --hel | -h )
16288 $as_echo "$ac_cs_usage"; exit ;;
16289 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16290 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16291 ac_cs_silent=: ;;
16292
16293 # This is an error.
16294 -*) as_fn_error "unrecognized option: \`$1'
16295Try \`$0 --help' for more information." ;;
16296
16297 *) as_fn_append ac_config_targets " $1"
16298 ac_need_defaults=false ;;
16299
16300 esac
16301 shift
16302done
16303
16304ac_configure_extra_args=
16305
16306if $ac_cs_silent; then
16307 exec 6>/dev/null
16308 ac_configure_extra_args="$ac_configure_extra_args --silent"
16309fi
16310
16311_ACEOF
16312cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16313if \$ac_cs_recheck; then
16314 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16315 shift
16316 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16317 CONFIG_SHELL='$SHELL'
16318 export CONFIG_SHELL
16319 exec "\$@"
16320fi
16321
16322_ACEOF
16323cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16324exec 5>>config.log
16325{
16326 echo
16327 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16328## Running $as_me. ##
16329_ASBOX
16330 $as_echo "$ac_log"
16331} >&5
16332
16333_ACEOF
16334cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16335#
16336# INIT-COMMANDS
16337#
16338
16339srcdir="$srcdir"
16340host="$host"
16341target="$target"
16342with_multisubdir="$with_multisubdir"
16343with_multisrctop="$with_multisrctop"
16344with_target_subdir="$with_target_subdir"
16345ac_configure_args="${multilib_arg} ${ac_configure_args}"
16346multi_basedir="$multi_basedir"
16347CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16348CC="$CC"
16349CXX="$CXX"
16350GFORTRAN="$GFORTRAN"
16351GCJ="$GCJ"
16352AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16353
16354
16355# The HP-UX ksh and POSIX shell print the target directory to stdout
16356# if CDPATH is set.
16357(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16358
16359sed_quote_subst='$sed_quote_subst'
16360double_quote_subst='$double_quote_subst'
16361delay_variable_subst='$delay_variable_subst'
16362SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16363Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16364GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16365EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16366FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16367SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16368ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16369LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16370macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16371macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16372enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16373enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16374pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16375enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16376host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16377host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16378host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16379build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16380build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16381build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16382NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16383LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16384max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16385ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16386exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16387lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16388lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16389lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16390reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16391reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16392OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16393deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16394file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16395AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16396AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16397STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16398RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16399old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16400old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16401old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16402lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16403CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16404CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16405compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16406GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16407lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16408lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16409lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16410lt_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"`'
16411objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16412MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16413lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16414lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16415lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16416lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16417lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16418need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16419DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16420NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16421LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16422OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16423OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16424libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16425shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16426extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16427archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16428enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16429export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16430whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16431compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16432old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16433old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16434archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16435archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16436module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16437module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16438with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16439allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16440no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16441hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16442hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16443hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16444hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16445hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16446hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16447hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16448hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16449inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16450link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16451fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16452always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16453export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16454exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16455include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16456prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16457file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16458variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16459need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16460need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16461version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16462runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16463shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16464shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16465libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16466library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16467soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16468install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16469postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16470postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16471finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16472finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16473hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16474sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16475sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16476hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16477enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16478enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16479enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16480old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16481striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16482LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
16483reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
16484reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
16485old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16486compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
16487GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
16488lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
16489lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
16490lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
16491lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
16492lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
16493archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
16494enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
16495export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16496whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16497compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
16498old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
16499old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
16500archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16501archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16502module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
16503module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16504with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
16505allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16506no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16507hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16508hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
16509hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
16510hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
16511hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
16512hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
16513hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
16514hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
16515inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
16516link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
16517fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
16518always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
16519export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
16520exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16521include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16522prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
16523file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
16524hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
16525
16526LTCC='$LTCC'
16527LTCFLAGS='$LTCFLAGS'
16528compiler='$compiler_DEFAULT'
16529
16530# A function that is used when there is no print builtin or printf.
16531func_fallback_echo ()
16532{
16533 eval 'cat <<_LTECHO_EOF
16534\$1
16535_LTECHO_EOF'
16536}
16537
16538# Quote evaled strings.
16539for var in SED \
16540GREP \
16541EGREP \
16542FGREP \
16543SHELL \
16544ECHO \
16545LD \
16546NM \
16547LN_S \
16548lt_SP2NL \
16549lt_NL2SP \
16550reload_flag \
16551OBJDUMP \
16552deplibs_check_method \
16553file_magic_cmd \
16554AR \
16555AR_FLAGS \
16556STRIP \
16557RANLIB \
16558CC \
16559CFLAGS \
16560compiler \
16561lt_cv_sys_global_symbol_pipe \
16562lt_cv_sys_global_symbol_to_cdecl \
16563lt_cv_sys_global_symbol_to_c_name_address \
16564lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16565lt_prog_compiler_no_builtin_flag \
16566lt_prog_compiler_wl \
16567lt_prog_compiler_pic \
16568lt_prog_compiler_static \
16569lt_cv_prog_compiler_c_o \
16570need_locks \
16571DSYMUTIL \
16572NMEDIT \
16573LIPO \
16574OTOOL \
16575OTOOL64 \
16576shrext_cmds \
16577export_dynamic_flag_spec \
16578whole_archive_flag_spec \
16579compiler_needs_object \
16580with_gnu_ld \
16581allow_undefined_flag \
16582no_undefined_flag \
16583hardcode_libdir_flag_spec \
16584hardcode_libdir_flag_spec_ld \
16585hardcode_libdir_separator \
16586fix_srcfile_path \
16587exclude_expsyms \
16588include_expsyms \
16589file_list_spec \
16590variables_saved_for_relink \
16591libname_spec \
16592library_names_spec \
16593soname_spec \
16594install_override_mode \
16595finish_eval \
16596old_striplib \
16597striplib \
16598LD_GO \
16599reload_flag_GO \
16600compiler_GO \
16601lt_prog_compiler_no_builtin_flag_GO \
16602lt_prog_compiler_wl_GO \
16603lt_prog_compiler_pic_GO \
16604lt_prog_compiler_static_GO \
16605lt_cv_prog_compiler_c_o_GO \
16606export_dynamic_flag_spec_GO \
16607whole_archive_flag_spec_GO \
16608compiler_needs_object_GO \
16609with_gnu_ld_GO \
16610allow_undefined_flag_GO \
16611no_undefined_flag_GO \
16612hardcode_libdir_flag_spec_GO \
16613hardcode_libdir_flag_spec_ld_GO \
16614hardcode_libdir_separator_GO \
16615fix_srcfile_path_GO \
16616exclude_expsyms_GO \
16617include_expsyms_GO \
16618file_list_spec_GO; do
16619 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16620 *[\\\\\\\`\\"\\\$]*)
16621 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16622 ;;
16623 *)
16624 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16625 ;;
16626 esac
16627done
16628
16629# Double-quote double-evaled strings.
16630for var in reload_cmds \
16631old_postinstall_cmds \
16632old_postuninstall_cmds \
16633old_archive_cmds \
16634extract_expsyms_cmds \
16635old_archive_from_new_cmds \
16636old_archive_from_expsyms_cmds \
16637archive_cmds \
16638archive_expsym_cmds \
16639module_cmds \
16640module_expsym_cmds \
16641export_symbols_cmds \
16642prelink_cmds \
16643postinstall_cmds \
16644postuninstall_cmds \
16645finish_cmds \
16646sys_lib_search_path_spec \
16647sys_lib_dlsearch_path_spec \
16648reload_cmds_GO \
16649old_archive_cmds_GO \
16650old_archive_from_new_cmds_GO \
16651old_archive_from_expsyms_cmds_GO \
16652archive_cmds_GO \
16653archive_expsym_cmds_GO \
16654module_cmds_GO \
16655module_expsym_cmds_GO \
16656export_symbols_cmds_GO \
16657prelink_cmds_GO; do
16658 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16659 *[\\\\\\\`\\"\\\$]*)
16660 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16661 ;;
16662 *)
16663 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16664 ;;
16665 esac
16666done
16667
16668ac_aux_dir='$ac_aux_dir'
16669xsi_shell='$xsi_shell'
16670lt_shell_append='$lt_shell_append'
16671
16672# See if we are running on zsh, and set the options which allow our
16673# commands through without removal of \ escapes INIT.
16674if test -n "\${ZSH_VERSION+set}" ; then
16675 setopt NO_GLOB_SUBST
16676fi
16677
16678
16679 PACKAGE='$PACKAGE'
16680 VERSION='$VERSION'
16681 TIMESTAMP='$TIMESTAMP'
16682 RM='$RM'
16683 ofile='$ofile'
16684
16685
16686
16687
16688
16689
16690# Variables needed in config.status (file generation) which aren't already
16691# passed by autoconf.
16692SUBDIRS="$SUBDIRS"
16693
16694
16695_ACEOF
16696
16697cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16698
16699# Handling of arguments.
16700for ac_config_target in $ac_config_targets
16701do
16702 case $ac_config_target in
16703 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16704 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16705 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16706 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16707 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16708 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16709 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16710
16711 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16712 esac
16713done
16714
16715
16716# If the user did not use the arguments to specify the items to instantiate,
16717# then the envvar interface is used. Set only those that are not.
16718# We use the long form for the default assignment because of an extremely
16719# bizarre bug on SunOS 4.1.3.
16720if $ac_need_defaults; then
16721 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16722 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16723 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16724fi
16725
16726# Have a temporary directory for convenience. Make it in the build tree
16727# simply because there is no reason against having it here, and in addition,
16728# creating and moving files from /tmp can sometimes cause problems.
16729# Hook for its removal unless debugging.
16730# Note that there is a small window in which the directory will not be cleaned:
16731# after its creation but before its name has been assigned to `$tmp'.
16732$debug ||
16733{
16734 tmp=
16735 trap 'exit_status=$?
16736 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16737' 0
16738 trap 'as_fn_exit 1' 1 2 13 15
16739}
16740# Create a (secure) tmp directory for tmp files.
16741
16742{
16743 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16744 test -n "$tmp" && test -d "$tmp"
16745} ||
16746{
16747 tmp=./conf$$-$RANDOM
16748 (umask 077 && mkdir "$tmp")
16749} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16750
16751# Set up the scripts for CONFIG_FILES section.
16752# No need to generate them if there are no CONFIG_FILES.
16753# This happens for instance with `./config.status config.h'.
16754if test -n "$CONFIG_FILES"; then
16755
16756
16757ac_cr=`echo X | tr X '\015'`
16758# On cygwin, bash can eat \r inside `` if the user requested igncr.
16759# But we know of no other shell where ac_cr would be empty at this
16760# point, so we can use a bashism as a fallback.
16761if test "x$ac_cr" = x; then
16762 eval ac_cr=\$\'\\r\'
16763fi
16764ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16765if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16766 ac_cs_awk_cr='\r'
16767else
16768 ac_cs_awk_cr=$ac_cr
16769fi
16770
16771echo 'BEGIN {' >"$tmp/subs1.awk" &&
16772_ACEOF
16773
16774
16775{
16776 echo "cat >conf$$subs.awk <<_ACEOF" &&
16777 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16778 echo "_ACEOF"
16779} >conf$$subs.sh ||
16780 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16781ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16782ac_delim='%!_!# '
16783for ac_last_try in false false false false false :; do
16784 . ./conf$$subs.sh ||
16785 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16786
16787 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16788 if test $ac_delim_n = $ac_delim_num; then
16789 break
16790 elif $ac_last_try; then
16791 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16792 else
16793 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16794 fi
16795done
16796rm -f conf$$subs.sh
16797
16798cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16799cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16800_ACEOF
16801sed -n '
16802h
16803s/^/S["/; s/!.*/"]=/
16804p
16805g
16806s/^[^!]*!//
16807:repl
16808t repl
16809s/'"$ac_delim"'$//
16810t delim
16811:nl
16812h
16813s/\(.\{148\}\).*/\1/
16814t more1
16815s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16816p
16817n
16818b repl
16819:more1
16820s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16821p
16822g
16823s/.\{148\}//
16824t nl
16825:delim
16826h
16827s/\(.\{148\}\).*/\1/
16828t more2
16829s/["\\]/\\&/g; s/^/"/; s/$/"/
16830p
16831b
16832:more2
16833s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16834p
16835g
16836s/.\{148\}//
16837t delim
16838' <conf$$subs.awk | sed '
16839/^[^""]/{
16840 N
16841 s/\n//
16842}
16843' >>$CONFIG_STATUS || ac_write_fail=1
16844rm -f conf$$subs.awk
16845cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16846_ACAWK
16847cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16848 for (key in S) S_is_set[key] = 1
16849 FS = "\a"
16850
16851}
16852{
16853 line = $ 0
16854 nfields = split(line, field, "@")
16855 substed = 0
16856 len = length(field[1])
16857 for (i = 2; i < nfields; i++) {
16858 key = field[i]
16859 keylen = length(key)
16860 if (S_is_set[key]) {
16861 value = S[key]
16862 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16863 len += length(value) + length(field[++i])
16864 substed = 1
16865 } else
16866 len += 1 + keylen
16867 }
16868
16869 print line
16870}
16871
16872_ACAWK
16873_ACEOF
16874cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16875if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16876 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16877else
16878 cat
16879fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16880 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16881_ACEOF
16882
16883# VPATH may cause trouble with some makes, so we remove $(srcdir),
16884# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16885# trailing colons and then remove the whole line if VPATH becomes empty
16886# (actually we leave an empty line to preserve line numbers).
16887if test "x$srcdir" = x.; then
16888 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16889s/:*\$(srcdir):*/:/
16890s/:*\${srcdir}:*/:/
16891s/:*@srcdir@:*/:/
16892s/^\([^=]*=[ ]*\):*/\1/
16893s/:*$//
16894s/^[^=]*=[ ]*$//
16895}'
16896fi
16897
16898cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16899fi # test -n "$CONFIG_FILES"
16900
16901# Set up the scripts for CONFIG_HEADERS section.
16902# No need to generate them if there are no CONFIG_HEADERS.
16903# This happens for instance with `./config.status Makefile'.
16904if test -n "$CONFIG_HEADERS"; then
16905cat >"$tmp/defines.awk" <<\_ACAWK ||
16906BEGIN {
16907_ACEOF
16908
16909# Transform confdefs.h into an awk script `defines.awk', embedded as
16910# here-document in config.status, that substitutes the proper values into
16911# config.h.in to produce config.h.
16912
16913# Create a delimiter string that does not exist in confdefs.h, to ease
16914# handling of long lines.
16915ac_delim='%!_!# '
16916for ac_last_try in false false :; do
16917 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16918 if test -z "$ac_t"; then
16919 break
16920 elif $ac_last_try; then
16921 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16922 else
16923 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16924 fi
16925done
16926
16927# For the awk script, D is an array of macro values keyed by name,
16928# likewise P contains macro parameters if any. Preserve backslash
16929# newline sequences.
16930
16931ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16932sed -n '
16933s/.\{148\}/&'"$ac_delim"'/g
16934t rset
16935:rset
16936s/^[ ]*#[ ]*define[ ][ ]*/ /
16937t def
16938d
16939:def
16940s/\\$//
16941t bsnl
16942s/["\\]/\\&/g
16943s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16944D["\1"]=" \3"/p
16945s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16946d
16947:bsnl
16948s/["\\]/\\&/g
16949s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16950D["\1"]=" \3\\\\\\n"\\/p
16951t cont
16952s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16953t cont
16954d
16955:cont
16956n
16957s/.\{148\}/&'"$ac_delim"'/g
16958t clear
16959:clear
16960s/\\$//
16961t bsnlc
16962s/["\\]/\\&/g; s/^/"/; s/$/"/p
16963d
16964:bsnlc
16965s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16966b cont
16967' <confdefs.h | sed '
16968s/'"$ac_delim"'/"\\\
16969"/g' >>$CONFIG_STATUS || ac_write_fail=1
16970
16971cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16972 for (key in D) D_is_set[key] = 1
16973 FS = "\a"
16974}
16975/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16976 line = \$ 0
16977 split(line, arg, " ")
16978 if (arg[1] == "#") {
16979 defundef = arg[2]
16980 mac1 = arg[3]
16981 } else {
16982 defundef = substr(arg[1], 2)
16983 mac1 = arg[2]
16984 }
16985 split(mac1, mac2, "(") #)
16986 macro = mac2[1]
16987 prefix = substr(line, 1, index(line, defundef) - 1)
16988 if (D_is_set[macro]) {
16989 # Preserve the white space surrounding the "#".
16990 print prefix "define", macro P[macro] D[macro]
16991 next
16992 } else {
16993 # Replace #undef with comments. This is necessary, for example,
16994 # in the case of _POSIX_SOURCE, which is predefined and required
16995 # on some systems where configure will not decide to define it.
16996 if (defundef == "undef") {
16997 print "/*", prefix defundef, macro, "*/"
16998 next
16999 }
17000 }
17001}
17002{ print }
17003_ACAWK
17004_ACEOF
17005cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17006 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17007fi # test -n "$CONFIG_HEADERS"
17008
17009
17010eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17011shift
17012for ac_tag
17013do
17014 case $ac_tag in
17015 :[FHLC]) ac_mode=$ac_tag; continue;;
17016 esac
17017 case $ac_mode$ac_tag in
17018 :[FHL]*:*);;
17019 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17020 :[FH]-) ac_tag=-:-;;
17021 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17022 esac
17023 ac_save_IFS=$IFS
17024 IFS=:
17025 set x $ac_tag
17026 IFS=$ac_save_IFS
17027 shift
17028 ac_file=$1
17029 shift
17030
17031 case $ac_mode in
17032 :L) ac_source=$1;;
17033 :[FH])
17034 ac_file_inputs=
17035 for ac_f
17036 do
17037 case $ac_f in
17038 -) ac_f="$tmp/stdin";;
17039 *) # Look for the file first in the build tree, then in the source tree
17040 # (if the path is not absolute). The absolute path cannot be DOS-style,
17041 # because $ac_f cannot contain `:'.
17042 test -f "$ac_f" ||
17043 case $ac_f in
17044 [\\/$]*) false;;
17045 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17046 esac ||
17047 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17048 esac
17049 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17050 as_fn_append ac_file_inputs " '$ac_f'"
17051 done
17052
17053 # Let's still pretend it is `configure' which instantiates (i.e., don't
17054 # use $as_me), people would be surprised to read:
17055 # /* config.h. Generated by config.status. */
17056 configure_input='Generated from '`
17057 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17058 `' by configure.'
17059 if test x"$ac_file" != x-; then
17060 configure_input="$ac_file. $configure_input"
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17062$as_echo "$as_me: creating $ac_file" >&6;}
17063 fi
17064 # Neutralize special characters interpreted by sed in replacement strings.
17065 case $configure_input in #(
17066 *\&* | *\|* | *\\* )
17067 ac_sed_conf_input=`$as_echo "$configure_input" |
17068 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17069 *) ac_sed_conf_input=$configure_input;;
17070 esac
17071
17072 case $ac_tag in
17073 *:-:* | *:-) cat >"$tmp/stdin" \
17074 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17075 esac
17076 ;;
17077 esac
17078
17079 ac_dir=`$as_dirname -- "$ac_file" ||
17080$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17081 X"$ac_file" : 'X\(//\)[^/]' \| \
17082 X"$ac_file" : 'X\(//\)$' \| \
17083 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17084$as_echo X"$ac_file" |
17085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17086 s//\1/
17087 q
17088 }
17089 /^X\(\/\/\)[^/].*/{
17090 s//\1/
17091 q
17092 }
17093 /^X\(\/\/\)$/{
17094 s//\1/
17095 q
17096 }
17097 /^X\(\/\).*/{
17098 s//\1/
17099 q
17100 }
17101 s/.*/./; q'`
17102 as_dir="$ac_dir"; as_fn_mkdir_p
17103 ac_builddir=.
17104
17105case "$ac_dir" in
17106.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17107*)
17108 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17109 # A ".." for each directory in $ac_dir_suffix.
17110 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17111 case $ac_top_builddir_sub in
17112 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17113 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17114 esac ;;
17115esac
17116ac_abs_top_builddir=$ac_pwd
17117ac_abs_builddir=$ac_pwd$ac_dir_suffix
17118# for backward compatibility:
17119ac_top_builddir=$ac_top_build_prefix
17120
17121case $srcdir in
17122 .) # We are building in place.
17123 ac_srcdir=.
17124 ac_top_srcdir=$ac_top_builddir_sub
17125 ac_abs_top_srcdir=$ac_pwd ;;
17126 [\\/]* | ?:[\\/]* ) # Absolute name.
17127 ac_srcdir=$srcdir$ac_dir_suffix;
17128 ac_top_srcdir=$srcdir
17129 ac_abs_top_srcdir=$srcdir ;;
17130 *) # Relative name.
17131 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17132 ac_top_srcdir=$ac_top_build_prefix$srcdir
17133 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17134esac
17135ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17136
17137
17138 case $ac_mode in
17139 :F)
17140 #
17141 # CONFIG_FILE
17142 #
17143
17144 case $INSTALL in
17145 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17146 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17147 esac
17148 ac_MKDIR_P=$MKDIR_P
17149 case $MKDIR_P in
17150 [\\/$]* | ?:[\\/]* ) ;;
17151 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17152 esac
17153_ACEOF
17154
17155cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17156# If the template does not know about datarootdir, expand it.
17157# FIXME: This hack should be removed a few years after 2.60.
17158ac_datarootdir_hack=; ac_datarootdir_seen=
17159ac_sed_dataroot='
17160/datarootdir/ {
17161 p
17162 q
17163}
17164/@datadir@/p
17165/@docdir@/p
17166/@infodir@/p
17167/@localedir@/p
17168/@mandir@/p'
17169case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17170*datarootdir*) ac_datarootdir_seen=yes;;
17171*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17173$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17174_ACEOF
17175cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17176 ac_datarootdir_hack='
17177 s&@datadir@&$datadir&g
17178 s&@docdir@&$docdir&g
17179 s&@infodir@&$infodir&g
17180 s&@localedir@&$localedir&g
17181 s&@mandir@&$mandir&g
17182 s&\\\${datarootdir}&$datarootdir&g' ;;
17183esac
17184_ACEOF
17185
17186# Neutralize VPATH when `$srcdir' = `.'.
17187# Shell code in configure.ac might set extrasub.
17188# FIXME: do we really want to maintain this feature?
17189cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17190ac_sed_extra="$ac_vpsub
17191$extrasub
17192_ACEOF
17193cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17194:t
17195/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17196s|@configure_input@|$ac_sed_conf_input|;t t
17197s&@top_builddir@&$ac_top_builddir_sub&;t t
17198s&@top_build_prefix@&$ac_top_build_prefix&;t t
17199s&@srcdir@&$ac_srcdir&;t t
17200s&@abs_srcdir@&$ac_abs_srcdir&;t t
17201s&@top_srcdir@&$ac_top_srcdir&;t t
17202s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17203s&@builddir@&$ac_builddir&;t t
17204s&@abs_builddir@&$ac_abs_builddir&;t t
17205s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17206s&@INSTALL@&$ac_INSTALL&;t t
17207s&@MKDIR_P@&$ac_MKDIR_P&;t t
17208$ac_datarootdir_hack
17209"
17210eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17211 || as_fn_error "could not create $ac_file" "$LINENO" 5
17212
17213test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17214 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17215 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17217which seems to be undefined. Please make sure it is defined." >&5
17218$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17219which seems to be undefined. Please make sure it is defined." >&2;}
17220
17221 rm -f "$tmp/stdin"
17222 case $ac_file in
17223 -) cat "$tmp/out" && rm -f "$tmp/out";;
17224 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17225 esac \
17226 || as_fn_error "could not create $ac_file" "$LINENO" 5
17227 ;;
17228 :H)
17229 #
17230 # CONFIG_HEADER
17231 #
17232 if test x"$ac_file" != x-; then
17233 {
17234 $as_echo "/* $configure_input */" \
17235 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17236 } >"$tmp/config.h" \
17237 || as_fn_error "could not create $ac_file" "$LINENO" 5
17238 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17240$as_echo "$as_me: $ac_file is unchanged" >&6;}
17241 else
17242 rm -f "$ac_file"
17243 mv "$tmp/config.h" "$ac_file" \
17244 || as_fn_error "could not create $ac_file" "$LINENO" 5
17245 fi
17246 else
17247 $as_echo "/* $configure_input */" \
17248 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17249 || as_fn_error "could not create -" "$LINENO" 5
17250 fi
17251# Compute "$ac_file"'s index in $config_headers.
17252_am_arg="$ac_file"
17253_am_stamp_count=1
17254for _am_header in $config_headers :; do
17255 case $_am_header in
17256 $_am_arg | $_am_arg:* )
17257 break ;;
17258 * )
17259 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17260 esac
17261done
17262echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17263$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17264 X"$_am_arg" : 'X\(//\)[^/]' \| \
17265 X"$_am_arg" : 'X\(//\)$' \| \
17266 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17267$as_echo X"$_am_arg" |
17268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17269 s//\1/
17270 q
17271 }
17272 /^X\(\/\/\)[^/].*/{
17273 s//\1/
17274 q
17275 }
17276 /^X\(\/\/\)$/{
17277 s//\1/
17278 q
17279 }
17280 /^X\(\/\).*/{
17281 s//\1/
17282 q
17283 }
17284 s/.*/./; q'`/stamp-h$_am_stamp_count
17285 ;;
17286
17287 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17288$as_echo "$as_me: executing $ac_file commands" >&6;}
17289 ;;
17290 esac
17291
17292
17293 case $ac_file$ac_mode in
17294 "default-1":C)
17295# Only add multilib support code if we just rebuilt the top-level
17296# Makefile.
17297case " $CONFIG_FILES " in
17298 *" Makefile "*)
17299 ac_file=Makefile . ${multi_basedir}/config-ml.in
17300 ;;
17301esac ;;
17302 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17303 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17304 # are listed without --file. Let's play safe and only enable the eval
17305 # if we detect the quoting.
17306 case $CONFIG_FILES in
17307 *\'*) eval set x "$CONFIG_FILES" ;;
17308 *) set x $CONFIG_FILES ;;
17309 esac
17310 shift
17311 for mf
17312 do
17313 # Strip MF so we end up with the name of the file.
17314 mf=`echo "$mf" | sed -e 's/:.*$//'`
17315 # Check whether this is an Automake generated Makefile or not.
17316 # We used to match only the files named `Makefile.in', but
17317 # some people rename them; so instead we look at the file content.
17318 # Grep'ing the first line is not enough: some people post-process
17319 # each Makefile.in and add a new line on top of each file to say so.
17320 # Grep'ing the whole file is not good either: AIX grep has a line
17321 # limit of 2048, but all sed's we know have understand at least 4000.
17322 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17323 dirpart=`$as_dirname -- "$mf" ||
17324$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17325 X"$mf" : 'X\(//\)[^/]' \| \
17326 X"$mf" : 'X\(//\)$' \| \
17327 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17328$as_echo X"$mf" |
17329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17330 s//\1/
17331 q
17332 }
17333 /^X\(\/\/\)[^/].*/{
17334 s//\1/
17335 q
17336 }
17337 /^X\(\/\/\)$/{
17338 s//\1/
17339 q
17340 }
17341 /^X\(\/\).*/{
17342 s//\1/
17343 q
17344 }
17345 s/.*/./; q'`
17346 else
17347 continue
17348 fi
17349 # Extract the definition of DEPDIR, am__include, and am__quote
17350 # from the Makefile without running `make'.
17351 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17352 test -z "$DEPDIR" && continue
17353 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17354 test -z "am__include" && continue
17355 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17356 # When using ansi2knr, U may be empty or an underscore; expand it
17357 U=`sed -n 's/^U = //p' < "$mf"`
17358 # Find all dependency output files, they are included files with
17359 # $(DEPDIR) in their names. We invoke sed twice because it is the
17360 # simplest approach to changing $(DEPDIR) to its actual value in the
17361 # expansion.
17362 for file in `sed -n "
17363 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17364 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17365 # Make sure the directory exists.
17366 test -f "$dirpart/$file" && continue
17367 fdir=`$as_dirname -- "$file" ||
17368$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17369 X"$file" : 'X\(//\)[^/]' \| \
17370 X"$file" : 'X\(//\)$' \| \
17371 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17372$as_echo X"$file" |
17373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17374 s//\1/
17375 q
17376 }
17377 /^X\(\/\/\)[^/].*/{
17378 s//\1/
17379 q
17380 }
17381 /^X\(\/\/\)$/{
17382 s//\1/
17383 q
17384 }
17385 /^X\(\/\).*/{
17386 s//\1/
17387 q
17388 }
17389 s/.*/./; q'`
17390 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17391 # echo "creating $dirpart/$file"
17392 echo '# dummy' > "$dirpart/$file"
17393 done
17394 done
17395}
17396 ;;
17397 "libtool":C)
17398
17399 # See if we are running on zsh, and set the options which allow our
17400 # commands through without removal of \ escapes.
17401 if test -n "${ZSH_VERSION+set}" ; then
17402 setopt NO_GLOB_SUBST
17403 fi
17404
17405 cfgfile="${ofile}T"
17406 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17407 $RM "$cfgfile"
17408
17409 cat <<_LT_EOF >> "$cfgfile"
17410#! $SHELL
17411
17412# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17413# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17414# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17415# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17416#
17417# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17418# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17419# Written by Gordon Matzigkeit, 1996
17420#
17421# This file is part of GNU Libtool.
17422#
17423# GNU Libtool is free software; you can redistribute it and/or
17424# modify it under the terms of the GNU General Public License as
17425# published by the Free Software Foundation; either version 2 of
17426# the License, or (at your option) any later version.
17427#
17428# As a special exception to the GNU General Public License,
17429# if you distribute this file as part of a program or library that
17430# is built using GNU Libtool, you may include this file under the
17431# same distribution terms that you use for the rest of that program.
17432#
17433# GNU Libtool is distributed in the hope that it will be useful,
17434# but WITHOUT ANY WARRANTY; without even the implied warranty of
17435# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17436# GNU General Public License for more details.
17437#
17438# You should have received a copy of the GNU General Public License
17439# along with GNU Libtool; see the file COPYING. If not, a copy
17440# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17441# obtained by writing to the Free Software Foundation, Inc.,
17442# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17443
17444
17445# The names of the tagged configurations supported by this script.
17446available_tags="GO "
17447
17448# ### BEGIN LIBTOOL CONFIG
17449
17450# A sed program that does not truncate output.
17451SED=$lt_SED
17452
17453# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17454Xsed="\$SED -e 1s/^X//"
17455
17456# A grep program that handles long lines.
17457GREP=$lt_GREP
17458
17459# An ERE matcher.
17460EGREP=$lt_EGREP
17461
17462# A literal string matcher.
17463FGREP=$lt_FGREP
17464
17465# Shell to use when invoking shell scripts.
17466SHELL=$lt_SHELL
17467
17468# An echo program that protects backslashes.
17469ECHO=$lt_ECHO
17470
17471# Which release of libtool.m4 was used?
17472macro_version=$macro_version
17473macro_revision=$macro_revision
17474
17475# Whether or not to build shared libraries.
17476build_libtool_libs=$enable_shared
17477
17478# Whether or not to build static libraries.
17479build_old_libs=$enable_static
17480
17481# What type of objects to build.
17482pic_mode=$pic_mode
17483
17484# Whether or not to optimize for fast installation.
17485fast_install=$enable_fast_install
17486
17487# The host system.
17488host_alias=$host_alias
17489host=$host
17490host_os=$host_os
17491
17492# The build system.
17493build_alias=$build_alias
17494build=$build
17495build_os=$build_os
17496
17497# A BSD- or MS-compatible name lister.
17498NM=$lt_NM
17499
17500# Whether we need soft or hard links.
17501LN_S=$lt_LN_S
17502
17503# What is the maximum length of a command?
17504max_cmd_len=$max_cmd_len
17505
17506# Object file suffix (normally "o").
17507objext=$ac_objext
17508
17509# Executable file suffix (normally "").
17510exeext=$exeext
17511
17512# whether the shell understands "unset".
17513lt_unset=$lt_unset
17514
17515# turn spaces into newlines.
17516SP2NL=$lt_lt_SP2NL
17517
17518# turn newlines into spaces.
17519NL2SP=$lt_lt_NL2SP
17520
17521# An object symbol dumper.
17522OBJDUMP=$lt_OBJDUMP
17523
17524# Method to check whether dependent libraries are shared objects.
17525deplibs_check_method=$lt_deplibs_check_method
17526
17527# Command to use when deplibs_check_method == "file_magic".
17528file_magic_cmd=$lt_file_magic_cmd
17529
17530# The archiver.
17531AR=$lt_AR
17532AR_FLAGS=$lt_AR_FLAGS
17533
17534# A symbol stripping program.
17535STRIP=$lt_STRIP
17536
17537# Commands used to install an old-style archive.
17538RANLIB=$lt_RANLIB
17539old_postinstall_cmds=$lt_old_postinstall_cmds
17540old_postuninstall_cmds=$lt_old_postuninstall_cmds
17541
17542# Whether to use a lock for old archive extraction.
17543lock_old_archive_extraction=$lock_old_archive_extraction
17544
17545# A C compiler.
17546LTCC=$lt_CC
17547
17548# LTCC compiler flags.
17549LTCFLAGS=$lt_CFLAGS
17550
17551# Take the output of nm and produce a listing of raw symbols and C names.
17552global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17553
17554# Transform the output of nm in a proper C declaration.
17555global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17556
17557# Transform the output of nm in a C name address pair.
17558global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17559
17560# Transform the output of nm in a C name address pair when lib prefix is needed.
17561global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17562
17563# The name of the directory that contains temporary libtool files.
17564objdir=$objdir
17565
17566# Used to examine libraries when file_magic_cmd begins with "file".
17567MAGIC_CMD=$MAGIC_CMD
17568
17569# Must we lock files when doing compilation?
17570need_locks=$lt_need_locks
17571
17572# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17573DSYMUTIL=$lt_DSYMUTIL
17574
17575# Tool to change global to local symbols on Mac OS X.
17576NMEDIT=$lt_NMEDIT
17577
17578# Tool to manipulate fat objects and archives on Mac OS X.
17579LIPO=$lt_LIPO
17580
17581# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17582OTOOL=$lt_OTOOL
17583
17584# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17585OTOOL64=$lt_OTOOL64
17586
17587# Old archive suffix (normally "a").
17588libext=$libext
17589
17590# Shared library suffix (normally ".so").
17591shrext_cmds=$lt_shrext_cmds
17592
17593# The commands to extract the exported symbol list from a shared archive.
17594extract_expsyms_cmds=$lt_extract_expsyms_cmds
17595
17596# Variables whose values should be saved in libtool wrapper scripts and
17597# restored at link time.
17598variables_saved_for_relink=$lt_variables_saved_for_relink
17599
17600# Do we need the "lib" prefix for modules?
17601need_lib_prefix=$need_lib_prefix
17602
17603# Do we need a version for libraries?
17604need_version=$need_version
17605
17606# Library versioning type.
17607version_type=$version_type
17608
17609# Shared library runtime path variable.
17610runpath_var=$runpath_var
17611
17612# Shared library path variable.
17613shlibpath_var=$shlibpath_var
17614
17615# Is shlibpath searched before the hard-coded library search path?
17616shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17617
17618# Format of library name prefix.
17619libname_spec=$lt_libname_spec
17620
17621# List of archive names. First name is the real one, the rest are links.
17622# The last name is the one that the linker finds with -lNAME
17623library_names_spec=$lt_library_names_spec
17624
17625# The coded name of the library, if different from the real name.
17626soname_spec=$lt_soname_spec
17627
17628# Permission mode override for installation of shared libraries.
17629install_override_mode=$lt_install_override_mode
17630
17631# Command to use after installation of a shared archive.
17632postinstall_cmds=$lt_postinstall_cmds
17633
17634# Command to use after uninstallation of a shared archive.
17635postuninstall_cmds=$lt_postuninstall_cmds
17636
17637# Commands used to finish a libtool library installation in a directory.
17638finish_cmds=$lt_finish_cmds
17639
17640# As "finish_cmds", except a single script fragment to be evaled but
17641# not shown.
17642finish_eval=$lt_finish_eval
17643
17644# Whether we should hardcode library paths into libraries.
17645hardcode_into_libs=$hardcode_into_libs
17646
17647# Compile-time system search path for libraries.
17648sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17649
17650# Run-time system search path for libraries.
17651sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17652
17653# Whether dlopen is supported.
17654dlopen_support=$enable_dlopen
17655
17656# Whether dlopen of programs is supported.
17657dlopen_self=$enable_dlopen_self
17658
17659# Whether dlopen of statically linked programs is supported.
17660dlopen_self_static=$enable_dlopen_self_static
17661
17662# Commands to strip libraries.
17663old_striplib=$lt_old_striplib
17664striplib=$lt_striplib
17665
17666
17667# The linker used to build libraries.
17668LD=$lt_LD
17669
17670# How to create reloadable object files.
17671reload_flag=$lt_reload_flag
17672reload_cmds=$lt_reload_cmds
17673
17674# Commands used to build an old-style archive.
17675old_archive_cmds=$lt_old_archive_cmds
17676
17677# A language specific compiler.
17678CC=$lt_compiler
17679
17680# Is the compiler the GNU compiler?
17681with_gcc=$GCC
17682
17683# Compiler flag to turn off builtin functions.
17684no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17685
17686# How to pass a linker flag through the compiler.
17687wl=$lt_lt_prog_compiler_wl
17688
17689# Additional compiler flags for building library objects.
17690pic_flag=$lt_lt_prog_compiler_pic
17691
17692# Compiler flag to prevent dynamic linking.
17693link_static_flag=$lt_lt_prog_compiler_static
17694
17695# Does compiler simultaneously support -c and -o options?
17696compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17697
17698# Whether or not to add -lc for building shared libraries.
17699build_libtool_need_lc=$archive_cmds_need_lc
17700
17701# Whether or not to disallow shared libs when runtime libs are static.
17702allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17703
17704# Compiler flag to allow reflexive dlopens.
17705export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17706
17707# Compiler flag to generate shared objects directly from archives.
17708whole_archive_flag_spec=$lt_whole_archive_flag_spec
17709
17710# Whether the compiler copes with passing no objects directly.
17711compiler_needs_object=$lt_compiler_needs_object
17712
17713# Create an old-style archive from a shared archive.
17714old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17715
17716# Create a temporary old-style archive to link instead of a shared archive.
17717old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17718
17719# Commands used to build a shared archive.
17720archive_cmds=$lt_archive_cmds
17721archive_expsym_cmds=$lt_archive_expsym_cmds
17722
17723# Commands used to build a loadable module if different from building
17724# a shared archive.
17725module_cmds=$lt_module_cmds
17726module_expsym_cmds=$lt_module_expsym_cmds
17727
17728# Whether we are building with GNU ld or not.
17729with_gnu_ld=$lt_with_gnu_ld
17730
17731# Flag that allows shared libraries with undefined symbols to be built.
17732allow_undefined_flag=$lt_allow_undefined_flag
17733
17734# Flag that enforces no undefined symbols.
17735no_undefined_flag=$lt_no_undefined_flag
17736
17737# Flag to hardcode \$libdir into a binary during linking.
17738# This must work even if \$libdir does not exist
17739hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17740
17741# If ld is used when linking, flag to hardcode \$libdir into a binary
17742# during linking. This must work even if \$libdir does not exist.
17743hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17744
17745# Whether we need a single "-rpath" flag with a separated argument.
17746hardcode_libdir_separator=$lt_hardcode_libdir_separator
17747
17748# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17749# DIR into the resulting binary.
17750hardcode_direct=$hardcode_direct
17751
17752# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17753# DIR into the resulting binary and the resulting library dependency is
17754# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17755# library is relocated.
17756hardcode_direct_absolute=$hardcode_direct_absolute
17757
17758# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17759# into the resulting binary.
17760hardcode_minus_L=$hardcode_minus_L
17761
17762# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17763# into the resulting binary.
17764hardcode_shlibpath_var=$hardcode_shlibpath_var
17765
17766# Set to "yes" if building a shared library automatically hardcodes DIR
17767# into the library and all subsequent libraries and executables linked
17768# against it.
17769hardcode_automatic=$hardcode_automatic
17770
17771# Set to yes if linker adds runtime paths of dependent libraries
17772# to runtime path list.
17773inherit_rpath=$inherit_rpath
17774
17775# Whether libtool must link a program against all its dependency libraries.
17776link_all_deplibs=$link_all_deplibs
17777
17778# Fix the shell variable \$srcfile for the compiler.
17779fix_srcfile_path=$lt_fix_srcfile_path
17780
17781# Set to "yes" if exported symbols are required.
17782always_export_symbols=$always_export_symbols
17783
17784# The commands to list exported symbols.
17785export_symbols_cmds=$lt_export_symbols_cmds
17786
17787# Symbols that should not be listed in the preloaded symbols.
17788exclude_expsyms=$lt_exclude_expsyms
17789
17790# Symbols that must always be exported.
17791include_expsyms=$lt_include_expsyms
17792
17793# Commands necessary for linking programs (against libraries) with templates.
17794prelink_cmds=$lt_prelink_cmds
17795
17796# Specify filename containing input files.
17797file_list_spec=$lt_file_list_spec
17798
17799# How to hardcode a shared library path into an executable.
17800hardcode_action=$hardcode_action
17801
17802# ### END LIBTOOL CONFIG
17803
17804_LT_EOF
17805
17806 case $host_os in
17807 aix3*)
17808 cat <<\_LT_EOF >> "$cfgfile"
17809# AIX sometimes has problems with the GCC collect2 program. For some
17810# reason, if we set the COLLECT_NAMES environment variable, the problems
17811# vanish in a puff of smoke.
17812if test "X${COLLECT_NAMES+set}" != Xset; then
17813 COLLECT_NAMES=
17814 export COLLECT_NAMES
17815fi
17816_LT_EOF
17817 ;;
17818 esac
17819
17820
17821ltmain="$ac_aux_dir/ltmain.sh"
17822
17823
17824 # We use sed instead of cat because bash on DJGPP gets confused if
17825 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17826 # text mode, it properly converts lines to CR/LF. This bash problem
17827 # is reportedly fixed, but why not run on old versions too?
17828 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17829 || (rm -f "$cfgfile"; exit 1)
17830
17831 case $xsi_shell in
17832 yes)
17833 cat << \_LT_EOF >> "$cfgfile"
17834
17835# func_dirname file append nondir_replacement
17836# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17837# otherwise set result to NONDIR_REPLACEMENT.
17838func_dirname ()
17839{
17840 case ${1} in
17841 */*) func_dirname_result="${1%/*}${2}" ;;
17842 * ) func_dirname_result="${3}" ;;
17843 esac
17844}
17845
17846# func_basename file
17847func_basename ()
17848{
17849 func_basename_result="${1##*/}"
17850}
17851
17852# func_dirname_and_basename file append nondir_replacement
17853# perform func_basename and func_dirname in a single function
17854# call:
17855# dirname: Compute the dirname of FILE. If nonempty,
17856# add APPEND to the result, otherwise set result
17857# to NONDIR_REPLACEMENT.
17858# value returned in "$func_dirname_result"
17859# basename: Compute filename of FILE.
17860# value retuned in "$func_basename_result"
17861# Implementation must be kept synchronized with func_dirname
17862# and func_basename. For efficiency, we do not delegate to
17863# those functions but instead duplicate the functionality here.
17864func_dirname_and_basename ()
17865{
17866 case ${1} in
17867 */*) func_dirname_result="${1%/*}${2}" ;;
17868 * ) func_dirname_result="${3}" ;;
17869 esac
17870 func_basename_result="${1##*/}"
17871}
17872
17873# func_stripname prefix suffix name
17874# strip PREFIX and SUFFIX off of NAME.
17875# PREFIX and SUFFIX must not contain globbing or regex special
17876# characters, hashes, percent signs, but SUFFIX may contain a leading
17877# dot (in which case that matches only a dot).
17878func_stripname ()
17879{
17880 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17881 # positional parameters, so assign one to ordinary parameter first.
17882 func_stripname_result=${3}
17883 func_stripname_result=${func_stripname_result#"${1}"}
17884 func_stripname_result=${func_stripname_result%"${2}"}
17885}
17886
17887# func_opt_split
17888func_opt_split ()
17889{
17890 func_opt_split_opt=${1%%=*}
17891 func_opt_split_arg=${1#*=}
17892}
17893
17894# func_lo2o object
17895func_lo2o ()
17896{
17897 case ${1} in
17898 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17899 *) func_lo2o_result=${1} ;;
17900 esac
17901}
17902
17903# func_xform libobj-or-source
17904func_xform ()
17905{
17906 func_xform_result=${1%.*}.lo
17907}
17908
17909# func_arith arithmetic-term...
17910func_arith ()
17911{
17912 func_arith_result=$(( $* ))
17913}
17914
17915# func_len string
17916# STRING may not start with a hyphen.
17917func_len ()
17918{
17919 func_len_result=${#1}
17920}
17921
17922_LT_EOF
17923 ;;
17924 *) # Bourne compatible functions.
17925 cat << \_LT_EOF >> "$cfgfile"
17926
17927# func_dirname file append nondir_replacement
17928# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17929# otherwise set result to NONDIR_REPLACEMENT.
17930func_dirname ()
17931{
17932 # Extract subdirectory from the argument.
17933 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17934 if test "X$func_dirname_result" = "X${1}"; then
17935 func_dirname_result="${3}"
17936 else
17937 func_dirname_result="$func_dirname_result${2}"
17938 fi
17939}
17940
17941# func_basename file
17942func_basename ()
17943{
17944 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17945}
17946
17947
17948# func_stripname prefix suffix name
17949# strip PREFIX and SUFFIX off of NAME.
17950# PREFIX and SUFFIX must not contain globbing or regex special
17951# characters, hashes, percent signs, but SUFFIX may contain a leading
17952# dot (in which case that matches only a dot).
17953# func_strip_suffix prefix name
17954func_stripname ()
17955{
17956 case ${2} in
17957 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17958 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17959 esac
17960}
17961
17962# sed scripts:
17963my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17964my_sed_long_arg='1s/^-[^=]*=//'
17965
17966# func_opt_split
17967func_opt_split ()
17968{
17969 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17970 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17971}
17972
17973# func_lo2o object
17974func_lo2o ()
17975{
17976 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17977}
17978
17979# func_xform libobj-or-source
17980func_xform ()
17981{
17982 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17983}
17984
17985# func_arith arithmetic-term...
17986func_arith ()
17987{
17988 func_arith_result=`expr "$@"`
17989}
17990
17991# func_len string
17992# STRING may not start with a hyphen.
17993func_len ()
17994{
17995 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17996}
17997
17998_LT_EOF
17999esac
18000
18001case $lt_shell_append in
18002 yes)
18003 cat << \_LT_EOF >> "$cfgfile"
18004
18005# func_append var value
18006# Append VALUE to the end of shell variable VAR.
18007func_append ()
18008{
18009 eval "$1+=\$2"
18010}
18011_LT_EOF
18012 ;;
18013 *)
18014 cat << \_LT_EOF >> "$cfgfile"
18015
18016# func_append var value
18017# Append VALUE to the end of shell variable VAR.
18018func_append ()
18019{
18020 eval "$1=\$$1\$2"
18021}
18022
18023_LT_EOF
18024 ;;
18025 esac
18026
18027
18028 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18029 || (rm -f "$cfgfile"; exit 1)
18030
18031 mv -f "$cfgfile" "$ofile" ||
18032 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18033 chmod +x "$ofile"
18034
18035
18036 cat <<_LT_EOF >> "$ofile"
18037
18038# ### BEGIN LIBTOOL TAG CONFIG: GO
18039
18040# The linker used to build libraries.
18041LD=$lt_LD_GO
18042
18043# How to create reloadable object files.
18044reload_flag=$lt_reload_flag_GO
18045reload_cmds=$lt_reload_cmds_GO
18046
18047# Commands used to build an old-style archive.
18048old_archive_cmds=$lt_old_archive_cmds_GO
18049
18050# A language specific compiler.
18051CC=$lt_compiler_GO
18052
18053# Is the compiler the GNU compiler?
18054with_gcc=$GCC_GO
18055
18056# Compiler flag to turn off builtin functions.
18057no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
18058
18059# How to pass a linker flag through the compiler.
18060wl=$lt_lt_prog_compiler_wl_GO
18061
18062# Additional compiler flags for building library objects.
18063pic_flag=$lt_lt_prog_compiler_pic_GO
18064
18065# Compiler flag to prevent dynamic linking.
18066link_static_flag=$lt_lt_prog_compiler_static_GO
18067
18068# Does compiler simultaneously support -c and -o options?
18069compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
18070
18071# Whether or not to add -lc for building shared libraries.
18072build_libtool_need_lc=$archive_cmds_need_lc_GO
18073
18074# Whether or not to disallow shared libs when runtime libs are static.
18075allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
18076
18077# Compiler flag to allow reflexive dlopens.
18078export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
18079
18080# Compiler flag to generate shared objects directly from archives.
18081whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
18082
18083# Whether the compiler copes with passing no objects directly.
18084compiler_needs_object=$lt_compiler_needs_object_GO
18085
18086# Create an old-style archive from a shared archive.
18087old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
18088
18089# Create a temporary old-style archive to link instead of a shared archive.
18090old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
18091
18092# Commands used to build a shared archive.
18093archive_cmds=$lt_archive_cmds_GO
18094archive_expsym_cmds=$lt_archive_expsym_cmds_GO
18095
18096# Commands used to build a loadable module if different from building
18097# a shared archive.
18098module_cmds=$lt_module_cmds_GO
18099module_expsym_cmds=$lt_module_expsym_cmds_GO
18100
18101# Whether we are building with GNU ld or not.
18102with_gnu_ld=$lt_with_gnu_ld_GO
18103
18104# Flag that allows shared libraries with undefined symbols to be built.
18105allow_undefined_flag=$lt_allow_undefined_flag_GO
18106
18107# Flag that enforces no undefined symbols.
18108no_undefined_flag=$lt_no_undefined_flag_GO
18109
18110# Flag to hardcode \$libdir into a binary during linking.
18111# This must work even if \$libdir does not exist
18112hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
18113
18114# If ld is used when linking, flag to hardcode \$libdir into a binary
18115# during linking. This must work even if \$libdir does not exist.
18116hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
18117
18118# Whether we need a single "-rpath" flag with a separated argument.
18119hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
18120
18121# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18122# DIR into the resulting binary.
18123hardcode_direct=$hardcode_direct_GO
18124
18125# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18126# DIR into the resulting binary and the resulting library dependency is
18127# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18128# library is relocated.
18129hardcode_direct_absolute=$hardcode_direct_absolute_GO
18130
18131# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18132# into the resulting binary.
18133hardcode_minus_L=$hardcode_minus_L_GO
18134
18135# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18136# into the resulting binary.
18137hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
18138
18139# Set to "yes" if building a shared library automatically hardcodes DIR
18140# into the library and all subsequent libraries and executables linked
18141# against it.
18142hardcode_automatic=$hardcode_automatic_GO
18143
18144# Set to yes if linker adds runtime paths of dependent libraries
18145# to runtime path list.
18146inherit_rpath=$inherit_rpath_GO
18147
18148# Whether libtool must link a program against all its dependency libraries.
18149link_all_deplibs=$link_all_deplibs_GO
18150
18151# Fix the shell variable \$srcfile for the compiler.
18152fix_srcfile_path=$lt_fix_srcfile_path_GO
18153
18154# Set to "yes" if exported symbols are required.
18155always_export_symbols=$always_export_symbols_GO
18156
18157# The commands to list exported symbols.
18158export_symbols_cmds=$lt_export_symbols_cmds_GO
18159
18160# Symbols that should not be listed in the preloaded symbols.
18161exclude_expsyms=$lt_exclude_expsyms_GO
18162
18163# Symbols that must always be exported.
18164include_expsyms=$lt_include_expsyms_GO
18165
18166# Commands necessary for linking programs (against libraries) with templates.
18167prelink_cmds=$lt_prelink_cmds_GO
18168
18169# Specify filename containing input files.
18170file_list_spec=$lt_file_list_spec_GO
18171
18172# How to hardcode a shared library path into an executable.
18173hardcode_action=$hardcode_action_GO
18174
18175# ### END LIBTOOL TAG CONFIG: GO
18176_LT_EOF
18177
18178 ;;
18179 "default":C) if test -n "$CONFIG_FILES"; then
18180 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
18181 # that multilib installs will end up installed in the correct place.
18182 # The testsuite needs it for multilib-aware ABI baseline files.
18183 # To work around this not being passed down from config-ml.in ->
18184 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
18185 # append it here. Only modify Makefiles that have just been created.
18186 #
18187 # Also, get rid of this simulated-VPATH thing that automake does.
18188 cat > vpsed << \_EOF
18189s!`test -f '$<' || echo '$(srcdir)/'`!!
18190_EOF
18191 for i in $SUBDIRS; do
18192 case $CONFIG_FILES in
18193 *${i}/Makefile*)
18194 #echo "Adding MULTISUBDIR to $i/Makefile"
18195 sed -f vpsed $i/Makefile > tmp
18196 grep '^MULTISUBDIR =' Makefile >> tmp
18197 mv tmp $i/Makefile
18198 ;;
18199 esac
18200 done
18201 rm vpsed
18202 fi
18203 ;;
18204
18205 esac
18206done # for ac_tag
18207
18208
18209as_fn_exit 0
18210_ACEOF
18211ac_clean_files=$ac_clean_files_save
18212
18213test $ac_write_fail = 0 ||
18214 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18215
18216
18217# configure is writing to config.log, and then calls config.status.
18218# config.status does its own redirection, appending to config.log.
18219# Unfortunately, on DOS this fails, as config.log is still kept open
18220# by configure, so config.status won't be able to write to it; its
18221# output is simply discarded. So we exec the FD to /dev/null,
18222# effectively closing config.log, so it can be properly (re)opened and
18223# appended to by config.status. When coming back to configure, we
18224# need to make the FD available again.
18225if test "$no_create" != yes; then
18226 ac_cs_success=:
18227 ac_config_status_args=
18228 test "$silent" = yes &&
18229 ac_config_status_args="$ac_config_status_args --quiet"
18230 exec 5>/dev/null
18231 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18232 exec 5>>config.log
18233 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18234 # would make configure fail if this is the last instruction.
18235 $ac_cs_success || as_fn_exit $?
18236fi
18237if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18239$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18240fi
18241