]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgo/configure
internal/syscall/unix: add constants for hurd
[thirdparty/gcc.git] / libgo / configure
CommitLineData
e440a328 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
ea2e69a4 3# Generated by GNU Autoconf 2.69 for package-unused version-unused.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
e440a328 7#
e440a328 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.
ea2e69a4 90as_myself=
e440a328 91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
ea2e69a4 135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
e440a328 160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
ea2e69a4 193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
e440a328 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
ea2e69a4 247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
e440a328 266fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279 fi
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
ea2e69a4 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
e440a328 364
365
366} # as_fn_mkdir_p
ea2e69a4 367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} # as_fn_executable_p
e440a328 375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
409
410
ea2e69a4 411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
e440a328 413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
ea2e69a4 415# script with STATUS, using 1 if that was 0.
e440a328 416as_fn_error ()
417{
ea2e69a4 418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
e440a328 422 fi
ea2e69a4 423 $as_echo "$as_me: error: $2" >&2
e440a328 424 as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430else
431 as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436else
437 as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
ea2e69a4 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
e440a328 500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517*)
518 ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
ea2e69a4 534 # In both cases, we have to default to `cp -pR'.
e440a328 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
ea2e69a4 536 as_ln_s='cp -pR'
e440a328 537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
ea2e69a4 540 as_ln_s='cp -pR'
e440a328 541 fi
542else
ea2e69a4 543 as_ln_s='cp -pR'
e440a328 544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
ea2e69a4 555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
e440a328 557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
ea2e69a4 567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
e440a328 569
570# Name of the host.
ea2e69a4 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
e440a328 572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='package-unused'
589PACKAGE_TARNAME='libgo'
590PACKAGE_VERSION='version-unused'
591PACKAGE_STRING='package-unused version-unused'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="Makefile.am"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610# include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615# include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635LIBOBJS
8dcdfb38 636HAVE_STAT_TIMESPEC_FALSE
637HAVE_STAT_TIMESPEC_TRUE
d772e63b 638STRUCT_EPOLL_EVENT_FD_OFFSET
639SIZEOF_STRUCT_EPOLL_EVENT
68e1881d 640MATH_FLAG
e440a328 641STRINGOPS_FLAG
37d6b690 642HAVE_WAIT4_FALSE
643HAVE_WAIT4_TRUE
ccd3f476 644HAVE_STRERROR_R_FALSE
645HAVE_STRERROR_R_TRUE
e440a328 646HAVE_SYS_MMAN_H_FALSE
647HAVE_SYS_MMAN_H_TRUE
f555a9df 648PTHREAD_LIBS
649PTHREAD_CFLAGS
cea7ac49 650NET_LIBS
7d17fab3 651MATH_LIBS
b5f8bff0 652GOC_IS_LLGO_FALSE
653GOC_IS_LLGO_TRUE
242418a3 654GO_SPLIT_STACK
e440a328 655USING_SPLIT_STACK_FALSE
656USING_SPLIT_STACK_TRUE
657SPLIT_STACK
f7b28005 658HWCAP_CFLAGS
69db433d 659OSCFLAGS
d477de41 660GO_SYSCALL_OS_ARCH_FILE
661GO_SYSCALL_OS_FILE
662GO_LIBCALL_OS_ARCH_FILE
663GO_LIBCALL_OS_FILE
91d733e1 664ALLGOARCHFAMILY
665ALLGOARCH
7731bf71 666GOARCH
6222f4a8 667USE_DEJAGNU
91d733e1 668ALLGOOS
7731bf71 669GOOS
be239ed2 670LIBGO_IS_BSD_FALSE
671LIBGO_IS_BSD_TRUE
c6ad139d 672LIBGO_IS_HURD_FALSE
673LIBGO_IS_HURD_TRUE
03118c21 674LIBGO_IS_AIX_FALSE
675LIBGO_IS_AIX_TRUE
cea7ac49 676LIBGO_IS_SOLARIS_FALSE
677LIBGO_IS_SOLARIS_TRUE
e440a328 678LIBGO_IS_RTEMS_FALSE
679LIBGO_IS_RTEMS_TRUE
0ce10ea1 680LIBGO_IS_DRAGONFLY_FALSE
681LIBGO_IS_DRAGONFLY_TRUE
fb08d005 682LIBGO_IS_OPENBSD_FALSE
683LIBGO_IS_OPENBSD_TRUE
86240434 684LIBGO_IS_NETBSD_FALSE
685LIBGO_IS_NETBSD_TRUE
e440a328 686LIBGO_IS_LINUX_FALSE
687LIBGO_IS_LINUX_TRUE
524b52f8 688LIBGO_IS_IRIX_FALSE
689LIBGO_IS_IRIX_TRUE
e440a328 690LIBGO_IS_FREEBSD_FALSE
691LIBGO_IS_FREEBSD_TRUE
692LIBGO_IS_DARWIN_FALSE
693LIBGO_IS_DARWIN_TRUE
4180345a 694go_include
7920387d 695LIBATOMIC
63e457ad 696USE_LIBFFI_FALSE
697USE_LIBFFI_TRUE
e440a328 698LIBFFIINCS
699LIBFFI
61efdf66 700nover_glibgo_toolexeclibdir
e440a328 701glibgo_toolexeclibdir
702glibgo_toolexecdir
e440a328 703WERROR
704WARN_FLAGS
a27e1015 705CC_FOR_BUILD
e440a328 706enable_static
707enable_shared
c9c0c1d2 708CPP
e440a328 709OTOOL64
710OTOOL
711LIPO
712NMEDIT
713DSYMUTIL
714AR
715OBJDUMP
716LN_S
717NM
718ac_ct_DUMPBIN
719DUMPBIN
720LIBTOOL
721OBJCOPY
722RANLIB
723LD
724FGREP
725EGREP
726GREP
c9c0c1d2 727SED
e440a328 728MAINT
729MAINTAINER_MODE_FALSE
730MAINTAINER_MODE_TRUE
ea2e69a4 731GOFLAGS
e440a328 732GOC
733am__fastdepCC_FALSE
734am__fastdepCC_TRUE
735CCDEPMODE
e92f1942 736am__nodep
e440a328 737AMDEPBACKSLASH
738AMDEP_FALSE
739AMDEP_TRUE
740am__quote
741am__include
742DEPDIR
743OBJEXT
744EXEEXT
745ac_ct_CC
746CPPFLAGS
747LDFLAGS
748CFLAGS
749CC
ea2e69a4 750AM_BACKSLASH
751AM_DEFAULT_VERBOSITY
752AM_DEFAULT_V
753AM_V
e440a328 754am__untar
755am__tar
756AMTAR
757am__leading_dot
758SET_MAKE
759AWK
760mkdir_p
761MKDIR_P
762INSTALL_STRIP_PROGRAM
763STRIP
764install_sh
765MAKEINFO
766AUTOHEADER
767AUTOMAKE
768AUTOCONF
769ACLOCAL
770VERSION
771PACKAGE
772CYGPATH_W
773am__isrc
774INSTALL_DATA
775INSTALL_SCRIPT
776INSTALL_PROGRAM
777target_os
778target_vendor
779target_cpu
780target
781host_os
782host_vendor
783host_cpu
784host
785build_os
786build_vendor
787build_cpu
788build
789multi_basedir
790libtool_VERSION
791target_alias
792host_alias
793build_alias
794LIBS
795ECHO_T
796ECHO_N
797ECHO_C
798DEFS
799mandir
800localedir
801libdir
802psdir
803pdfdir
804dvidir
805htmldir
806infodir
807docdir
808oldincludedir
809includedir
810localstatedir
811sharedstatedir
812sysconfdir
813datadir
814datarootdir
815libexecdir
816sbindir
817bindir
818program_transform_name
819prefix
820exec_prefix
821PACKAGE_URL
822PACKAGE_BUGREPORT
823PACKAGE_STRING
824PACKAGE_VERSION
825PACKAGE_TARNAME
826PACKAGE_NAME
827PATH_SEPARATOR
828SHELL'
829ac_subst_files=''
830ac_user_opts='
831enable_option_checking
832enable_multilib
ea2e69a4 833enable_silent_rules
e440a328 834enable_dependency_tracking
835enable_maintainer_mode
836with_gnu_ld
837enable_shared
838enable_static
839with_pic
840enable_fast_install
841enable_libtool_lock
75935341 842enable_werror
e440a328 843enable_version_specific_runtime_libs
844with_libffi
7920387d 845with_libatomic
4a273582 846with_system_libunwind
e440a328 847'
848 ac_precious_vars='build_alias
849host_alias
850target_alias
851CPP
852CPPFLAGS'
853
854
855# Initialize some variables set by options.
856ac_init_help=
857ac_init_version=false
858ac_unrecognized_opts=
859ac_unrecognized_sep=
860# The variables have the same names as the options, with
861# dashes changed to underlines.
862cache_file=/dev/null
863exec_prefix=NONE
864no_create=
865no_recursion=
866prefix=NONE
867program_prefix=NONE
868program_suffix=NONE
869program_transform_name=s,x,x,
870silent=
871site=
872srcdir=
873verbose=
874x_includes=NONE
875x_libraries=NONE
876
877# Installation directory options.
878# These are left unexpanded so users can "make install exec_prefix=/foo"
879# and all the variables that are supposed to be based on exec_prefix
880# by default will actually change.
881# Use braces instead of parens because sh, perl, etc. also accept them.
882# (The list follows the same order as the GNU Coding Standards.)
883bindir='${exec_prefix}/bin'
884sbindir='${exec_prefix}/sbin'
885libexecdir='${exec_prefix}/libexec'
886datarootdir='${prefix}/share'
887datadir='${datarootdir}'
888sysconfdir='${prefix}/etc'
889sharedstatedir='${prefix}/com'
890localstatedir='${prefix}/var'
891includedir='${prefix}/include'
892oldincludedir='/usr/include'
893docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
894infodir='${datarootdir}/info'
895htmldir='${docdir}'
896dvidir='${docdir}'
897pdfdir='${docdir}'
898psdir='${docdir}'
899libdir='${exec_prefix}/lib'
900localedir='${datarootdir}/locale'
901mandir='${datarootdir}/man'
902
903ac_prev=
904ac_dashdash=
905for ac_option
906do
907 # If the previous option needs an argument, assign it.
908 if test -n "$ac_prev"; then
909 eval $ac_prev=\$ac_option
910 ac_prev=
911 continue
912 fi
913
914 case $ac_option in
ea2e69a4 915 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
916 *=) ac_optarg= ;;
917 *) ac_optarg=yes ;;
e440a328 918 esac
919
920 # Accept the important Cygnus configure options, so we can diagnose typos.
921
922 case $ac_dashdash$ac_option in
923 --)
924 ac_dashdash=yes ;;
925
926 -bindir | --bindir | --bindi | --bind | --bin | --bi)
927 ac_prev=bindir ;;
928 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
929 bindir=$ac_optarg ;;
930
931 -build | --build | --buil | --bui | --bu)
932 ac_prev=build_alias ;;
933 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
934 build_alias=$ac_optarg ;;
935
936 -cache-file | --cache-file | --cache-fil | --cache-fi \
937 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
938 ac_prev=cache_file ;;
939 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
940 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
941 cache_file=$ac_optarg ;;
942
943 --config-cache | -C)
944 cache_file=config.cache ;;
945
946 -datadir | --datadir | --datadi | --datad)
947 ac_prev=datadir ;;
948 -datadir=* | --datadir=* | --datadi=* | --datad=*)
949 datadir=$ac_optarg ;;
950
951 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
952 | --dataroo | --dataro | --datar)
953 ac_prev=datarootdir ;;
954 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
955 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
956 datarootdir=$ac_optarg ;;
957
958 -disable-* | --disable-*)
959 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
ea2e69a4 962 as_fn_error $? "invalid feature name: $ac_useropt"
e440a328 963 ac_useropt_orig=$ac_useropt
964 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965 case $ac_user_opts in
966 *"
967"enable_$ac_useropt"
968"*) ;;
969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
970 ac_unrecognized_sep=', ';;
971 esac
972 eval enable_$ac_useropt=no ;;
973
974 -docdir | --docdir | --docdi | --doc | --do)
975 ac_prev=docdir ;;
976 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
977 docdir=$ac_optarg ;;
978
979 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
980 ac_prev=dvidir ;;
981 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
982 dvidir=$ac_optarg ;;
983
984 -enable-* | --enable-*)
985 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
986 # Reject names that are not valid shell variable names.
987 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
ea2e69a4 988 as_fn_error $? "invalid feature name: $ac_useropt"
e440a328 989 ac_useropt_orig=$ac_useropt
990 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
991 case $ac_user_opts in
992 *"
993"enable_$ac_useropt"
994"*) ;;
995 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
996 ac_unrecognized_sep=', ';;
997 esac
998 eval enable_$ac_useropt=\$ac_optarg ;;
999
1000 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1001 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1002 | --exec | --exe | --ex)
1003 ac_prev=exec_prefix ;;
1004 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1005 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1006 | --exec=* | --exe=* | --ex=*)
1007 exec_prefix=$ac_optarg ;;
1008
1009 -gas | --gas | --ga | --g)
1010 # Obsolete; use --with-gas.
1011 with_gas=yes ;;
1012
1013 -help | --help | --hel | --he | -h)
1014 ac_init_help=long ;;
1015 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1016 ac_init_help=recursive ;;
1017 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1018 ac_init_help=short ;;
1019
1020 -host | --host | --hos | --ho)
1021 ac_prev=host_alias ;;
1022 -host=* | --host=* | --hos=* | --ho=*)
1023 host_alias=$ac_optarg ;;
1024
1025 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1026 ac_prev=htmldir ;;
1027 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1028 | --ht=*)
1029 htmldir=$ac_optarg ;;
1030
1031 -includedir | --includedir | --includedi | --included | --include \
1032 | --includ | --inclu | --incl | --inc)
1033 ac_prev=includedir ;;
1034 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1035 | --includ=* | --inclu=* | --incl=* | --inc=*)
1036 includedir=$ac_optarg ;;
1037
1038 -infodir | --infodir | --infodi | --infod | --info | --inf)
1039 ac_prev=infodir ;;
1040 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1041 infodir=$ac_optarg ;;
1042
1043 -libdir | --libdir | --libdi | --libd)
1044 ac_prev=libdir ;;
1045 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1046 libdir=$ac_optarg ;;
1047
1048 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1049 | --libexe | --libex | --libe)
1050 ac_prev=libexecdir ;;
1051 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1052 | --libexe=* | --libex=* | --libe=*)
1053 libexecdir=$ac_optarg ;;
1054
1055 -localedir | --localedir | --localedi | --localed | --locale)
1056 ac_prev=localedir ;;
1057 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1058 localedir=$ac_optarg ;;
1059
1060 -localstatedir | --localstatedir | --localstatedi | --localstated \
1061 | --localstate | --localstat | --localsta | --localst | --locals)
1062 ac_prev=localstatedir ;;
1063 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1064 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1065 localstatedir=$ac_optarg ;;
1066
1067 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1068 ac_prev=mandir ;;
1069 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1070 mandir=$ac_optarg ;;
1071
1072 -nfp | --nfp | --nf)
1073 # Obsolete; use --without-fp.
1074 with_fp=no ;;
1075
1076 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1077 | --no-cr | --no-c | -n)
1078 no_create=yes ;;
1079
1080 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1081 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1082 no_recursion=yes ;;
1083
1084 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1085 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1086 | --oldin | --oldi | --old | --ol | --o)
1087 ac_prev=oldincludedir ;;
1088 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1089 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1090 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1091 oldincludedir=$ac_optarg ;;
1092
1093 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1094 ac_prev=prefix ;;
1095 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1096 prefix=$ac_optarg ;;
1097
1098 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1099 | --program-pre | --program-pr | --program-p)
1100 ac_prev=program_prefix ;;
1101 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1102 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1103 program_prefix=$ac_optarg ;;
1104
1105 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1106 | --program-suf | --program-su | --program-s)
1107 ac_prev=program_suffix ;;
1108 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1109 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1110 program_suffix=$ac_optarg ;;
1111
1112 -program-transform-name | --program-transform-name \
1113 | --program-transform-nam | --program-transform-na \
1114 | --program-transform-n | --program-transform- \
1115 | --program-transform | --program-transfor \
1116 | --program-transfo | --program-transf \
1117 | --program-trans | --program-tran \
1118 | --progr-tra | --program-tr | --program-t)
1119 ac_prev=program_transform_name ;;
1120 -program-transform-name=* | --program-transform-name=* \
1121 | --program-transform-nam=* | --program-transform-na=* \
1122 | --program-transform-n=* | --program-transform-=* \
1123 | --program-transform=* | --program-transfor=* \
1124 | --program-transfo=* | --program-transf=* \
1125 | --program-trans=* | --program-tran=* \
1126 | --progr-tra=* | --program-tr=* | --program-t=*)
1127 program_transform_name=$ac_optarg ;;
1128
1129 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1130 ac_prev=pdfdir ;;
1131 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1132 pdfdir=$ac_optarg ;;
1133
1134 -psdir | --psdir | --psdi | --psd | --ps)
1135 ac_prev=psdir ;;
1136 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1137 psdir=$ac_optarg ;;
1138
1139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1140 | -silent | --silent | --silen | --sile | --sil)
1141 silent=yes ;;
1142
1143 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1144 ac_prev=sbindir ;;
1145 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1146 | --sbi=* | --sb=*)
1147 sbindir=$ac_optarg ;;
1148
1149 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1150 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1151 | --sharedst | --shareds | --shared | --share | --shar \
1152 | --sha | --sh)
1153 ac_prev=sharedstatedir ;;
1154 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1155 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1156 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1157 | --sha=* | --sh=*)
1158 sharedstatedir=$ac_optarg ;;
1159
1160 -site | --site | --sit)
1161 ac_prev=site ;;
1162 -site=* | --site=* | --sit=*)
1163 site=$ac_optarg ;;
1164
1165 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1166 ac_prev=srcdir ;;
1167 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1168 srcdir=$ac_optarg ;;
1169
1170 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1171 | --syscon | --sysco | --sysc | --sys | --sy)
1172 ac_prev=sysconfdir ;;
1173 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1174 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1175 sysconfdir=$ac_optarg ;;
1176
1177 -target | --target | --targe | --targ | --tar | --ta | --t)
1178 ac_prev=target_alias ;;
1179 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1180 target_alias=$ac_optarg ;;
1181
1182 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1183 verbose=yes ;;
1184
1185 -version | --version | --versio | --versi | --vers | -V)
1186 ac_init_version=: ;;
1187
1188 -with-* | --with-*)
1189 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
ea2e69a4 1192 as_fn_error $? "invalid package name: $ac_useropt"
e440a328 1193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1196 *"
1197"with_$ac_useropt"
1198"*) ;;
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1201 esac
1202 eval with_$ac_useropt=\$ac_optarg ;;
1203
1204 -without-* | --without-*)
1205 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1206 # Reject names that are not valid shell variable names.
1207 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
ea2e69a4 1208 as_fn_error $? "invalid package name: $ac_useropt"
e440a328 1209 ac_useropt_orig=$ac_useropt
1210 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1211 case $ac_user_opts in
1212 *"
1213"with_$ac_useropt"
1214"*) ;;
1215 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1216 ac_unrecognized_sep=', ';;
1217 esac
1218 eval with_$ac_useropt=no ;;
1219
1220 --x)
1221 # Obsolete; use --with-x.
1222 with_x=yes ;;
1223
1224 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1225 | --x-incl | --x-inc | --x-in | --x-i)
1226 ac_prev=x_includes ;;
1227 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1228 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1229 x_includes=$ac_optarg ;;
1230
1231 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1232 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1233 ac_prev=x_libraries ;;
1234 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1235 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1236 x_libraries=$ac_optarg ;;
1237
ea2e69a4 1238 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1239Try \`$0 --help' for more information"
e440a328 1240 ;;
1241
1242 *=*)
1243 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1244 # Reject names that are not valid shell variable names.
1245 case $ac_envvar in #(
1246 '' | [0-9]* | *[!_$as_cr_alnum]* )
ea2e69a4 1247 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
e440a328 1248 esac
1249 eval $ac_envvar=\$ac_optarg
1250 export $ac_envvar ;;
1251
1252 *)
1253 # FIXME: should be removed in autoconf 3.0.
1254 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1255 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1256 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ea2e69a4 1257 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
e440a328 1258 ;;
1259
1260 esac
1261done
1262
1263if test -n "$ac_prev"; then
1264 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
ea2e69a4 1265 as_fn_error $? "missing argument to $ac_option"
e440a328 1266fi
1267
1268if test -n "$ac_unrecognized_opts"; then
1269 case $enable_option_checking in
1270 no) ;;
ea2e69a4 1271 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
e440a328 1272 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1273 esac
1274fi
1275
1276# Check all directory arguments for consistency.
1277for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1278 datadir sysconfdir sharedstatedir localstatedir includedir \
1279 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1280 libdir localedir mandir
1281do
1282 eval ac_val=\$$ac_var
1283 # Remove trailing slashes.
1284 case $ac_val in
1285 */ )
1286 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1287 eval $ac_var=\$ac_val;;
1288 esac
1289 # Be sure to have absolute directory names.
1290 case $ac_val in
1291 [\\/$]* | ?:[\\/]* ) continue;;
1292 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1293 esac
ea2e69a4 1294 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
e440a328 1295done
1296
1297# There might be people who depend on the old broken behavior: `$host'
1298# used to hold the argument of --host etc.
1299# FIXME: To remove some day.
1300build=$build_alias
1301host=$host_alias
1302target=$target_alias
1303
1304# FIXME: To remove some day.
1305if test "x$host_alias" != x; then
1306 if test "x$build_alias" = x; then
1307 cross_compiling=maybe
e440a328 1308 elif test "x$build_alias" != "x$host_alias"; then
1309 cross_compiling=yes
1310 fi
1311fi
1312
1313ac_tool_prefix=
1314test -n "$host_alias" && ac_tool_prefix=$host_alias-
1315
1316test "$silent" = yes && exec 6>/dev/null
1317
1318
1319ac_pwd=`pwd` && test -n "$ac_pwd" &&
1320ac_ls_di=`ls -di .` &&
1321ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
ea2e69a4 1322 as_fn_error $? "working directory cannot be determined"
e440a328 1323test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
ea2e69a4 1324 as_fn_error $? "pwd does not report name of working directory"
e440a328 1325
1326
1327# Find the source files, if location was not specified.
1328if test -z "$srcdir"; then
1329 ac_srcdir_defaulted=yes
1330 # Try the directory containing this script, then the parent directory.
1331 ac_confdir=`$as_dirname -- "$as_myself" ||
1332$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1333 X"$as_myself" : 'X\(//\)[^/]' \| \
1334 X"$as_myself" : 'X\(//\)$' \| \
1335 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1336$as_echo X"$as_myself" |
1337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1338 s//\1/
1339 q
1340 }
1341 /^X\(\/\/\)[^/].*/{
1342 s//\1/
1343 q
1344 }
1345 /^X\(\/\/\)$/{
1346 s//\1/
1347 q
1348 }
1349 /^X\(\/\).*/{
1350 s//\1/
1351 q
1352 }
1353 s/.*/./; q'`
1354 srcdir=$ac_confdir
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1356 srcdir=..
1357 fi
1358else
1359 ac_srcdir_defaulted=no
1360fi
1361if test ! -r "$srcdir/$ac_unique_file"; then
1362 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
ea2e69a4 1363 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
e440a328 1364fi
1365ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1366ac_abs_confdir=`(
ea2e69a4 1367 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
e440a328 1368 pwd)`
1369# When building in place, set srcdir=.
1370if test "$ac_abs_confdir" = "$ac_pwd"; then
1371 srcdir=.
1372fi
1373# Remove unnecessary trailing slashes from srcdir.
1374# Double slashes in file names in object file debugging info
1375# mess up M-x gdb in Emacs.
1376case $srcdir in
1377*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1378esac
1379for ac_var in $ac_precious_vars; do
1380 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_env_${ac_var}_value=\$${ac_var}
1382 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1384done
1385
1386#
1387# Report the --help message.
1388#
1389if test "$ac_init_help" = "long"; then
1390 # Omit some internal or obsolete options to make the list less imposing.
1391 # This message is too long to be a string in the A/UX 3.1 sh.
1392 cat <<_ACEOF
1393\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1394
1395Usage: $0 [OPTION]... [VAR=VALUE]...
1396
1397To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398VAR=VALUE. See below for descriptions of some of the useful variables.
1399
1400Defaults for the options are specified in brackets.
1401
1402Configuration:
1403 -h, --help display this help and exit
1404 --help=short display options specific to this package
1405 --help=recursive display the short help of all the included packages
1406 -V, --version display version information and exit
ea2e69a4 1407 -q, --quiet, --silent do not print \`checking ...' messages
e440a328 1408 --cache-file=FILE cache test results in FILE [disabled]
1409 -C, --config-cache alias for \`--cache-file=config.cache'
1410 -n, --no-create do not create output files
1411 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1412
1413Installation directories:
1414 --prefix=PREFIX install architecture-independent files in PREFIX
1415 [$ac_default_prefix]
1416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1417 [PREFIX]
1418
1419By default, \`make install' will install all the files in
1420\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1421an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1422for instance \`--prefix=\$HOME'.
1423
1424For better control, use the options below.
1425
1426Fine tuning of the installation directories:
1427 --bindir=DIR user executables [EPREFIX/bin]
1428 --sbindir=DIR system admin executables [EPREFIX/sbin]
1429 --libexecdir=DIR program executables [EPREFIX/libexec]
1430 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1431 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1432 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1433 --libdir=DIR object code libraries [EPREFIX/lib]
1434 --includedir=DIR C header files [PREFIX/include]
1435 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1436 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1437 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1438 --infodir=DIR info documentation [DATAROOTDIR/info]
1439 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1440 --mandir=DIR man documentation [DATAROOTDIR/man]
1441 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1442 --htmldir=DIR html documentation [DOCDIR]
1443 --dvidir=DIR dvi documentation [DOCDIR]
1444 --pdfdir=DIR pdf documentation [DOCDIR]
1445 --psdir=DIR ps documentation [DOCDIR]
1446_ACEOF
1447
1448 cat <<\_ACEOF
1449
1450Program names:
1451 --program-prefix=PREFIX prepend PREFIX to installed program names
1452 --program-suffix=SUFFIX append SUFFIX to installed program names
1453 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1454
1455System types:
1456 --build=BUILD configure for building on BUILD [guessed]
1457 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1458 --target=TARGET configure for building compilers for TARGET [HOST]
1459_ACEOF
1460fi
1461
1462if test -n "$ac_init_help"; then
1463 case $ac_init_help in
1464 short | recursive ) echo "Configuration of package-unused version-unused:";;
1465 esac
1466 cat <<\_ACEOF
1467
1468Optional Features:
1469 --disable-option-checking ignore unrecognized --enable/--with options
1470 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1471 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1472 --enable-multilib build many library versions (default)
ea2e69a4 1473 --enable-silent-rules less verbose build output (undo: "make V=1")
1474 --disable-silent-rules verbose build output (undo: "make V=0")
1475 --enable-dependency-tracking
1476 do not reject slow dependency extractors
1477 --disable-dependency-tracking
1478 speeds up one-time build
1479 --enable-maintainer-mode
1480 enable make rules and dependencies not useful (and
1481 sometimes confusing) to the casual installer
e440a328 1482 --enable-shared[=PKGS] build shared libraries [default=yes]
1483 --enable-static[=PKGS] build static libraries [default=yes]
1484 --enable-fast-install[=PKGS]
1485 optimize for fast installation [default=yes]
1486 --disable-libtool-lock avoid locking (might break parallel builds)
75935341 1487 --enable-werror turns on -Werror [default=yes]
e440a328 1488 --enable-version-specific-runtime-libs
1489 Specify that runtime libraries should be installed
1490 in a compiler-specific directory
1491
1492Optional Packages:
1493 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1494 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1495 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1496 --with-pic try to use only PIC/non-PIC objects [default=use
1497 both]
1498 --without-libffi don't use libffi
7920387d 1499 --without-libatomic don't use libatomic
4a273582 1500 --with-system-libunwind use installed libunwind
e440a328 1501
1502Some influential environment variables:
1503 CC C compiler command
1504 CFLAGS C compiler flags
1505 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1506 nonstandard directory <lib dir>
1507 LIBS libraries to pass to the linker, e.g. -l<library>
ea2e69a4 1508 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
e440a328 1509 you have headers in a nonstandard directory <include dir>
1510 GOC Go compiler command
ea2e69a4 1511 GOFLAGS Go compiler flags
e440a328 1512 CPP C preprocessor
1513
1514Use these variables to override the choices made by `configure' or to help
1515it to find libraries and programs with nonstandard names/locations.
1516
1517Report bugs to the package provider.
1518_ACEOF
1519ac_status=$?
1520fi
1521
1522if test "$ac_init_help" = "recursive"; then
1523 # If there are subdirs, report their specific --help.
1524 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1525 test -d "$ac_dir" ||
1526 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1527 continue
1528 ac_builddir=.
1529
1530case "$ac_dir" in
1531.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532*)
1533 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1534 # A ".." for each directory in $ac_dir_suffix.
1535 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1536 case $ac_top_builddir_sub in
1537 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1539 esac ;;
1540esac
1541ac_abs_top_builddir=$ac_pwd
1542ac_abs_builddir=$ac_pwd$ac_dir_suffix
1543# for backward compatibility:
1544ac_top_builddir=$ac_top_build_prefix
1545
1546case $srcdir in
1547 .) # We are building in place.
1548 ac_srcdir=.
1549 ac_top_srcdir=$ac_top_builddir_sub
1550 ac_abs_top_srcdir=$ac_pwd ;;
1551 [\\/]* | ?:[\\/]* ) # Absolute name.
1552 ac_srcdir=$srcdir$ac_dir_suffix;
1553 ac_top_srcdir=$srcdir
1554 ac_abs_top_srcdir=$srcdir ;;
1555 *) # Relative name.
1556 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1557 ac_top_srcdir=$ac_top_build_prefix$srcdir
1558 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1559esac
1560ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1561
1562 cd "$ac_dir" || { ac_status=$?; continue; }
1563 # Check for guested configure.
1564 if test -f "$ac_srcdir/configure.gnu"; then
1565 echo &&
1566 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1567 elif test -f "$ac_srcdir/configure"; then
1568 echo &&
1569 $SHELL "$ac_srcdir/configure" --help=recursive
1570 else
1571 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1572 fi || ac_status=$?
1573 cd "$ac_pwd" || { ac_status=$?; break; }
1574 done
1575fi
1576
1577test -n "$ac_init_help" && exit $ac_status
1578if $ac_init_version; then
1579 cat <<\_ACEOF
1580package-unused configure version-unused
ea2e69a4 1581generated by GNU Autoconf 2.69
e440a328 1582
ea2e69a4 1583Copyright (C) 2012 Free Software Foundation, Inc.
e440a328 1584This configure script is free software; the Free Software Foundation
1585gives unlimited permission to copy, distribute and modify it.
1586_ACEOF
1587 exit
1588fi
1589
1590## ------------------------ ##
1591## Autoconf initialization. ##
1592## ------------------------ ##
1593
1594# ac_fn_c_try_compile LINENO
1595# --------------------------
1596# Try to compile conftest.$ac_ext, and return whether this succeeded.
1597ac_fn_c_try_compile ()
1598{
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 rm -f conftest.$ac_objext
1601 if { { ac_try="$ac_compile"
1602case "(($ac_try" in
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1605esac
1606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607$as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_compile") 2>conftest.err
1609 ac_status=$?
1610 if test -s conftest.err; then
1611 grep -v '^ *+' conftest.err >conftest.er1
1612 cat conftest.er1 >&5
1613 mv -f conftest.er1 conftest.err
1614 fi
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } && {
1617 test -z "$ac_c_werror_flag" ||
1618 test ! -s conftest.err
1619 } && test -s conftest.$ac_objext; then :
1620 ac_retval=0
1621else
1622 $as_echo "$as_me: failed program was:" >&5
1623sed 's/^/| /' conftest.$ac_ext >&5
1624
1625 ac_retval=1
1626fi
ea2e69a4 1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628 as_fn_set_status $ac_retval
e440a328 1629
1630} # ac_fn_c_try_compile
1631
c9c0c1d2 1632# ac_fn_c_try_link LINENO
1633# -----------------------
1634# Try to link conftest.$ac_ext, and return whether this succeeded.
1635ac_fn_c_try_link ()
e440a328 1636{
1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
c9c0c1d2 1638 rm -f conftest.$ac_objext conftest$ac_exeext
1639 if { { ac_try="$ac_link"
e440a328 1640case "(($ac_try" in
1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642 *) ac_try_echo=$ac_try;;
1643esac
1644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645$as_echo "$ac_try_echo"; } >&5
c9c0c1d2 1646 (eval "$ac_link") 2>conftest.err
e440a328 1647 ac_status=$?
1648 if test -s conftest.err; then
1649 grep -v '^ *+' conftest.err >conftest.er1
1650 cat conftest.er1 >&5
1651 mv -f conftest.er1 conftest.err
1652 fi
1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
c9c0c1d2 1654 test $ac_status = 0; } && {
1655 test -z "$ac_c_werror_flag" ||
e440a328 1656 test ! -s conftest.err
c9c0c1d2 1657 } && test -s conftest$ac_exeext && {
1658 test "$cross_compiling" = yes ||
ea2e69a4 1659 test -x conftest$ac_exeext
e440a328 1660 }; then :
1661 ac_retval=0
1662else
1663 $as_echo "$as_me: failed program was:" >&5
1664sed 's/^/| /' conftest.$ac_ext >&5
1665
c9c0c1d2 1666 ac_retval=1
e440a328 1667fi
c9c0c1d2 1668 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1669 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1670 # interfere with the next link command; also delete a directory that is
1671 # left behind by Apple's compiler. We do this before executing the actions.
e440a328 1672 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ea2e69a4 1673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674 as_fn_set_status $ac_retval
e440a328 1675
c9c0c1d2 1676} # ac_fn_c_try_link
e440a328 1677
1678# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1679# -------------------------------------------------------
1680# Tests whether HEADER exists and can be compiled using the include files in
1681# INCLUDES, setting the cache variable VAR accordingly.
1682ac_fn_c_check_header_compile ()
1683{
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1686$as_echo_n "checking for $2... " >&6; }
ea2e69a4 1687if eval \${$3+:} false; then :
e440a328 1688 $as_echo_n "(cached) " >&6
1689else
1690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1691/* end confdefs.h. */
1692$4
1693#include <$2>
1694_ACEOF
1695if ac_fn_c_try_compile "$LINENO"; then :
1696 eval "$3=yes"
1697else
1698 eval "$3=no"
1699fi
1700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1701fi
1702eval ac_res=\$$3
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1704$as_echo "$ac_res" >&6; }
ea2e69a4 1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
e440a328 1706
1707} # ac_fn_c_check_header_compile
1708
c9c0c1d2 1709# ac_fn_c_try_cpp LINENO
1710# ----------------------
1711# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1712ac_fn_c_try_cpp ()
e440a328 1713{
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
c9c0c1d2 1715 if { { ac_try="$ac_cpp conftest.$ac_ext"
e440a328 1716case "(($ac_try" in
1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718 *) ac_try_echo=$ac_try;;
1719esac
1720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721$as_echo "$ac_try_echo"; } >&5
c9c0c1d2 1722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
e440a328 1723 ac_status=$?
1724 if test -s conftest.err; then
1725 grep -v '^ *+' conftest.err >conftest.er1
1726 cat conftest.er1 >&5
1727 mv -f conftest.er1 conftest.err
1728 fi
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
ea2e69a4 1730 test $ac_status = 0; } > conftest.i && {
c9c0c1d2 1731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
e440a328 1732 test ! -s conftest.err
1733 }; then :
1734 ac_retval=0
1735else
1736 $as_echo "$as_me: failed program was:" >&5
1737sed 's/^/| /' conftest.$ac_ext >&5
1738
c9c0c1d2 1739 ac_retval=1
1740fi
ea2e69a4 1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742 as_fn_set_status $ac_retval
c9c0c1d2 1743
1744} # ac_fn_c_try_cpp
1745
1746# ac_fn_c_try_run LINENO
1747# ----------------------
1748# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1749# that executables *can* be run.
1750ac_fn_c_try_run ()
1751{
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 if { { ac_try="$ac_link"
1754case "(($ac_try" in
1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756 *) ac_try_echo=$ac_try;;
1757esac
1758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759$as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_link") 2>&5
1761 ac_status=$?
1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1764 { { case "(($ac_try" in
1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766 *) ac_try_echo=$ac_try;;
1767esac
1768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769$as_echo "$ac_try_echo"; } >&5
1770 (eval "$ac_try") 2>&5
1771 ac_status=$?
1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773 test $ac_status = 0; }; }; then :
1774 ac_retval=0
1775else
1776 $as_echo "$as_me: program exited with status $ac_status" >&5
1777 $as_echo "$as_me: failed program was:" >&5
1778sed 's/^/| /' conftest.$ac_ext >&5
1779
1780 ac_retval=$ac_status
e440a328 1781fi
1782 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ea2e69a4 1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784 as_fn_set_status $ac_retval
e440a328 1785
c9c0c1d2 1786} # ac_fn_c_try_run
e440a328 1787
1788# ac_fn_c_check_func LINENO FUNC VAR
1789# ----------------------------------
1790# Tests whether FUNC exists, setting the cache variable VAR accordingly
1791ac_fn_c_check_func ()
1792{
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795$as_echo_n "checking for $2... " >&6; }
ea2e69a4 1796if eval \${$3+:} false; then :
e440a328 1797 $as_echo_n "(cached) " >&6
1798else
1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800/* end confdefs.h. */
1801/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1803#define $2 innocuous_$2
1804
1805/* System header to define __stub macros and hopefully few prototypes,
1806 which can conflict with char $2 (); below.
1807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1808 <limits.h> exists even on freestanding compilers. */
1809
1810#ifdef __STDC__
1811# include <limits.h>
1812#else
1813# include <assert.h>
1814#endif
1815
1816#undef $2
1817
1818/* Override any GCC internal prototype to avoid an error.
1819 Use char because int might match the return type of a GCC
1820 builtin and then its argument prototype would still apply. */
1821#ifdef __cplusplus
1822extern "C"
1823#endif
1824char $2 ();
1825/* The GNU C library defines this for functions which it implements
1826 to always fail with ENOSYS. Some functions are actually named
1827 something starting with __ and the normal name is an alias. */
1828#if defined __stub_$2 || defined __stub___$2
1829choke me
1830#endif
1831
1832int
1833main ()
1834{
1835return $2 ();
1836 ;
1837 return 0;
1838}
1839_ACEOF
1840if ac_fn_c_try_link "$LINENO"; then :
1841 eval "$3=yes"
1842else
1843 eval "$3=no"
1844fi
1845rm -f core conftest.err conftest.$ac_objext \
1846 conftest$ac_exeext conftest.$ac_ext
1847fi
1848eval ac_res=\$$3
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850$as_echo "$ac_res" >&6; }
ea2e69a4 1851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
e440a328 1852
1853} # ac_fn_c_check_func
1854
1855# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1856# -------------------------------------------------------
1857# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1858# the include files in INCLUDES and setting the cache variable VAR
1859# accordingly.
1860ac_fn_c_check_header_mongrel ()
1861{
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
ea2e69a4 1863 if eval \${$3+:} false; then :
e440a328 1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1865$as_echo_n "checking for $2... " >&6; }
ea2e69a4 1866if eval \${$3+:} false; then :
e440a328 1867 $as_echo_n "(cached) " >&6
1868fi
1869eval ac_res=\$$3
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871$as_echo "$ac_res" >&6; }
1872else
1873 # Is the header compilable?
1874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1875$as_echo_n "checking $2 usability... " >&6; }
1876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877/* end confdefs.h. */
1878$4
1879#include <$2>
1880_ACEOF
1881if ac_fn_c_try_compile "$LINENO"; then :
1882 ac_header_compiler=yes
1883else
1884 ac_header_compiler=no
1885fi
1886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1888$as_echo "$ac_header_compiler" >&6; }
1889
1890# Is the header present?
1891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1892$as_echo_n "checking $2 presence... " >&6; }
1893cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894/* end confdefs.h. */
1895#include <$2>
1896_ACEOF
1897if ac_fn_c_try_cpp "$LINENO"; then :
1898 ac_header_preproc=yes
1899else
1900 ac_header_preproc=no
1901fi
ea2e69a4 1902rm -f conftest.err conftest.i conftest.$ac_ext
e440a328 1903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1904$as_echo "$ac_header_preproc" >&6; }
1905
1906# So? What about this header?
1907case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1908 yes:no: )
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1910$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1912$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1913 ;;
1914 no:yes:* )
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1916$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1918$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1920$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1922$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1924$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1925 ;;
1926esac
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1928$as_echo_n "checking for $2... " >&6; }
ea2e69a4 1929if eval \${$3+:} false; then :
e440a328 1930 $as_echo_n "(cached) " >&6
1931else
1932 eval "$3=\$ac_header_compiler"
1933fi
1934eval ac_res=\$$3
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936$as_echo "$ac_res" >&6; }
1937fi
ea2e69a4 1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
e440a328 1939
1940} # ac_fn_c_check_header_mongrel
1941
1942# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1943# -------------------------------------------
1944# Tests whether TYPE exists after having included INCLUDES, setting cache
1945# variable VAR accordingly.
1946ac_fn_c_check_type ()
1947{
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1950$as_echo_n "checking for $2... " >&6; }
ea2e69a4 1951if eval \${$3+:} false; then :
e440a328 1952 $as_echo_n "(cached) " >&6
1953else
1954 eval "$3=no"
1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956/* end confdefs.h. */
1957$4
1958int
1959main ()
1960{
1961if (sizeof ($2))
1962 return 0;
1963 ;
1964 return 0;
1965}
1966_ACEOF
1967if ac_fn_c_try_compile "$LINENO"; then :
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969/* end confdefs.h. */
1970$4
1971int
1972main ()
1973{
1974if (sizeof (($2)))
1975 return 0;
1976 ;
1977 return 0;
1978}
1979_ACEOF
1980if ac_fn_c_try_compile "$LINENO"; then :
1981
1982else
1983 eval "$3=yes"
1984fi
1985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1986fi
1987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1988fi
1989eval ac_res=\$$3
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1991$as_echo "$ac_res" >&6; }
ea2e69a4 1992 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
e440a328 1993
1994} # ac_fn_c_check_type
d772e63b 1995
1996# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1997# --------------------------------------------
1998# Tries to find the compile-time value of EXPR in a program that includes
1999# INCLUDES, setting VAR accordingly. Returns whether the value could be
2000# computed
2001ac_fn_c_compute_int ()
2002{
2003 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004 if test "$cross_compiling" = yes; then
2005 # Depending upon the size, compute the lo and hi bounds.
2006cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007/* end confdefs.h. */
2008$4
2009int
2010main ()
2011{
2012static int test_array [1 - 2 * !(($2) >= 0)];
ea2e69a4 2013test_array [0] = 0;
2014return test_array [0];
d772e63b 2015
2016 ;
2017 return 0;
2018}
2019_ACEOF
2020if ac_fn_c_try_compile "$LINENO"; then :
2021 ac_lo=0 ac_mid=0
2022 while :; do
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024/* end confdefs.h. */
2025$4
2026int
2027main ()
2028{
2029static int test_array [1 - 2 * !(($2) <= $ac_mid)];
ea2e69a4 2030test_array [0] = 0;
2031return test_array [0];
d772e63b 2032
2033 ;
2034 return 0;
2035}
2036_ACEOF
2037if ac_fn_c_try_compile "$LINENO"; then :
2038 ac_hi=$ac_mid; break
2039else
2040 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2041 if test $ac_lo -le $ac_mid; then
2042 ac_lo= ac_hi=
2043 break
2044 fi
2045 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2046fi
2047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048 done
2049else
2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051/* end confdefs.h. */
2052$4
2053int
2054main ()
2055{
2056static int test_array [1 - 2 * !(($2) < 0)];
ea2e69a4 2057test_array [0] = 0;
2058return test_array [0];
d772e63b 2059
2060 ;
2061 return 0;
2062}
2063_ACEOF
2064if ac_fn_c_try_compile "$LINENO"; then :
2065 ac_hi=-1 ac_mid=-1
2066 while :; do
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068/* end confdefs.h. */
2069$4
2070int
2071main ()
2072{
2073static int test_array [1 - 2 * !(($2) >= $ac_mid)];
ea2e69a4 2074test_array [0] = 0;
2075return test_array [0];
d772e63b 2076
2077 ;
2078 return 0;
2079}
2080_ACEOF
2081if ac_fn_c_try_compile "$LINENO"; then :
2082 ac_lo=$ac_mid; break
2083else
2084 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2085 if test $ac_mid -le $ac_hi; then
2086 ac_lo= ac_hi=
2087 break
2088 fi
2089 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2090fi
2091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2092 done
2093else
2094 ac_lo= ac_hi=
2095fi
2096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097fi
2098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099# Binary search between lo and hi bounds.
2100while test "x$ac_lo" != "x$ac_hi"; do
2101 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103/* end confdefs.h. */
2104$4
2105int
2106main ()
2107{
2108static int test_array [1 - 2 * !(($2) <= $ac_mid)];
ea2e69a4 2109test_array [0] = 0;
2110return test_array [0];
d772e63b 2111
2112 ;
2113 return 0;
2114}
2115_ACEOF
2116if ac_fn_c_try_compile "$LINENO"; then :
2117 ac_hi=$ac_mid
2118else
2119 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2120fi
2121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122done
2123case $ac_lo in #((
2124?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2125'') ac_retval=1 ;;
2126esac
2127 else
2128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129/* end confdefs.h. */
2130$4
2131static long int longval () { return $2; }
2132static unsigned long int ulongval () { return $2; }
2133#include <stdio.h>
2134#include <stdlib.h>
2135int
2136main ()
2137{
2138
2139 FILE *f = fopen ("conftest.val", "w");
2140 if (! f)
2141 return 1;
2142 if (($2) < 0)
2143 {
2144 long int i = longval ();
2145 if (i != ($2))
2146 return 1;
2147 fprintf (f, "%ld", i);
2148 }
2149 else
2150 {
2151 unsigned long int i = ulongval ();
2152 if (i != ($2))
2153 return 1;
2154 fprintf (f, "%lu", i);
2155 }
2156 /* Do not output a trailing newline, as this causes \r\n confusion
2157 on some platforms. */
2158 return ferror (f) || fclose (f) != 0;
2159
2160 ;
2161 return 0;
2162}
2163_ACEOF
2164if ac_fn_c_try_run "$LINENO"; then :
2165 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2166else
2167 ac_retval=1
2168fi
2169rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2170 conftest.$ac_objext conftest.beam conftest.$ac_ext
2171rm -f conftest.val
2172
2173 fi
ea2e69a4 2174 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2175 as_fn_set_status $ac_retval
d772e63b 2176
2177} # ac_fn_c_compute_int
e440a328 2178cat >config.log <<_ACEOF
2179This file contains any messages produced by compilers while
2180running configure, to aid debugging if configure makes a mistake.
2181
2182It was created by package-unused $as_me version-unused, which was
ea2e69a4 2183generated by GNU Autoconf 2.69. Invocation command line was
e440a328 2184
2185 $ $0 $@
2186
2187_ACEOF
2188exec 5>>config.log
2189{
2190cat <<_ASUNAME
2191## --------- ##
2192## Platform. ##
2193## --------- ##
2194
2195hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2196uname -m = `(uname -m) 2>/dev/null || echo unknown`
2197uname -r = `(uname -r) 2>/dev/null || echo unknown`
2198uname -s = `(uname -s) 2>/dev/null || echo unknown`
2199uname -v = `(uname -v) 2>/dev/null || echo unknown`
2200
2201/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2202/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2203
2204/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2205/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2206/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2207/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2208/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2209/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2210/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2211
2212_ASUNAME
2213
2214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2215for as_dir in $PATH
2216do
2217 IFS=$as_save_IFS
2218 test -z "$as_dir" && as_dir=.
2219 $as_echo "PATH: $as_dir"
2220 done
2221IFS=$as_save_IFS
2222
2223} >&5
2224
2225cat >&5 <<_ACEOF
2226
2227
2228## ----------- ##
2229## Core tests. ##
2230## ----------- ##
2231
2232_ACEOF
2233
2234
2235# Keep a trace of the command line.
2236# Strip out --no-create and --no-recursion so they do not pile up.
2237# Strip out --silent because we don't want to record it for future runs.
2238# Also quote any args containing shell meta-characters.
2239# Make two passes to allow for proper duplicate-argument suppression.
2240ac_configure_args=
2241ac_configure_args0=
2242ac_configure_args1=
2243ac_must_keep_next=false
2244for ac_pass in 1 2
2245do
2246 for ac_arg
2247 do
2248 case $ac_arg in
2249 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2250 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2251 | -silent | --silent | --silen | --sile | --sil)
2252 continue ;;
2253 *\'*)
2254 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2255 esac
2256 case $ac_pass in
2257 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2258 2)
2259 as_fn_append ac_configure_args1 " '$ac_arg'"
2260 if test $ac_must_keep_next = true; then
2261 ac_must_keep_next=false # Got value, back to normal.
2262 else
2263 case $ac_arg in
2264 *=* | --config-cache | -C | -disable-* | --disable-* \
2265 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2266 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2267 | -with-* | --with-* | -without-* | --without-* | --x)
2268 case "$ac_configure_args0 " in
2269 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2270 esac
2271 ;;
2272 -* ) ac_must_keep_next=true ;;
2273 esac
2274 fi
2275 as_fn_append ac_configure_args " '$ac_arg'"
2276 ;;
2277 esac
2278 done
2279done
2280{ ac_configure_args0=; unset ac_configure_args0;}
2281{ ac_configure_args1=; unset ac_configure_args1;}
2282
2283# When interrupted or exit'd, cleanup temporary files, and complete
2284# config.log. We remove comments because anyway the quotes in there
2285# would cause problems or look ugly.
2286# WARNING: Use '\'' to represent an apostrophe within the trap.
2287# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2288trap 'exit_status=$?
2289 # Save into config.log some information that might help in debugging.
2290 {
2291 echo
2292
ea2e69a4 2293 $as_echo "## ---------------- ##
e440a328 2294## Cache variables. ##
ea2e69a4 2295## ---------------- ##"
e440a328 2296 echo
2297 # The following way of writing the cache mishandles newlines in values,
2298(
2299 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2300 eval ac_val=\$$ac_var
2301 case $ac_val in #(
2302 *${as_nl}*)
2303 case $ac_var in #(
2304 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2305$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2306 esac
2307 case $ac_var in #(
2308 _ | IFS | as_nl) ;; #(
2309 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2310 *) { eval $ac_var=; unset $ac_var;} ;;
2311 esac ;;
2312 esac
2313 done
2314 (set) 2>&1 |
2315 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2316 *${as_nl}ac_space=\ *)
2317 sed -n \
2318 "s/'\''/'\''\\\\'\'''\''/g;
2319 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2320 ;; #(
2321 *)
2322 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2323 ;;
2324 esac |
2325 sort
2326)
2327 echo
2328
ea2e69a4 2329 $as_echo "## ----------------- ##
e440a328 2330## Output variables. ##
ea2e69a4 2331## ----------------- ##"
e440a328 2332 echo
2333 for ac_var in $ac_subst_vars
2334 do
2335 eval ac_val=\$$ac_var
2336 case $ac_val in
2337 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2338 esac
2339 $as_echo "$ac_var='\''$ac_val'\''"
2340 done | sort
2341 echo
2342
2343 if test -n "$ac_subst_files"; then
ea2e69a4 2344 $as_echo "## ------------------- ##
e440a328 2345## File substitutions. ##
ea2e69a4 2346## ------------------- ##"
e440a328 2347 echo
2348 for ac_var in $ac_subst_files
2349 do
2350 eval ac_val=\$$ac_var
2351 case $ac_val in
2352 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2353 esac
2354 $as_echo "$ac_var='\''$ac_val'\''"
2355 done | sort
2356 echo
2357 fi
2358
2359 if test -s confdefs.h; then
ea2e69a4 2360 $as_echo "## ----------- ##
e440a328 2361## confdefs.h. ##
ea2e69a4 2362## ----------- ##"
e440a328 2363 echo
2364 cat confdefs.h
2365 echo
2366 fi
2367 test "$ac_signal" != 0 &&
2368 $as_echo "$as_me: caught signal $ac_signal"
2369 $as_echo "$as_me: exit $exit_status"
2370 } >&5
2371 rm -f core *.core core.conftest.* &&
2372 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2373 exit $exit_status
2374' 0
2375for ac_signal in 1 2 13 15; do
2376 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2377done
2378ac_signal=0
2379
2380# confdefs.h avoids OS command line length limits that DEFS can exceed.
2381rm -f -r conftest* confdefs.h
2382
2383$as_echo "/* confdefs.h */" > confdefs.h
2384
2385# Predefined preprocessor variables.
2386
2387cat >>confdefs.h <<_ACEOF
2388#define PACKAGE_NAME "$PACKAGE_NAME"
2389_ACEOF
2390
2391cat >>confdefs.h <<_ACEOF
2392#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2393_ACEOF
2394
2395cat >>confdefs.h <<_ACEOF
2396#define PACKAGE_VERSION "$PACKAGE_VERSION"
2397_ACEOF
2398
2399cat >>confdefs.h <<_ACEOF
2400#define PACKAGE_STRING "$PACKAGE_STRING"
2401_ACEOF
2402
2403cat >>confdefs.h <<_ACEOF
2404#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2405_ACEOF
2406
2407cat >>confdefs.h <<_ACEOF
2408#define PACKAGE_URL "$PACKAGE_URL"
2409_ACEOF
2410
2411
2412# Let the site file select an alternate cache file if it wants to.
2413# Prefer an explicitly selected file to automatically selected ones.
2414ac_site_file1=NONE
2415ac_site_file2=NONE
2416if test -n "$CONFIG_SITE"; then
ea2e69a4 2417 # We do not want a PATH search for config.site.
2418 case $CONFIG_SITE in #((
2419 -*) ac_site_file1=./$CONFIG_SITE;;
2420 */*) ac_site_file1=$CONFIG_SITE;;
2421 *) ac_site_file1=./$CONFIG_SITE;;
2422 esac
e440a328 2423elif test "x$prefix" != xNONE; then
2424 ac_site_file1=$prefix/share/config.site
2425 ac_site_file2=$prefix/etc/config.site
2426else
2427 ac_site_file1=$ac_default_prefix/share/config.site
2428 ac_site_file2=$ac_default_prefix/etc/config.site
2429fi
2430for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2431do
2432 test "x$ac_site_file" = xNONE && continue
ea2e69a4 2433 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
e440a328 2434 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2435$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2436 sed 's/^/| /' "$ac_site_file" >&5
ea2e69a4 2437 . "$ac_site_file" \
2438 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2439$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2440as_fn_error $? "failed to load site script $ac_site_file
2441See \`config.log' for more details" "$LINENO" 5; }
e440a328 2442 fi
2443done
2444
2445if test -r "$cache_file"; then
ea2e69a4 2446 # Some versions of bash will fail to source /dev/null (special files
2447 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2448 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
e440a328 2449 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2450$as_echo "$as_me: loading cache $cache_file" >&6;}
2451 case $cache_file in
2452 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2453 *) . "./$cache_file";;
2454 esac
2455 fi
2456else
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2458$as_echo "$as_me: creating cache $cache_file" >&6;}
2459 >$cache_file
2460fi
2461
2462# Check that the precious variables saved in the cache have kept the same
2463# value.
2464ac_cache_corrupted=false
2465for ac_var in $ac_precious_vars; do
2466 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2467 eval ac_new_set=\$ac_env_${ac_var}_set
2468 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2469 eval ac_new_val=\$ac_env_${ac_var}_value
2470 case $ac_old_set,$ac_new_set in
2471 set,)
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2473$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2474 ac_cache_corrupted=: ;;
2475 ,set)
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2477$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2478 ac_cache_corrupted=: ;;
2479 ,);;
2480 *)
2481 if test "x$ac_old_val" != "x$ac_new_val"; then
2482 # differences in whitespace do not lead to failure.
2483 ac_old_val_w=`echo x $ac_old_val`
2484 ac_new_val_w=`echo x $ac_new_val`
2485 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2487$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2488 ac_cache_corrupted=:
2489 else
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2491$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2492 eval $ac_var=\$ac_old_val
2493 fi
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2495$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2497$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2498 fi;;
2499 esac
2500 # Pass precious variables to config.status.
2501 if test "$ac_new_set" = set; then
2502 case $ac_new_val in
2503 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2504 *) ac_arg=$ac_var=$ac_new_val ;;
2505 esac
2506 case " $ac_configure_args " in
2507 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2508 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2509 esac
2510 fi
2511done
2512if $ac_cache_corrupted; then
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2514$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2516$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
ea2e69a4 2517 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
e440a328 2518fi
2519## -------------------- ##
2520## Main body of script. ##
2521## -------------------- ##
2522
2523ac_ext=c
2524ac_cpp='$CPP $CPPFLAGS'
2525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2527ac_compiler_gnu=$ac_cv_c_compiler_gnu
2528
2529
2530
4a273582 2531
2532
2533
e440a328 2534ac_config_headers="$ac_config_headers config.h"
2535
2536
31975c5e 2537libtool_VERSION=14:0:0
e440a328 2538
2539
2540# Default to --enable-multilib
2541# Check whether --enable-multilib was given.
2542if test "${enable_multilib+set}" = set; then :
2543 enableval=$enable_multilib; case "$enableval" in
2544 yes) multilib=yes ;;
2545 no) multilib=no ;;
ea2e69a4 2546 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
e440a328 2547 esac
2548else
2549 multilib=yes
2550fi
2551
2552
2553# We may get other options which we leave undocumented:
2554# --with-target-subdir, --with-multisrctop, --with-multisubdir
2555# See config-ml.in if you want the gory details.
2556
2557if test "$srcdir" = "."; then
2558 if test "$with_target_subdir" != "."; then
2559 multi_basedir="$srcdir/$with_multisrctop../.."
2560 else
2561 multi_basedir="$srcdir/$with_multisrctop.."
2562 fi
2563else
2564 multi_basedir="$srcdir/.."
2565fi
2566
2567
2568# Even if the default multilib is not a cross compilation,
2569# it may be that some of the other multilibs are.
2570if test $cross_compiling = no && test $multilib = yes \
2571 && test "x${with_multisubdir}" != x ; then
2572 cross_compiling=maybe
2573fi
2574
2575ac_config_commands="$ac_config_commands default-1"
2576
2577
2578ac_aux_dir=
2579for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
ea2e69a4 2580 if test -f "$ac_dir/install-sh"; then
2581 ac_aux_dir=$ac_dir
2582 ac_install_sh="$ac_aux_dir/install-sh -c"
2583 break
2584 elif test -f "$ac_dir/install.sh"; then
2585 ac_aux_dir=$ac_dir
2586 ac_install_sh="$ac_aux_dir/install.sh -c"
2587 break
2588 elif test -f "$ac_dir/shtool"; then
2589 ac_aux_dir=$ac_dir
2590 ac_install_sh="$ac_aux_dir/shtool install -c"
2591 break
2592 fi
e440a328 2593done
2594if test -z "$ac_aux_dir"; then
ea2e69a4 2595 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
e440a328 2596fi
2597
2598# These three variables are undocumented and unsupported,
2599# and are intended to be withdrawn in a future Autoconf release.
2600# They can cause serious problems if a builder's source tree is in a directory
2601# whose full name contains unusual characters.
2602ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2603ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2604ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2605
2606
2607# Make sure we can run config.sub.
2608$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
ea2e69a4 2609 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
e440a328 2610
2611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2612$as_echo_n "checking build system type... " >&6; }
ea2e69a4 2613if ${ac_cv_build+:} false; then :
e440a328 2614 $as_echo_n "(cached) " >&6
2615else
2616 ac_build_alias=$build_alias
2617test "x$ac_build_alias" = x &&
2618 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2619test "x$ac_build_alias" = x &&
ea2e69a4 2620 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
e440a328 2621ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
ea2e69a4 2622 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
e440a328 2623
2624fi
2625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2626$as_echo "$ac_cv_build" >&6; }
2627case $ac_cv_build in
2628*-*-*) ;;
ea2e69a4 2629*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
e440a328 2630esac
2631build=$ac_cv_build
2632ac_save_IFS=$IFS; IFS='-'
2633set x $ac_cv_build
2634shift
2635build_cpu=$1
2636build_vendor=$2
2637shift; shift
2638# Remember, the first character of IFS is used to create $*,
2639# except with old shells:
2640build_os=$*
2641IFS=$ac_save_IFS
2642case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2643
2644
2645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2646$as_echo_n "checking host system type... " >&6; }
ea2e69a4 2647if ${ac_cv_host+:} false; then :
e440a328 2648 $as_echo_n "(cached) " >&6
2649else
2650 if test "x$host_alias" = x; then
2651 ac_cv_host=$ac_cv_build
2652else
2653 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
ea2e69a4 2654 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
e440a328 2655fi
2656
2657fi
2658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2659$as_echo "$ac_cv_host" >&6; }
2660case $ac_cv_host in
2661*-*-*) ;;
ea2e69a4 2662*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
e440a328 2663esac
2664host=$ac_cv_host
2665ac_save_IFS=$IFS; IFS='-'
2666set x $ac_cv_host
2667shift
2668host_cpu=$1
2669host_vendor=$2
2670shift; shift
2671# Remember, the first character of IFS is used to create $*,
2672# except with old shells:
2673host_os=$*
2674IFS=$ac_save_IFS
2675case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2676
2677
2678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2679$as_echo_n "checking target system type... " >&6; }
ea2e69a4 2680if ${ac_cv_target+:} false; then :
e440a328 2681 $as_echo_n "(cached) " >&6
2682else
2683 if test "x$target_alias" = x; then
2684 ac_cv_target=$ac_cv_host
2685else
2686 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
ea2e69a4 2687 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
e440a328 2688fi
2689
2690fi
2691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2692$as_echo "$ac_cv_target" >&6; }
2693case $ac_cv_target in
2694*-*-*) ;;
ea2e69a4 2695*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
e440a328 2696esac
2697target=$ac_cv_target
2698ac_save_IFS=$IFS; IFS='-'
2699set x $ac_cv_target
2700shift
2701target_cpu=$1
2702target_vendor=$2
2703shift; shift
2704# Remember, the first character of IFS is used to create $*,
2705# except with old shells:
2706target_os=$*
2707IFS=$ac_save_IFS
2708case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2709
2710
2711# The aliases save the names the user supplied, while $host etc.
2712# will get canonicalized.
2713test -n "$target_alias" &&
2714 test "$program_prefix$program_suffix$program_transform_name" = \
2715 NONENONEs,x,x, &&
2716 program_prefix=${target_alias}-
2717
2718target_alias=${target_alias-$host_alias}
2719
ea2e69a4 2720am__api_version='1.15'
e440a328 2721
2722# Find a good install program. We prefer a C program (faster),
2723# so one script is as good as another. But avoid the broken or
2724# incompatible versions:
2725# SysV /etc/install, /usr/sbin/install
2726# SunOS /usr/etc/install
2727# IRIX /sbin/install
2728# AIX /bin/install
2729# AmigaOS /C/install, which installs bootblocks on floppy discs
2730# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2731# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2732# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2733# OS/2's system install, which has a completely different semantic
2734# ./install, which can be erroneously created by make from ./install.sh.
2735# Reject install programs that cannot install multiple files.
2736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2737$as_echo_n "checking for a BSD-compatible install... " >&6; }
2738if test -z "$INSTALL"; then
ea2e69a4 2739if ${ac_cv_path_install+:} false; then :
e440a328 2740 $as_echo_n "(cached) " >&6
2741else
2742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743for as_dir in $PATH
2744do
2745 IFS=$as_save_IFS
2746 test -z "$as_dir" && as_dir=.
2747 # Account for people who put trailing slashes in PATH elements.
2748case $as_dir/ in #((
2749 ./ | .// | /[cC]/* | \
2750 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2751 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2752 /usr/ucb/* ) ;;
2753 *)
2754 # OSF1 and SCO ODT 3.0 have their own names for install.
2755 # Don't use installbsd from OSF since it installs stuff as root
2756 # by default.
2757 for ac_prog in ginstall scoinst install; do
2758 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 2759 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
e440a328 2760 if test $ac_prog = install &&
2761 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2762 # AIX install. It has an incompatible calling convention.
2763 :
2764 elif test $ac_prog = install &&
2765 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2766 # program-specific install script used by HP pwplus--don't use.
2767 :
2768 else
2769 rm -rf conftest.one conftest.two conftest.dir
2770 echo one > conftest.one
2771 echo two > conftest.two
2772 mkdir conftest.dir
2773 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2774 test -s conftest.one && test -s conftest.two &&
2775 test -s conftest.dir/conftest.one &&
2776 test -s conftest.dir/conftest.two
2777 then
2778 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2779 break 3
2780 fi
2781 fi
2782 fi
2783 done
2784 done
2785 ;;
2786esac
2787
2788 done
2789IFS=$as_save_IFS
2790
2791rm -rf conftest.one conftest.two conftest.dir
2792
2793fi
2794 if test "${ac_cv_path_install+set}" = set; then
2795 INSTALL=$ac_cv_path_install
2796 else
2797 # As a last resort, use the slow shell script. Don't cache a
2798 # value for INSTALL within a source directory, because that will
2799 # break other packages using the cache if that directory is
2800 # removed, or if the value is a relative name.
2801 INSTALL=$ac_install_sh
2802 fi
2803fi
2804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2805$as_echo "$INSTALL" >&6; }
2806
2807# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2808# It thinks the first close brace ends the variable substitution.
2809test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2810
2811test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2812
2813test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2814
2815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2816$as_echo_n "checking whether build environment is sane... " >&6; }
e440a328 2817# Reject unsafe characters in $srcdir or the absolute working directory
2818# name. Accept space and tab only in the latter.
2819am_lf='
2820'
2821case `pwd` in
2822 *[\\\"\#\$\&\'\`$am_lf]*)
ea2e69a4 2823 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
e440a328 2824esac
2825case $srcdir in
2826 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
ea2e69a4 2827 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
e440a328 2828esac
2829
ea2e69a4 2830# Do 'set' in a subshell so we don't clobber the current shell's
e440a328 2831# arguments. Must try -L first in case configure is actually a
2832# symlink; some systems play weird games with the mod time of symlinks
2833# (eg FreeBSD returns the mod time of the symlink's containing
2834# directory).
2835if (
ea2e69a4 2836 am_has_slept=no
2837 for am_try in 1 2; do
2838 echo "timestamp, slept: $am_has_slept" > conftest.file
2839 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2840 if test "$*" = "X"; then
2841 # -L didn't work.
2842 set X `ls -t "$srcdir/configure" conftest.file`
2843 fi
2844 if test "$*" != "X $srcdir/configure conftest.file" \
2845 && test "$*" != "X conftest.file $srcdir/configure"; then
2846
2847 # If neither matched, then we have a broken ls. This can happen
2848 # if, for instance, CONFIG_SHELL is bash and it inherits a
2849 # broken ls alias from the environment. This has actually
2850 # happened. Such a system could not be considered "sane".
2851 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2852 alias in your environment" "$LINENO" 5
2853 fi
2854 if test "$2" = conftest.file || test $am_try -eq 2; then
2855 break
2856 fi
2857 # Just in case.
2858 sleep 1
2859 am_has_slept=yes
2860 done
e440a328 2861 test "$2" = conftest.file
2862 )
2863then
2864 # Ok.
2865 :
2866else
ea2e69a4 2867 as_fn_error $? "newly created file is older than distributed files!
e440a328 2868Check your system clock" "$LINENO" 5
2869fi
2870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2871$as_echo "yes" >&6; }
ea2e69a4 2872# If we didn't sleep, we still need to ensure time stamps of config.status and
2873# generated files are strictly newer.
2874am_sleep_pid=
2875if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2876 ( sleep 1 ) &
2877 am_sleep_pid=$!
2878fi
2879
2880rm -f conftest.file
2881
e440a328 2882test "$program_prefix" != NONE &&
2883 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2884# Use a double $ so make ignores it.
2885test "$program_suffix" != NONE &&
2886 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2887# Double any \ or $.
2888# By default was `s,x,x', remove it if useless.
2889ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2890program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2891
ea2e69a4 2892# Expand $ac_aux_dir to an absolute path.
2893am_aux_dir=`cd "$ac_aux_dir" && pwd`
e440a328 2894
2895if test x"${MISSING+set}" != xset; then
2896 case $am_aux_dir in
2897 *\ * | *\ *)
2898 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2899 *)
2900 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2901 esac
2902fi
2903# Use eval to expand $SHELL
ea2e69a4 2904if eval "$MISSING --is-lightweight"; then
2905 am_missing_run="$MISSING "
e440a328 2906else
2907 am_missing_run=
ea2e69a4 2908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2909$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
e440a328 2910fi
2911
ea2e69a4 2912if test x"${install_sh+set}" != xset; then
e440a328 2913 case $am_aux_dir in
2914 *\ * | *\ *)
2915 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2916 *)
2917 install_sh="\${SHELL} $am_aux_dir/install-sh"
2918 esac
2919fi
2920
ea2e69a4 2921# Installed binaries are usually stripped using 'strip' when the user
2922# run "make install-strip". However 'strip' might not be the right
e440a328 2923# tool to use in cross-compilation environments, therefore Automake
ea2e69a4 2924# will honor the 'STRIP' environment variable to overrule this program.
e440a328 2925if test "$cross_compiling" != no; then
2926 if test -n "$ac_tool_prefix"; then
2927 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2928set dummy ${ac_tool_prefix}strip; ac_word=$2
2929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2930$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 2931if ${ac_cv_prog_STRIP+:} false; then :
e440a328 2932 $as_echo_n "(cached) " >&6
2933else
2934 if test -n "$STRIP"; then
2935 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2936else
2937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938for as_dir in $PATH
2939do
2940 IFS=$as_save_IFS
2941 test -z "$as_dir" && as_dir=.
2942 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 2943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 2944 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2946 break 2
2947 fi
2948done
2949 done
2950IFS=$as_save_IFS
2951
2952fi
2953fi
2954STRIP=$ac_cv_prog_STRIP
2955if test -n "$STRIP"; then
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2957$as_echo "$STRIP" >&6; }
2958else
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2960$as_echo "no" >&6; }
2961fi
2962
2963
2964fi
2965if test -z "$ac_cv_prog_STRIP"; then
2966 ac_ct_STRIP=$STRIP
2967 # Extract the first word of "strip", so it can be a program name with args.
2968set dummy strip; ac_word=$2
2969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 2971if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
e440a328 2972 $as_echo_n "(cached) " >&6
2973else
2974 if test -n "$ac_ct_STRIP"; then
2975 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2976else
2977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978for as_dir in $PATH
2979do
2980 IFS=$as_save_IFS
2981 test -z "$as_dir" && as_dir=.
2982 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 2983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 2984 ac_cv_prog_ac_ct_STRIP="strip"
2985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2986 break 2
2987 fi
2988done
2989 done
2990IFS=$as_save_IFS
2991
2992fi
2993fi
2994ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2995if test -n "$ac_ct_STRIP"; then
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2997$as_echo "$ac_ct_STRIP" >&6; }
2998else
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000$as_echo "no" >&6; }
3001fi
3002
3003 if test "x$ac_ct_STRIP" = x; then
3004 STRIP=":"
3005 else
3006 case $cross_compiling:$ac_tool_warned in
3007yes:)
3008{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3009$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3010ac_tool_warned=yes ;;
3011esac
3012 STRIP=$ac_ct_STRIP
3013 fi
3014else
3015 STRIP="$ac_cv_prog_STRIP"
3016fi
3017
3018fi
3019INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3020
3021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3022$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3023if test -z "$MKDIR_P"; then
ea2e69a4 3024 if ${ac_cv_path_mkdir+:} false; then :
e440a328 3025 $as_echo_n "(cached) " >&6
3026else
3027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3029do
3030 IFS=$as_save_IFS
3031 test -z "$as_dir" && as_dir=.
3032 for ac_prog in mkdir gmkdir; do
3033 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 3034 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
e440a328 3035 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3036 'mkdir (GNU coreutils) '* | \
3037 'mkdir (coreutils) '* | \
3038 'mkdir (fileutils) '4.1*)
3039 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3040 break 3;;
3041 esac
3042 done
3043 done
3044 done
3045IFS=$as_save_IFS
3046
3047fi
3048
ea2e69a4 3049 test -d ./--version && rmdir ./--version
e440a328 3050 if test "${ac_cv_path_mkdir+set}" = set; then
3051 MKDIR_P="$ac_cv_path_mkdir -p"
3052 else
3053 # As a last resort, use the slow shell script. Don't cache a
3054 # value for MKDIR_P within a source directory, because that will
3055 # break other packages using the cache if that directory is
3056 # removed, or if the value is a relative name.
e440a328 3057 MKDIR_P="$ac_install_sh -d"
3058 fi
3059fi
3060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3061$as_echo "$MKDIR_P" >&6; }
3062
e440a328 3063for ac_prog in gawk mawk nawk awk
3064do
3065 # Extract the first word of "$ac_prog", so it can be a program name with args.
3066set dummy $ac_prog; ac_word=$2
3067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3068$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 3069if ${ac_cv_prog_AWK+:} false; then :
e440a328 3070 $as_echo_n "(cached) " >&6
3071else
3072 if test -n "$AWK"; then
3073 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3074else
3075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076for as_dir in $PATH
3077do
3078 IFS=$as_save_IFS
3079 test -z "$as_dir" && as_dir=.
3080 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 3081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 3082 ac_cv_prog_AWK="$ac_prog"
3083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 break 2
3085 fi
3086done
3087 done
3088IFS=$as_save_IFS
3089
3090fi
3091fi
3092AWK=$ac_cv_prog_AWK
3093if test -n "$AWK"; then
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3095$as_echo "$AWK" >&6; }
3096else
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3098$as_echo "no" >&6; }
3099fi
3100
3101
3102 test -n "$AWK" && break
3103done
3104
3105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3106$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3107set x ${MAKE-make}
3108ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
ea2e69a4 3109if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
e440a328 3110 $as_echo_n "(cached) " >&6
3111else
3112 cat >conftest.make <<\_ACEOF
3113SHELL = /bin/sh
3114all:
3115 @echo '@@@%%%=$(MAKE)=@@@%%%'
3116_ACEOF
ea2e69a4 3117# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
e440a328 3118case `${MAKE-make} -f conftest.make 2>/dev/null` in
3119 *@@@%%%=?*=@@@%%%*)
3120 eval ac_cv_prog_make_${ac_make}_set=yes;;
3121 *)
3122 eval ac_cv_prog_make_${ac_make}_set=no;;
3123esac
3124rm -f conftest.make
3125fi
3126if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3128$as_echo "yes" >&6; }
3129 SET_MAKE=
3130else
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3132$as_echo "no" >&6; }
3133 SET_MAKE="MAKE=${MAKE-make}"
3134fi
3135
3136rm -rf .tst 2>/dev/null
3137mkdir .tst 2>/dev/null
3138if test -d .tst; then
3139 am__leading_dot=.
3140else
3141 am__leading_dot=_
3142fi
3143rmdir .tst 2>/dev/null
3144
ea2e69a4 3145# Check whether --enable-silent-rules was given.
3146if test "${enable_silent_rules+set}" = set; then :
3147 enableval=$enable_silent_rules;
3148fi
3149
3150case $enable_silent_rules in # (((
3151 yes) AM_DEFAULT_VERBOSITY=0;;
3152 no) AM_DEFAULT_VERBOSITY=1;;
3153 *) AM_DEFAULT_VERBOSITY=1;;
3154esac
3155am_make=${MAKE-make}
3156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3157$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3158if ${am_cv_make_support_nested_variables+:} false; then :
3159 $as_echo_n "(cached) " >&6
3160else
3161 if $as_echo 'TRUE=$(BAR$(V))
3162BAR0=false
3163BAR1=true
3164V=1
3165am__doit:
3166 @$(TRUE)
3167.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3168 am_cv_make_support_nested_variables=yes
3169else
3170 am_cv_make_support_nested_variables=no
3171fi
3172fi
3173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3174$as_echo "$am_cv_make_support_nested_variables" >&6; }
3175if test $am_cv_make_support_nested_variables = yes; then
3176 AM_V='$(V)'
3177 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3178else
3179 AM_V=$AM_DEFAULT_VERBOSITY
3180 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3181fi
3182AM_BACKSLASH='\'
3183
e440a328 3184if test "`cd $srcdir && pwd`" != "`pwd`"; then
3185 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3186 # is not polluted with repeated "-I."
3187 am__isrc=' -I$(srcdir)'
3188 # test to see if srcdir already configured
3189 if test -f $srcdir/config.status; then
ea2e69a4 3190 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
e440a328 3191 fi
3192fi
3193
3194# test whether we have cygpath
3195if test -z "$CYGPATH_W"; then
3196 if (cygpath --version) >/dev/null 2>/dev/null; then
3197 CYGPATH_W='cygpath -w'
3198 else
3199 CYGPATH_W=echo
3200 fi
3201fi
3202
3203
3204# Define the identity of the package.
3205 PACKAGE='libgo'
3206 VERSION='version-unused'
3207
3208
3209# Some tools Automake needs.
3210
3211ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3212
3213
3214AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3215
3216
3217AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3218
3219
3220AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3221
3222
3223MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3224
ea2e69a4 3225# For better backward compatibility. To be removed once Automake 1.9.x
3226# dies out for good. For more background, see:
3227# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3228# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3229mkdir_p='$(MKDIR_P)'
3230
3231# We need awk for the "check" target (and possibly the TAP driver). The
3232# system "awk" is bad on some platforms.
e92f1942 3233# Always define AMTAR for backward compatibility. Yes, it's still used
3234# in the wild :-( We should find a proper way to deprecate it ...
3235AMTAR='$${TAR-tar}'
e440a328 3236
ea2e69a4 3237
3238# We'll loop over all known methods to create a tar archive until one works.
3239_am_tools='gnutar pax cpio none'
3240
e92f1942 3241am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
e440a328 3242
3243
3244
3245
3246
3247
ea2e69a4 3248# POSIX will say in a future version that running "rm -f" with no argument
3249# is OK; and we want to be able to make that assumption in our Makefile
3250# recipes. So use an aggressive probe to check that the usage we want is
3251# actually supported "in the wild" to an acceptable degree.
3252# See automake bug#10828.
3253# To make any issue more visible, cause the running configure to be aborted
3254# by default if the 'rm' program in use doesn't match our expectations; the
3255# user can still override this though.
3256if rm -f && rm -fr && rm -rf; then : OK; else
3257 cat >&2 <<'END'
3258Oops!
3259
3260Your 'rm' program seems unable to run without file operands specified
3261on the command line, even when the '-f' option is present. This is contrary
3262to the behaviour of most rm programs out there, and not conforming with
3263the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3264
3265Please tell bug-automake@gnu.org about your system, including the value
3266of your $PATH and any error possibly output before this message. This
3267can help us improve future automake versions.
3268
3269END
3270 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3271 echo 'Configuration will proceed anyway, since you have set the' >&2
3272 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3273 echo >&2
3274 else
3275 cat >&2 <<'END'
3276Aborting the configuration process, to ensure you take notice of the issue.
3277
3278You can download and install GNU coreutils to get an 'rm' implementation
3279that behaves properly: <http://www.gnu.org/software/coreutils/>.
3280
3281If you want to complete the configuration process using your problematic
3282'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3283to "yes", and re-run configure.
3284
3285END
3286 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3287 fi
3288fi
3289
3290
e440a328 3291
3292
3293
3294
3295ac_ext=c
3296ac_cpp='$CPP $CPPFLAGS'
3297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299ac_compiler_gnu=$ac_cv_c_compiler_gnu
3300if test -n "$ac_tool_prefix"; then
3301 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3302set dummy ${ac_tool_prefix}gcc; ac_word=$2
3303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3304$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 3305if ${ac_cv_prog_CC+:} false; then :
e440a328 3306 $as_echo_n "(cached) " >&6
3307else
3308 if test -n "$CC"; then
3309 ac_cv_prog_CC="$CC" # Let the user override the test.
3310else
3311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312for as_dir in $PATH
3313do
3314 IFS=$as_save_IFS
3315 test -z "$as_dir" && as_dir=.
3316 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 3317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 3318 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3320 break 2
3321 fi
3322done
3323 done
3324IFS=$as_save_IFS
3325
3326fi
3327fi
3328CC=$ac_cv_prog_CC
3329if test -n "$CC"; then
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3331$as_echo "$CC" >&6; }
3332else
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334$as_echo "no" >&6; }
3335fi
3336
3337
3338fi
3339if test -z "$ac_cv_prog_CC"; then
3340 ac_ct_CC=$CC
3341 # Extract the first word of "gcc", so it can be a program name with args.
3342set dummy gcc; ac_word=$2
3343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3344$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 3345if ${ac_cv_prog_ac_ct_CC+:} false; then :
e440a328 3346 $as_echo_n "(cached) " >&6
3347else
3348 if test -n "$ac_ct_CC"; then
3349 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3350else
3351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352for as_dir in $PATH
3353do
3354 IFS=$as_save_IFS
3355 test -z "$as_dir" && as_dir=.
3356 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 3357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 3358 ac_cv_prog_ac_ct_CC="gcc"
3359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3360 break 2
3361 fi
3362done
3363 done
3364IFS=$as_save_IFS
3365
3366fi
3367fi
3368ac_ct_CC=$ac_cv_prog_ac_ct_CC
3369if test -n "$ac_ct_CC"; then
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3371$as_echo "$ac_ct_CC" >&6; }
3372else
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3374$as_echo "no" >&6; }
3375fi
3376
3377 if test "x$ac_ct_CC" = x; then
3378 CC=""
3379 else
3380 case $cross_compiling:$ac_tool_warned in
3381yes:)
3382{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3383$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3384ac_tool_warned=yes ;;
3385esac
3386 CC=$ac_ct_CC
3387 fi
3388else
3389 CC="$ac_cv_prog_CC"
3390fi
3391
3392if test -z "$CC"; then
3393 if test -n "$ac_tool_prefix"; then
3394 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3395set dummy ${ac_tool_prefix}cc; ac_word=$2
3396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3397$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 3398if ${ac_cv_prog_CC+:} false; then :
e440a328 3399 $as_echo_n "(cached) " >&6
3400else
3401 if test -n "$CC"; then
3402 ac_cv_prog_CC="$CC" # Let the user override the test.
3403else
3404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405for as_dir in $PATH
3406do
3407 IFS=$as_save_IFS
3408 test -z "$as_dir" && as_dir=.
3409 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 3410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 3411 ac_cv_prog_CC="${ac_tool_prefix}cc"
3412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3413 break 2
3414 fi
3415done
3416 done
3417IFS=$as_save_IFS
3418
3419fi
3420fi
3421CC=$ac_cv_prog_CC
3422if test -n "$CC"; then
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3424$as_echo "$CC" >&6; }
3425else
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3427$as_echo "no" >&6; }
3428fi
3429
3430
3431 fi
3432fi
3433if test -z "$CC"; then
3434 # Extract the first word of "cc", so it can be a program name with args.
3435set dummy cc; ac_word=$2
3436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3437$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 3438if ${ac_cv_prog_CC+:} false; then :
e440a328 3439 $as_echo_n "(cached) " >&6
3440else
3441 if test -n "$CC"; then
3442 ac_cv_prog_CC="$CC" # Let the user override the test.
3443else
3444 ac_prog_rejected=no
3445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446for as_dir in $PATH
3447do
3448 IFS=$as_save_IFS
3449 test -z "$as_dir" && as_dir=.
3450 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 3451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 3452 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3453 ac_prog_rejected=yes
3454 continue
3455 fi
3456 ac_cv_prog_CC="cc"
3457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3458 break 2
3459 fi
3460done
3461 done
3462IFS=$as_save_IFS
3463
3464if test $ac_prog_rejected = yes; then
3465 # We found a bogon in the path, so make sure we never use it.
3466 set dummy $ac_cv_prog_CC
3467 shift
3468 if test $# != 0; then
3469 # We chose a different compiler from the bogus one.
3470 # However, it has the same basename, so the bogon will be chosen
3471 # first if we set CC to just the basename; use the full file name.
3472 shift
3473 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3474 fi
3475fi
3476fi
3477fi
3478CC=$ac_cv_prog_CC
3479if test -n "$CC"; then
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3481$as_echo "$CC" >&6; }
3482else
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3484$as_echo "no" >&6; }
3485fi
3486
3487
3488fi
3489if test -z "$CC"; then
3490 if test -n "$ac_tool_prefix"; then
3491 for ac_prog in cl.exe
3492 do
3493 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3494set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3496$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 3497if ${ac_cv_prog_CC+:} false; then :
e440a328 3498 $as_echo_n "(cached) " >&6
3499else
3500 if test -n "$CC"; then
3501 ac_cv_prog_CC="$CC" # Let the user override the test.
3502else
3503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504for as_dir in $PATH
3505do
3506 IFS=$as_save_IFS
3507 test -z "$as_dir" && as_dir=.
3508 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 3509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 3510 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3512 break 2
3513 fi
3514done
3515 done
3516IFS=$as_save_IFS
3517
3518fi
3519fi
3520CC=$ac_cv_prog_CC
3521if test -n "$CC"; then
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3523$as_echo "$CC" >&6; }
3524else
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3526$as_echo "no" >&6; }
3527fi
3528
3529
3530 test -n "$CC" && break
3531 done
3532fi
3533if test -z "$CC"; then
3534 ac_ct_CC=$CC
3535 for ac_prog in cl.exe
3536do
3537 # Extract the first word of "$ac_prog", so it can be a program name with args.
3538set dummy $ac_prog; ac_word=$2
3539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3540$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 3541if ${ac_cv_prog_ac_ct_CC+:} false; then :
e440a328 3542 $as_echo_n "(cached) " >&6
3543else
3544 if test -n "$ac_ct_CC"; then
3545 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3546else
3547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548for as_dir in $PATH
3549do
3550 IFS=$as_save_IFS
3551 test -z "$as_dir" && as_dir=.
3552 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 3553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 3554 ac_cv_prog_ac_ct_CC="$ac_prog"
3555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3556 break 2
3557 fi
3558done
3559 done
3560IFS=$as_save_IFS
3561
3562fi
3563fi
3564ac_ct_CC=$ac_cv_prog_ac_ct_CC
3565if test -n "$ac_ct_CC"; then
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3567$as_echo "$ac_ct_CC" >&6; }
3568else
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3570$as_echo "no" >&6; }
3571fi
3572
3573
3574 test -n "$ac_ct_CC" && break
3575done
3576
3577 if test "x$ac_ct_CC" = x; then
3578 CC=""
3579 else
3580 case $cross_compiling:$ac_tool_warned in
3581yes:)
3582{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3583$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3584ac_tool_warned=yes ;;
3585esac
3586 CC=$ac_ct_CC
3587 fi
3588fi
3589
3590fi
3591
3592
3593test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3594$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ea2e69a4 3595as_fn_error $? "no acceptable C compiler found in \$PATH
3596See \`config.log' for more details" "$LINENO" 5; }
e440a328 3597
3598# Provide some information about the compiler.
3599$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3600set X $ac_compile
3601ac_compiler=$2
3602for ac_option in --version -v -V -qversion; do
3603 { { ac_try="$ac_compiler $ac_option >&5"
3604case "(($ac_try" in
3605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606 *) ac_try_echo=$ac_try;;
3607esac
3608eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3609$as_echo "$ac_try_echo"; } >&5
3610 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3611 ac_status=$?
3612 if test -s conftest.err; then
3613 sed '10a\
3614... rest of stderr output deleted ...
3615 10q' conftest.err >conftest.er1
3616 cat conftest.er1 >&5
e440a328 3617 fi
ea2e69a4 3618 rm -f conftest.er1 conftest.err
e440a328 3619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3620 test $ac_status = 0; }
3621done
3622
3623cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624/* end confdefs.h. */
4a273582 3625
e440a328 3626int
3627main ()
3628{
3629
3630 ;
3631 return 0;
3632}
3633_ACEOF
3634ac_clean_files_save=$ac_clean_files
ea2e69a4 3635ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
e440a328 3636# Try to create an executable without -o first, disregard a.out.
3637# It will help us diagnose broken compilers, and finding out an intuition
3638# of exeext.
ea2e69a4 3639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3640$as_echo_n "checking whether the C compiler works... " >&6; }
e440a328 3641ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3642
3643# The possible output files:
3644ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3645
3646ac_rmfiles=
3647for ac_file in $ac_files
3648do
3649 case $ac_file in
3650 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3651 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3652 esac
3653done
3654rm -f $ac_rmfiles
3655
3656if { { ac_try="$ac_link_default"
3657case "(($ac_try" in
3658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659 *) ac_try_echo=$ac_try;;
3660esac
3661eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3662$as_echo "$ac_try_echo"; } >&5
3663 (eval "$ac_link_default") 2>&5
3664 ac_status=$?
3665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3666 test $ac_status = 0; }; then :
3667 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3668# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3669# in a Makefile. We should not override ac_cv_exeext if it was cached,
3670# so that the user can short-circuit this test for compilers unknown to
3671# Autoconf.
3672for ac_file in $ac_files ''
3673do
3674 test -f "$ac_file" || continue
3675 case $ac_file in
3676 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3677 ;;
3678 [ab].out )
3679 # We found the default executable, but exeext='' is most
3680 # certainly right.
3681 break;;
3682 *.* )
3683 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3684 then :; else
3685 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3686 fi
3687 # We set ac_cv_exeext here because the later test for it is not
3688 # safe: cross compilers may not add the suffix if given an `-o'
3689 # argument, so we may need to know it at that point already.
3690 # Even if this section looks crufty: it has the advantage of
3691 # actually working.
3692 break;;
3693 * )
3694 break;;
3695 esac
3696done
3697test "$ac_cv_exeext" = no && ac_cv_exeext=
3698
3699else
3700 ac_file=''
3701fi
e440a328 3702if test -z "$ac_file"; then :
ea2e69a4 3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3704$as_echo "no" >&6; }
3705$as_echo "$as_me: failed program was:" >&5
e440a328 3706sed 's/^/| /' conftest.$ac_ext >&5
3707
3708{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3709$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ea2e69a4 3710as_fn_error 77 "C compiler cannot create executables
3711See \`config.log' for more details" "$LINENO" 5; }
3712else
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3714$as_echo "yes" >&6; }
e440a328 3715fi
ea2e69a4 3716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3717$as_echo_n "checking for C compiler default output file name... " >&6; }
3718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3719$as_echo "$ac_file" >&6; }
e440a328 3720ac_exeext=$ac_cv_exeext
3721
ea2e69a4 3722rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
e440a328 3723ac_clean_files=$ac_clean_files_save
e440a328 3724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3725$as_echo_n "checking for suffix of executables... " >&6; }
3726if { { ac_try="$ac_link"
3727case "(($ac_try" in
3728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3729 *) ac_try_echo=$ac_try;;
3730esac
3731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3732$as_echo "$ac_try_echo"; } >&5
3733 (eval "$ac_link") 2>&5
3734 ac_status=$?
3735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3736 test $ac_status = 0; }; then :
3737 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3738# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3739# work properly (i.e., refer to `conftest.exe'), while it won't with
3740# `rm'.
3741for ac_file in conftest.exe conftest conftest.*; do
3742 test -f "$ac_file" || continue
3743 case $ac_file in
3744 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3745 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3746 break;;
3747 * ) break;;
3748 esac
3749done
3750else
3751 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3752$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ea2e69a4 3753as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3754See \`config.log' for more details" "$LINENO" 5; }
e440a328 3755fi
ea2e69a4 3756rm -f conftest conftest$ac_cv_exeext
e440a328 3757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3758$as_echo "$ac_cv_exeext" >&6; }
3759
3760rm -f conftest.$ac_ext
3761EXEEXT=$ac_cv_exeext
3762ac_exeext=$EXEEXT
ea2e69a4 3763cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764/* end confdefs.h. */
3765#include <stdio.h>
3766int
3767main ()
3768{
3769FILE *f = fopen ("conftest.out", "w");
3770 return ferror (f) || fclose (f) != 0;
3771
3772 ;
3773 return 0;
3774}
3775_ACEOF
3776ac_clean_files="$ac_clean_files conftest.out"
3777# Check that the compiler produces executables we can run. If not, either
3778# the compiler is broken, or we cross compile.
3779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3780$as_echo_n "checking whether we are cross compiling... " >&6; }
3781if test "$cross_compiling" != yes; then
3782 { { ac_try="$ac_link"
3783case "(($ac_try" in
3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3786esac
3787eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3788$as_echo "$ac_try_echo"; } >&5
3789 (eval "$ac_link") 2>&5
3790 ac_status=$?
3791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3792 test $ac_status = 0; }
3793 if { ac_try='./conftest$ac_cv_exeext'
3794 { { case "(($ac_try" in
3795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796 *) ac_try_echo=$ac_try;;
3797esac
3798eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3799$as_echo "$ac_try_echo"; } >&5
3800 (eval "$ac_try") 2>&5
3801 ac_status=$?
3802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3803 test $ac_status = 0; }; }; then
3804 cross_compiling=no
3805 else
3806 if test "$cross_compiling" = maybe; then
3807 cross_compiling=yes
3808 else
3809 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3810$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3811as_fn_error $? "cannot run C compiled programs.
3812If you meant to cross compile, use \`--host'.
3813See \`config.log' for more details" "$LINENO" 5; }
3814 fi
3815 fi
3816fi
3817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3818$as_echo "$cross_compiling" >&6; }
3819
3820rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3821ac_clean_files=$ac_clean_files_save
e440a328 3822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3823$as_echo_n "checking for suffix of object files... " >&6; }
ea2e69a4 3824if ${ac_cv_objext+:} false; then :
e440a328 3825 $as_echo_n "(cached) " >&6
3826else
3827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3828/* end confdefs.h. */
3829
3830int
3831main ()
3832{
3833
3834 ;
3835 return 0;
3836}
3837_ACEOF
3838rm -f conftest.o conftest.obj
3839if { { ac_try="$ac_compile"
3840case "(($ac_try" in
3841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842 *) ac_try_echo=$ac_try;;
3843esac
3844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3845$as_echo "$ac_try_echo"; } >&5
3846 (eval "$ac_compile") 2>&5
3847 ac_status=$?
3848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3849 test $ac_status = 0; }; then :
3850 for ac_file in conftest.o conftest.obj conftest.*; do
3851 test -f "$ac_file" || continue;
3852 case $ac_file in
3853 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3854 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3855 break;;
3856 esac
3857done
3858else
3859 $as_echo "$as_me: failed program was:" >&5
3860sed 's/^/| /' conftest.$ac_ext >&5
3861
3862{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3863$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ea2e69a4 3864as_fn_error $? "cannot compute suffix of object files: cannot compile
3865See \`config.log' for more details" "$LINENO" 5; }
e440a328 3866fi
3867rm -f conftest.$ac_cv_objext conftest.$ac_ext
3868fi
3869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3870$as_echo "$ac_cv_objext" >&6; }
3871OBJEXT=$ac_cv_objext
3872ac_objext=$OBJEXT
3873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3874$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
ea2e69a4 3875if ${ac_cv_c_compiler_gnu+:} false; then :
e440a328 3876 $as_echo_n "(cached) " >&6
3877else
3878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879/* end confdefs.h. */
3880
3881int
3882main ()
3883{
3884#ifndef __GNUC__
3885 choke me
3886#endif
3887
3888 ;
3889 return 0;
3890}
3891_ACEOF
3892if ac_fn_c_try_compile "$LINENO"; then :
3893 ac_compiler_gnu=yes
3894else
3895 ac_compiler_gnu=no
3896fi
3897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3898ac_cv_c_compiler_gnu=$ac_compiler_gnu
3899
3900fi
3901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3902$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3903if test $ac_compiler_gnu = yes; then
3904 GCC=yes
3905else
3906 GCC=
3907fi
3908ac_test_CFLAGS=${CFLAGS+set}
3909ac_save_CFLAGS=$CFLAGS
3910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3911$as_echo_n "checking whether $CC accepts -g... " >&6; }
ea2e69a4 3912if ${ac_cv_prog_cc_g+:} false; then :
e440a328 3913 $as_echo_n "(cached) " >&6
3914else
3915 ac_save_c_werror_flag=$ac_c_werror_flag
3916 ac_c_werror_flag=yes
3917 ac_cv_prog_cc_g=no
3918 CFLAGS="-g"
3919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920/* end confdefs.h. */
3921
3922int
3923main ()
3924{
3925
3926 ;
3927 return 0;
3928}
3929_ACEOF
3930if ac_fn_c_try_compile "$LINENO"; then :
3931 ac_cv_prog_cc_g=yes
3932else
3933 CFLAGS=""
3934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3935/* end confdefs.h. */
3936
3937int
3938main ()
3939{
3940
3941 ;
3942 return 0;
3943}
3944_ACEOF
3945if ac_fn_c_try_compile "$LINENO"; then :
3946
3947else
3948 ac_c_werror_flag=$ac_save_c_werror_flag
3949 CFLAGS="-g"
3950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3951/* end confdefs.h. */
3952
3953int
3954main ()
3955{
3956
3957 ;
3958 return 0;
3959}
3960_ACEOF
3961if ac_fn_c_try_compile "$LINENO"; then :
3962 ac_cv_prog_cc_g=yes
3963fi
3964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3965fi
3966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3967fi
3968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3969 ac_c_werror_flag=$ac_save_c_werror_flag
3970fi
3971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3972$as_echo "$ac_cv_prog_cc_g" >&6; }
3973if test "$ac_test_CFLAGS" = set; then
3974 CFLAGS=$ac_save_CFLAGS
3975elif test $ac_cv_prog_cc_g = yes; then
3976 if test "$GCC" = yes; then
3977 CFLAGS="-g -O2"
3978 else
3979 CFLAGS="-g"
3980 fi
3981else
3982 if test "$GCC" = yes; then
3983 CFLAGS="-O2"
3984 else
3985 CFLAGS=
3986 fi
3987fi
3988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3989$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
ea2e69a4 3990if ${ac_cv_prog_cc_c89+:} false; then :
e440a328 3991 $as_echo_n "(cached) " >&6
3992else
3993 ac_cv_prog_cc_c89=no
3994ac_save_CC=$CC
3995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996/* end confdefs.h. */
3997#include <stdarg.h>
3998#include <stdio.h>
ea2e69a4 3999struct stat;
e440a328 4000/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4001struct buf { int x; };
4002FILE * (*rcsopen) (struct buf *, struct stat *, int);
4003static char *e (p, i)
4004 char **p;
4005 int i;
4006{
4007 return p[i];
4008}
4009static char *f (char * (*g) (char **, int), char **p, ...)
4010{
4011 char *s;
4012 va_list v;
4013 va_start (v,p);
4014 s = g (p, va_arg (v,int));
4015 va_end (v);
4016 return s;
4017}
4018
4019/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4020 function prototypes and stuff, but not '\xHH' hex character constants.
4021 These don't provoke an error unfortunately, instead are silently treated
4022 as 'x'. The following induces an error, until -std is added to get
4023 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4024 array size at least. It's necessary to write '\x00'==0 to get something
4025 that's true only with -std. */
4026int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4027
4028/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4029 inside strings and character constants. */
4030#define FOO(x) 'x'
4031int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4032
4033int test (int i, double x);
4034struct s1 {int (*f) (int a);};
4035struct s2 {int (*f) (double a);};
4036int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4037int argc;
4038char **argv;
4039int
4040main ()
4041{
4042return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4043 ;
4044 return 0;
4045}
4046_ACEOF
4047for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4048 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4049do
4050 CC="$ac_save_CC $ac_arg"
4051 if ac_fn_c_try_compile "$LINENO"; then :
4052 ac_cv_prog_cc_c89=$ac_arg
4053fi
4054rm -f core conftest.err conftest.$ac_objext
4055 test "x$ac_cv_prog_cc_c89" != "xno" && break
4056done
4057rm -f conftest.$ac_ext
4058CC=$ac_save_CC
4059
4060fi
4061# AC_CACHE_VAL
4062case "x$ac_cv_prog_cc_c89" in
4063 x)
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4065$as_echo "none needed" >&6; } ;;
4066 xno)
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4068$as_echo "unsupported" >&6; } ;;
4069 *)
4070 CC="$CC $ac_cv_prog_cc_c89"
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4072$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4073esac
4074if test "x$ac_cv_prog_cc_c89" != xno; then :
4075
4076fi
4077
4078ac_ext=c
4079ac_cpp='$CPP $CPPFLAGS'
4080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4082ac_compiler_gnu=$ac_cv_c_compiler_gnu
ea2e69a4 4083
4084ac_ext=c
4085ac_cpp='$CPP $CPPFLAGS'
4086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4088ac_compiler_gnu=$ac_cv_c_compiler_gnu
4089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4090$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4091if ${am_cv_prog_cc_c_o+:} false; then :
4092 $as_echo_n "(cached) " >&6
4093else
4094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4095/* end confdefs.h. */
4096
4097int
4098main ()
4099{
4100
4101 ;
4102 return 0;
4103}
4104_ACEOF
4105 # Make sure it works both with $CC and with simple cc.
4106 # Following AC_PROG_CC_C_O, we do the test twice because some
4107 # compilers refuse to overwrite an existing .o file with -o,
4108 # though they will create one.
4109 am_cv_prog_cc_c_o=yes
4110 for am_i in 1 2; do
4111 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4112 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4113 ac_status=$?
4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); } \
4116 && test -f conftest2.$ac_objext; then
4117 : OK
4118 else
4119 am_cv_prog_cc_c_o=no
4120 break
4121 fi
4122 done
4123 rm -f core conftest*
4124 unset am_i
4125fi
4126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4127$as_echo "$am_cv_prog_cc_c_o" >&6; }
4128if test "$am_cv_prog_cc_c_o" != yes; then
4129 # Losing compiler, so override with the script.
4130 # FIXME: It is wrong to rewrite CC.
4131 # But if we don't then we get into trouble of one sort or another.
4132 # A longer-term fix would be to have automake use am__CC in this case,
4133 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4134 CC="$am_aux_dir/compile $CC"
4135fi
4136ac_ext=c
4137ac_cpp='$CPP $CPPFLAGS'
4138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4140ac_compiler_gnu=$ac_cv_c_compiler_gnu
4141
e440a328 4142DEPDIR="${am__leading_dot}deps"
4143
4144ac_config_commands="$ac_config_commands depfiles"
4145
4146
4147am_make=${MAKE-make}
4148cat > confinc << 'END'
4149am__doit:
4150 @echo this is the am__doit target
4151.PHONY: am__doit
4152END
4153# If we don't find an include directive, just comment out the code.
4154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4155$as_echo_n "checking for style of include used by $am_make... " >&6; }
4156am__include="#"
4157am__quote=
4158_am_result=none
4159# First try GNU make style include.
4160echo "include confinc" > confmf
ea2e69a4 4161# Ignore all kinds of additional output from 'make'.
e440a328 4162case `$am_make -s -f confmf 2> /dev/null` in #(
4163*the\ am__doit\ target*)
4164 am__include=include
4165 am__quote=
4166 _am_result=GNU
4167 ;;
4168esac
4169# Now try BSD make style include.
4170if test "$am__include" = "#"; then
4171 echo '.include "confinc"' > confmf
4172 case `$am_make -s -f confmf 2> /dev/null` in #(
4173 *the\ am__doit\ target*)
4174 am__include=.include
4175 am__quote="\""
4176 _am_result=BSD
4177 ;;
4178 esac
4179fi
4180
4181
4182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4183$as_echo "$_am_result" >&6; }
4184rm -f confinc confmf
4185
4186# Check whether --enable-dependency-tracking was given.
4187if test "${enable_dependency_tracking+set}" = set; then :
4188 enableval=$enable_dependency_tracking;
4189fi
4190
4191if test "x$enable_dependency_tracking" != xno; then
4192 am_depcomp="$ac_aux_dir/depcomp"
4193 AMDEPBACKSLASH='\'
e92f1942 4194 am__nodep='_no'
e440a328 4195fi
4196 if test "x$enable_dependency_tracking" != xno; then
4197 AMDEP_TRUE=
4198 AMDEP_FALSE='#'
4199else
4200 AMDEP_TRUE='#'
4201 AMDEP_FALSE=
4202fi
4203
4204
4205
4206depcc="$CC" am_compiler_list=
4207
4208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4209$as_echo_n "checking dependency style of $depcc... " >&6; }
ea2e69a4 4210if ${am_cv_CC_dependencies_compiler_type+:} false; then :
e440a328 4211 $as_echo_n "(cached) " >&6
4212else
4213 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4214 # We make a subdir and do the tests there. Otherwise we can end up
4215 # making bogus files that we don't know about and never remove. For
4216 # instance it was reported that on HP-UX the gcc test will end up
ea2e69a4 4217 # making a dummy file named 'D' -- because '-MD' means "put the output
4218 # in D".
e92f1942 4219 rm -rf conftest.dir
e440a328 4220 mkdir conftest.dir
4221 # Copy depcomp to subdir because otherwise we won't find it if we're
4222 # using a relative directory.
4223 cp "$am_depcomp" conftest.dir
4224 cd conftest.dir
4225 # We will build objects and dependencies in a subdirectory because
4226 # it helps to detect inapplicable dependency modes. For instance
4227 # both Tru64's cc and ICC support -MD to output dependencies as a
4228 # side effect of compilation, but ICC will put the dependencies in
4229 # the current directory while Tru64 will put them in the object
4230 # directory.
4231 mkdir sub
4232
4233 am_cv_CC_dependencies_compiler_type=none
4234 if test "$am_compiler_list" = ""; then
4235 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4236 fi
4237 am__universal=false
4238 case " $depcc " in #(
4239 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4240 esac
4241
4242 for depmode in $am_compiler_list; do
4243 # Setup a source with many dependencies, because some compilers
4244 # like to wrap large dependency lists on column 80 (with \), and
4245 # we should not choose a depcomp mode which is confused by this.
4246 #
4247 # We need to recreate these files for each test, as the compiler may
4248 # overwrite some of them when testing with obscure command lines.
4249 # This happens at least with the AIX C compiler.
4250 : > sub/conftest.c
4251 for i in 1 2 3 4 5 6; do
4252 echo '#include "conftst'$i'.h"' >> sub/conftest.c
ea2e69a4 4253 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4254 # Solaris 10 /bin/sh.
4255 echo '/* dummy */' > sub/conftst$i.h
e440a328 4256 done
4257 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4258
ea2e69a4 4259 # We check with '-c' and '-o' for the sake of the "dashmstdout"
e440a328 4260 # mode. It turns out that the SunPro C++ compiler does not properly
ea2e69a4 4261 # handle '-M -o', and we need to detect this. Also, some Intel
4262 # versions had trouble with output in subdirs.
e440a328 4263 am__obj=sub/conftest.${OBJEXT-o}
4264 am__minus_obj="-o $am__obj"
4265 case $depmode in
4266 gcc)
4267 # This depmode causes a compiler race in universal mode.
4268 test "$am__universal" = false || continue
4269 ;;
4270 nosideeffect)
ea2e69a4 4271 # After this tag, mechanisms are not by side-effect, so they'll
4272 # only be used when explicitly requested.
e440a328 4273 if test "x$enable_dependency_tracking" = xyes; then
4274 continue
4275 else
4276 break
4277 fi
4278 ;;
e92f1942 4279 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
ea2e69a4 4280 # This compiler won't grok '-c -o', but also, the minuso test has
e440a328 4281 # not run yet. These depmodes are late enough in the game, and
4282 # so weak that their functioning should not be impacted.
4283 am__obj=conftest.${OBJEXT-o}
4284 am__minus_obj=
4285 ;;
4286 none) break ;;
4287 esac
4288 if depmode=$depmode \
4289 source=sub/conftest.c object=$am__obj \
4290 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4291 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4292 >/dev/null 2>conftest.err &&
4293 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4294 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4295 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4296 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4297 # icc doesn't choke on unknown options, it will just issue warnings
4298 # or remarks (even with -Werror). So we grep stderr for any message
4299 # that says an option was ignored or not supported.
4300 # When given -MP, icc 7.0 and 7.1 complain thusly:
4301 # icc: Command line warning: ignoring option '-M'; no argument required
4302 # The diagnosis changed in icc 8.0:
4303 # icc: Command line remark: option '-MP' not supported
4304 if (grep 'ignoring option' conftest.err ||
4305 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4306 am_cv_CC_dependencies_compiler_type=$depmode
4307 break
4308 fi
4309 fi
4310 done
4311
4312 cd ..
4313 rm -rf conftest.dir
4314else
4315 am_cv_CC_dependencies_compiler_type=none
4316fi
4317
4318fi
4319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4320$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4321CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4322
4323 if
4324 test "x$enable_dependency_tracking" != xno \
4325 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4326 am__fastdepCC_TRUE=
4327 am__fastdepCC_FALSE='#'
4328else
4329 am__fastdepCC_TRUE='#'
4330 am__fastdepCC_FALSE=
4331fi
4332
4333
4334ac_ext=go
ea2e69a4 4335ac_compile='$GOC -c $GOFLAGS conftest.$ac_ext >&5'
4336ac_link='$GOC -o conftest$ac_exeext $GOFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4337ac_compiler_gnu=yes
e440a328 4338if test -n "$ac_tool_prefix"; then
4339 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4340set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4342$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 4343if ${ac_cv_prog_GOC+:} false; then :
e440a328 4344 $as_echo_n "(cached) " >&6
4345else
4346 if test -n "$GOC"; then
4347 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4348else
4349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350for as_dir in $PATH
4351do
4352 IFS=$as_save_IFS
4353 test -z "$as_dir" && as_dir=.
4354 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 4355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 4356 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4358 break 2
4359 fi
4360done
4361 done
4362IFS=$as_save_IFS
4363
4364fi
4365fi
4366GOC=$ac_cv_prog_GOC
4367if test -n "$GOC"; then
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4369$as_echo "$GOC" >&6; }
4370else
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4372$as_echo "no" >&6; }
4373fi
4374
4375
4376fi
4377if test -z "$ac_cv_prog_GOC"; then
4378 ac_ct_GOC=$GOC
4379 # Extract the first word of "gccgo", so it can be a program name with args.
4380set dummy gccgo; ac_word=$2
4381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4382$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 4383if ${ac_cv_prog_ac_ct_GOC+:} false; then :
e440a328 4384 $as_echo_n "(cached) " >&6
4385else
4386 if test -n "$ac_ct_GOC"; then
4387 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4388else
4389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390for as_dir in $PATH
4391do
4392 IFS=$as_save_IFS
4393 test -z "$as_dir" && as_dir=.
4394 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 4395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 4396 ac_cv_prog_ac_ct_GOC="gccgo"
4397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4398 break 2
4399 fi
4400done
4401 done
4402IFS=$as_save_IFS
4403
4404fi
4405fi
4406ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4407if test -n "$ac_ct_GOC"; then
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4409$as_echo "$ac_ct_GOC" >&6; }
4410else
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4412$as_echo "no" >&6; }
4413fi
4414
4415 if test "x$ac_ct_GOC" = x; then
4416 GOC=""
4417 else
4418 case $cross_compiling:$ac_tool_warned in
4419yes:)
4420{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4421$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4422ac_tool_warned=yes ;;
4423esac
4424 GOC=$ac_ct_GOC
4425 fi
4426else
4427 GOC="$ac_cv_prog_GOC"
4428fi
4429
4430if test -z "$GOC"; then
4431 if test -n "$ac_tool_prefix"; then
4432 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4433set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4435$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 4436if ${ac_cv_prog_GOC+:} false; then :
e440a328 4437 $as_echo_n "(cached) " >&6
4438else
4439 if test -n "$GOC"; then
4440 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4441else
4442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443for as_dir in $PATH
4444do
4445 IFS=$as_save_IFS
4446 test -z "$as_dir" && as_dir=.
4447 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 4448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 4449 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4451 break 2
4452 fi
4453done
4454 done
4455IFS=$as_save_IFS
4456
4457fi
4458fi
4459GOC=$ac_cv_prog_GOC
4460if test -n "$GOC"; then
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4462$as_echo "$GOC" >&6; }
4463else
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4465$as_echo "no" >&6; }
4466fi
4467
4468
4469 fi
4470fi
4471if test -z "$GOC"; then
4472 # Extract the first word of "gccgo", so it can be a program name with args.
4473set dummy gccgo; ac_word=$2
4474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4475$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 4476if ${ac_cv_prog_GOC+:} false; then :
e440a328 4477 $as_echo_n "(cached) " >&6
4478else
4479 if test -n "$GOC"; then
4480 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4481else
4482 ac_prog_rejected=no
4483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484for as_dir in $PATH
4485do
4486 IFS=$as_save_IFS
4487 test -z "$as_dir" && as_dir=.
4488 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 4489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4490 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
e440a328 4491 ac_prog_rejected=yes
4492 continue
4493 fi
4494 ac_cv_prog_GOC="gccgo"
4495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4496 break 2
4497 fi
4498done
4499 done
4500IFS=$as_save_IFS
4501
4502if test $ac_prog_rejected = yes; then
4503 # We found a bogon in the path, so make sure we never use it.
4504 set dummy $ac_cv_prog_GOC
4505 shift
4506 if test $# != 0; then
4507 # We chose a different compiler from the bogus one.
4508 # However, it has the same basename, so the bogon will be chosen
4509 # first if we set GOC to just the basename; use the full file name.
4510 shift
4511 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4512 fi
4513fi
4514fi
4515fi
4516GOC=$ac_cv_prog_GOC
4517if test -n "$GOC"; then
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4519$as_echo "$GOC" >&6; }
4520else
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4522$as_echo "no" >&6; }
4523fi
4524
4525
4526fi
4527
4528
4529# Provide some information about the compiler.
4530$as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4531set X $ac_compile
4532ac_compiler=$2
4533{ { ac_try="$ac_compiler --version >&5"
4534case "(($ac_try" in
4535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4536 *) ac_try_echo=$ac_try;;
4537esac
4538eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4539$as_echo "$ac_try_echo"; } >&5
4540 (eval "$ac_compiler --version >&5") 2>conftest.err
4541 ac_status=$?
4542 if test -s conftest.err; then
4543 sed '10a\
4544... rest of stderr output deleted ...
4545 10q' conftest.err >conftest.er1
4546 cat conftest.er1 >&5
e440a328 4547 fi
ea2e69a4 4548 rm -f conftest.er1 conftest.err
e440a328 4549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4550 test $ac_status = 0; }
ea2e69a4 4551GOFLAGS="-g -O2"
e440a328 4552ac_ext=c
4553ac_cpp='$CPP $CPPFLAGS'
4554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4556ac_compiler_gnu=$ac_cv_c_compiler_gnu
4557
4558
4559
4560
4561
03118c21 4562case ${host} in
4563 *-*-aix*)
4564 # static hash tables crashes on AIX when libgo is built with O2
4565 CFLAGS="$CFLAGS -fno-section-anchors"
4566 GOCFLAGS="$GOCFLAGS -fno-section-anchors"
4567 ;;
4568esac
4569
e440a328 4570
4571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4572$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4573 # Check whether --enable-maintainer-mode was given.
4574if test "${enable_maintainer_mode+set}" = set; then :
4575 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4576else
4577 USE_MAINTAINER_MODE=no
4578fi
4579
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4581$as_echo "$USE_MAINTAINER_MODE" >&6; }
4582 if test $USE_MAINTAINER_MODE = yes; then
4583 MAINTAINER_MODE_TRUE=
4584 MAINTAINER_MODE_FALSE='#'
4585else
4586 MAINTAINER_MODE_TRUE='#'
4587 MAINTAINER_MODE_FALSE=
4588fi
4589
4590 MAINT=$MAINTAINER_MODE_TRUE
4591
4592
4593
c9c0c1d2 4594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4595$as_echo_n "checking for a sed that does not truncate output... " >&6; }
ea2e69a4 4596if ${ac_cv_path_SED+:} false; then :
e440a328 4597 $as_echo_n "(cached) " >&6
4598else
c9c0c1d2 4599 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4600 for ac_i in 1 2 3 4 5 6 7; do
4601 ac_script="$ac_script$as_nl$ac_script"
4602 done
4603 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4604 { ac_script=; unset ac_script;}
4605 if test -z "$SED"; then
4606 ac_path_SED_found=false
4607 # Loop through the user's path and test for each of PROGNAME-LIST
4608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609for as_dir in $PATH
e440a328 4610do
c9c0c1d2 4611 IFS=$as_save_IFS
4612 test -z "$as_dir" && as_dir=.
4613 for ac_prog in sed gsed; do
4614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
ea2e69a4 4616 as_fn_executable_p "$ac_path_SED" || continue
c9c0c1d2 4617# Check for GNU ac_path_SED and select it if it is found.
4618 # Check for GNU $ac_path_SED
4619case `"$ac_path_SED" --version 2>&1` in
4620*GNU*)
4621 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4622*)
4623 ac_count=0
4624 $as_echo_n 0123456789 >"conftest.in"
4625 while :
4626 do
4627 cat "conftest.in" "conftest.in" >"conftest.tmp"
4628 mv "conftest.tmp" "conftest.in"
4629 cp "conftest.in" "conftest.nl"
4630 $as_echo '' >> "conftest.nl"
4631 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4632 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4633 as_fn_arith $ac_count + 1 && ac_count=$as_val
4634 if test $ac_count -gt ${ac_path_SED_max-0}; then
4635 # Best one so far, save it but keep looking for a better one
4636 ac_cv_path_SED="$ac_path_SED"
4637 ac_path_SED_max=$ac_count
4638 fi
4639 # 10*(2^10) chars as input seems more than enough
4640 test $ac_count -gt 10 && break
4641 done
4642 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4643esac
e440a328 4644
c9c0c1d2 4645 $ac_path_SED_found && break 3
4646 done
4647 done
4648 done
4649IFS=$as_save_IFS
4650 if test -z "$ac_cv_path_SED"; then
ea2e69a4 4651 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
c9c0c1d2 4652 fi
e440a328 4653else
c9c0c1d2 4654 ac_cv_path_SED=$SED
e440a328 4655fi
4656
4657fi
c9c0c1d2 4658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4659$as_echo "$ac_cv_path_SED" >&6; }
4660 SED="$ac_cv_path_SED"
4661 rm -f conftest.sed
4662
4663test -z "$SED" && SED=sed
4664Xsed="$SED -e 1s/^X//"
4665
e440a328 4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4677$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
ea2e69a4 4678if ${ac_cv_path_GREP+:} false; then :
e440a328 4679 $as_echo_n "(cached) " >&6
4680else
4681 if test -z "$GREP"; then
4682 ac_path_GREP_found=false
4683 # Loop through the user's path and test for each of PROGNAME-LIST
4684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4686do
4687 IFS=$as_save_IFS
4688 test -z "$as_dir" && as_dir=.
4689 for ac_prog in grep ggrep; do
4690 for ac_exec_ext in '' $ac_executable_extensions; do
4691 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
ea2e69a4 4692 as_fn_executable_p "$ac_path_GREP" || continue
e440a328 4693# Check for GNU ac_path_GREP and select it if it is found.
4694 # Check for GNU $ac_path_GREP
4695case `"$ac_path_GREP" --version 2>&1` in
4696*GNU*)
4697 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4698*)
4699 ac_count=0
4700 $as_echo_n 0123456789 >"conftest.in"
4701 while :
4702 do
4703 cat "conftest.in" "conftest.in" >"conftest.tmp"
4704 mv "conftest.tmp" "conftest.in"
4705 cp "conftest.in" "conftest.nl"
4706 $as_echo 'GREP' >> "conftest.nl"
4707 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4708 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4709 as_fn_arith $ac_count + 1 && ac_count=$as_val
4710 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4711 # Best one so far, save it but keep looking for a better one
4712 ac_cv_path_GREP="$ac_path_GREP"
4713 ac_path_GREP_max=$ac_count
4714 fi
4715 # 10*(2^10) chars as input seems more than enough
4716 test $ac_count -gt 10 && break
4717 done
4718 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4719esac
4720
4721 $ac_path_GREP_found && break 3
4722 done
4723 done
4724 done
4725IFS=$as_save_IFS
4726 if test -z "$ac_cv_path_GREP"; then
ea2e69a4 4727 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
e440a328 4728 fi
4729else
4730 ac_cv_path_GREP=$GREP
4731fi
4732
4733fi
4734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4735$as_echo "$ac_cv_path_GREP" >&6; }
4736 GREP="$ac_cv_path_GREP"
4737
4738
4739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4740$as_echo_n "checking for egrep... " >&6; }
ea2e69a4 4741if ${ac_cv_path_EGREP+:} false; then :
e440a328 4742 $as_echo_n "(cached) " >&6
4743else
4744 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4745 then ac_cv_path_EGREP="$GREP -E"
4746 else
4747 if test -z "$EGREP"; then
4748 ac_path_EGREP_found=false
4749 # Loop through the user's path and test for each of PROGNAME-LIST
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4752do
4753 IFS=$as_save_IFS
4754 test -z "$as_dir" && as_dir=.
4755 for ac_prog in egrep; do
4756 for ac_exec_ext in '' $ac_executable_extensions; do
4757 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
ea2e69a4 4758 as_fn_executable_p "$ac_path_EGREP" || continue
e440a328 4759# Check for GNU ac_path_EGREP and select it if it is found.
4760 # Check for GNU $ac_path_EGREP
4761case `"$ac_path_EGREP" --version 2>&1` in
4762*GNU*)
4763 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4764*)
4765 ac_count=0
4766 $as_echo_n 0123456789 >"conftest.in"
4767 while :
4768 do
4769 cat "conftest.in" "conftest.in" >"conftest.tmp"
4770 mv "conftest.tmp" "conftest.in"
4771 cp "conftest.in" "conftest.nl"
4772 $as_echo 'EGREP' >> "conftest.nl"
4773 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4774 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4775 as_fn_arith $ac_count + 1 && ac_count=$as_val
4776 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4777 # Best one so far, save it but keep looking for a better one
4778 ac_cv_path_EGREP="$ac_path_EGREP"
4779 ac_path_EGREP_max=$ac_count
4780 fi
4781 # 10*(2^10) chars as input seems more than enough
4782 test $ac_count -gt 10 && break
4783 done
4784 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4785esac
4786
4787 $ac_path_EGREP_found && break 3
4788 done
4789 done
4790 done
4791IFS=$as_save_IFS
4792 if test -z "$ac_cv_path_EGREP"; then
ea2e69a4 4793 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
e440a328 4794 fi
4795else
4796 ac_cv_path_EGREP=$EGREP
4797fi
4798
4799 fi
4800fi
4801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4802$as_echo "$ac_cv_path_EGREP" >&6; }
4803 EGREP="$ac_cv_path_EGREP"
4804
4805
c9c0c1d2 4806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4807$as_echo_n "checking for fgrep... " >&6; }
ea2e69a4 4808if ${ac_cv_path_FGREP+:} false; then :
8202cb3c 4809 $as_echo_n "(cached) " >&6
4810else
c9c0c1d2 4811 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4812 then ac_cv_path_FGREP="$GREP -F"
4813 else
4814 if test -z "$FGREP"; then
4815 ac_path_FGREP_found=false
e440a328 4816 # Loop through the user's path and test for each of PROGNAME-LIST
4817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
c9c0c1d2 4818for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
e440a328 4819do
4820 IFS=$as_save_IFS
4821 test -z "$as_dir" && as_dir=.
c9c0c1d2 4822 for ac_prog in fgrep; do
e440a328 4823 for ac_exec_ext in '' $ac_executable_extensions; do
c9c0c1d2 4824 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
ea2e69a4 4825 as_fn_executable_p "$ac_path_FGREP" || continue
c9c0c1d2 4826# Check for GNU ac_path_FGREP and select it if it is found.
4827 # Check for GNU $ac_path_FGREP
4828case `"$ac_path_FGREP" --version 2>&1` in
e440a328 4829*GNU*)
c9c0c1d2 4830 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
e440a328 4831*)
4832 ac_count=0
4833 $as_echo_n 0123456789 >"conftest.in"
4834 while :
4835 do
4836 cat "conftest.in" "conftest.in" >"conftest.tmp"
4837 mv "conftest.tmp" "conftest.in"
4838 cp "conftest.in" "conftest.nl"
c9c0c1d2 4839 $as_echo 'FGREP' >> "conftest.nl"
4840 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
e440a328 4841 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4842 as_fn_arith $ac_count + 1 && ac_count=$as_val
c9c0c1d2 4843 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
e440a328 4844 # Best one so far, save it but keep looking for a better one
c9c0c1d2 4845 ac_cv_path_FGREP="$ac_path_FGREP"
4846 ac_path_FGREP_max=$ac_count
e440a328 4847 fi
4848 # 10*(2^10) chars as input seems more than enough
4849 test $ac_count -gt 10 && break
4850 done
4851 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4852esac
4853
c9c0c1d2 4854 $ac_path_FGREP_found && break 3
e440a328 4855 done
4856 done
4857 done
4858IFS=$as_save_IFS
c9c0c1d2 4859 if test -z "$ac_cv_path_FGREP"; then
ea2e69a4 4860 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
e440a328 4861 fi
4862else
c9c0c1d2 4863 ac_cv_path_FGREP=$FGREP
8202cb3c 4864fi
4865
c9c0c1d2 4866 fi
e440a328 4867fi
4868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4869$as_echo "$ac_cv_path_FGREP" >&6; }
4870 FGREP="$ac_cv_path_FGREP"
4871
4872
4873test -z "$GREP" && GREP=grep
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4892ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4893ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4894
4895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4896$as_echo_n "checking how to print strings... " >&6; }
4897# Test print first, because it will be a builtin if present.
4898if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4899 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4900 ECHO='print -r --'
4901elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4902 ECHO='printf %s\n'
4903else
4904 # Use this function as a fallback that always works.
4905 func_fallback_echo ()
4906 {
4907 eval 'cat <<_LTECHO_EOF
4908$1
4909_LTECHO_EOF'
4910 }
4911 ECHO='func_fallback_echo'
4912fi
4913
4914# func_echo_all arg...
4915# Invoke $ECHO with all args, space-separated.
4916func_echo_all ()
4917{
4918 $ECHO ""
4919}
4920
4921case "$ECHO" in
4922 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4923$as_echo "printf" >&6; } ;;
4924 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4925$as_echo "print -r" >&6; } ;;
4926 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4927$as_echo "cat" >&6; } ;;
4928esac
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945# Check whether --with-gnu-ld was given.
4946if test "${with_gnu_ld+set}" = set; then :
4947 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4948else
4949 with_gnu_ld=no
4950fi
4951
4952ac_prog=ld
4953if test "$GCC" = yes; then
4954 # Check if gcc -print-prog-name=ld gives a path.
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4956$as_echo_n "checking for ld used by $CC... " >&6; }
4957 case $host in
4958 *-*-mingw*)
4959 # gcc leaves a trailing carriage return which upsets mingw
4960 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4961 *)
4962 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4963 esac
4964 case $ac_prog in
4965 # Accept absolute paths.
4966 [\\/]* | ?:[\\/]*)
4967 re_direlt='/[^/][^/]*/\.\./'
4968 # Canonicalize the pathname of ld
4969 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4970 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4971 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4972 done
4973 test -z "$LD" && LD="$ac_prog"
4974 ;;
4975 "")
4976 # If it fails, then pretend we aren't using GCC.
4977 ac_prog=ld
4978 ;;
4979 *)
4980 # If it is relative, then search for the first ld in PATH.
4981 with_gnu_ld=unknown
4982 ;;
4983 esac
4984elif test "$with_gnu_ld" = yes; then
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4986$as_echo_n "checking for GNU ld... " >&6; }
4987else
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4989$as_echo_n "checking for non-GNU ld... " >&6; }
4990fi
ea2e69a4 4991if ${lt_cv_path_LD+:} false; then :
e440a328 4992 $as_echo_n "(cached) " >&6
4993else
4994 if test -z "$LD"; then
4995 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4996 for ac_dir in $PATH; do
4997 IFS="$lt_save_ifs"
4998 test -z "$ac_dir" && ac_dir=.
4999 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5000 lt_cv_path_LD="$ac_dir/$ac_prog"
5001 # Check to see if the program is GNU ld. I'd rather use --version,
5002 # but apparently some variants of GNU ld only accept -v.
5003 # Break only if it was the GNU/non-GNU ld that we prefer.
5004 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5005 *GNU* | *'with BFD'*)
5006 test "$with_gnu_ld" != no && break
5007 ;;
5008 *)
5009 test "$with_gnu_ld" != yes && break
5010 ;;
5011 esac
5012 fi
5013 done
5014 IFS="$lt_save_ifs"
5015else
5016 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5017fi
5018fi
5019
5020LD="$lt_cv_path_LD"
5021if test -n "$LD"; then
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5023$as_echo "$LD" >&6; }
5024else
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5026$as_echo "no" >&6; }
5027fi
ea2e69a4 5028test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
e440a328 5029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5030$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
ea2e69a4 5031if ${lt_cv_prog_gnu_ld+:} false; then :
e440a328 5032 $as_echo_n "(cached) " >&6
5033else
5034 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5035case `$LD -v 2>&1 </dev/null` in
5036*GNU* | *'with BFD'*)
5037 lt_cv_prog_gnu_ld=yes
5038 ;;
5039*)
5040 lt_cv_prog_gnu_ld=no
5041 ;;
5042esac
5043fi
5044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5045$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5046with_gnu_ld=$lt_cv_prog_gnu_ld
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056if test -n "$ac_tool_prefix"; then
5057 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5058set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5060$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 5061if ${ac_cv_prog_RANLIB+:} false; then :
e440a328 5062 $as_echo_n "(cached) " >&6
5063else
5064 if test -n "$RANLIB"; then
5065 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5066else
5067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068for as_dir in $PATH
5069do
5070 IFS=$as_save_IFS
5071 test -z "$as_dir" && as_dir=.
5072 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 5073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 5074 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5076 break 2
5077 fi
5078done
5079 done
5080IFS=$as_save_IFS
5081
5082fi
5083fi
5084RANLIB=$ac_cv_prog_RANLIB
5085if test -n "$RANLIB"; then
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5087$as_echo "$RANLIB" >&6; }
5088else
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5090$as_echo "no" >&6; }
5091fi
5092
5093
5094fi
5095if test -z "$ac_cv_prog_RANLIB"; then
5096 ac_ct_RANLIB=$RANLIB
5097 # Extract the first word of "ranlib", so it can be a program name with args.
5098set dummy ranlib; ac_word=$2
5099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5100$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 5101if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
e440a328 5102 $as_echo_n "(cached) " >&6
5103else
5104 if test -n "$ac_ct_RANLIB"; then
5105 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5106else
5107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108for as_dir in $PATH
5109do
5110 IFS=$as_save_IFS
5111 test -z "$as_dir" && as_dir=.
5112 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 5113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 5114 ac_cv_prog_ac_ct_RANLIB="ranlib"
5115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5116 break 2
5117 fi
5118done
5119 done
5120IFS=$as_save_IFS
5121
5122fi
5123fi
5124ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5125if test -n "$ac_ct_RANLIB"; then
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5127$as_echo "$ac_ct_RANLIB" >&6; }
5128else
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5130$as_echo "no" >&6; }
5131fi
5132
5133 if test "x$ac_ct_RANLIB" = x; then
5134 RANLIB=":"
5135 else
5136 case $cross_compiling:$ac_tool_warned in
5137yes:)
5138{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5139$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5140ac_tool_warned=yes ;;
5141esac
5142 RANLIB=$ac_ct_RANLIB
5143 fi
5144else
5145 RANLIB="$ac_cv_prog_RANLIB"
5146fi
5147
5148if test -n "$ac_tool_prefix"; then
5149 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
5150set dummy ${ac_tool_prefix}objcopy; ac_word=$2
5151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5152$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 5153if ${ac_cv_prog_OBJCOPY+:} false; then :
e440a328 5154 $as_echo_n "(cached) " >&6
5155else
5156 if test -n "$OBJCOPY"; then
5157 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
5158else
5159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160for as_dir in $PATH
5161do
5162 IFS=$as_save_IFS
5163 test -z "$as_dir" && as_dir=.
5164 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 5165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 5166 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
5167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5168 break 2
5169 fi
5170done
5171 done
5172IFS=$as_save_IFS
5173
5174fi
5175fi
5176OBJCOPY=$ac_cv_prog_OBJCOPY
5177if test -n "$OBJCOPY"; then
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
5179$as_echo "$OBJCOPY" >&6; }
5180else
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5182$as_echo "no" >&6; }
5183fi
5184
5185
5186fi
5187if test -z "$ac_cv_prog_OBJCOPY"; then
5188 ac_ct_OBJCOPY=$OBJCOPY
5189 # Extract the first word of "objcopy", so it can be a program name with args.
5190set dummy objcopy; ac_word=$2
5191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5192$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 5193if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then :
e440a328 5194 $as_echo_n "(cached) " >&6
5195else
5196 if test -n "$ac_ct_OBJCOPY"; then
5197 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
5198else
5199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200for as_dir in $PATH
5201do
5202 IFS=$as_save_IFS
5203 test -z "$as_dir" && as_dir=.
5204 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 5205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 5206 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
5207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5208 break 2
5209 fi
5210done
5211 done
5212IFS=$as_save_IFS
5213
5214fi
5215fi
5216ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
5217if test -n "$ac_ct_OBJCOPY"; then
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
5219$as_echo "$ac_ct_OBJCOPY" >&6; }
5220else
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5222$as_echo "no" >&6; }
5223fi
5224
5225 if test "x$ac_ct_OBJCOPY" = x; then
5226 OBJCOPY="missing-objcopy"
5227 else
5228 case $cross_compiling:$ac_tool_warned in
5229yes:)
5230{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5231$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5232ac_tool_warned=yes ;;
5233esac
5234 OBJCOPY=$ac_ct_OBJCOPY
5235 fi
5236else
5237 OBJCOPY="$ac_cv_prog_OBJCOPY"
5238fi
5239
5240
5241enable_dlopen=yes
5242
5243
5244
5245case `pwd` in
5246 *\ * | *\ *)
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5248$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5249esac
5250
5251
5252
5253macro_version='2.2.7a'
5254macro_revision='1.3134'
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268ltmain="$ac_aux_dir/ltmain.sh"
5269
5270# Backslashify metacharacters that are still active within
5271# double-quoted strings.
5272sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5273
5274# Same as above, but do not quote variable references.
5275double_quote_subst='s/\(["`\\]\)/\\\1/g'
5276
5277# Sed substitution to delay expansion of an escaped shell variable in a
5278# double_quote_subst'ed string.
5279delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5280
5281# Sed substitution to delay expansion of an escaped single quote.
5282delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5283
5284# Sed substitution to avoid accidental globbing in evaled expressions
5285no_glob_subst='s/\*/\\\*/g'
5286
5287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5288$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
ea2e69a4 5289if ${lt_cv_path_NM+:} false; then :
e440a328 5290 $as_echo_n "(cached) " >&6
5291else
5292 if test -n "$NM"; then
5293 # Let the user override the test.
5294 lt_cv_path_NM="$NM"
5295else
5296 lt_nm_to_check="${ac_tool_prefix}nm"
5297 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5298 lt_nm_to_check="$lt_nm_to_check nm"
5299 fi
5300 for lt_tmp_nm in $lt_nm_to_check; do
5301 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5302 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5303 IFS="$lt_save_ifs"
5304 test -z "$ac_dir" && ac_dir=.
5305 tmp_nm="$ac_dir/$lt_tmp_nm"
5306 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5307 # Check to see if the nm accepts a BSD-compat flag.
5308 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5309 # nm: unknown option "B" ignored
5310 # Tru64's nm complains that /dev/null is an invalid object file
5311 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5312 */dev/null* | *'Invalid file or object type'*)
5313 lt_cv_path_NM="$tmp_nm -B"
5314 break
5315 ;;
5316 *)
5317 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5318 */dev/null*)
5319 lt_cv_path_NM="$tmp_nm -p"
5320 break
5321 ;;
5322 *)
5323 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5324 continue # so that we can try to find one that supports BSD flags
5325 ;;
5326 esac
5327 ;;
5328 esac
5329 fi
5330 done
5331 IFS="$lt_save_ifs"
5332 done
5333 : ${lt_cv_path_NM=no}
5334fi
5335fi
5336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5337$as_echo "$lt_cv_path_NM" >&6; }
5338if test "$lt_cv_path_NM" != "no"; then
5339 NM="$lt_cv_path_NM"
5340else
5341 # Didn't find any BSD compatible name lister, look for dumpbin.
5342 if test -n "$DUMPBIN"; then :
5343 # Let the user override the test.
5344 else
5345 if test -n "$ac_tool_prefix"; then
5346 for ac_prog in dumpbin "link -dump"
5347 do
5348 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5349set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5351$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 5352if ${ac_cv_prog_DUMPBIN+:} false; then :
e440a328 5353 $as_echo_n "(cached) " >&6
5354else
5355 if test -n "$DUMPBIN"; then
5356 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5357else
5358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359for as_dir in $PATH
5360do
5361 IFS=$as_save_IFS
5362 test -z "$as_dir" && as_dir=.
5363 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 5364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 5365 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5367 break 2
5368 fi
5369done
5370 done
5371IFS=$as_save_IFS
5372
5373fi
5374fi
5375DUMPBIN=$ac_cv_prog_DUMPBIN
5376if test -n "$DUMPBIN"; then
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5378$as_echo "$DUMPBIN" >&6; }
5379else
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5381$as_echo "no" >&6; }
5382fi
5383
5384
5385 test -n "$DUMPBIN" && break
5386 done
5387fi
5388if test -z "$DUMPBIN"; then
5389 ac_ct_DUMPBIN=$DUMPBIN
5390 for ac_prog in dumpbin "link -dump"
5391do
5392 # Extract the first word of "$ac_prog", so it can be a program name with args.
5393set dummy $ac_prog; ac_word=$2
5394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5395$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 5396if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
e440a328 5397 $as_echo_n "(cached) " >&6
5398else
5399 if test -n "$ac_ct_DUMPBIN"; then
5400 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5401else
5402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403for as_dir in $PATH
5404do
5405 IFS=$as_save_IFS
5406 test -z "$as_dir" && as_dir=.
5407 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 5408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 5409 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5411 break 2
5412 fi
5413done
5414 done
5415IFS=$as_save_IFS
5416
5417fi
5418fi
5419ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5420if test -n "$ac_ct_DUMPBIN"; then
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5422$as_echo "$ac_ct_DUMPBIN" >&6; }
5423else
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5425$as_echo "no" >&6; }
5426fi
5427
5428
5429 test -n "$ac_ct_DUMPBIN" && break
5430done
5431
5432 if test "x$ac_ct_DUMPBIN" = x; then
5433 DUMPBIN=":"
5434 else
5435 case $cross_compiling:$ac_tool_warned in
5436yes:)
5437{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5438$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5439ac_tool_warned=yes ;;
5440esac
5441 DUMPBIN=$ac_ct_DUMPBIN
5442 fi
5443fi
5444
5445 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5446 *COFF*)
5447 DUMPBIN="$DUMPBIN -symbols"
5448 ;;
5449 *)
5450 DUMPBIN=:
5451 ;;
5452 esac
5453 fi
5454
5455 if test "$DUMPBIN" != ":"; then
5456 NM="$DUMPBIN"
5457 fi
5458fi
5459test -z "$NM" && NM=nm
5460
5461
5462
5463
5464
5465
5466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5467$as_echo_n "checking the name lister ($NM) interface... " >&6; }
ea2e69a4 5468if ${lt_cv_nm_interface+:} false; then :
e440a328 5469 $as_echo_n "(cached) " >&6
5470else
5471 lt_cv_nm_interface="BSD nm"
5472 echo "int some_variable = 0;" > conftest.$ac_ext
5473 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5474 (eval "$ac_compile" 2>conftest.err)
5475 cat conftest.err >&5
5476 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5477 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5478 cat conftest.err >&5
5479 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5480 cat conftest.out >&5
5481 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5482 lt_cv_nm_interface="MS dumpbin"
5483 fi
5484 rm -f conftest*
5485fi
5486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5487$as_echo "$lt_cv_nm_interface" >&6; }
5488
5489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5490$as_echo_n "checking whether ln -s works... " >&6; }
5491LN_S=$as_ln_s
5492if test "$LN_S" = "ln -s"; then
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5494$as_echo "yes" >&6; }
5495else
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5497$as_echo "no, using $LN_S" >&6; }
5498fi
5499
5500# find the maximum length of command line arguments
5501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5502$as_echo_n "checking the maximum length of command line arguments... " >&6; }
ea2e69a4 5503if ${lt_cv_sys_max_cmd_len+:} false; then :
e440a328 5504 $as_echo_n "(cached) " >&6
5505else
5506 i=0
5507 teststring="ABCD"
5508
5509 case $build_os in
5510 msdosdjgpp*)
5511 # On DJGPP, this test can blow up pretty badly due to problems in libc
5512 # (any single argument exceeding 2000 bytes causes a buffer overrun
5513 # during glob expansion). Even if it were fixed, the result of this
5514 # check would be larger than it should be.
5515 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5516 ;;
5517
5518 gnu*)
5519 # Under GNU Hurd, this test is not required because there is
5520 # no limit to the length of command line arguments.
5521 # Libtool will interpret -1 as no limit whatsoever
5522 lt_cv_sys_max_cmd_len=-1;
5523 ;;
5524
5525 cygwin* | mingw* | cegcc*)
5526 # On Win9x/ME, this test blows up -- it succeeds, but takes
5527 # about 5 minutes as the teststring grows exponentially.
5528 # Worse, since 9x/ME are not pre-emptively multitasking,
5529 # you end up with a "frozen" computer, even though with patience
5530 # the test eventually succeeds (with a max line length of 256k).
5531 # Instead, let's just punt: use the minimum linelength reported by
5532 # all of the supported platforms: 8192 (on NT/2K/XP).
5533 lt_cv_sys_max_cmd_len=8192;
5534 ;;
5535
5536 mint*)
5537 # On MiNT this can take a long time and run out of memory.
5538 lt_cv_sys_max_cmd_len=8192;
5539 ;;
5540
5541 amigaos*)
5542 # On AmigaOS with pdksh, this test takes hours, literally.
5543 # So we just punt and use a minimum line length of 8192.
5544 lt_cv_sys_max_cmd_len=8192;
5545 ;;
5546
5547 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5548 # This has been around since 386BSD, at least. Likely further.
5549 if test -x /sbin/sysctl; then
5550 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5551 elif test -x /usr/sbin/sysctl; then
5552 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5553 else
5554 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5555 fi
5556 # And add a safety zone
5557 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5558 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5559 ;;
5560
5561 interix*)
5562 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5563 lt_cv_sys_max_cmd_len=196608
5564 ;;
5565
5566 osf*)
5567 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5568 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5569 # nice to cause kernel panics so lets avoid the loop below.
5570 # First set a reasonable default.
5571 lt_cv_sys_max_cmd_len=16384
5572 #
5573 if test -x /sbin/sysconfig; then
5574 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5575 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5576 esac
5577 fi
5578 ;;
5579 sco3.2v5*)
5580 lt_cv_sys_max_cmd_len=102400
5581 ;;
5582 sysv5* | sco5v6* | sysv4.2uw2*)
5583 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5584 if test -n "$kargmax"; then
5585 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5586 else
5587 lt_cv_sys_max_cmd_len=32768
5588 fi
5589 ;;
5590 *)
5591 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5592 if test -n "$lt_cv_sys_max_cmd_len"; then
5593 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5594 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5595 else
5596 # Make teststring a little bigger before we do anything with it.
5597 # a 1K string should be a reasonable start.
5598 for i in 1 2 3 4 5 6 7 8 ; do
5599 teststring=$teststring$teststring
5600 done
5601 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5602 # If test is not a shell built-in, we'll probably end up computing a
5603 # maximum length that is only half of the actual maximum length, but
5604 # we can't tell.
5605 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5606 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5607 test $i != 17 # 1/2 MB should be enough
5608 do
5609 i=`expr $i + 1`
5610 teststring=$teststring$teststring
5611 done
5612 # Only check the string length outside the loop.
5613 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5614 teststring=
5615 # Add a significant safety factor because C++ compilers can tack on
5616 # massive amounts of additional arguments before passing them to the
5617 # linker. It appears as though 1/2 is a usable value.
5618 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5619 fi
5620 ;;
5621 esac
5622
5623fi
5624
5625if test -n $lt_cv_sys_max_cmd_len ; then
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5627$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5628else
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5630$as_echo "none" >&6; }
5631fi
5632max_cmd_len=$lt_cv_sys_max_cmd_len
5633
5634
5635
5636
5637
5638
5639: ${CP="cp -f"}
5640: ${MV="mv -f"}
5641: ${RM="rm -f"}
5642
5643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5644$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5645# Try some XSI features
5646xsi_shell=no
5647( _lt_dummy="a/b/c"
5648 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5649 = c,a/b,, \
5650 && eval 'test $(( 1 + 1 )) -eq 2 \
5651 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5652 && xsi_shell=yes
5653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5654$as_echo "$xsi_shell" >&6; }
5655
5656
5657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5658$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5659lt_shell_append=no
5660( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5661 >/dev/null 2>&1 \
5662 && lt_shell_append=yes
5663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5664$as_echo "$lt_shell_append" >&6; }
5665
5666
5667if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5668 lt_unset=unset
5669else
5670 lt_unset=false
5671fi
5672
5673
5674
5675
5676
5677# test EBCDIC or ASCII
5678case `echo X|tr X '\101'` in
5679 A) # ASCII based system
5680 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5681 lt_SP2NL='tr \040 \012'
5682 lt_NL2SP='tr \015\012 \040\040'
5683 ;;
5684 *) # EBCDIC based system
5685 lt_SP2NL='tr \100 \n'
5686 lt_NL2SP='tr \r\n \100\100'
5687 ;;
5688esac
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5699$as_echo_n "checking for $LD option to reload object files... " >&6; }
ea2e69a4 5700if ${lt_cv_ld_reload_flag+:} false; then :
e440a328 5701 $as_echo_n "(cached) " >&6
5702else
5703 lt_cv_ld_reload_flag='-r'
5704fi
5705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5706$as_echo "$lt_cv_ld_reload_flag" >&6; }
5707reload_flag=$lt_cv_ld_reload_flag
5708case $reload_flag in
5709"" | " "*) ;;
5710*) reload_flag=" $reload_flag" ;;
5711esac
5712reload_cmds='$LD$reload_flag -o $output$reload_objs'
5713case $host_os in
5714 darwin*)
5715 if test "$GCC" = yes; then
5716 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5717 else
5718 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5719 fi
5720 ;;
5721esac
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731if test -n "$ac_tool_prefix"; then
5732 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5733set dummy ${ac_tool_prefix}objdump; ac_word=$2
5734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5735$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 5736if ${ac_cv_prog_OBJDUMP+:} false; then :
e440a328 5737 $as_echo_n "(cached) " >&6
5738else
5739 if test -n "$OBJDUMP"; then
5740 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5741else
5742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743for as_dir in $PATH
5744do
5745 IFS=$as_save_IFS
5746 test -z "$as_dir" && as_dir=.
5747 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 5748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 5749 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5751 break 2
5752 fi
5753done
5754 done
5755IFS=$as_save_IFS
5756
5757fi
5758fi
5759OBJDUMP=$ac_cv_prog_OBJDUMP
5760if test -n "$OBJDUMP"; then
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5762$as_echo "$OBJDUMP" >&6; }
5763else
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5765$as_echo "no" >&6; }
5766fi
5767
5768
5769fi
5770if test -z "$ac_cv_prog_OBJDUMP"; then
5771 ac_ct_OBJDUMP=$OBJDUMP
5772 # Extract the first word of "objdump", so it can be a program name with args.
5773set dummy objdump; ac_word=$2
5774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5775$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 5776if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
e440a328 5777 $as_echo_n "(cached) " >&6
5778else
5779 if test -n "$ac_ct_OBJDUMP"; then
5780 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5781else
5782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5783for as_dir in $PATH
5784do
5785 IFS=$as_save_IFS
5786 test -z "$as_dir" && as_dir=.
5787 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 5788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 5789 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5791 break 2
5792 fi
5793done
5794 done
5795IFS=$as_save_IFS
5796
5797fi
5798fi
5799ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5800if test -n "$ac_ct_OBJDUMP"; then
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5802$as_echo "$ac_ct_OBJDUMP" >&6; }
5803else
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5805$as_echo "no" >&6; }
5806fi
5807
5808 if test "x$ac_ct_OBJDUMP" = x; then
5809 OBJDUMP="false"
5810 else
5811 case $cross_compiling:$ac_tool_warned in
5812yes:)
5813{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5814$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5815ac_tool_warned=yes ;;
5816esac
5817 OBJDUMP=$ac_ct_OBJDUMP
5818 fi
5819else
5820 OBJDUMP="$ac_cv_prog_OBJDUMP"
5821fi
5822
5823test -z "$OBJDUMP" && OBJDUMP=objdump
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5834$as_echo_n "checking how to recognize dependent libraries... " >&6; }
ea2e69a4 5835if ${lt_cv_deplibs_check_method+:} false; then :
e440a328 5836 $as_echo_n "(cached) " >&6
5837else
5838 lt_cv_file_magic_cmd='$MAGIC_CMD'
5839lt_cv_file_magic_test_file=
5840lt_cv_deplibs_check_method='unknown'
5841# Need to set the preceding variable on all platforms that support
5842# interlibrary dependencies.
5843# 'none' -- dependencies not supported.
5844# `unknown' -- same as none, but documents that we really don't know.
5845# 'pass_all' -- all dependencies passed with no checks.
5846# 'test_compile' -- check by making test program.
5847# 'file_magic [[regex]]' -- check by looking for files in library path
5848# which responds to the $file_magic_cmd with a given extended regex.
5849# If you have `file' or equivalent on your system and you're not sure
5850# whether `pass_all' will *always* work, you probably want this one.
5851
5852case $host_os in
5853aix[4-9]*)
5854 lt_cv_deplibs_check_method=pass_all
5855 ;;
5856
5857beos*)
5858 lt_cv_deplibs_check_method=pass_all
5859 ;;
5860
5861bsdi[45]*)
5862 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5863 lt_cv_file_magic_cmd='/usr/bin/file -L'
5864 lt_cv_file_magic_test_file=/shlib/libc.so
5865 ;;
5866
5867cygwin*)
5868 # func_win32_libid is a shell function defined in ltmain.sh
5869 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5870 lt_cv_file_magic_cmd='func_win32_libid'
5871 ;;
5872
5873mingw* | pw32*)
5874 # Base MSYS/MinGW do not provide the 'file' command needed by
5875 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5876 # unless we find 'file', for example because we are cross-compiling.
5877 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5878 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5879 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5880 lt_cv_file_magic_cmd='func_win32_libid'
5881 else
5882 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5883 lt_cv_file_magic_cmd='$OBJDUMP -f'
5884 fi
5885 ;;
5886
5887cegcc*)
5888 # use the weaker test based on 'objdump'. See mingw*.
5889 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5890 lt_cv_file_magic_cmd='$OBJDUMP -f'
5891 ;;
5892
5893darwin* | rhapsody*)
5894 lt_cv_deplibs_check_method=pass_all
5895 ;;
5896
5897freebsd* | dragonfly*)
5898 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5899 case $host_cpu in
5900 i*86 )
5901 # Not sure whether the presence of OpenBSD here was a mistake.
5902 # Let's accept both of them until this is cleared up.
5903 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5904 lt_cv_file_magic_cmd=/usr/bin/file
5905 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5906 ;;
5907 esac
5908 else
5909 lt_cv_deplibs_check_method=pass_all
5910 fi
5911 ;;
5912
5913gnu*)
5914 lt_cv_deplibs_check_method=pass_all
5915 ;;
5916
5917haiku*)
5918 lt_cv_deplibs_check_method=pass_all
5919 ;;
5920
5921hpux10.20* | hpux11*)
5922 lt_cv_file_magic_cmd=/usr/bin/file
5923 case $host_cpu in
5924 ia64*)
5925 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5926 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5927 ;;
5928 hppa*64*)
5929 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]'
5930 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5931 ;;
5932 *)
5933 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5934 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5935 ;;
5936 esac
5937 ;;
5938
5939interix[3-9]*)
5940 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5941 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5942 ;;
5943
5944irix5* | irix6* | nonstopux*)
5945 case $LD in
5946 *-32|*"-32 ") libmagic=32-bit;;
5947 *-n32|*"-n32 ") libmagic=N32;;
5948 *-64|*"-64 ") libmagic=64-bit;;
5949 *) libmagic=never-match;;
5950 esac
5951 lt_cv_deplibs_check_method=pass_all
5952 ;;
5953
5954# This must be Linux ELF.
5955linux* | k*bsd*-gnu | kopensolaris*-gnu)
5956 lt_cv_deplibs_check_method=pass_all
5957 ;;
5958
5959netbsd*)
5960 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5961 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5962 else
5963 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5964 fi
5965 ;;
5966
5967newos6*)
5968 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5969 lt_cv_file_magic_cmd=/usr/bin/file
5970 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5971 ;;
5972
5973*nto* | *qnx*)
5974 lt_cv_deplibs_check_method=pass_all
5975 ;;
5976
5977openbsd*)
5978 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5979 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5980 else
5981 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5982 fi
5983 ;;
5984
5985osf3* | osf4* | osf5*)
5986 lt_cv_deplibs_check_method=pass_all
5987 ;;
5988
5989rdos*)
5990 lt_cv_deplibs_check_method=pass_all
5991 ;;
5992
5993solaris*)
5994 lt_cv_deplibs_check_method=pass_all
5995 ;;
5996
5997sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5998 lt_cv_deplibs_check_method=pass_all
5999 ;;
6000
6001sysv4 | sysv4.3*)
6002 case $host_vendor in
6003 motorola)
6004 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]'
6005 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6006 ;;
6007 ncr)
6008 lt_cv_deplibs_check_method=pass_all
6009 ;;
6010 sequent)
6011 lt_cv_file_magic_cmd='/bin/file'
6012 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6013 ;;
6014 sni)
6015 lt_cv_file_magic_cmd='/bin/file'
6016 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6017 lt_cv_file_magic_test_file=/lib/libc.so
6018 ;;
6019 siemens)
6020 lt_cv_deplibs_check_method=pass_all
6021 ;;
6022 pc)
6023 lt_cv_deplibs_check_method=pass_all
6024 ;;
6025 esac
6026 ;;
6027
6028tpf*)
6029 lt_cv_deplibs_check_method=pass_all
6030 ;;
6031esac
6032
6033fi
6034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6035$as_echo "$lt_cv_deplibs_check_method" >&6; }
6036file_magic_cmd=$lt_cv_file_magic_cmd
6037deplibs_check_method=$lt_cv_deplibs_check_method
6038test -z "$deplibs_check_method" && deplibs_check_method=unknown
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051if test -n "$ac_tool_prefix"; then
6052 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6053set dummy ${ac_tool_prefix}ar; ac_word=$2
6054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6055$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 6056if ${ac_cv_prog_AR+:} false; then :
e440a328 6057 $as_echo_n "(cached) " >&6
6058else
6059 if test -n "$AR"; then
6060 ac_cv_prog_AR="$AR" # Let the user override the test.
6061else
6062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063for as_dir in $PATH
6064do
6065 IFS=$as_save_IFS
6066 test -z "$as_dir" && as_dir=.
6067 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 6068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 6069 ac_cv_prog_AR="${ac_tool_prefix}ar"
6070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6071 break 2
6072 fi
6073done
6074 done
6075IFS=$as_save_IFS
6076
6077fi
6078fi
6079AR=$ac_cv_prog_AR
6080if test -n "$AR"; then
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6082$as_echo "$AR" >&6; }
6083else
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6085$as_echo "no" >&6; }
6086fi
6087
6088
6089fi
6090if test -z "$ac_cv_prog_AR"; then
6091 ac_ct_AR=$AR
6092 # Extract the first word of "ar", so it can be a program name with args.
6093set dummy ar; ac_word=$2
6094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6095$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 6096if ${ac_cv_prog_ac_ct_AR+:} false; then :
e440a328 6097 $as_echo_n "(cached) " >&6
6098else
6099 if test -n "$ac_ct_AR"; then
6100 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6101else
6102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103for as_dir in $PATH
6104do
6105 IFS=$as_save_IFS
6106 test -z "$as_dir" && as_dir=.
6107 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 6108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 6109 ac_cv_prog_ac_ct_AR="ar"
6110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6111 break 2
6112 fi
6113done
6114 done
6115IFS=$as_save_IFS
6116
6117fi
6118fi
6119ac_ct_AR=$ac_cv_prog_ac_ct_AR
6120if test -n "$ac_ct_AR"; then
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6122$as_echo "$ac_ct_AR" >&6; }
6123else
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6125$as_echo "no" >&6; }
6126fi
6127
6128 if test "x$ac_ct_AR" = x; then
6129 AR="false"
6130 else
6131 case $cross_compiling:$ac_tool_warned in
6132yes:)
6133{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6134$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6135ac_tool_warned=yes ;;
6136esac
6137 AR=$ac_ct_AR
6138 fi
6139else
6140 AR="$ac_cv_prog_AR"
6141fi
6142
6143test -z "$AR" && AR=ar
6144test -z "$AR_FLAGS" && AR_FLAGS=cru
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156if test -n "$ac_tool_prefix"; then
6157 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6158set dummy ${ac_tool_prefix}strip; ac_word=$2
6159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6160$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 6161if ${ac_cv_prog_STRIP+:} false; then :
e440a328 6162 $as_echo_n "(cached) " >&6
6163else
6164 if test -n "$STRIP"; then
6165 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6166else
6167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6168for as_dir in $PATH
6169do
6170 IFS=$as_save_IFS
6171 test -z "$as_dir" && as_dir=.
6172 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 6173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 6174 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6176 break 2
6177 fi
6178done
6179 done
6180IFS=$as_save_IFS
6181
6182fi
6183fi
6184STRIP=$ac_cv_prog_STRIP
6185if test -n "$STRIP"; then
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6187$as_echo "$STRIP" >&6; }
6188else
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6190$as_echo "no" >&6; }
6191fi
6192
6193
6194fi
6195if test -z "$ac_cv_prog_STRIP"; then
6196 ac_ct_STRIP=$STRIP
6197 # Extract the first word of "strip", so it can be a program name with args.
6198set dummy strip; ac_word=$2
6199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6200$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 6201if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
e440a328 6202 $as_echo_n "(cached) " >&6
6203else
6204 if test -n "$ac_ct_STRIP"; then
6205 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6206else
6207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6208for as_dir in $PATH
6209do
6210 IFS=$as_save_IFS
6211 test -z "$as_dir" && as_dir=.
6212 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 6213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 6214 ac_cv_prog_ac_ct_STRIP="strip"
6215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6216 break 2
6217 fi
6218done
6219 done
6220IFS=$as_save_IFS
6221
6222fi
6223fi
6224ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6225if test -n "$ac_ct_STRIP"; then
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6227$as_echo "$ac_ct_STRIP" >&6; }
6228else
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6230$as_echo "no" >&6; }
6231fi
6232
6233 if test "x$ac_ct_STRIP" = x; then
6234 STRIP=":"
6235 else
6236 case $cross_compiling:$ac_tool_warned in
6237yes:)
6238{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6239$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6240ac_tool_warned=yes ;;
6241esac
6242 STRIP=$ac_ct_STRIP
6243 fi
6244else
6245 STRIP="$ac_cv_prog_STRIP"
6246fi
6247
6248test -z "$STRIP" && STRIP=:
6249
6250
6251
6252
6253
6254
6255if test -n "$ac_tool_prefix"; then
6256 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6257set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6259$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 6260if ${ac_cv_prog_RANLIB+:} false; then :
e440a328 6261 $as_echo_n "(cached) " >&6
6262else
6263 if test -n "$RANLIB"; then
6264 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6265else
6266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6267for as_dir in $PATH
6268do
6269 IFS=$as_save_IFS
6270 test -z "$as_dir" && as_dir=.
6271 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 6272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 6273 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6275 break 2
6276 fi
6277done
6278 done
6279IFS=$as_save_IFS
6280
6281fi
6282fi
6283RANLIB=$ac_cv_prog_RANLIB
6284if test -n "$RANLIB"; then
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6286$as_echo "$RANLIB" >&6; }
6287else
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6289$as_echo "no" >&6; }
6290fi
6291
6292
6293fi
6294if test -z "$ac_cv_prog_RANLIB"; then
6295 ac_ct_RANLIB=$RANLIB
6296 # Extract the first word of "ranlib", so it can be a program name with args.
6297set dummy ranlib; ac_word=$2
6298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6299$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 6300if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
e440a328 6301 $as_echo_n "(cached) " >&6
6302else
6303 if test -n "$ac_ct_RANLIB"; then
6304 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6305else
6306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6307for as_dir in $PATH
6308do
6309 IFS=$as_save_IFS
6310 test -z "$as_dir" && as_dir=.
6311 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 6312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 6313 ac_cv_prog_ac_ct_RANLIB="ranlib"
6314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6315 break 2
6316 fi
6317done
6318 done
6319IFS=$as_save_IFS
6320
6321fi
6322fi
6323ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6324if test -n "$ac_ct_RANLIB"; then
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6326$as_echo "$ac_ct_RANLIB" >&6; }
6327else
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6329$as_echo "no" >&6; }
6330fi
6331
6332 if test "x$ac_ct_RANLIB" = x; then
6333 RANLIB=":"
6334 else
6335 case $cross_compiling:$ac_tool_warned in
6336yes:)
6337{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6338$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6339ac_tool_warned=yes ;;
6340esac
6341 RANLIB=$ac_ct_RANLIB
6342 fi
6343else
6344 RANLIB="$ac_cv_prog_RANLIB"
6345fi
6346
6347test -z "$RANLIB" && RANLIB=:
6348
6349
6350
6351
6352
6353
6354# Determine commands to create old-style static archives.
6355old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6356old_postinstall_cmds='chmod 644 $oldlib'
6357old_postuninstall_cmds=
6358
6359if test -n "$RANLIB"; then
6360 case $host_os in
6361 openbsd*)
6362 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6363 ;;
6364 *)
6365 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6366 ;;
6367 esac
6368 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6369fi
6370
6371case $host_os in
6372 darwin*)
6373 lock_old_archive_extraction=yes ;;
6374 *)
6375 lock_old_archive_extraction=no ;;
6376esac
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416# If no C compiler was specified, use CC.
6417LTCC=${LTCC-"$CC"}
6418
6419# If no C compiler flags were specified, use CFLAGS.
6420LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6421
6422# Allow CC to be a program name with arguments.
6423compiler=$CC
6424
6425
6426# Check for command to grab the raw symbol name followed by C symbol from nm.
6427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6428$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
ea2e69a4 6429if ${lt_cv_sys_global_symbol_pipe+:} false; then :
e440a328 6430 $as_echo_n "(cached) " >&6
6431else
6432
6433# These are sane defaults that work on at least a few old systems.
6434# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6435
6436# Character class describing NM global symbol codes.
6437symcode='[BCDEGRST]'
6438
6439# Regexp to match symbols that can be accessed directly from C.
6440sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6441
6442# Define system-specific variables.
6443case $host_os in
6444aix*)
6445 symcode='[BCDT]'
6446 ;;
6447cygwin* | mingw* | pw32* | cegcc*)
6448 symcode='[ABCDGISTW]'
6449 ;;
6450hpux*)
6451 if test "$host_cpu" = ia64; then
6452 symcode='[ABCDEGRST]'
6453 fi
6454 ;;
6455irix* | nonstopux*)
6456 symcode='[BCDEGRST]'
6457 ;;
6458osf*)
6459 symcode='[BCDEGQRST]'
6460 ;;
6461solaris*)
6462 symcode='[BDRT]'
6463 ;;
6464sco3.2v5*)
6465 symcode='[DT]'
6466 ;;
6467sysv4.2uw2*)
6468 symcode='[DT]'
6469 ;;
6470sysv5* | sco5v6* | unixware* | OpenUNIX*)
6471 symcode='[ABDT]'
6472 ;;
6473sysv4)
6474 symcode='[DFNSTU]'
6475 ;;
6476esac
6477
6478# If we're using GNU nm, then use its standard symbol codes.
6479case `$NM -V 2>&1` in
6480*GNU* | *'with BFD'*)
6481 symcode='[ABCDGIRSTW]' ;;
6482esac
6483
6484# Transform an extracted symbol line into a proper C declaration.
6485# Some systems (esp. on ia64) link data and code symbols differently,
6486# so use this general approach.
6487lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6488
6489# Transform an extracted symbol line into symbol name and symbol address
6490lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6491lt_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'"
6492
6493# Handle CRLF in mingw tool chain
6494opt_cr=
6495case $build_os in
6496mingw*)
6497 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6498 ;;
6499esac
6500
6501# Try without a prefix underscore, then with it.
6502for ac_symprfx in "" "_"; do
6503
6504 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6505 symxfrm="\\1 $ac_symprfx\\2 \\2"
6506
6507 # Write the raw and C identifiers.
6508 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6509 # Fake it for dumpbin and say T for any non-static function
6510 # and D for any global variable.
6511 # Also find C++ and __fastcall symbols from MSVC++,
6512 # which start with @ or ?.
6513 lt_cv_sys_global_symbol_pipe="$AWK '"\
6514" {last_section=section; section=\$ 3};"\
6515" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6516" \$ 0!~/External *\|/{next};"\
6517" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6518" {if(hide[section]) next};"\
6519" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6520" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6521" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6522" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6523" ' prfx=^$ac_symprfx"
6524 else
6525 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6526 fi
6527
6528 # Check to see that the pipe works correctly.
6529 pipe_works=no
6530
6531 rm -f conftest*
6532 cat > conftest.$ac_ext <<_LT_EOF
6533#ifdef __cplusplus
6534extern "C" {
6535#endif
6536char nm_test_var;
6537void nm_test_func(void);
6538void nm_test_func(void){}
6539#ifdef __cplusplus
6540}
6541#endif
6542int main(){nm_test_var='a';nm_test_func();return(0);}
6543_LT_EOF
6544
6545 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6546 (eval $ac_compile) 2>&5
6547 ac_status=$?
6548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6549 test $ac_status = 0; }; then
6550 # Now try to grab the symbols.
6551 nlist=conftest.nm
6552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6553 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6554 ac_status=$?
6555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6556 test $ac_status = 0; } && test -s "$nlist"; then
6557 # Try sorting and uniquifying the output.
6558 if sort "$nlist" | uniq > "$nlist"T; then
6559 mv -f "$nlist"T "$nlist"
6560 else
6561 rm -f "$nlist"T
6562 fi
6563
6564 # Make sure that we snagged all the symbols we need.
6565 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6566 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6567 cat <<_LT_EOF > conftest.$ac_ext
6568#ifdef __cplusplus
6569extern "C" {
6570#endif
6571
6572_LT_EOF
6573 # Now generate the symbol file.
6574 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6575
6576 cat <<_LT_EOF >> conftest.$ac_ext
6577
6578/* The mapping between symbol names and symbols. */
6579const struct {
6580 const char *name;
6581 void *address;
6582}
6583lt__PROGRAM__LTX_preloaded_symbols[] =
6584{
6585 { "@PROGRAM@", (void *) 0 },
6586_LT_EOF
6587 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6588 cat <<\_LT_EOF >> conftest.$ac_ext
6589 {0, (void *) 0}
6590};
6591
6592/* This works around a problem in FreeBSD linker */
6593#ifdef FREEBSD_WORKAROUND
6594static const void *lt_preloaded_setup() {
6595 return lt__PROGRAM__LTX_preloaded_symbols;
6596}
6597#endif
6598
6599#ifdef __cplusplus
6600}
6601#endif
6602_LT_EOF
6603 # Now try linking the two files.
6604 mv conftest.$ac_objext conftstm.$ac_objext
6605 lt_save_LIBS="$LIBS"
6606 lt_save_CFLAGS="$CFLAGS"
6607 LIBS="conftstm.$ac_objext"
6608 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6609 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6610 (eval $ac_link) 2>&5
6611 ac_status=$?
6612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6613 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6614 pipe_works=yes
6615 fi
6616 LIBS="$lt_save_LIBS"
6617 CFLAGS="$lt_save_CFLAGS"
6618 else
6619 echo "cannot find nm_test_func in $nlist" >&5
6620 fi
6621 else
6622 echo "cannot find nm_test_var in $nlist" >&5
6623 fi
6624 else
6625 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6626 fi
6627 else
6628 echo "$progname: failed program was:" >&5
6629 cat conftest.$ac_ext >&5
6630 fi
6631 rm -rf conftest* conftst*
6632
6633 # Do not use the global_symbol_pipe unless it works.
6634 if test "$pipe_works" = yes; then
6635 break
6636 else
6637 lt_cv_sys_global_symbol_pipe=
6638 fi
6639done
6640
6641fi
6642
6643if test -z "$lt_cv_sys_global_symbol_pipe"; then
6644 lt_cv_sys_global_symbol_to_cdecl=
6645fi
6646if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6648$as_echo "failed" >&6; }
6649else
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6651$as_echo "ok" >&6; }
6652fi
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
c9c0c1d2 6673
e440a328 6674
6675
6676# Check whether --enable-libtool-lock was given.
6677if test "${enable_libtool_lock+set}" = set; then :
6678 enableval=$enable_libtool_lock;
6679fi
6680
6681test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6682
6683# Some flags need to be propagated to the compiler or linker for good
6684# libtool support.
6685case $host in
6686ia64-*-hpux*)
6687 # Find out which ABI we are using.
6688 echo 'int i;' > conftest.$ac_ext
6689 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6690 (eval $ac_compile) 2>&5
6691 ac_status=$?
6692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6693 test $ac_status = 0; }; then
6694 case `/usr/bin/file conftest.$ac_objext` in
6695 *ELF-32*)
6696 HPUX_IA64_MODE="32"
6697 ;;
6698 *ELF-64*)
6699 HPUX_IA64_MODE="64"
6700 ;;
6701 esac
6702 fi
6703 rm -rf conftest*
6704 ;;
6705*-*-irix6*)
6706 # Find out which ABI we are using.
6707 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6708 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6709 (eval $ac_compile) 2>&5
6710 ac_status=$?
6711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6712 test $ac_status = 0; }; then
6713 if test "$lt_cv_prog_gnu_ld" = yes; then
6714 case `/usr/bin/file conftest.$ac_objext` in
6715 *32-bit*)
6716 LD="${LD-ld} -melf32bsmip"
6717 ;;
6718 *N32*)
6719 LD="${LD-ld} -melf32bmipn32"
6720 ;;
6721 *64-bit*)
6722 LD="${LD-ld} -melf64bmip"
6723 ;;
6724 esac
6725 else
6726 case `/usr/bin/file conftest.$ac_objext` in
6727 *32-bit*)
6728 LD="${LD-ld} -32"
6729 ;;
6730 *N32*)
6731 LD="${LD-ld} -n32"
6732 ;;
6733 *64-bit*)
6734 LD="${LD-ld} -64"
6735 ;;
6736 esac
6737 fi
6738 fi
6739 rm -rf conftest*
6740 ;;
6741
f248394b 6742x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
e440a328 6743s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6744 # Find out which ABI we are using.
6745 echo 'int i;' > conftest.$ac_ext
6746 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6747 (eval $ac_compile) 2>&5
6748 ac_status=$?
6749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6750 test $ac_status = 0; }; then
6751 case `/usr/bin/file conftest.o` in
6752 *32-bit*)
6753 case $host in
6754 x86_64-*kfreebsd*-gnu)
6755 LD="${LD-ld} -m elf_i386_fbsd"
6756 ;;
6757 x86_64-*linux*)
31d696fa 6758 case `/usr/bin/file conftest.o` in
6759 *x86-64*)
6760 LD="${LD-ld} -m elf32_x86_64"
6761 ;;
6762 *)
6763 LD="${LD-ld} -m elf_i386"
6764 ;;
6765 esac
e440a328 6766 ;;
45c387c7 6767 powerpc64le-*linux*)
f248394b 6768 LD="${LD-ld} -m elf32lppclinux"
6769 ;;
45c387c7 6770 powerpc64-*linux*)
e440a328 6771 LD="${LD-ld} -m elf32ppclinux"
6772 ;;
6773 s390x-*linux*)
6774 LD="${LD-ld} -m elf_s390"
6775 ;;
6776 sparc64-*linux*)
6777 LD="${LD-ld} -m elf32_sparc"
6778 ;;
6779 esac
6780 ;;
6781 *64-bit*)
6782 case $host in
6783 x86_64-*kfreebsd*-gnu)
6784 LD="${LD-ld} -m elf_x86_64_fbsd"
6785 ;;
6786 x86_64-*linux*)
6787 LD="${LD-ld} -m elf_x86_64"
6788 ;;
45c387c7 6789 powerpcle-*linux*)
f248394b 6790 LD="${LD-ld} -m elf64lppc"
6791 ;;
45c387c7 6792 powerpc-*linux*)
e440a328 6793 LD="${LD-ld} -m elf64ppc"
6794 ;;
6795 s390*-*linux*|s390*-*tpf*)
6796 LD="${LD-ld} -m elf64_s390"
6797 ;;
6798 sparc*-*linux*)
6799 LD="${LD-ld} -m elf64_sparc"
6800 ;;
6801 esac
6802 ;;
6803 esac
6804 fi
6805 rm -rf conftest*
6806 ;;
6807
6808*-*-sco3.2v5*)
6809 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6810 SAVE_CFLAGS="$CFLAGS"
6811 CFLAGS="$CFLAGS -belf"
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6813$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
ea2e69a4 6814if ${lt_cv_cc_needs_belf+:} false; then :
e440a328 6815 $as_echo_n "(cached) " >&6
6816else
6817 ac_ext=c
6818ac_cpp='$CPP $CPPFLAGS'
6819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6821ac_compiler_gnu=$ac_cv_c_compiler_gnu
6822
6823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6824/* end confdefs.h. */
6825
6826int
6827main ()
6828{
6829
6830 ;
6831 return 0;
6832}
6833_ACEOF
6834if ac_fn_c_try_link "$LINENO"; then :
6835 lt_cv_cc_needs_belf=yes
6836else
6837 lt_cv_cc_needs_belf=no
6838fi
6839rm -f core conftest.err conftest.$ac_objext \
6840 conftest$ac_exeext conftest.$ac_ext
6841 ac_ext=c
6842ac_cpp='$CPP $CPPFLAGS'
6843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6845ac_compiler_gnu=$ac_cv_c_compiler_gnu
6846
6847fi
6848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6849$as_echo "$lt_cv_cc_needs_belf" >&6; }
6850 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6851 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6852 CFLAGS="$SAVE_CFLAGS"
6853 fi
6854 ;;
31d696fa 6855sparc*-*solaris*)
e440a328 6856 # Find out which ABI we are using.
6857 echo 'int i;' > conftest.$ac_ext
6858 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6859 (eval $ac_compile) 2>&5
6860 ac_status=$?
6861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6862 test $ac_status = 0; }; then
6863 case `/usr/bin/file conftest.o` in
6864 *64-bit*)
6865 case $lt_cv_prog_gnu_ld in
31d696fa 6866 yes*) LD="${LD-ld} -m elf64_sparc" ;;
e440a328 6867 *)
6868 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6869 LD="${LD-ld} -64"
6870 fi
6871 ;;
6872 esac
6873 ;;
6874 esac
6875 fi
6876 rm -rf conftest*
6877 ;;
6878esac
6879
6880need_locks="$enable_libtool_lock"
6881
6882
6883 case $host_os in
6884 rhapsody* | darwin*)
6885 if test -n "$ac_tool_prefix"; then
6886 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6887set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6889$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 6890if ${ac_cv_prog_DSYMUTIL+:} false; then :
e440a328 6891 $as_echo_n "(cached) " >&6
6892else
6893 if test -n "$DSYMUTIL"; then
6894 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6895else
6896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897for as_dir in $PATH
6898do
6899 IFS=$as_save_IFS
6900 test -z "$as_dir" && as_dir=.
6901 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 6902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 6903 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6905 break 2
6906 fi
6907done
6908 done
6909IFS=$as_save_IFS
6910
6911fi
6912fi
6913DSYMUTIL=$ac_cv_prog_DSYMUTIL
6914if test -n "$DSYMUTIL"; then
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6916$as_echo "$DSYMUTIL" >&6; }
6917else
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6919$as_echo "no" >&6; }
6920fi
6921
6922
6923fi
6924if test -z "$ac_cv_prog_DSYMUTIL"; then
6925 ac_ct_DSYMUTIL=$DSYMUTIL
6926 # Extract the first word of "dsymutil", so it can be a program name with args.
6927set dummy dsymutil; ac_word=$2
6928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6929$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 6930if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
e440a328 6931 $as_echo_n "(cached) " >&6
6932else
6933 if test -n "$ac_ct_DSYMUTIL"; then
6934 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6935else
6936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937for as_dir in $PATH
6938do
6939 IFS=$as_save_IFS
6940 test -z "$as_dir" && as_dir=.
6941 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 6942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 6943 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6945 break 2
6946 fi
6947done
6948 done
6949IFS=$as_save_IFS
6950
6951fi
6952fi
6953ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6954if test -n "$ac_ct_DSYMUTIL"; then
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6956$as_echo "$ac_ct_DSYMUTIL" >&6; }
6957else
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6959$as_echo "no" >&6; }
6960fi
6961
6962 if test "x$ac_ct_DSYMUTIL" = x; then
6963 DSYMUTIL=":"
6964 else
6965 case $cross_compiling:$ac_tool_warned in
6966yes:)
6967{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6968$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6969ac_tool_warned=yes ;;
6970esac
6971 DSYMUTIL=$ac_ct_DSYMUTIL
6972 fi
6973else
6974 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6975fi
6976
6977 if test -n "$ac_tool_prefix"; then
6978 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6979set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6981$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 6982if ${ac_cv_prog_NMEDIT+:} false; then :
e440a328 6983 $as_echo_n "(cached) " >&6
6984else
6985 if test -n "$NMEDIT"; then
6986 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6987else
6988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989for as_dir in $PATH
6990do
6991 IFS=$as_save_IFS
6992 test -z "$as_dir" && as_dir=.
6993 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 6994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 6995 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6997 break 2
6998 fi
6999done
7000 done
7001IFS=$as_save_IFS
7002
7003fi
7004fi
7005NMEDIT=$ac_cv_prog_NMEDIT
7006if test -n "$NMEDIT"; then
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7008$as_echo "$NMEDIT" >&6; }
7009else
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7011$as_echo "no" >&6; }
7012fi
7013
7014
7015fi
7016if test -z "$ac_cv_prog_NMEDIT"; then
7017 ac_ct_NMEDIT=$NMEDIT
7018 # Extract the first word of "nmedit", so it can be a program name with args.
7019set dummy nmedit; ac_word=$2
7020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7021$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 7022if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
e440a328 7023 $as_echo_n "(cached) " >&6
7024else
7025 if test -n "$ac_ct_NMEDIT"; then
7026 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7027else
7028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029for as_dir in $PATH
7030do
7031 IFS=$as_save_IFS
7032 test -z "$as_dir" && as_dir=.
7033 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 7034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 7035 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7037 break 2
7038 fi
7039done
7040 done
7041IFS=$as_save_IFS
7042
7043fi
7044fi
7045ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7046if test -n "$ac_ct_NMEDIT"; then
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7048$as_echo "$ac_ct_NMEDIT" >&6; }
7049else
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7051$as_echo "no" >&6; }
7052fi
7053
7054 if test "x$ac_ct_NMEDIT" = x; then
7055 NMEDIT=":"
7056 else
7057 case $cross_compiling:$ac_tool_warned in
7058yes:)
7059{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7060$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7061ac_tool_warned=yes ;;
7062esac
7063 NMEDIT=$ac_ct_NMEDIT
7064 fi
7065else
7066 NMEDIT="$ac_cv_prog_NMEDIT"
7067fi
7068
7069 if test -n "$ac_tool_prefix"; then
7070 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7071set dummy ${ac_tool_prefix}lipo; ac_word=$2
7072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7073$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 7074if ${ac_cv_prog_LIPO+:} false; then :
e440a328 7075 $as_echo_n "(cached) " >&6
7076else
7077 if test -n "$LIPO"; then
7078 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7079else
7080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081for as_dir in $PATH
7082do
7083 IFS=$as_save_IFS
7084 test -z "$as_dir" && as_dir=.
7085 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 7086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 7087 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7089 break 2
7090 fi
7091done
7092 done
7093IFS=$as_save_IFS
7094
7095fi
7096fi
7097LIPO=$ac_cv_prog_LIPO
7098if test -n "$LIPO"; then
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7100$as_echo "$LIPO" >&6; }
7101else
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7103$as_echo "no" >&6; }
7104fi
7105
7106
7107fi
7108if test -z "$ac_cv_prog_LIPO"; then
7109 ac_ct_LIPO=$LIPO
7110 # Extract the first word of "lipo", so it can be a program name with args.
7111set dummy lipo; ac_word=$2
7112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7113$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 7114if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
e440a328 7115 $as_echo_n "(cached) " >&6
7116else
7117 if test -n "$ac_ct_LIPO"; then
7118 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7119else
7120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121for as_dir in $PATH
7122do
7123 IFS=$as_save_IFS
7124 test -z "$as_dir" && as_dir=.
7125 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 7126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 7127 ac_cv_prog_ac_ct_LIPO="lipo"
7128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7129 break 2
7130 fi
7131done
7132 done
7133IFS=$as_save_IFS
7134
7135fi
7136fi
7137ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7138if test -n "$ac_ct_LIPO"; then
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7140$as_echo "$ac_ct_LIPO" >&6; }
7141else
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7143$as_echo "no" >&6; }
7144fi
7145
7146 if test "x$ac_ct_LIPO" = x; then
7147 LIPO=":"
7148 else
7149 case $cross_compiling:$ac_tool_warned in
7150yes:)
7151{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7152$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7153ac_tool_warned=yes ;;
7154esac
7155 LIPO=$ac_ct_LIPO
7156 fi
7157else
7158 LIPO="$ac_cv_prog_LIPO"
7159fi
7160
7161 if test -n "$ac_tool_prefix"; then
7162 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7163set dummy ${ac_tool_prefix}otool; ac_word=$2
7164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7165$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 7166if ${ac_cv_prog_OTOOL+:} false; then :
e440a328 7167 $as_echo_n "(cached) " >&6
7168else
7169 if test -n "$OTOOL"; then
7170 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7171else
7172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173for as_dir in $PATH
7174do
7175 IFS=$as_save_IFS
7176 test -z "$as_dir" && as_dir=.
7177 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 7178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 7179 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7181 break 2
7182 fi
7183done
7184 done
7185IFS=$as_save_IFS
7186
7187fi
7188fi
7189OTOOL=$ac_cv_prog_OTOOL
7190if test -n "$OTOOL"; then
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7192$as_echo "$OTOOL" >&6; }
7193else
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195$as_echo "no" >&6; }
7196fi
7197
7198
7199fi
7200if test -z "$ac_cv_prog_OTOOL"; then
7201 ac_ct_OTOOL=$OTOOL
7202 # Extract the first word of "otool", so it can be a program name with args.
7203set dummy otool; ac_word=$2
7204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7205$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 7206if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
e440a328 7207 $as_echo_n "(cached) " >&6
7208else
7209 if test -n "$ac_ct_OTOOL"; then
7210 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7211else
7212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213for as_dir in $PATH
7214do
7215 IFS=$as_save_IFS
7216 test -z "$as_dir" && as_dir=.
7217 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 7218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 7219 ac_cv_prog_ac_ct_OTOOL="otool"
7220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7221 break 2
7222 fi
7223done
7224 done
7225IFS=$as_save_IFS
7226
7227fi
7228fi
7229ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7230if test -n "$ac_ct_OTOOL"; then
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7232$as_echo "$ac_ct_OTOOL" >&6; }
7233else
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7235$as_echo "no" >&6; }
7236fi
7237
7238 if test "x$ac_ct_OTOOL" = x; then
7239 OTOOL=":"
7240 else
7241 case $cross_compiling:$ac_tool_warned in
7242yes:)
7243{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7244$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7245ac_tool_warned=yes ;;
7246esac
7247 OTOOL=$ac_ct_OTOOL
7248 fi
7249else
7250 OTOOL="$ac_cv_prog_OTOOL"
7251fi
7252
7253 if test -n "$ac_tool_prefix"; then
7254 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7255set dummy ${ac_tool_prefix}otool64; ac_word=$2
7256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7257$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 7258if ${ac_cv_prog_OTOOL64+:} false; then :
e440a328 7259 $as_echo_n "(cached) " >&6
7260else
7261 if test -n "$OTOOL64"; then
7262 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7263else
7264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7265for as_dir in $PATH
7266do
7267 IFS=$as_save_IFS
7268 test -z "$as_dir" && as_dir=.
7269 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 7270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 7271 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7273 break 2
7274 fi
7275done
7276 done
7277IFS=$as_save_IFS
7278
7279fi
7280fi
7281OTOOL64=$ac_cv_prog_OTOOL64
7282if test -n "$OTOOL64"; then
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7284$as_echo "$OTOOL64" >&6; }
7285else
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7287$as_echo "no" >&6; }
7288fi
7289
7290
7291fi
7292if test -z "$ac_cv_prog_OTOOL64"; then
7293 ac_ct_OTOOL64=$OTOOL64
7294 # Extract the first word of "otool64", so it can be a program name with args.
7295set dummy otool64; ac_word=$2
7296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7297$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 7298if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
e440a328 7299 $as_echo_n "(cached) " >&6
7300else
7301 if test -n "$ac_ct_OTOOL64"; then
7302 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7303else
7304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305for as_dir in $PATH
7306do
7307 IFS=$as_save_IFS
7308 test -z "$as_dir" && as_dir=.
7309 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 7310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 7311 ac_cv_prog_ac_ct_OTOOL64="otool64"
7312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7313 break 2
7314 fi
7315done
7316 done
7317IFS=$as_save_IFS
7318
7319fi
7320fi
7321ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7322if test -n "$ac_ct_OTOOL64"; then
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7324$as_echo "$ac_ct_OTOOL64" >&6; }
7325else
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327$as_echo "no" >&6; }
7328fi
7329
7330 if test "x$ac_ct_OTOOL64" = x; then
7331 OTOOL64=":"
7332 else
7333 case $cross_compiling:$ac_tool_warned in
7334yes:)
7335{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7336$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7337ac_tool_warned=yes ;;
7338esac
7339 OTOOL64=$ac_ct_OTOOL64
7340 fi
7341else
8202cb3c 7342 OTOOL64="$ac_cv_prog_OTOOL64"
e440a328 7343fi
7344
e440a328 7345
7346
e440a328 7347
e440a328 7348
e440a328 7349
e440a328 7350
e440a328 7351
e440a328 7352
e440a328 7353
e440a328 7354
e440a328 7355
e440a328 7356
e440a328 7357
8202cb3c 7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7372$as_echo_n "checking for -single_module linker flag... " >&6; }
ea2e69a4 7373if ${lt_cv_apple_cc_single_mod+:} false; then :
8202cb3c 7374 $as_echo_n "(cached) " >&6
e440a328 7375else
8202cb3c 7376 lt_cv_apple_cc_single_mod=no
7377 if test -z "${LT_MULTI_MODULE}"; then
7378 # By default we will add the -single_module flag. You can override
7379 # by either setting the environment variable LT_MULTI_MODULE
7380 # non-empty at configure time, or by adding -multi_module to the
7381 # link flags.
7382 rm -rf libconftest.dylib*
7383 echo "int foo(void){return 1;}" > conftest.c
7384 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7385-dynamiclib -Wl,-single_module conftest.c" >&5
7386 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7387 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7388 _lt_result=$?
7389 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7390 lt_cv_apple_cc_single_mod=yes
7391 else
7392 cat conftest.err >&5
7393 fi
7394 rm -rf libconftest.dylib*
7395 rm -f conftest.*
7396 fi
7397fi
7398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7399$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7401$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
ea2e69a4 7402if ${lt_cv_ld_exported_symbols_list+:} false; then :
8202cb3c 7403 $as_echo_n "(cached) " >&6
7404else
7405 lt_cv_ld_exported_symbols_list=no
7406 save_LDFLAGS=$LDFLAGS
7407 echo "_main" > conftest.sym
7408 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e440a328 7410/* end confdefs.h. */
e440a328 7411
e440a328 7412int
7413main ()
7414{
8202cb3c 7415
7416 ;
e440a328 7417 return 0;
7418}
7419_ACEOF
8202cb3c 7420if ac_fn_c_try_link "$LINENO"; then :
7421 lt_cv_ld_exported_symbols_list=yes
e440a328 7422else
8202cb3c 7423 lt_cv_ld_exported_symbols_list=no
e440a328 7424fi
8202cb3c 7425rm -f core conftest.err conftest.$ac_objext \
7426 conftest$ac_exeext conftest.$ac_ext
7427 LDFLAGS="$save_LDFLAGS"
e440a328 7428
7429fi
8202cb3c 7430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7431$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7433$as_echo_n "checking for -force_load linker flag... " >&6; }
ea2e69a4 7434if ${lt_cv_ld_force_load+:} false; then :
8202cb3c 7435 $as_echo_n "(cached) " >&6
7436else
7437 lt_cv_ld_force_load=no
7438 cat > conftest.c << _LT_EOF
7439int forced_loaded() { return 2;}
7440_LT_EOF
7441 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7442 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7443 echo "$AR cru libconftest.a conftest.o" >&5
7444 $AR cru libconftest.a conftest.o 2>&5
7445 cat > conftest.c << _LT_EOF
7446int main() { return 0;}
7447_LT_EOF
7448 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7449 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7450 _lt_result=$?
7451 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7452 lt_cv_ld_force_load=yes
7453 else
7454 cat conftest.err >&5
7455 fi
7456 rm -f conftest.err libconftest.a conftest conftest.c
7457 rm -rf conftest.dSYM
e440a328 7458
7459fi
8202cb3c 7460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7461$as_echo "$lt_cv_ld_force_load" >&6; }
7462 case $host_os in
7463 rhapsody* | darwin1.[012])
7464 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7465 darwin1.*)
7466 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7467 darwin*) # darwin 5.x on
7468 # if running on 10.5 or later, the deployment target defaults
7469 # to the OS version, if on x86, and 10.4, the deployment
7470 # target defaults to 10.4. Don't you love it?
7471 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7472 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7473 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
31d696fa 7474 10.[012][,.]*)
8202cb3c 7475 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7476 10.*)
7477 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7478 esac
7479 ;;
7480 esac
7481 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7482 _lt_dar_single_mod='$single_module'
7483 fi
7484 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7485 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7486 else
7487 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7488 fi
7489 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7490 _lt_dsymutil='~$DSYMUTIL $lib || :'
7491 else
7492 _lt_dsymutil=
7493 fi
7494 ;;
7495 esac
e440a328 7496
c9c0c1d2 7497ac_ext=c
7498ac_cpp='$CPP $CPPFLAGS'
7499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7501ac_compiler_gnu=$ac_cv_c_compiler_gnu
7502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7503$as_echo_n "checking how to run the C preprocessor... " >&6; }
7504# On Suns, sometimes $CPP names a directory.
7505if test -n "$CPP" && test -d "$CPP"; then
7506 CPP=
7507fi
7508if test -z "$CPP"; then
ea2e69a4 7509 if ${ac_cv_prog_CPP+:} false; then :
c9c0c1d2 7510 $as_echo_n "(cached) " >&6
7511else
7512 # Double quotes because CPP needs to be expanded
7513 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7514 do
7515 ac_preproc_ok=false
7516for ac_c_preproc_warn_flag in '' yes
7517do
7518 # Use a header file that comes with gcc, so configuring glibc
7519 # with a fresh cross-compiler works.
7520 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7521 # <limits.h> exists even on freestanding compilers.
7522 # On the NeXT, cc -E runs the code through the compiler's parser,
7523 # not just through cpp. "Syntax error" is here to catch this case.
7524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7525/* end confdefs.h. */
7526#ifdef __STDC__
7527# include <limits.h>
7528#else
7529# include <assert.h>
7530#endif
7531 Syntax error
7532_ACEOF
7533if ac_fn_c_try_cpp "$LINENO"; then :
7534
7535else
7536 # Broken: fails on valid input.
7537continue
7538fi
ea2e69a4 7539rm -f conftest.err conftest.i conftest.$ac_ext
c9c0c1d2 7540
7541 # OK, works on sane cases. Now check whether nonexistent headers
7542 # can be detected and how.
7543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7544/* end confdefs.h. */
7545#include <ac_nonexistent.h>
7546_ACEOF
7547if ac_fn_c_try_cpp "$LINENO"; then :
7548 # Broken: success on invalid input.
7549continue
7550else
7551 # Passes both tests.
7552ac_preproc_ok=:
7553break
7554fi
ea2e69a4 7555rm -f conftest.err conftest.i conftest.$ac_ext
c9c0c1d2 7556
7557done
7558# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
ea2e69a4 7559rm -f conftest.i conftest.err conftest.$ac_ext
c9c0c1d2 7560if $ac_preproc_ok; then :
7561 break
7562fi
7563
7564 done
7565 ac_cv_prog_CPP=$CPP
7566
7567fi
7568 CPP=$ac_cv_prog_CPP
7569else
7570 ac_cv_prog_CPP=$CPP
7571fi
7572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7573$as_echo "$CPP" >&6; }
7574ac_preproc_ok=false
7575for ac_c_preproc_warn_flag in '' yes
7576do
7577 # Use a header file that comes with gcc, so configuring glibc
7578 # with a fresh cross-compiler works.
7579 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7580 # <limits.h> exists even on freestanding compilers.
7581 # On the NeXT, cc -E runs the code through the compiler's parser,
7582 # not just through cpp. "Syntax error" is here to catch this case.
7583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7584/* end confdefs.h. */
7585#ifdef __STDC__
7586# include <limits.h>
7587#else
7588# include <assert.h>
7589#endif
7590 Syntax error
7591_ACEOF
7592if ac_fn_c_try_cpp "$LINENO"; then :
7593
7594else
7595 # Broken: fails on valid input.
7596continue
7597fi
ea2e69a4 7598rm -f conftest.err conftest.i conftest.$ac_ext
c9c0c1d2 7599
7600 # OK, works on sane cases. Now check whether nonexistent headers
7601 # can be detected and how.
7602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7603/* end confdefs.h. */
7604#include <ac_nonexistent.h>
7605_ACEOF
7606if ac_fn_c_try_cpp "$LINENO"; then :
7607 # Broken: success on invalid input.
7608continue
7609else
7610 # Passes both tests.
7611ac_preproc_ok=:
7612break
7613fi
ea2e69a4 7614rm -f conftest.err conftest.i conftest.$ac_ext
c9c0c1d2 7615
7616done
7617# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
ea2e69a4 7618rm -f conftest.i conftest.err conftest.$ac_ext
c9c0c1d2 7619if $ac_preproc_ok; then :
7620
7621else
7622 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7623$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ea2e69a4 7624as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7625See \`config.log' for more details" "$LINENO" 5; }
c9c0c1d2 7626fi
7627
7628ac_ext=c
7629ac_cpp='$CPP $CPPFLAGS'
7630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7632ac_compiler_gnu=$ac_cv_c_compiler_gnu
7633
7634
7635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7636$as_echo_n "checking for ANSI C header files... " >&6; }
ea2e69a4 7637if ${ac_cv_header_stdc+:} false; then :
c9c0c1d2 7638 $as_echo_n "(cached) " >&6
7639else
7640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641/* end confdefs.h. */
7642#include <stdlib.h>
7643#include <stdarg.h>
7644#include <string.h>
7645#include <float.h>
7646
7647int
7648main ()
7649{
7650
7651 ;
7652 return 0;
7653}
7654_ACEOF
7655if ac_fn_c_try_compile "$LINENO"; then :
7656 ac_cv_header_stdc=yes
7657else
7658 ac_cv_header_stdc=no
7659fi
7660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7661
7662if test $ac_cv_header_stdc = yes; then
7663 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7665/* end confdefs.h. */
7666#include <string.h>
7667
7668_ACEOF
7669if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7670 $EGREP "memchr" >/dev/null 2>&1; then :
7671
7672else
7673 ac_cv_header_stdc=no
7674fi
7675rm -f conftest*
7676
7677fi
7678
7679if test $ac_cv_header_stdc = yes; then
7680 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7682/* end confdefs.h. */
7683#include <stdlib.h>
7684
7685_ACEOF
7686if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7687 $EGREP "free" >/dev/null 2>&1; then :
7688
7689else
7690 ac_cv_header_stdc=no
7691fi
7692rm -f conftest*
7693
7694fi
7695
7696if test $ac_cv_header_stdc = yes; then
7697 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7698 if test "$cross_compiling" = yes; then :
7699 :
7700else
7701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7702/* end confdefs.h. */
7703#include <ctype.h>
7704#include <stdlib.h>
7705#if ((' ' & 0x0FF) == 0x020)
7706# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7707# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7708#else
7709# define ISLOWER(c) \
7710 (('a' <= (c) && (c) <= 'i') \
7711 || ('j' <= (c) && (c) <= 'r') \
7712 || ('s' <= (c) && (c) <= 'z'))
7713# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7714#endif
7715
7716#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7717int
7718main ()
7719{
7720 int i;
7721 for (i = 0; i < 256; i++)
7722 if (XOR (islower (i), ISLOWER (i))
7723 || toupper (i) != TOUPPER (i))
7724 return 2;
7725 return 0;
7726}
7727_ACEOF
7728if ac_fn_c_try_run "$LINENO"; then :
7729
7730else
7731 ac_cv_header_stdc=no
7732fi
7733rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7734 conftest.$ac_objext conftest.beam conftest.$ac_ext
7735fi
7736
7737fi
7738fi
7739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7740$as_echo "$ac_cv_header_stdc" >&6; }
7741if test $ac_cv_header_stdc = yes; then
7742
7743$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7744
7745fi
7746
7747# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7748for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7749 inttypes.h stdint.h unistd.h
7750do :
7751 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7752ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7753"
ea2e69a4 7754if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
c9c0c1d2 7755 cat >>confdefs.h <<_ACEOF
7756#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7757_ACEOF
7758
7759fi
7760
7761done
7762
7763
e440a328 7764for ac_header in dlfcn.h
7765do :
7766 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7767"
ea2e69a4 7768if test "x$ac_cv_header_dlfcn_h" = xyes; then :
e440a328 7769 cat >>confdefs.h <<_ACEOF
7770#define HAVE_DLFCN_H 1
7771_ACEOF
7772
7773fi
7774
7775done
7776
7777if test -n "$ac_tool_prefix"; then
7778 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7779set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7781$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 7782if ${ac_cv_prog_GOC+:} false; then :
e440a328 7783 $as_echo_n "(cached) " >&6
7784else
7785 if test -n "$GOC"; then
7786 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7787else
7788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7789for as_dir in $PATH
7790do
7791 IFS=$as_save_IFS
7792 test -z "$as_dir" && as_dir=.
7793 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 7794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 7795 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7797 break 2
7798 fi
7799done
7800 done
7801IFS=$as_save_IFS
7802
7803fi
7804fi
7805GOC=$ac_cv_prog_GOC
7806if test -n "$GOC"; then
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7808$as_echo "$GOC" >&6; }
7809else
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7811$as_echo "no" >&6; }
7812fi
7813
7814
7815fi
7816if test -z "$ac_cv_prog_GOC"; then
7817 ac_ct_GOC=$GOC
7818 # Extract the first word of "gccgo", so it can be a program name with args.
7819set dummy gccgo; ac_word=$2
7820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7821$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 7822if ${ac_cv_prog_ac_ct_GOC+:} false; then :
e440a328 7823 $as_echo_n "(cached) " >&6
7824else
7825 if test -n "$ac_ct_GOC"; then
7826 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7827else
7828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7829for as_dir in $PATH
7830do
7831 IFS=$as_save_IFS
7832 test -z "$as_dir" && as_dir=.
7833 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 7834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 7835 ac_cv_prog_ac_ct_GOC="gccgo"
7836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7837 break 2
7838 fi
7839done
7840 done
7841IFS=$as_save_IFS
7842
7843fi
7844fi
7845ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7846if test -n "$ac_ct_GOC"; then
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7848$as_echo "$ac_ct_GOC" >&6; }
7849else
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7851$as_echo "no" >&6; }
7852fi
7853
7854 if test "x$ac_ct_GOC" = x; then
7855 GOC=""
7856 else
7857 case $cross_compiling:$ac_tool_warned in
7858yes:)
7859{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7860$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7861ac_tool_warned=yes ;;
7862esac
7863 GOC=$ac_ct_GOC
7864 fi
7865else
7866 GOC="$ac_cv_prog_GOC"
7867fi
7868
7869
7870
7871
7872
7873
7874# Set options
7875
7876
7877
7878
7879 enable_win32_dll=no
7880
7881
7882 # Check whether --enable-shared was given.
7883if test "${enable_shared+set}" = set; then :
7884 enableval=$enable_shared; p=${PACKAGE-default}
7885 case $enableval in
7886 yes) enable_shared=yes ;;
7887 no) enable_shared=no ;;
7888 *)
7889 enable_shared=no
7890 # Look at the argument we got. We use all the common list separators.
7891 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7892 for pkg in $enableval; do
7893 IFS="$lt_save_ifs"
7894 if test "X$pkg" = "X$p"; then
7895 enable_shared=yes
7896 fi
7897 done
7898 IFS="$lt_save_ifs"
7899 ;;
7900 esac
7901else
7902 enable_shared=yes
7903fi
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913 # Check whether --enable-static was given.
7914if test "${enable_static+set}" = set; then :
7915 enableval=$enable_static; p=${PACKAGE-default}
7916 case $enableval in
7917 yes) enable_static=yes ;;
7918 no) enable_static=no ;;
7919 *)
7920 enable_static=no
7921 # Look at the argument we got. We use all the common list separators.
7922 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7923 for pkg in $enableval; do
7924 IFS="$lt_save_ifs"
7925 if test "X$pkg" = "X$p"; then
7926 enable_static=yes
7927 fi
7928 done
7929 IFS="$lt_save_ifs"
7930 ;;
7931 esac
7932else
7933 enable_static=yes
7934fi
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945# Check whether --with-pic was given.
7946if test "${with_pic+set}" = set; then :
7947 withval=$with_pic; pic_mode="$withval"
7948else
7949 pic_mode=default
7950fi
7951
7952
7953test -z "$pic_mode" && pic_mode=default
7954
7955
7956
7957
7958
7959
7960
7961 # Check whether --enable-fast-install was given.
7962if test "${enable_fast_install+set}" = set; then :
7963 enableval=$enable_fast_install; p=${PACKAGE-default}
7964 case $enableval in
7965 yes) enable_fast_install=yes ;;
7966 no) enable_fast_install=no ;;
7967 *)
7968 enable_fast_install=no
7969 # Look at the argument we got. We use all the common list separators.
7970 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7971 for pkg in $enableval; do
7972 IFS="$lt_save_ifs"
7973 if test "X$pkg" = "X$p"; then
7974 enable_fast_install=yes
7975 fi
7976 done
7977 IFS="$lt_save_ifs"
7978 ;;
7979 esac
7980else
7981 enable_fast_install=yes
7982fi
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994# This can be used to rebuild libtool when needed
7995LIBTOOL_DEPS="$ltmain"
7996
7997# Always use our own libtool.
7998LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025test -z "$LN_S" && LN_S="ln -s"
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040if test -n "${ZSH_VERSION+set}" ; then
8041 setopt NO_GLOB_SUBST
8042fi
8043
8044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8045$as_echo_n "checking for objdir... " >&6; }
ea2e69a4 8046if ${lt_cv_objdir+:} false; then :
e440a328 8047 $as_echo_n "(cached) " >&6
8048else
8049 rm -f .libs 2>/dev/null
8050mkdir .libs 2>/dev/null
8051if test -d .libs; then
8052 lt_cv_objdir=.libs
8053else
8054 # MS-DOS does not allow filenames that begin with a dot.
8055 lt_cv_objdir=_libs
8056fi
8057rmdir .libs 2>/dev/null
8058fi
8059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8060$as_echo "$lt_cv_objdir" >&6; }
8061objdir=$lt_cv_objdir
8062
8063
8064
8065
8066
8067cat >>confdefs.h <<_ACEOF
8068#define LT_OBJDIR "$lt_cv_objdir/"
8069_ACEOF
8070
8071
8072
8073
8074case $host_os in
8075aix3*)
8076 # AIX sometimes has problems with the GCC collect2 program. For some
8077 # reason, if we set the COLLECT_NAMES environment variable, the problems
8078 # vanish in a puff of smoke.
8079 if test "X${COLLECT_NAMES+set}" != Xset; then
8080 COLLECT_NAMES=
8081 export COLLECT_NAMES
8082 fi
8083 ;;
8084esac
8085
8086# Global variables:
8087ofile=libtool
8088can_build_shared=yes
8089
8090# All known linkers require a `.a' archive for static linking (except MSVC,
8091# which needs '.lib').
8092libext=a
8093
8094with_gnu_ld="$lt_cv_prog_gnu_ld"
8095
8096old_CC="$CC"
8097old_CFLAGS="$CFLAGS"
8098
8099# Set sane defaults for various variables
8100test -z "$CC" && CC=cc
8101test -z "$LTCC" && LTCC=$CC
8102test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8103test -z "$LD" && LD=ld
8104test -z "$ac_objext" && ac_objext=o
8105
8106for cc_temp in $compiler""; do
8107 case $cc_temp in
8108 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8109 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8110 \-*) ;;
8111 *) break;;
8112 esac
8113done
8114cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8115
8116
8117# Only perform the check for file, if the check method requires it
8118test -z "$MAGIC_CMD" && MAGIC_CMD=file
8119case $deplibs_check_method in
8120file_magic*)
8121 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8123$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
ea2e69a4 8124if ${lt_cv_path_MAGIC_CMD+:} false; then :
e440a328 8125 $as_echo_n "(cached) " >&6
8126else
8127 case $MAGIC_CMD in
8128[\\/*] | ?:[\\/]*)
8129 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8130 ;;
8131*)
8132 lt_save_MAGIC_CMD="$MAGIC_CMD"
8133 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8134 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8135 for ac_dir in $ac_dummy; do
8136 IFS="$lt_save_ifs"
8137 test -z "$ac_dir" && ac_dir=.
8138 if test -f $ac_dir/${ac_tool_prefix}file; then
8139 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8140 if test -n "$file_magic_test_file"; then
8141 case $deplibs_check_method in
8142 "file_magic "*)
8143 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8144 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8145 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8146 $EGREP "$file_magic_regex" > /dev/null; then
8147 :
8148 else
8149 cat <<_LT_EOF 1>&2
8150
8151*** Warning: the command libtool uses to detect shared libraries,
8152*** $file_magic_cmd, produces output that libtool cannot recognize.
8153*** The result is that libtool may fail to recognize shared libraries
8154*** as such. This will affect the creation of libtool libraries that
8155*** depend on shared libraries, but programs linked with such libtool
8156*** libraries will work regardless of this problem. Nevertheless, you
8157*** may want to report the problem to your system manager and/or to
8158*** bug-libtool@gnu.org
8159
8160_LT_EOF
8161 fi ;;
8162 esac
8163 fi
8164 break
8165 fi
8166 done
8167 IFS="$lt_save_ifs"
8168 MAGIC_CMD="$lt_save_MAGIC_CMD"
8169 ;;
8170esac
8171fi
8172
8173MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8174if test -n "$MAGIC_CMD"; then
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8176$as_echo "$MAGIC_CMD" >&6; }
8177else
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8179$as_echo "no" >&6; }
8180fi
8181
8182
8183
8184
8185
8186if test -z "$lt_cv_path_MAGIC_CMD"; then
8187 if test -n "$ac_tool_prefix"; then
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8189$as_echo_n "checking for file... " >&6; }
ea2e69a4 8190if ${lt_cv_path_MAGIC_CMD+:} false; then :
e440a328 8191 $as_echo_n "(cached) " >&6
8192else
8193 case $MAGIC_CMD in
8194[\\/*] | ?:[\\/]*)
8195 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8196 ;;
8197*)
8198 lt_save_MAGIC_CMD="$MAGIC_CMD"
8199 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8200 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8201 for ac_dir in $ac_dummy; do
8202 IFS="$lt_save_ifs"
8203 test -z "$ac_dir" && ac_dir=.
8204 if test -f $ac_dir/file; then
8205 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8206 if test -n "$file_magic_test_file"; then
8207 case $deplibs_check_method in
8208 "file_magic "*)
8209 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8210 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8211 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8212 $EGREP "$file_magic_regex" > /dev/null; then
8213 :
8214 else
8215 cat <<_LT_EOF 1>&2
8216
8217*** Warning: the command libtool uses to detect shared libraries,
8218*** $file_magic_cmd, produces output that libtool cannot recognize.
8219*** The result is that libtool may fail to recognize shared libraries
8220*** as such. This will affect the creation of libtool libraries that
8221*** depend on shared libraries, but programs linked with such libtool
8222*** libraries will work regardless of this problem. Nevertheless, you
8223*** may want to report the problem to your system manager and/or to
8224*** bug-libtool@gnu.org
8225
8226_LT_EOF
8227 fi ;;
8228 esac
8229 fi
8230 break
8231 fi
8232 done
8233 IFS="$lt_save_ifs"
8234 MAGIC_CMD="$lt_save_MAGIC_CMD"
8235 ;;
8236esac
8237fi
8238
8239MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8240if test -n "$MAGIC_CMD"; then
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8242$as_echo "$MAGIC_CMD" >&6; }
8243else
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8245$as_echo "no" >&6; }
8246fi
8247
8248
8249 else
8250 MAGIC_CMD=:
8251 fi
8252fi
8253
8254 fi
8255 ;;
8256esac
8257
8258# Use C for the default configuration in the libtool script
8259
8260lt_save_CC="$CC"
8261ac_ext=c
8262ac_cpp='$CPP $CPPFLAGS'
8263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8265ac_compiler_gnu=$ac_cv_c_compiler_gnu
8266
8267
8268# Source file extension for C test sources.
8269ac_ext=c
8270
8271# Object file extension for compiled C test sources.
8272objext=o
8273objext=$objext
8274
8275# Code to be used in simple compile tests
8276lt_simple_compile_test_code="int some_variable = 0;"
8277
8278# Code to be used in simple link tests
8279lt_simple_link_test_code='int main(){return(0);}'
8280
8281
8282
8283
8284
8285
8286
8287# If no C compiler was specified, use CC.
8288LTCC=${LTCC-"$CC"}
8289
8290# If no C compiler flags were specified, use CFLAGS.
8291LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8292
8293# Allow CC to be a program name with arguments.
8294compiler=$CC
8295
8296# Save the default compiler, since it gets overwritten when the other
8297# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8298compiler_DEFAULT=$CC
8299
8300# save warnings/boilerplate of simple test code
8301ac_outfile=conftest.$ac_objext
8302echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8303eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8304_lt_compiler_boilerplate=`cat conftest.err`
8305$RM conftest*
8306
8307ac_outfile=conftest.$ac_objext
8308echo "$lt_simple_link_test_code" >conftest.$ac_ext
8309eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8310_lt_linker_boilerplate=`cat conftest.err`
8311$RM -r conftest*
8312
8313
8314## CAVEAT EMPTOR:
8315## There is no encapsulation within the following macros, do not change
8316## the running order or otherwise move them around unless you know exactly
8317## what you are doing...
8318if test -n "$compiler"; then
8319
8320lt_prog_compiler_no_builtin_flag=
8321
8322if test "$GCC" = yes; then
8323 case $cc_basename in
8324 nvcc*)
8325 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8326 *)
8327 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8328 esac
8329
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8331$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
ea2e69a4 8332if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
e440a328 8333 $as_echo_n "(cached) " >&6
8334else
8335 lt_cv_prog_compiler_rtti_exceptions=no
8336 ac_outfile=conftest.$ac_objext
8337 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8338 lt_compiler_flag="-fno-rtti -fno-exceptions"
8339 # Insert the option either (1) after the last *FLAGS variable, or
8340 # (2) before a word containing "conftest.", or (3) at the end.
8341 # Note that $ac_compile itself does not contain backslashes and begins
8342 # with a dollar sign (not a hyphen), so the echo should work correctly.
8343 # The option is referenced via a variable to avoid confusing sed.
8344 lt_compile=`echo "$ac_compile" | $SED \
8345 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8346 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8347 -e 's:$: $lt_compiler_flag:'`
8348 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8349 (eval "$lt_compile" 2>conftest.err)
8350 ac_status=$?
8351 cat conftest.err >&5
8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353 if (exit $ac_status) && test -s "$ac_outfile"; then
8354 # The compiler can only warn and ignore the option if not recognized
8355 # So say no if there are warnings other than the usual output.
8356 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8357 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8358 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8359 lt_cv_prog_compiler_rtti_exceptions=yes
8360 fi
8361 fi
8362 $RM conftest*
8363
8364fi
8365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8366$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8367
8368if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8369 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8370else
8371 :
8372fi
8373
8374fi
8375
8376
8377
8378
8379
8380
8381 lt_prog_compiler_wl=
8382lt_prog_compiler_pic=
8383lt_prog_compiler_static=
8384
8385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8386$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8387
8388 if test "$GCC" = yes; then
8389 lt_prog_compiler_wl='-Wl,'
8390 lt_prog_compiler_static='-static'
8391
8392 case $host_os in
8393 aix*)
8394 # All AIX code is PIC.
8395 if test "$host_cpu" = ia64; then
8396 # AIX 5 now supports IA64 processor
8397 lt_prog_compiler_static='-Bstatic'
8398 fi
31d696fa 8399 lt_prog_compiler_pic='-fPIC'
e440a328 8400 ;;
8401
8402 amigaos*)
8403 case $host_cpu in
8404 powerpc)
8405 # see comment about AmigaOS4 .so support
8406 lt_prog_compiler_pic='-fPIC'
8407 ;;
8408 m68k)
8409 # FIXME: we need at least 68020 code to build shared libraries, but
8410 # adding the `-m68020' flag to GCC prevents building anything better,
8411 # like `-m68040'.
8412 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8413 ;;
8414 esac
8415 ;;
8416
8417 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8418 # PIC is the default for these OSes.
8419 ;;
8420
8421 mingw* | cygwin* | pw32* | os2* | cegcc*)
8422 # This hack is so that the source file can tell whether it is being
8423 # built for inclusion in a dll (and should export symbols for example).
8424 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8425 # (--disable-auto-import) libraries
8426 lt_prog_compiler_pic='-DDLL_EXPORT'
8427 ;;
8428
8429 darwin* | rhapsody*)
8430 # PIC is the default on this platform
8431 # Common symbols not allowed in MH_DYLIB files
8432 lt_prog_compiler_pic='-fno-common'
8433 ;;
8434
8435 haiku*)
8436 # PIC is the default for Haiku.
8437 # The "-static" flag exists, but is broken.
8438 lt_prog_compiler_static=
8439 ;;
8440
8441 hpux*)
8442 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8443 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8444 # sets the default TLS model and affects inlining.
8445 case $host_cpu in
8446 hppa*64*)
8447 # +Z the default
8448 ;;
8449 *)
8450 lt_prog_compiler_pic='-fPIC'
8451 ;;
8452 esac
8453 ;;
8454
8455 interix[3-9]*)
8456 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8457 # Instead, we relocate shared libraries at runtime.
8458 ;;
8459
8460 msdosdjgpp*)
8461 # Just because we use GCC doesn't mean we suddenly get shared libraries
8462 # on systems that don't support them.
8463 lt_prog_compiler_can_build_shared=no
8464 enable_shared=no
8465 ;;
8466
8467 *nto* | *qnx*)
8468 # QNX uses GNU C++, but need to define -shared option too, otherwise
8469 # it will coredump.
8470 lt_prog_compiler_pic='-fPIC -shared'
8471 ;;
8472
8473 sysv4*MP*)
8474 if test -d /usr/nec; then
8475 lt_prog_compiler_pic=-Kconform_pic
8476 fi
8477 ;;
8478
8479 *)
8480 lt_prog_compiler_pic='-fPIC'
8481 ;;
8482 esac
8483
8484 case $cc_basename in
8485 nvcc*) # Cuda Compiler Driver 2.2
8486 lt_prog_compiler_wl='-Xlinker '
8487 lt_prog_compiler_pic='-Xcompiler -fPIC'
8488 ;;
8489 esac
8490 else
8491 # PORTME Check for flag to pass linker flags through the system compiler.
8492 case $host_os in
8493 aix*)
8494 lt_prog_compiler_wl='-Wl,'
8495 if test "$host_cpu" = ia64; then
8496 # AIX 5 now supports IA64 processor
8497 lt_prog_compiler_static='-Bstatic'
8498 else
8499 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8500 fi
8501 ;;
8502
8503 mingw* | cygwin* | pw32* | os2* | cegcc*)
8504 # This hack is so that the source file can tell whether it is being
8505 # built for inclusion in a dll (and should export symbols for example).
8506 lt_prog_compiler_pic='-DDLL_EXPORT'
8507 ;;
8508
8509 hpux9* | hpux10* | hpux11*)
8510 lt_prog_compiler_wl='-Wl,'
8511 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8512 # not for PA HP-UX.
8513 case $host_cpu in
8514 hppa*64*|ia64*)
8515 # +Z the default
8516 ;;
8517 *)
8518 lt_prog_compiler_pic='+Z'
8519 ;;
8520 esac
8521 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8522 lt_prog_compiler_static='${wl}-a ${wl}archive'
8523 ;;
8524
8525 irix5* | irix6* | nonstopux*)
8526 lt_prog_compiler_wl='-Wl,'
8527 # PIC (with -KPIC) is the default.
8528 lt_prog_compiler_static='-non_shared'
8529 ;;
8530
8531 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8532 case $cc_basename in
8533 # old Intel for x86_64 which still supported -KPIC.
8534 ecc*)
8535 lt_prog_compiler_wl='-Wl,'
8536 lt_prog_compiler_pic='-KPIC'
8537 lt_prog_compiler_static='-static'
8538 ;;
8539 # icc used to be incompatible with GCC.
8540 # ICC 10 doesn't accept -KPIC any more.
8541 icc* | ifort*)
8542 lt_prog_compiler_wl='-Wl,'
8543 lt_prog_compiler_pic='-fPIC'
8544 lt_prog_compiler_static='-static'
8545 ;;
8546 # Lahey Fortran 8.1.
8547 lf95*)
8548 lt_prog_compiler_wl='-Wl,'
8549 lt_prog_compiler_pic='--shared'
8550 lt_prog_compiler_static='--static'
8551 ;;
8552 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8553 # Portland Group compilers (*not* the Pentium gcc compiler,
8554 # which looks to be a dead project)
8555 lt_prog_compiler_wl='-Wl,'
8556 lt_prog_compiler_pic='-fpic'
8557 lt_prog_compiler_static='-Bstatic'
8558 ;;
8559 ccc*)
8560 lt_prog_compiler_wl='-Wl,'
8561 # All Alpha code is PIC.
8562 lt_prog_compiler_static='-non_shared'
8563 ;;
8564 xl* | bgxl* | bgf* | mpixl*)
8565 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8566 lt_prog_compiler_wl='-Wl,'
8567 lt_prog_compiler_pic='-qpic'
8568 lt_prog_compiler_static='-qstaticlink'
8569 ;;
8570 *)
8571 case `$CC -V 2>&1 | sed 5q` in
8572 *Sun\ F* | *Sun*Fortran*)
8573 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8574 lt_prog_compiler_pic='-KPIC'
8575 lt_prog_compiler_static='-Bstatic'
8576 lt_prog_compiler_wl=''
8577 ;;
8578 *Sun\ C*)
8579 # Sun C 5.9
8580 lt_prog_compiler_pic='-KPIC'
8581 lt_prog_compiler_static='-Bstatic'
8582 lt_prog_compiler_wl='-Wl,'
8583 ;;
8584 esac
8585 ;;
8586 esac
8587 ;;
8588
8589 newsos6)
8590 lt_prog_compiler_pic='-KPIC'
8591 lt_prog_compiler_static='-Bstatic'
8592 ;;
8593
8594 *nto* | *qnx*)
8595 # QNX uses GNU C++, but need to define -shared option too, otherwise
8596 # it will coredump.
8597 lt_prog_compiler_pic='-fPIC -shared'
8598 ;;
8599
8600 osf3* | osf4* | osf5*)
8601 lt_prog_compiler_wl='-Wl,'
8602 # All OSF/1 code is PIC.
8603 lt_prog_compiler_static='-non_shared'
8604 ;;
8605
8606 rdos*)
8607 lt_prog_compiler_static='-non_shared'
8608 ;;
8609
8610 solaris*)
8611 lt_prog_compiler_pic='-KPIC'
8612 lt_prog_compiler_static='-Bstatic'
8613 case $cc_basename in
8614 f77* | f90* | f95*)
8615 lt_prog_compiler_wl='-Qoption ld ';;
8616 *)
8617 lt_prog_compiler_wl='-Wl,';;
8618 esac
8619 ;;
8620
8621 sunos4*)
8622 lt_prog_compiler_wl='-Qoption ld '
8623 lt_prog_compiler_pic='-PIC'
8624 lt_prog_compiler_static='-Bstatic'
8625 ;;
8626
8627 sysv4 | sysv4.2uw2* | sysv4.3*)
8628 lt_prog_compiler_wl='-Wl,'
8629 lt_prog_compiler_pic='-KPIC'
8630 lt_prog_compiler_static='-Bstatic'
8631 ;;
8632
8633 sysv4*MP*)
8634 if test -d /usr/nec ;then
8635 lt_prog_compiler_pic='-Kconform_pic'
8636 lt_prog_compiler_static='-Bstatic'
8637 fi
8638 ;;
8639
8640 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8641 lt_prog_compiler_wl='-Wl,'
8642 lt_prog_compiler_pic='-KPIC'
8643 lt_prog_compiler_static='-Bstatic'
8644 ;;
8645
8646 unicos*)
8647 lt_prog_compiler_wl='-Wl,'
8648 lt_prog_compiler_can_build_shared=no
8649 ;;
8650
8651 uts4*)
8652 lt_prog_compiler_pic='-pic'
8653 lt_prog_compiler_static='-Bstatic'
8654 ;;
8655
8656 *)
8657 lt_prog_compiler_can_build_shared=no
8658 ;;
8659 esac
8660 fi
8661
8662case $host_os in
8663 # For platforms which do not support PIC, -DPIC is meaningless:
8664 *djgpp*)
8665 lt_prog_compiler_pic=
8666 ;;
8667 *)
8668 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8669 ;;
8670esac
8671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8672$as_echo "$lt_prog_compiler_pic" >&6; }
8673
8674
8675
8676
8677
8678
8679#
8680# Check to make sure the PIC flag actually works.
8681#
8682if test -n "$lt_prog_compiler_pic"; then
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8684$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
ea2e69a4 8685if ${lt_cv_prog_compiler_pic_works+:} false; then :
e440a328 8686 $as_echo_n "(cached) " >&6
8687else
8688 lt_cv_prog_compiler_pic_works=no
8689 ac_outfile=conftest.$ac_objext
8690 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8691 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8692 # Insert the option either (1) after the last *FLAGS variable, or
8693 # (2) before a word containing "conftest.", or (3) at the end.
8694 # Note that $ac_compile itself does not contain backslashes and begins
8695 # with a dollar sign (not a hyphen), so the echo should work correctly.
8696 # The option is referenced via a variable to avoid confusing sed.
8697 lt_compile=`echo "$ac_compile" | $SED \
8698 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8699 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8700 -e 's:$: $lt_compiler_flag:'`
8701 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8702 (eval "$lt_compile" 2>conftest.err)
8703 ac_status=$?
8704 cat conftest.err >&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 if (exit $ac_status) && test -s "$ac_outfile"; then
8707 # The compiler can only warn and ignore the option if not recognized
8708 # So say no if there are warnings other than the usual output.
8709 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8710 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8711 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8712 lt_cv_prog_compiler_pic_works=yes
8713 fi
8714 fi
8715 $RM conftest*
8716
8717fi
8718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8719$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8720
8721if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8722 case $lt_prog_compiler_pic in
8723 "" | " "*) ;;
8724 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8725 esac
8726else
8727 lt_prog_compiler_pic=
8728 lt_prog_compiler_can_build_shared=no
8729fi
8730
8731fi
8732
8733
8734
8735
8736
8737
8738#
8739# Check to make sure the static flag actually works.
8740#
8741wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8743$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
ea2e69a4 8744if ${lt_cv_prog_compiler_static_works+:} false; then :
e440a328 8745 $as_echo_n "(cached) " >&6
8746else
8747 lt_cv_prog_compiler_static_works=no
8748 save_LDFLAGS="$LDFLAGS"
8749 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8750 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8751 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8752 # The linker can only warn and ignore the option if not recognized
8753 # So say no if there are warnings
8754 if test -s conftest.err; then
8755 # Append any errors to the config.log.
8756 cat conftest.err 1>&5
8757 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8758 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8759 if diff conftest.exp conftest.er2 >/dev/null; then
8760 lt_cv_prog_compiler_static_works=yes
8761 fi
8762 else
8763 lt_cv_prog_compiler_static_works=yes
8764 fi
8765 fi
8766 $RM -r conftest*
8767 LDFLAGS="$save_LDFLAGS"
8768
8769fi
8770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8771$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8772
8773if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8774 :
8775else
8776 lt_prog_compiler_static=
8777fi
8778
8779
8780
8781
8782
8783
8784
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8786$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ea2e69a4 8787if ${lt_cv_prog_compiler_c_o+:} false; then :
e440a328 8788 $as_echo_n "(cached) " >&6
8789else
8790 lt_cv_prog_compiler_c_o=no
8791 $RM -r conftest 2>/dev/null
8792 mkdir conftest
8793 cd conftest
8794 mkdir out
8795 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8796
8797 lt_compiler_flag="-o out/conftest2.$ac_objext"
8798 # Insert the option either (1) after the last *FLAGS variable, or
8799 # (2) before a word containing "conftest.", or (3) at the end.
8800 # Note that $ac_compile itself does not contain backslashes and begins
8801 # with a dollar sign (not a hyphen), so the echo should work correctly.
8802 lt_compile=`echo "$ac_compile" | $SED \
8803 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8804 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8805 -e 's:$: $lt_compiler_flag:'`
8806 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8807 (eval "$lt_compile" 2>out/conftest.err)
8808 ac_status=$?
8809 cat out/conftest.err >&5
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8812 then
8813 # The compiler can only warn and ignore the option if not recognized
8814 # So say no if there are warnings
8815 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8816 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8817 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8818 lt_cv_prog_compiler_c_o=yes
8819 fi
8820 fi
8821 chmod u+w . 2>&5
8822 $RM conftest*
8823 # SGI C++ compiler will create directory out/ii_files/ for
8824 # template instantiation
8825 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8826 $RM out/* && rmdir out
8827 cd ..
8828 $RM -r conftest
8829 $RM conftest*
8830
8831fi
8832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8833$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8834
8835
8836
8837
8838
8839
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8841$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ea2e69a4 8842if ${lt_cv_prog_compiler_c_o+:} false; then :
e440a328 8843 $as_echo_n "(cached) " >&6
8844else
8845 lt_cv_prog_compiler_c_o=no
8846 $RM -r conftest 2>/dev/null
8847 mkdir conftest
8848 cd conftest
8849 mkdir out
8850 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8851
8852 lt_compiler_flag="-o out/conftest2.$ac_objext"
8853 # Insert the option either (1) after the last *FLAGS variable, or
8854 # (2) before a word containing "conftest.", or (3) at the end.
8855 # Note that $ac_compile itself does not contain backslashes and begins
8856 # with a dollar sign (not a hyphen), so the echo should work correctly.
8857 lt_compile=`echo "$ac_compile" | $SED \
8858 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8859 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8860 -e 's:$: $lt_compiler_flag:'`
8861 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8862 (eval "$lt_compile" 2>out/conftest.err)
8863 ac_status=$?
8864 cat out/conftest.err >&5
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8867 then
8868 # The compiler can only warn and ignore the option if not recognized
8869 # So say no if there are warnings
8870 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8871 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8872 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8873 lt_cv_prog_compiler_c_o=yes
8874 fi
8875 fi
8876 chmod u+w . 2>&5
8877 $RM conftest*
8878 # SGI C++ compiler will create directory out/ii_files/ for
8879 # template instantiation
8880 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8881 $RM out/* && rmdir out
8882 cd ..
8883 $RM -r conftest
8884 $RM conftest*
8885
8886fi
8887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8888$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8889
8890
8891
8892
8893hard_links="nottested"
8894if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8895 # do not overwrite the value of need_locks provided by the user
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8897$as_echo_n "checking if we can lock with hard links... " >&6; }
8898 hard_links=yes
8899 $RM conftest*
8900 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8901 touch conftest.a
8902 ln conftest.a conftest.b 2>&5 || hard_links=no
8903 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8905$as_echo "$hard_links" >&6; }
8906 if test "$hard_links" = no; then
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8908$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8909 need_locks=warn
8910 fi
8911else
8912 need_locks=no
8913fi
8914
8915
8916
8917
8918
8919
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8921$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8922
8923 runpath_var=
8924 allow_undefined_flag=
8925 always_export_symbols=no
8926 archive_cmds=
8927 archive_expsym_cmds=
8928 compiler_needs_object=no
8929 enable_shared_with_static_runtimes=no
8930 export_dynamic_flag_spec=
8931 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8932 hardcode_automatic=no
8933 hardcode_direct=no
8934 hardcode_direct_absolute=no
8935 hardcode_libdir_flag_spec=
8936 hardcode_libdir_flag_spec_ld=
8937 hardcode_libdir_separator=
8938 hardcode_minus_L=no
8939 hardcode_shlibpath_var=unsupported
8940 inherit_rpath=no
8941 link_all_deplibs=unknown
8942 module_cmds=
8943 module_expsym_cmds=
8944 old_archive_from_new_cmds=
8945 old_archive_from_expsyms_cmds=
8946 thread_safe_flag_spec=
8947 whole_archive_flag_spec=
8948 # include_expsyms should be a list of space-separated symbols to be *always*
8949 # included in the symbol list
8950 include_expsyms=
8951 # exclude_expsyms can be an extended regexp of symbols to exclude
8952 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8953 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8954 # as well as any symbol that contains `d'.
8955 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8956 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8957 # platforms (ab)use it in PIC code, but their linkers get confused if
8958 # the symbol is explicitly referenced. Since portable code cannot
8959 # rely on this symbol name, it's probably fine to never include it in
8960 # preloaded symbol tables.
8961 # Exclude shared library initialization/finalization symbols.
8962 extract_expsyms_cmds=
8963
8964 case $host_os in
8965 cygwin* | mingw* | pw32* | cegcc*)
8966 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8967 # When not using gcc, we currently assume that we are using
8968 # Microsoft Visual C++.
8969 if test "$GCC" != yes; then
8970 with_gnu_ld=no
8971 fi
8972 ;;
8973 interix*)
8974 # we just hope/assume this is gcc and not c89 (= MSVC++)
8975 with_gnu_ld=yes
8976 ;;
8977 openbsd*)
8978 with_gnu_ld=no
8979 ;;
8980 esac
8981
8982 ld_shlibs=yes
8983
8984 # On some targets, GNU ld is compatible enough with the native linker
8985 # that we're better off using the native interface for both.
8986 lt_use_gnu_ld_interface=no
8987 if test "$with_gnu_ld" = yes; then
8988 case $host_os in
8989 aix*)
8990 # The AIX port of GNU ld has always aspired to compatibility
8991 # with the native linker. However, as the warning in the GNU ld
8992 # block says, versions before 2.19.5* couldn't really create working
8993 # shared libraries, regardless of the interface used.
8994 case `$LD -v 2>&1` in
8995 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8996 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8997 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8998 *)
8999 lt_use_gnu_ld_interface=yes
9000 ;;
9001 esac
9002 ;;
9003 *)
9004 lt_use_gnu_ld_interface=yes
9005 ;;
9006 esac
9007 fi
9008
9009 if test "$lt_use_gnu_ld_interface" = yes; then
9010 # If archive_cmds runs LD, not CC, wlarc should be empty
9011 wlarc='${wl}'
9012
9013 # Set some defaults for GNU ld with shared library support. These
9014 # are reset later if shared libraries are not supported. Putting them
9015 # here allows them to be overridden if necessary.
9016 runpath_var=LD_RUN_PATH
9017 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9018 export_dynamic_flag_spec='${wl}--export-dynamic'
9019 # ancient GNU ld didn't support --whole-archive et. al.
9020 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9021 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9022 else
9023 whole_archive_flag_spec=
9024 fi
9025 supports_anon_versioning=no
9026 case `$LD -v 2>&1` in
9027 *GNU\ gold*) supports_anon_versioning=yes ;;
9028 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9029 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9030 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9031 *\ 2.11.*) ;; # other 2.11 versions
9032 *) supports_anon_versioning=yes ;;
9033 esac
9034
9035 # See if GNU ld supports shared libraries.
9036 case $host_os in
9037 aix[3-9]*)
9038 # On AIX/PPC, the GNU linker is very broken
9039 if test "$host_cpu" != ia64; then
9040 ld_shlibs=no
9041 cat <<_LT_EOF 1>&2
9042
9043*** Warning: the GNU linker, at least up to release 2.19, is reported
9044*** to be unable to reliably create shared libraries on AIX.
9045*** Therefore, libtool is disabling shared libraries support. If you
9046*** really care for shared libraries, you may want to install binutils
9047*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9048*** You will then need to restart the configuration process.
9049
9050_LT_EOF
9051 fi
9052 ;;
9053
9054 amigaos*)
9055 case $host_cpu in
9056 powerpc)
9057 # see comment about AmigaOS4 .so support
9058 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9059 archive_expsym_cmds=''
9060 ;;
9061 m68k)
9062 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)'
9063 hardcode_libdir_flag_spec='-L$libdir'
9064 hardcode_minus_L=yes
9065 ;;
9066 esac
9067 ;;
9068
9069 beos*)
9070 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9071 allow_undefined_flag=unsupported
9072 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9073 # support --undefined. This deserves some investigation. FIXME
9074 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9075 else
9076 ld_shlibs=no
9077 fi
9078 ;;
9079
9080 cygwin* | mingw* | pw32* | cegcc*)
9081 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9082 # as there is no search path for DLLs.
9083 hardcode_libdir_flag_spec='-L$libdir'
9084 export_dynamic_flag_spec='${wl}--export-all-symbols'
9085 allow_undefined_flag=unsupported
9086 always_export_symbols=no
9087 enable_shared_with_static_runtimes=yes
9088 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9089
9090 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9091 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9092 # If the export-symbols file already is a .def file (1st line
9093 # is EXPORTS), use it as is; otherwise, prepend...
9094 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9095 cp $export_symbols $output_objdir/$soname.def;
9096 else
9097 echo EXPORTS > $output_objdir/$soname.def;
9098 cat $export_symbols >> $output_objdir/$soname.def;
9099 fi~
9100 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9101 else
9102 ld_shlibs=no
9103 fi
9104 ;;
9105
9106 haiku*)
9107 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9108 link_all_deplibs=yes
9109 ;;
9110
9111 interix[3-9]*)
9112 hardcode_direct=no
9113 hardcode_shlibpath_var=no
9114 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9115 export_dynamic_flag_spec='${wl}-E'
9116 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9117 # Instead, shared libraries are loaded at an image base (0x10000000 by
9118 # default) and relocated if they conflict, which is a slow very memory
9119 # consuming and fragmenting process. To avoid this, we pick a random,
9120 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9121 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9122 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9123 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'
9124 ;;
9125
9126 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9127 tmp_diet=no
9128 if test "$host_os" = linux-dietlibc; then
9129 case $cc_basename in
9130 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9131 esac
9132 fi
9133 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9134 && test "$tmp_diet" = no
9135 then
9136 tmp_addflag=
9137 tmp_sharedflag='-shared'
9138 case $cc_basename,$host_cpu in
9139 pgcc*) # Portland Group C compiler
9140 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'
9141 tmp_addflag=' $pic_flag'
9142 ;;
9143 pgf77* | pgf90* | pgf95* | pgfortran*)
9144 # Portland Group f77 and f90 compilers
9145 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'
9146 tmp_addflag=' $pic_flag -Mnomain' ;;
9147 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9148 tmp_addflag=' -i_dynamic' ;;
9149 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9150 tmp_addflag=' -i_dynamic -nofor_main' ;;
9151 ifc* | ifort*) # Intel Fortran compiler
9152 tmp_addflag=' -nofor_main' ;;
9153 lf95*) # Lahey Fortran 8.1
9154 whole_archive_flag_spec=
9155 tmp_sharedflag='--shared' ;;
9156 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9157 tmp_sharedflag='-qmkshrobj'
9158 tmp_addflag= ;;
9159 nvcc*) # Cuda Compiler Driver 2.2
9160 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'
9161 compiler_needs_object=yes
9162 ;;
9163 esac
9164 case `$CC -V 2>&1 | sed 5q` in
9165 *Sun\ C*) # Sun C 5.9
9166 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'
9167 compiler_needs_object=yes
9168 tmp_sharedflag='-G' ;;
9169 *Sun\ F*) # Sun Fortran 8.3
9170 tmp_sharedflag='-G' ;;
9171 esac
9172 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9173
9174 if test "x$supports_anon_versioning" = xyes; then
9175 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9176 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9177 echo "local: *; };" >> $output_objdir/$libname.ver~
9178 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9179 fi
9180
9181 case $cc_basename in
9182 xlf* | bgf* | bgxlf* | mpixlf*)
9183 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9184 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9185 hardcode_libdir_flag_spec=
9186 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9187 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9188 if test "x$supports_anon_versioning" = xyes; then
9189 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9190 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9191 echo "local: *; };" >> $output_objdir/$libname.ver~
9192 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9193 fi
9194 ;;
9195 esac
9196 else
9197 ld_shlibs=no
9198 fi
9199 ;;
9200
9201 netbsd*)
9202 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9203 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9204 wlarc=
9205 else
9206 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9207 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9208 fi
9209 ;;
9210
9211 solaris*)
9212 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9213 ld_shlibs=no
9214 cat <<_LT_EOF 1>&2
9215
9216*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9217*** create shared libraries on Solaris systems. Therefore, libtool
9218*** is disabling shared libraries support. We urge you to upgrade GNU
9219*** binutils to release 2.9.1 or newer. Another option is to modify
9220*** your PATH or compiler configuration so that the native linker is
9221*** used, and then restart.
9222
9223_LT_EOF
9224 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9225 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9226 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9227 else
9228 ld_shlibs=no
9229 fi
9230 ;;
9231
9232 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9233 case `$LD -v 2>&1` in
9234 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9235 ld_shlibs=no
9236 cat <<_LT_EOF 1>&2
9237
9238*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9239*** reliably create shared libraries on SCO systems. Therefore, libtool
9240*** is disabling shared libraries support. We urge you to upgrade GNU
9241*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9242*** your PATH or compiler configuration so that the native linker is
9243*** used, and then restart.
9244
9245_LT_EOF
9246 ;;
9247 *)
9248 # For security reasons, it is highly recommended that you always
9249 # use absolute paths for naming shared libraries, and exclude the
9250 # DT_RUNPATH tag from executables and libraries. But doing so
9251 # requires that you compile everything twice, which is a pain.
9252 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9253 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9254 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9255 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9256 else
9257 ld_shlibs=no
9258 fi
9259 ;;
9260 esac
9261 ;;
9262
9263 sunos4*)
9264 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9265 wlarc=
9266 hardcode_direct=yes
9267 hardcode_shlibpath_var=no
9268 ;;
9269
9270 *)
9271 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9272 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9273 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9274 else
9275 ld_shlibs=no
9276 fi
9277 ;;
9278 esac
9279
9280 if test "$ld_shlibs" = no; then
9281 runpath_var=
9282 hardcode_libdir_flag_spec=
9283 export_dynamic_flag_spec=
9284 whole_archive_flag_spec=
9285 fi
9286 else
9287 # PORTME fill in a description of your system's linker (not GNU ld)
9288 case $host_os in
9289 aix3*)
9290 allow_undefined_flag=unsupported
9291 always_export_symbols=yes
9292 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'
9293 # Note: this linker hardcodes the directories in LIBPATH if there
9294 # are no directories specified by -L.
9295 hardcode_minus_L=yes
9296 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9297 # Neither direct hardcoding nor static linking is supported with a
9298 # broken collect2.
9299 hardcode_direct=unsupported
9300 fi
9301 ;;
9302
9303 aix[4-9]*)
9304 if test "$host_cpu" = ia64; then
9305 # On IA64, the linker does run time linking by default, so we don't
9306 # have to do anything special.
9307 aix_use_runtimelinking=no
9308 exp_sym_flag='-Bexport'
9309 no_entry_flag=""
9310 else
9311 # If we're using GNU nm, then we don't want the "-C" option.
9312 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9313 # Also, AIX nm treats weak defined symbols like other global
9314 # defined symbols, whereas GNU nm marks them as "W".
9315 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9316 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'
9317 else
9318 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'
9319 fi
9320 aix_use_runtimelinking=no
9321
9322 # Test if we are trying to use run time linking or normal
9323 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9324 # need to do runtime linking.
9325 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9326 for ld_flag in $LDFLAGS; do
9327 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9328 aix_use_runtimelinking=yes
9329 break
9330 fi
9331 done
9332 ;;
9333 esac
9334
9335 exp_sym_flag='-bexport'
9336 no_entry_flag='-bnoentry'
9337 fi
9338
9339 # When large executables or shared objects are built, AIX ld can
9340 # have problems creating the table of contents. If linking a library
9341 # or program results in "error TOC overflow" add -mminimal-toc to
9342 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9343 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9344
9345 archive_cmds=''
9346 hardcode_direct=yes
9347 hardcode_direct_absolute=yes
9348 hardcode_libdir_separator=':'
9349 link_all_deplibs=yes
9350 file_list_spec='${wl}-f,'
9351
9352 if test "$GCC" = yes; then
9353 case $host_os in aix4.[012]|aix4.[012].*)
9354 # We only want to do this on AIX 4.2 and lower, the check
9355 # below for broken collect2 doesn't work under 4.3+
9356 collect2name=`${CC} -print-prog-name=collect2`
9357 if test -f "$collect2name" &&
9358 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9359 then
9360 # We have reworked collect2
9361 :
9362 else
9363 # We have old collect2
9364 hardcode_direct=unsupported
9365 # It fails to find uninstalled libraries when the uninstalled
9366 # path is not listed in the libpath. Setting hardcode_minus_L
9367 # to unsupported forces relinking
9368 hardcode_minus_L=yes
9369 hardcode_libdir_flag_spec='-L$libdir'
9370 hardcode_libdir_separator=
9371 fi
9372 ;;
9373 esac
9374 shared_flag='-shared'
9375 if test "$aix_use_runtimelinking" = yes; then
9376 shared_flag="$shared_flag "'${wl}-G'
9377 fi
9378 else
9379 # not using gcc
9380 if test "$host_cpu" = ia64; then
9381 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9382 # chokes on -Wl,-G. The following line is correct:
9383 shared_flag='-G'
9384 else
9385 if test "$aix_use_runtimelinking" = yes; then
9386 shared_flag='${wl}-G'
9387 else
9388 shared_flag='${wl}-bM:SRE'
9389 fi
9390 fi
9391 fi
9392
9393 export_dynamic_flag_spec='${wl}-bexpall'
9394 # It seems that -bexpall does not export symbols beginning with
9395 # underscore (_), so it is better to generate a list of symbols to export.
9396 always_export_symbols=yes
9397 if test "$aix_use_runtimelinking" = yes; then
9398 # Warning - without using the other runtime loading flags (-brtl),
9399 # -berok will link without error, but may produce a broken library.
9400 allow_undefined_flag='-berok'
9401 # Determine the default libpath from the value encoded in an
9402 # empty executable.
9403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9404/* end confdefs.h. */
9405
9406int
9407main ()
9408{
9409
9410 ;
9411 return 0;
9412}
9413_ACEOF
9414if ac_fn_c_try_link "$LINENO"; then :
9415
9416lt_aix_libpath_sed='
9417 /Import File Strings/,/^$/ {
9418 /^0/ {
9419 s/^0 *\(.*\)$/\1/
9420 p
9421 }
9422 }'
9423aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9424# Check for a 64-bit object if we didn't find anything.
9425if test -z "$aix_libpath"; then
9426 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9427fi
9428fi
9429rm -f core conftest.err conftest.$ac_objext \
9430 conftest$ac_exeext conftest.$ac_ext
9431if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9432
9433 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9434 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"
9435 else
9436 if test "$host_cpu" = ia64; then
9437 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9438 allow_undefined_flag="-z nodefs"
9439 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"
9440 else
9441 # Determine the default libpath from the value encoded in an
9442 # empty executable.
9443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9444/* end confdefs.h. */
9445
9446int
9447main ()
9448{
9449
9450 ;
9451 return 0;
9452}
9453_ACEOF
9454if ac_fn_c_try_link "$LINENO"; then :
9455
9456lt_aix_libpath_sed='
9457 /Import File Strings/,/^$/ {
9458 /^0/ {
9459 s/^0 *\(.*\)$/\1/
9460 p
9461 }
9462 }'
9463aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9464# Check for a 64-bit object if we didn't find anything.
9465if test -z "$aix_libpath"; then
9466 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9467fi
9468fi
9469rm -f core conftest.err conftest.$ac_objext \
9470 conftest$ac_exeext conftest.$ac_ext
9471if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9472
9473 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9474 # Warning - without using the other run time loading flags,
9475 # -berok will link without error, but may produce a broken library.
9476 no_undefined_flag=' ${wl}-bernotok'
9477 allow_undefined_flag=' ${wl}-berok'
9478 if test "$with_gnu_ld" = yes; then
9479 # We only use this code for GNU lds that support --whole-archive.
9480 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9481 else
9482 # Exported symbols can be pulled into shared objects from archives
9483 whole_archive_flag_spec='$convenience'
9484 fi
9485 archive_cmds_need_lc=yes
9486 # This is similar to how AIX traditionally builds its shared libraries.
9487 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'
9488 fi
9489 fi
9490 ;;
9491
9492 amigaos*)
9493 case $host_cpu in
9494 powerpc)
9495 # see comment about AmigaOS4 .so support
9496 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9497 archive_expsym_cmds=''
9498 ;;
9499 m68k)
9500 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)'
9501 hardcode_libdir_flag_spec='-L$libdir'
9502 hardcode_minus_L=yes
9503 ;;
9504 esac
9505 ;;
9506
9507 bsdi[45]*)
9508 export_dynamic_flag_spec=-rdynamic
9509 ;;
9510
9511 cygwin* | mingw* | pw32* | cegcc*)
9512 # When not using gcc, we currently assume that we are using
9513 # Microsoft Visual C++.
9514 # hardcode_libdir_flag_spec is actually meaningless, as there is
9515 # no search path for DLLs.
9516 hardcode_libdir_flag_spec=' '
9517 allow_undefined_flag=unsupported
9518 # Tell ltmain to make .lib files, not .a files.
9519 libext=lib
9520 # Tell ltmain to make .dll files, not .so files.
9521 shrext_cmds=".dll"
9522 # FIXME: Setting linknames here is a bad hack.
9523 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9524 # The linker will automatically build a .lib file if we build a DLL.
9525 old_archive_from_new_cmds='true'
9526 # FIXME: Should let the user specify the lib program.
9527 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9528 fix_srcfile_path='`cygpath -w "$srcfile"`'
9529 enable_shared_with_static_runtimes=yes
9530 ;;
9531
9532 darwin* | rhapsody*)
9533
9534
9535 archive_cmds_need_lc=no
9536 hardcode_direct=no
9537 hardcode_automatic=yes
9538 hardcode_shlibpath_var=unsupported
9539 if test "$lt_cv_ld_force_load" = "yes"; then
9540 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\"`'
9541 else
9542 whole_archive_flag_spec=''
9543 fi
9544 link_all_deplibs=yes
9545 allow_undefined_flag="$_lt_dar_allow_undefined"
9546 case $cc_basename in
9547 ifort*) _lt_dar_can_shared=yes ;;
9548 *) _lt_dar_can_shared=$GCC ;;
9549 esac
9550 if test "$_lt_dar_can_shared" = "yes"; then
9551 output_verbose_link_cmd=func_echo_all
9552 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9553 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9554 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}"
9555 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}"
9556
9557 else
9558 ld_shlibs=no
9559 fi
9560
9561 ;;
9562
9563 dgux*)
9564 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9565 hardcode_libdir_flag_spec='-L$libdir'
9566 hardcode_shlibpath_var=no
9567 ;;
9568
e440a328 9569 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9570 # support. Future versions do this automatically, but an explicit c++rt0.o
9571 # does not break anything, and helps significantly (at the cost of a little
9572 # extra space).
9573 freebsd2.2*)
9574 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9575 hardcode_libdir_flag_spec='-R$libdir'
9576 hardcode_direct=yes
9577 hardcode_shlibpath_var=no
9578 ;;
9579
9580 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
31d696fa 9581 freebsd2.*)
e440a328 9582 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9583 hardcode_direct=yes
9584 hardcode_minus_L=yes
9585 hardcode_shlibpath_var=no
9586 ;;
9587
9588 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9589 freebsd* | dragonfly*)
9590 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9591 hardcode_libdir_flag_spec='-R$libdir'
9592 hardcode_direct=yes
9593 hardcode_shlibpath_var=no
9594 ;;
9595
9596 hpux9*)
9597 if test "$GCC" = yes; then
9598 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'
9599 else
9600 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'
9601 fi
9602 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9603 hardcode_libdir_separator=:
9604 hardcode_direct=yes
9605
9606 # hardcode_minus_L: Not really in the search PATH,
9607 # but as the default location of the library.
9608 hardcode_minus_L=yes
9609 export_dynamic_flag_spec='${wl}-E'
9610 ;;
9611
9612 hpux10*)
9613 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9614 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9615 else
9616 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9617 fi
9618 if test "$with_gnu_ld" = no; then
9619 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9620 hardcode_libdir_flag_spec_ld='+b $libdir'
9621 hardcode_libdir_separator=:
9622 hardcode_direct=yes
9623 hardcode_direct_absolute=yes
9624 export_dynamic_flag_spec='${wl}-E'
9625 # hardcode_minus_L: Not really in the search PATH,
9626 # but as the default location of the library.
9627 hardcode_minus_L=yes
9628 fi
9629 ;;
9630
9631 hpux11*)
9632 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9633 case $host_cpu in
9634 hppa*64*)
9635 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9636 ;;
9637 ia64*)
9638 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9639 ;;
9640 *)
9641 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9642 ;;
9643 esac
9644 else
9645 case $host_cpu in
9646 hppa*64*)
9647 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9648 ;;
9649 ia64*)
9650 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9651 ;;
9652 *)
9653
9654 # Older versions of the 11.00 compiler do not understand -b yet
9655 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9657$as_echo_n "checking if $CC understands -b... " >&6; }
ea2e69a4 9658if ${lt_cv_prog_compiler__b+:} false; then :
e440a328 9659 $as_echo_n "(cached) " >&6
9660else
9661 lt_cv_prog_compiler__b=no
9662 save_LDFLAGS="$LDFLAGS"
9663 LDFLAGS="$LDFLAGS -b"
9664 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9665 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9666 # The linker can only warn and ignore the option if not recognized
9667 # So say no if there are warnings
9668 if test -s conftest.err; then
9669 # Append any errors to the config.log.
9670 cat conftest.err 1>&5
9671 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9672 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9673 if diff conftest.exp conftest.er2 >/dev/null; then
9674 lt_cv_prog_compiler__b=yes
9675 fi
9676 else
9677 lt_cv_prog_compiler__b=yes
9678 fi
9679 fi
9680 $RM -r conftest*
9681 LDFLAGS="$save_LDFLAGS"
9682
9683fi
9684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9685$as_echo "$lt_cv_prog_compiler__b" >&6; }
9686
9687if test x"$lt_cv_prog_compiler__b" = xyes; then
9688 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9689else
9690 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9691fi
9692
9693 ;;
9694 esac
9695 fi
9696 if test "$with_gnu_ld" = no; then
9697 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9698 hardcode_libdir_separator=:
9699
9700 case $host_cpu in
9701 hppa*64*|ia64*)
9702 hardcode_direct=no
9703 hardcode_shlibpath_var=no
9704 ;;
9705 *)
9706 hardcode_direct=yes
9707 hardcode_direct_absolute=yes
9708 export_dynamic_flag_spec='${wl}-E'
9709
9710 # hardcode_minus_L: Not really in the search PATH,
9711 # but as the default location of the library.
9712 hardcode_minus_L=yes
9713 ;;
9714 esac
9715 fi
9716 ;;
9717
9718 irix5* | irix6* | nonstopux*)
9719 if test "$GCC" = yes; then
9720 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'
9721 # Try to use the -exported_symbol ld option, if it does not
9722 # work, assume that -exports_file does not work either and
9723 # implicitly export all symbols.
9724 save_LDFLAGS="$LDFLAGS"
9725 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9727/* end confdefs.h. */
9728int foo(void) {}
9729_ACEOF
9730if ac_fn_c_try_link "$LINENO"; then :
9731 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'
9732
9733fi
9734rm -f core conftest.err conftest.$ac_objext \
9735 conftest$ac_exeext conftest.$ac_ext
9736 LDFLAGS="$save_LDFLAGS"
9737 else
9738 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'
9739 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'
9740 fi
9741 archive_cmds_need_lc='no'
9742 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9743 hardcode_libdir_separator=:
9744 inherit_rpath=yes
9745 link_all_deplibs=yes
9746 ;;
9747
9748 netbsd*)
9749 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9750 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9751 else
9752 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9753 fi
9754 hardcode_libdir_flag_spec='-R$libdir'
9755 hardcode_direct=yes
9756 hardcode_shlibpath_var=no
9757 ;;
9758
9759 newsos6)
9760 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9761 hardcode_direct=yes
9762 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9763 hardcode_libdir_separator=:
9764 hardcode_shlibpath_var=no
9765 ;;
9766
9767 *nto* | *qnx*)
9768 ;;
9769
9770 openbsd*)
9771 if test -f /usr/libexec/ld.so; then
9772 hardcode_direct=yes
9773 hardcode_shlibpath_var=no
9774 hardcode_direct_absolute=yes
9775 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9776 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9777 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9778 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9779 export_dynamic_flag_spec='${wl}-E'
9780 else
9781 case $host_os in
9782 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9783 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9784 hardcode_libdir_flag_spec='-R$libdir'
9785 ;;
9786 *)
9787 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9788 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9789 ;;
9790 esac
9791 fi
9792 else
9793 ld_shlibs=no
9794 fi
9795 ;;
9796
9797 os2*)
9798 hardcode_libdir_flag_spec='-L$libdir'
9799 hardcode_minus_L=yes
9800 allow_undefined_flag=unsupported
9801 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'
9802 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9803 ;;
9804
9805 osf3*)
9806 if test "$GCC" = yes; then
9807 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9808 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'
9809 else
9810 allow_undefined_flag=' -expect_unresolved \*'
9811 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'
9812 fi
9813 archive_cmds_need_lc='no'
9814 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9815 hardcode_libdir_separator=:
9816 ;;
9817
9818 osf4* | osf5*) # as osf3* with the addition of -msym flag
9819 if test "$GCC" = yes; then
9820 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9821 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'
9822 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9823 else
9824 allow_undefined_flag=' -expect_unresolved \*'
9825 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'
9826 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~
9827 $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'
9828
9829 # Both c and cxx compiler support -rpath directly
9830 hardcode_libdir_flag_spec='-rpath $libdir'
9831 fi
9832 archive_cmds_need_lc='no'
9833 hardcode_libdir_separator=:
9834 ;;
9835
9836 solaris*)
9837 no_undefined_flag=' -z defs'
9838 if test "$GCC" = yes; then
9839 wlarc='${wl}'
9840 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9841 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9842 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9843 else
9844 case `$CC -V 2>&1` in
9845 *"Compilers 5.0"*)
9846 wlarc=''
9847 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9848 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9849 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9850 ;;
9851 *)
9852 wlarc='${wl}'
9853 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9854 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9855 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9856 ;;
9857 esac
9858 fi
9859 hardcode_libdir_flag_spec='-R$libdir'
9860 hardcode_shlibpath_var=no
9861 case $host_os in
9862 solaris2.[0-5] | solaris2.[0-5].*) ;;
9863 *)
9864 # The compiler driver will combine and reorder linker options,
9865 # but understands `-z linker_flag'. GCC discards it without `$wl',
9866 # but is careful enough not to reorder.
9867 # Supported since Solaris 2.6 (maybe 2.5.1?)
9868 if test "$GCC" = yes; then
9869 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9870 else
9871 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9872 fi
9873 ;;
9874 esac
9875 link_all_deplibs=yes
9876 ;;
9877
9878 sunos4*)
9879 if test "x$host_vendor" = xsequent; then
9880 # Use $CC to link under sequent, because it throws in some extra .o
9881 # files that make .init and .fini sections work.
9882 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9883 else
9884 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9885 fi
9886 hardcode_libdir_flag_spec='-L$libdir'
9887 hardcode_direct=yes
9888 hardcode_minus_L=yes
9889 hardcode_shlibpath_var=no
9890 ;;
9891
9892 sysv4)
9893 case $host_vendor in
9894 sni)
9895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9896 hardcode_direct=yes # is this really true???
9897 ;;
9898 siemens)
9899 ## LD is ld it makes a PLAMLIB
9900 ## CC just makes a GrossModule.
9901 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9902 reload_cmds='$CC -r -o $output$reload_objs'
9903 hardcode_direct=no
9904 ;;
9905 motorola)
9906 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9907 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9908 ;;
9909 esac
9910 runpath_var='LD_RUN_PATH'
9911 hardcode_shlibpath_var=no
9912 ;;
9913
9914 sysv4.3*)
9915 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9916 hardcode_shlibpath_var=no
9917 export_dynamic_flag_spec='-Bexport'
9918 ;;
9919
9920 sysv4*MP*)
9921 if test -d /usr/nec; then
9922 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9923 hardcode_shlibpath_var=no
9924 runpath_var=LD_RUN_PATH
9925 hardcode_runpath_var=yes
9926 ld_shlibs=yes
9927 fi
9928 ;;
9929
9930 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9931 no_undefined_flag='${wl}-z,text'
9932 archive_cmds_need_lc=no
9933 hardcode_shlibpath_var=no
9934 runpath_var='LD_RUN_PATH'
9935
9936 if test "$GCC" = yes; then
9937 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9938 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9939 else
9940 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9941 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9942 fi
9943 ;;
9944
9945 sysv5* | sco3.2v5* | sco5v6*)
9946 # Note: We can NOT use -z defs as we might desire, because we do not
9947 # link with -lc, and that would cause any symbols used from libc to
9948 # always be unresolved, which means just about no library would
9949 # ever link correctly. If we're not using GNU ld we use -z text
9950 # though, which does catch some bad symbols but isn't as heavy-handed
9951 # as -z defs.
9952 no_undefined_flag='${wl}-z,text'
9953 allow_undefined_flag='${wl}-z,nodefs'
9954 archive_cmds_need_lc=no
9955 hardcode_shlibpath_var=no
9956 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9957 hardcode_libdir_separator=':'
9958 link_all_deplibs=yes
9959 export_dynamic_flag_spec='${wl}-Bexport'
9960 runpath_var='LD_RUN_PATH'
9961
9962 if test "$GCC" = yes; then
9963 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9964 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9965 else
9966 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9967 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9968 fi
9969 ;;
9970
9971 uts4*)
9972 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9973 hardcode_libdir_flag_spec='-L$libdir'
9974 hardcode_shlibpath_var=no
9975 ;;
9976
9977 *)
9978 ld_shlibs=no
9979 ;;
9980 esac
9981
9982 if test x$host_vendor = xsni; then
9983 case $host in
9984 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9985 export_dynamic_flag_spec='${wl}-Blargedynsym'
9986 ;;
9987 esac
9988 fi
9989 fi
9990
9991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9992$as_echo "$ld_shlibs" >&6; }
9993test "$ld_shlibs" = no && can_build_shared=no
9994
9995with_gnu_ld=$with_gnu_ld
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011#
10012# Do we need to explicitly link libc?
10013#
10014case "x$archive_cmds_need_lc" in
10015x|xyes)
10016 # Assume -lc should be added
10017 archive_cmds_need_lc=yes
10018
10019 if test "$enable_shared" = yes && test "$GCC" = yes; then
10020 case $archive_cmds in
10021 *'~'*)
10022 # FIXME: we may have to deal with multi-command sequences.
10023 ;;
10024 '$CC '*)
10025 # Test whether the compiler implicitly links with -lc since on some
10026 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10027 # to ld, don't add -lc before -lgcc.
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10029$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
ea2e69a4 10030if ${lt_cv_archive_cmds_need_lc+:} false; then :
e440a328 10031 $as_echo_n "(cached) " >&6
10032else
10033 $RM conftest*
10034 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10035
10036 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10037 (eval $ac_compile) 2>&5
10038 ac_status=$?
10039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10040 test $ac_status = 0; } 2>conftest.err; then
10041 soname=conftest
10042 lib=conftest
10043 libobjs=conftest.$ac_objext
10044 deplibs=
10045 wl=$lt_prog_compiler_wl
10046 pic_flag=$lt_prog_compiler_pic
10047 compiler_flags=-v
10048 linker_flags=-v
10049 verstring=
10050 output_objdir=.
10051 libname=conftest
10052 lt_save_allow_undefined_flag=$allow_undefined_flag
10053 allow_undefined_flag=
10054 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10055 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10056 ac_status=$?
10057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10058 test $ac_status = 0; }
10059 then
10060 lt_cv_archive_cmds_need_lc=no
10061 else
10062 lt_cv_archive_cmds_need_lc=yes
10063 fi
10064 allow_undefined_flag=$lt_save_allow_undefined_flag
10065 else
10066 cat conftest.err 1>&5
10067 fi
10068 $RM conftest*
10069
10070fi
10071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10072$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10073 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10074 ;;
10075 esac
10076 fi
10077 ;;
10078esac
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10237$as_echo_n "checking dynamic linker characteristics... " >&6; }
10238
10239if test "$GCC" = yes; then
10240 case $host_os in
10241 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10242 *) lt_awk_arg="/^libraries:/" ;;
10243 esac
10244 case $host_os in
10245 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10246 *) lt_sed_strip_eq="s,=/,/,g" ;;
10247 esac
10248 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10249 case $lt_search_path_spec in
10250 *\;*)
10251 # if the path contains ";" then we assume it to be the separator
10252 # otherwise default to the standard path separator (i.e. ":") - it is
10253 # assumed that no part of a normal pathname contains ";" but that should
10254 # okay in the real world where ";" in dirpaths is itself problematic.
10255 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10256 ;;
10257 *)
10258 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10259 ;;
10260 esac
10261 # Ok, now we have the path, separated by spaces, we can step through it
10262 # and add multilib dir if necessary.
10263 lt_tmp_lt_search_path_spec=
10264 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10265 for lt_sys_path in $lt_search_path_spec; do
10266 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10267 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10268 else
10269 test -d "$lt_sys_path" && \
10270 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10271 fi
10272 done
10273 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10274BEGIN {RS=" "; FS="/|\n";} {
10275 lt_foo="";
10276 lt_count=0;
10277 for (lt_i = NF; lt_i > 0; lt_i--) {
10278 if ($lt_i != "" && $lt_i != ".") {
10279 if ($lt_i == "..") {
10280 lt_count++;
10281 } else {
10282 if (lt_count == 0) {
10283 lt_foo="/" $lt_i lt_foo;
10284 } else {
10285 lt_count--;
10286 }
10287 }
10288 }
10289 }
10290 if (lt_foo != "") { lt_freq[lt_foo]++; }
10291 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10292}'`
10293 # AWK program above erroneously prepends '/' to C:/dos/paths
10294 # for these hosts.
10295 case $host_os in
10296 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10297 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10298 esac
10299 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10300else
10301 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10302fi
10303library_names_spec=
10304libname_spec='lib$name'
10305soname_spec=
10306shrext_cmds=".so"
10307postinstall_cmds=
10308postuninstall_cmds=
10309finish_cmds=
10310finish_eval=
10311shlibpath_var=
10312shlibpath_overrides_runpath=unknown
10313version_type=none
10314dynamic_linker="$host_os ld.so"
10315sys_lib_dlsearch_path_spec="/lib /usr/lib"
10316need_lib_prefix=unknown
10317hardcode_into_libs=no
10318
10319# when you set need_version to no, make sure it does not cause -set_version
10320# flags to be left without arguments
10321need_version=unknown
10322
10323case $host_os in
10324aix3*)
10325 version_type=linux
10326 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10327 shlibpath_var=LIBPATH
10328
10329 # AIX 3 has no versioning support, so we append a major version to the name.
10330 soname_spec='${libname}${release}${shared_ext}$major'
10331 ;;
10332
10333aix[4-9]*)
10334 version_type=linux
10335 need_lib_prefix=no
10336 need_version=no
10337 hardcode_into_libs=yes
10338 if test "$host_cpu" = ia64; then
10339 # AIX 5 supports IA64
10340 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10341 shlibpath_var=LD_LIBRARY_PATH
10342 else
10343 # With GCC up to 2.95.x, collect2 would create an import file
10344 # for dependence libraries. The import file would start with
10345 # the line `#! .'. This would cause the generated library to
10346 # depend on `.', always an invalid library. This was fixed in
10347 # development snapshots of GCC prior to 3.0.
10348 case $host_os in
10349 aix4 | aix4.[01] | aix4.[01].*)
10350 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10351 echo ' yes '
10352 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10353 :
10354 else
10355 can_build_shared=no
10356 fi
10357 ;;
10358 esac
10359 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10360 # soname into executable. Probably we can add versioning support to
10361 # collect2, so additional links can be useful in future.
10362 if test "$aix_use_runtimelinking" = yes; then
10363 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10364 # instead of lib<name>.a to let people know that these are not
10365 # typical AIX shared libraries.
10366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10367 else
10368 # We preserve .a as extension for shared libraries through AIX4.2
10369 # and later when we are not doing run time linking.
10370 library_names_spec='${libname}${release}.a $libname.a'
10371 soname_spec='${libname}${release}${shared_ext}$major'
10372 fi
10373 shlibpath_var=LIBPATH
10374 fi
10375 ;;
10376
10377amigaos*)
10378 case $host_cpu in
10379 powerpc)
10380 # Since July 2007 AmigaOS4 officially supports .so libraries.
10381 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10383 ;;
10384 m68k)
10385 library_names_spec='$libname.ixlibrary $libname.a'
10386 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10387 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'
10388 ;;
10389 esac
10390 ;;
10391
10392beos*)
10393 library_names_spec='${libname}${shared_ext}'
10394 dynamic_linker="$host_os ld.so"
10395 shlibpath_var=LIBRARY_PATH
10396 ;;
10397
10398bsdi[45]*)
10399 version_type=linux
10400 need_version=no
10401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10402 soname_spec='${libname}${release}${shared_ext}$major'
10403 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10404 shlibpath_var=LD_LIBRARY_PATH
10405 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10406 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10407 # the default ld.so.conf also contains /usr/contrib/lib and
10408 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10409 # libtool to hard-code these into programs
10410 ;;
10411
10412cygwin* | mingw* | pw32* | cegcc*)
10413 version_type=windows
10414 shrext_cmds=".dll"
10415 need_version=no
10416 need_lib_prefix=no
10417
10418 case $GCC,$host_os in
10419 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10420 library_names_spec='$libname.dll.a'
10421 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10422 postinstall_cmds='base_file=`basename \${file}`~
10423 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10424 dldir=$destdir/`dirname \$dlpath`~
10425 test -d \$dldir || mkdir -p \$dldir~
10426 $install_prog $dir/$dlname \$dldir/$dlname~
10427 chmod a+x \$dldir/$dlname~
10428 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10429 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10430 fi'
10431 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10432 dlpath=$dir/\$dldll~
10433 $RM \$dlpath'
10434 shlibpath_overrides_runpath=yes
10435
10436 case $host_os in
10437 cygwin*)
10438 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10439 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10440
10441 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10442 ;;
10443 mingw* | cegcc*)
10444 # MinGW DLLs use traditional 'lib' prefix
10445 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10446 ;;
10447 pw32*)
10448 # pw32 DLLs use 'pw' prefix rather than 'lib'
10449 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10450 ;;
10451 esac
10452 ;;
10453
10454 *)
10455 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10456 ;;
10457 esac
10458 dynamic_linker='Win32 ld.exe'
10459 # FIXME: first we should search . and the directory the executable is in
10460 shlibpath_var=PATH
10461 ;;
10462
10463darwin* | rhapsody*)
10464 dynamic_linker="$host_os dyld"
10465 version_type=darwin
10466 need_lib_prefix=no
10467 need_version=no
10468 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10469 soname_spec='${libname}${release}${major}$shared_ext'
10470 shlibpath_overrides_runpath=yes
10471 shlibpath_var=DYLD_LIBRARY_PATH
10472 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10473
10474 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10475 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10476 ;;
10477
10478dgux*)
10479 version_type=linux
10480 need_lib_prefix=no
10481 need_version=no
10482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10483 soname_spec='${libname}${release}${shared_ext}$major'
10484 shlibpath_var=LD_LIBRARY_PATH
10485 ;;
10486
e440a328 10487freebsd* | dragonfly*)
10488 # DragonFly does not have aout. When/if they implement a new
10489 # versioning mechanism, adjust this.
10490 if test -x /usr/bin/objformat; then
10491 objformat=`/usr/bin/objformat`
10492 else
10493 case $host_os in
31d696fa 10494 freebsd[23].*) objformat=aout ;;
e440a328 10495 *) objformat=elf ;;
10496 esac
10497 fi
10498 version_type=freebsd-$objformat
10499 case $version_type in
10500 freebsd-elf*)
10501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10502 need_version=no
10503 need_lib_prefix=no
10504 ;;
10505 freebsd-*)
10506 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10507 need_version=yes
10508 ;;
10509 esac
10510 shlibpath_var=LD_LIBRARY_PATH
10511 case $host_os in
31d696fa 10512 freebsd2.*)
e440a328 10513 shlibpath_overrides_runpath=yes
10514 ;;
10515 freebsd3.[01]* | freebsdelf3.[01]*)
10516 shlibpath_overrides_runpath=yes
10517 hardcode_into_libs=yes
10518 ;;
10519 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10520 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10521 shlibpath_overrides_runpath=no
10522 hardcode_into_libs=yes
10523 ;;
10524 *) # from 4.6 on, and DragonFly
10525 shlibpath_overrides_runpath=yes
10526 hardcode_into_libs=yes
10527 ;;
10528 esac
10529 ;;
10530
10531gnu*)
10532 version_type=linux
10533 need_lib_prefix=no
10534 need_version=no
10535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10536 soname_spec='${libname}${release}${shared_ext}$major'
10537 shlibpath_var=LD_LIBRARY_PATH
10538 hardcode_into_libs=yes
10539 ;;
10540
10541haiku*)
10542 version_type=linux
10543 need_lib_prefix=no
10544 need_version=no
10545 dynamic_linker="$host_os runtime_loader"
10546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10547 soname_spec='${libname}${release}${shared_ext}$major'
10548 shlibpath_var=LIBRARY_PATH
10549 shlibpath_overrides_runpath=yes
10550 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10551 hardcode_into_libs=yes
10552 ;;
10553
10554hpux9* | hpux10* | hpux11*)
10555 # Give a soname corresponding to the major version so that dld.sl refuses to
10556 # link against other versions.
10557 version_type=sunos
10558 need_lib_prefix=no
10559 need_version=no
10560 case $host_cpu in
10561 ia64*)
10562 shrext_cmds='.so'
10563 hardcode_into_libs=yes
10564 dynamic_linker="$host_os dld.so"
10565 shlibpath_var=LD_LIBRARY_PATH
10566 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10568 soname_spec='${libname}${release}${shared_ext}$major'
10569 if test "X$HPUX_IA64_MODE" = X32; then
10570 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10571 else
10572 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10573 fi
10574 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10575 ;;
10576 hppa*64*)
10577 shrext_cmds='.sl'
10578 hardcode_into_libs=yes
10579 dynamic_linker="$host_os dld.sl"
10580 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10581 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10583 soname_spec='${libname}${release}${shared_ext}$major'
10584 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10585 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10586 ;;
10587 *)
10588 shrext_cmds='.sl'
10589 dynamic_linker="$host_os dld.sl"
10590 shlibpath_var=SHLIB_PATH
10591 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
10595 esac
10596 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10597 postinstall_cmds='chmod 555 $lib'
10598 # or fails outright, so override atomically:
10599 install_override_mode=555
10600 ;;
10601
10602interix[3-9]*)
10603 version_type=linux
10604 need_lib_prefix=no
10605 need_version=no
10606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10607 soname_spec='${libname}${release}${shared_ext}$major'
10608 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10609 shlibpath_var=LD_LIBRARY_PATH
10610 shlibpath_overrides_runpath=no
10611 hardcode_into_libs=yes
10612 ;;
10613
10614irix5* | irix6* | nonstopux*)
10615 case $host_os in
10616 nonstopux*) version_type=nonstopux ;;
10617 *)
10618 if test "$lt_cv_prog_gnu_ld" = yes; then
10619 version_type=linux
10620 else
10621 version_type=irix
10622 fi ;;
10623 esac
10624 need_lib_prefix=no
10625 need_version=no
10626 soname_spec='${libname}${release}${shared_ext}$major'
10627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10628 case $host_os in
10629 irix5* | nonstopux*)
10630 libsuff= shlibsuff=
10631 ;;
10632 *)
10633 case $LD in # libtool.m4 will add one of these switches to LD
10634 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10635 libsuff= shlibsuff= libmagic=32-bit;;
10636 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10637 libsuff=32 shlibsuff=N32 libmagic=N32;;
10638 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10639 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10640 *) libsuff= shlibsuff= libmagic=never-match;;
10641 esac
10642 ;;
10643 esac
10644 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10645 shlibpath_overrides_runpath=no
10646 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10647 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10648 hardcode_into_libs=yes
10649 ;;
10650
10651# No shared lib support for Linux oldld, aout, or coff.
10652linux*oldld* | linux*aout* | linux*coff*)
10653 dynamic_linker=no
10654 ;;
10655
10656# This must be Linux ELF.
10657linux* | k*bsd*-gnu | kopensolaris*-gnu)
10658 version_type=linux
10659 need_lib_prefix=no
10660 need_version=no
10661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10662 soname_spec='${libname}${release}${shared_ext}$major'
10663 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10664 shlibpath_var=LD_LIBRARY_PATH
10665 shlibpath_overrides_runpath=no
10666
10667 # Some binutils ld are patched to set DT_RUNPATH
ea2e69a4 10668 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
e440a328 10669 $as_echo_n "(cached) " >&6
10670else
10671 lt_cv_shlibpath_overrides_runpath=no
10672 save_LDFLAGS=$LDFLAGS
10673 save_libdir=$libdir
10674 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10675 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10677/* end confdefs.h. */
10678
10679int
10680main ()
10681{
10682
10683 ;
10684 return 0;
10685}
10686_ACEOF
10687if ac_fn_c_try_link "$LINENO"; then :
10688 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10689 lt_cv_shlibpath_overrides_runpath=yes
10690fi
10691fi
10692rm -f core conftest.err conftest.$ac_objext \
10693 conftest$ac_exeext conftest.$ac_ext
10694 LDFLAGS=$save_LDFLAGS
10695 libdir=$save_libdir
10696
10697fi
10698
10699 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10700
10701 # This implies no fast_install, which is unacceptable.
10702 # Some rework will be needed to allow for fast_install
10703 # before this can be enabled.
10704 hardcode_into_libs=yes
10705
10706 # Append ld.so.conf contents to the search path
10707 if test -f /etc/ld.so.conf; then
10708 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' ' '`
10709 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10710 fi
10711
10712 # We used to test for /lib/ld.so.1 and disable shared libraries on
10713 # powerpc, because MkLinux only supported shared libraries with the
10714 # GNU dynamic linker. Since this was broken with cross compilers,
10715 # most powerpc-linux boxes support dynamic linking these days and
10716 # people can always --disable-shared, the test was removed, and we
10717 # assume the GNU/Linux dynamic linker is in use.
10718 dynamic_linker='GNU/Linux ld.so'
10719 ;;
10720
10721netbsd*)
10722 version_type=sunos
10723 need_lib_prefix=no
10724 need_version=no
10725 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10727 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10728 dynamic_linker='NetBSD (a.out) ld.so'
10729 else
10730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10731 soname_spec='${libname}${release}${shared_ext}$major'
10732 dynamic_linker='NetBSD ld.elf_so'
10733 fi
10734 shlibpath_var=LD_LIBRARY_PATH
10735 shlibpath_overrides_runpath=yes
10736 hardcode_into_libs=yes
10737 ;;
10738
10739newsos6)
10740 version_type=linux
10741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10742 shlibpath_var=LD_LIBRARY_PATH
10743 shlibpath_overrides_runpath=yes
10744 ;;
10745
10746*nto* | *qnx*)
10747 version_type=qnx
10748 need_lib_prefix=no
10749 need_version=no
10750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10751 soname_spec='${libname}${release}${shared_ext}$major'
10752 shlibpath_var=LD_LIBRARY_PATH
10753 shlibpath_overrides_runpath=no
10754 hardcode_into_libs=yes
10755 dynamic_linker='ldqnx.so'
10756 ;;
10757
10758openbsd*)
10759 version_type=sunos
10760 sys_lib_dlsearch_path_spec="/usr/lib"
10761 need_lib_prefix=no
10762 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10763 case $host_os in
10764 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10765 *) need_version=no ;;
10766 esac
10767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10768 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10769 shlibpath_var=LD_LIBRARY_PATH
10770 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10771 case $host_os in
10772 openbsd2.[89] | openbsd2.[89].*)
10773 shlibpath_overrides_runpath=no
10774 ;;
10775 *)
10776 shlibpath_overrides_runpath=yes
10777 ;;
10778 esac
10779 else
10780 shlibpath_overrides_runpath=yes
10781 fi
10782 ;;
10783
10784os2*)
10785 libname_spec='$name'
10786 shrext_cmds=".dll"
10787 need_lib_prefix=no
10788 library_names_spec='$libname${shared_ext} $libname.a'
10789 dynamic_linker='OS/2 ld.exe'
10790 shlibpath_var=LIBPATH
10791 ;;
10792
10793osf3* | osf4* | osf5*)
10794 version_type=osf
10795 need_lib_prefix=no
10796 need_version=no
10797 soname_spec='${libname}${release}${shared_ext}$major'
10798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10799 shlibpath_var=LD_LIBRARY_PATH
10800 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10801 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10802 ;;
10803
10804rdos*)
10805 dynamic_linker=no
10806 ;;
10807
10808solaris*)
10809 version_type=linux
10810 need_lib_prefix=no
10811 need_version=no
10812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10813 soname_spec='${libname}${release}${shared_ext}$major'
10814 shlibpath_var=LD_LIBRARY_PATH
10815 shlibpath_overrides_runpath=yes
10816 hardcode_into_libs=yes
10817 # ldd complains unless libraries are executable
10818 postinstall_cmds='chmod +x $lib'
10819 ;;
10820
10821sunos4*)
10822 version_type=sunos
10823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10824 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10825 shlibpath_var=LD_LIBRARY_PATH
10826 shlibpath_overrides_runpath=yes
10827 if test "$with_gnu_ld" = yes; then
10828 need_lib_prefix=no
10829 fi
10830 need_version=yes
10831 ;;
10832
10833sysv4 | sysv4.3*)
10834 version_type=linux
10835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10836 soname_spec='${libname}${release}${shared_ext}$major'
10837 shlibpath_var=LD_LIBRARY_PATH
10838 case $host_vendor in
10839 sni)
10840 shlibpath_overrides_runpath=no
10841 need_lib_prefix=no
10842 runpath_var=LD_RUN_PATH
10843 ;;
10844 siemens)
10845 need_lib_prefix=no
10846 ;;
10847 motorola)
10848 need_lib_prefix=no
10849 need_version=no
10850 shlibpath_overrides_runpath=no
10851 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10852 ;;
10853 esac
10854 ;;
10855
10856sysv4*MP*)
10857 if test -d /usr/nec ;then
10858 version_type=linux
10859 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10860 soname_spec='$libname${shared_ext}.$major'
10861 shlibpath_var=LD_LIBRARY_PATH
10862 fi
10863 ;;
10864
10865sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10866 version_type=freebsd-elf
10867 need_lib_prefix=no
10868 need_version=no
10869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10870 soname_spec='${libname}${release}${shared_ext}$major'
10871 shlibpath_var=LD_LIBRARY_PATH
10872 shlibpath_overrides_runpath=yes
10873 hardcode_into_libs=yes
10874 if test "$with_gnu_ld" = yes; then
10875 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10876 else
10877 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10878 case $host_os in
10879 sco3.2v5*)
10880 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10881 ;;
10882 esac
10883 fi
10884 sys_lib_dlsearch_path_spec='/usr/lib'
10885 ;;
10886
10887tpf*)
10888 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10889 version_type=linux
10890 need_lib_prefix=no
10891 need_version=no
10892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10893 shlibpath_var=LD_LIBRARY_PATH
10894 shlibpath_overrides_runpath=no
10895 hardcode_into_libs=yes
10896 ;;
10897
10898uts4*)
10899 version_type=linux
10900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10901 soname_spec='${libname}${release}${shared_ext}$major'
10902 shlibpath_var=LD_LIBRARY_PATH
10903 ;;
10904
10905*)
10906 dynamic_linker=no
10907 ;;
10908esac
10909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10910$as_echo "$dynamic_linker" >&6; }
10911test "$dynamic_linker" = no && can_build_shared=no
10912
10913variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10914if test "$GCC" = yes; then
10915 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10916fi
10917
10918if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10919 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10920fi
10921if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10922 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10923fi
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11017$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11018hardcode_action=
11019if test -n "$hardcode_libdir_flag_spec" ||
11020 test -n "$runpath_var" ||
11021 test "X$hardcode_automatic" = "Xyes" ; then
11022
11023 # We can hardcode non-existent directories.
11024 if test "$hardcode_direct" != no &&
11025 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11026 # have to relink, otherwise we might link with an installed library
11027 # when we should be linking with a yet-to-be-installed one
11028 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11029 test "$hardcode_minus_L" != no; then
11030 # Linking always hardcodes the temporary library directory.
11031 hardcode_action=relink
11032 else
11033 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11034 hardcode_action=immediate
11035 fi
11036else
11037 # We cannot hardcode anything, or else we can only hardcode existing
11038 # directories.
11039 hardcode_action=unsupported
11040fi
11041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11042$as_echo "$hardcode_action" >&6; }
11043
11044if test "$hardcode_action" = relink ||
11045 test "$inherit_rpath" = yes; then
11046 # Fast installation is not supported
11047 enable_fast_install=no
11048elif test "$shlibpath_overrides_runpath" = yes ||
11049 test "$enable_shared" = no; then
11050 # Fast installation is not necessary
11051 enable_fast_install=needless
11052fi
11053
11054
11055
11056
11057
11058
11059 if test "x$enable_dlopen" != xyes; then
11060 enable_dlopen=unknown
11061 enable_dlopen_self=unknown
11062 enable_dlopen_self_static=unknown
11063else
11064 lt_cv_dlopen=no
11065 lt_cv_dlopen_libs=
11066
11067 case $host_os in
11068 beos*)
11069 lt_cv_dlopen="load_add_on"
11070 lt_cv_dlopen_libs=
11071 lt_cv_dlopen_self=yes
11072 ;;
11073
11074 mingw* | pw32* | cegcc*)
11075 lt_cv_dlopen="LoadLibrary"
11076 lt_cv_dlopen_libs=
11077 ;;
11078
11079 cygwin*)
11080 lt_cv_dlopen="dlopen"
11081 lt_cv_dlopen_libs=
11082 ;;
11083
11084 darwin*)
11085 # if libdl is installed we need to link against it
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11087$as_echo_n "checking for dlopen in -ldl... " >&6; }
ea2e69a4 11088if ${ac_cv_lib_dl_dlopen+:} false; then :
e440a328 11089 $as_echo_n "(cached) " >&6
11090else
11091 ac_check_lib_save_LIBS=$LIBS
11092LIBS="-ldl $LIBS"
11093cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11094/* end confdefs.h. */
11095
11096/* Override any GCC internal prototype to avoid an error.
11097 Use char because int might match the return type of a GCC
11098 builtin and then its argument prototype would still apply. */
11099#ifdef __cplusplus
11100extern "C"
11101#endif
11102char dlopen ();
11103int
11104main ()
11105{
11106return dlopen ();
11107 ;
11108 return 0;
11109}
11110_ACEOF
11111if ac_fn_c_try_link "$LINENO"; then :
11112 ac_cv_lib_dl_dlopen=yes
11113else
11114 ac_cv_lib_dl_dlopen=no
11115fi
11116rm -f core conftest.err conftest.$ac_objext \
11117 conftest$ac_exeext conftest.$ac_ext
11118LIBS=$ac_check_lib_save_LIBS
11119fi
11120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11121$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
ea2e69a4 11122if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
e440a328 11123 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11124else
11125
11126 lt_cv_dlopen="dyld"
11127 lt_cv_dlopen_libs=
11128 lt_cv_dlopen_self=yes
11129
11130fi
11131
11132 ;;
11133
11134 *)
11135 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
ea2e69a4 11136if test "x$ac_cv_func_shl_load" = xyes; then :
e440a328 11137 lt_cv_dlopen="shl_load"
11138else
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11140$as_echo_n "checking for shl_load in -ldld... " >&6; }
ea2e69a4 11141if ${ac_cv_lib_dld_shl_load+:} false; then :
e440a328 11142 $as_echo_n "(cached) " >&6
11143else
11144 ac_check_lib_save_LIBS=$LIBS
11145LIBS="-ldld $LIBS"
11146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11147/* end confdefs.h. */
11148
11149/* Override any GCC internal prototype to avoid an error.
11150 Use char because int might match the return type of a GCC
11151 builtin and then its argument prototype would still apply. */
11152#ifdef __cplusplus
11153extern "C"
11154#endif
11155char shl_load ();
11156int
11157main ()
11158{
11159return shl_load ();
11160 ;
11161 return 0;
11162}
11163_ACEOF
11164if ac_fn_c_try_link "$LINENO"; then :
11165 ac_cv_lib_dld_shl_load=yes
11166else
11167 ac_cv_lib_dld_shl_load=no
11168fi
11169rm -f core conftest.err conftest.$ac_objext \
11170 conftest$ac_exeext conftest.$ac_ext
11171LIBS=$ac_check_lib_save_LIBS
11172fi
11173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11174$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
ea2e69a4 11175if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
e440a328 11176 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11177else
11178 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
ea2e69a4 11179if test "x$ac_cv_func_dlopen" = xyes; then :
e440a328 11180 lt_cv_dlopen="dlopen"
11181else
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11183$as_echo_n "checking for dlopen in -ldl... " >&6; }
ea2e69a4 11184if ${ac_cv_lib_dl_dlopen+:} false; then :
e440a328 11185 $as_echo_n "(cached) " >&6
11186else
11187 ac_check_lib_save_LIBS=$LIBS
11188LIBS="-ldl $LIBS"
11189cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11190/* end confdefs.h. */
11191
11192/* Override any GCC internal prototype to avoid an error.
11193 Use char because int might match the return type of a GCC
11194 builtin and then its argument prototype would still apply. */
11195#ifdef __cplusplus
11196extern "C"
11197#endif
11198char dlopen ();
11199int
11200main ()
11201{
11202return dlopen ();
11203 ;
11204 return 0;
11205}
11206_ACEOF
11207if ac_fn_c_try_link "$LINENO"; then :
11208 ac_cv_lib_dl_dlopen=yes
11209else
11210 ac_cv_lib_dl_dlopen=no
11211fi
11212rm -f core conftest.err conftest.$ac_objext \
11213 conftest$ac_exeext conftest.$ac_ext
11214LIBS=$ac_check_lib_save_LIBS
11215fi
11216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11217$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
ea2e69a4 11218if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
e440a328 11219 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11220else
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11222$as_echo_n "checking for dlopen in -lsvld... " >&6; }
ea2e69a4 11223if ${ac_cv_lib_svld_dlopen+:} false; then :
e440a328 11224 $as_echo_n "(cached) " >&6
11225else
11226 ac_check_lib_save_LIBS=$LIBS
11227LIBS="-lsvld $LIBS"
11228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11229/* end confdefs.h. */
11230
11231/* Override any GCC internal prototype to avoid an error.
11232 Use char because int might match the return type of a GCC
11233 builtin and then its argument prototype would still apply. */
11234#ifdef __cplusplus
11235extern "C"
11236#endif
11237char dlopen ();
11238int
11239main ()
11240{
11241return dlopen ();
11242 ;
11243 return 0;
11244}
11245_ACEOF
11246if ac_fn_c_try_link "$LINENO"; then :
11247 ac_cv_lib_svld_dlopen=yes
11248else
11249 ac_cv_lib_svld_dlopen=no
11250fi
11251rm -f core conftest.err conftest.$ac_objext \
11252 conftest$ac_exeext conftest.$ac_ext
11253LIBS=$ac_check_lib_save_LIBS
11254fi
11255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11256$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
ea2e69a4 11257if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
e440a328 11258 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11259else
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11261$as_echo_n "checking for dld_link in -ldld... " >&6; }
ea2e69a4 11262if ${ac_cv_lib_dld_dld_link+:} false; then :
e440a328 11263 $as_echo_n "(cached) " >&6
11264else
11265 ac_check_lib_save_LIBS=$LIBS
11266LIBS="-ldld $LIBS"
11267cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11268/* end confdefs.h. */
11269
11270/* Override any GCC internal prototype to avoid an error.
11271 Use char because int might match the return type of a GCC
11272 builtin and then its argument prototype would still apply. */
11273#ifdef __cplusplus
11274extern "C"
11275#endif
11276char dld_link ();
11277int
11278main ()
11279{
11280return dld_link ();
11281 ;
11282 return 0;
11283}
11284_ACEOF
11285if ac_fn_c_try_link "$LINENO"; then :
11286 ac_cv_lib_dld_dld_link=yes
11287else
11288 ac_cv_lib_dld_dld_link=no
11289fi
11290rm -f core conftest.err conftest.$ac_objext \
11291 conftest$ac_exeext conftest.$ac_ext
11292LIBS=$ac_check_lib_save_LIBS
11293fi
11294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11295$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
ea2e69a4 11296if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
e440a328 11297 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11298fi
11299
11300
11301fi
11302
11303
11304fi
11305
11306
11307fi
11308
11309
11310fi
11311
11312
11313fi
11314
11315 ;;
11316 esac
11317
11318 if test "x$lt_cv_dlopen" != xno; then
11319 enable_dlopen=yes
11320 else
11321 enable_dlopen=no
11322 fi
11323
11324 case $lt_cv_dlopen in
11325 dlopen)
11326 save_CPPFLAGS="$CPPFLAGS"
11327 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11328
11329 save_LDFLAGS="$LDFLAGS"
11330 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11331
11332 save_LIBS="$LIBS"
11333 LIBS="$lt_cv_dlopen_libs $LIBS"
11334
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11336$as_echo_n "checking whether a program can dlopen itself... " >&6; }
ea2e69a4 11337if ${lt_cv_dlopen_self+:} false; then :
e440a328 11338 $as_echo_n "(cached) " >&6
11339else
11340 if test "$cross_compiling" = yes; then :
11341 lt_cv_dlopen_self=cross
11342else
11343 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11344 lt_status=$lt_dlunknown
11345 cat > conftest.$ac_ext <<_LT_EOF
c6ad139d 11346#line 11346 "configure"
e440a328 11347#include "confdefs.h"
11348
11349#if HAVE_DLFCN_H
11350#include <dlfcn.h>
11351#endif
11352
11353#include <stdio.h>
11354
11355#ifdef RTLD_GLOBAL
11356# define LT_DLGLOBAL RTLD_GLOBAL
11357#else
11358# ifdef DL_GLOBAL
11359# define LT_DLGLOBAL DL_GLOBAL
11360# else
11361# define LT_DLGLOBAL 0
11362# endif
11363#endif
11364
11365/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11366 find out it does not work in some platform. */
11367#ifndef LT_DLLAZY_OR_NOW
11368# ifdef RTLD_LAZY
11369# define LT_DLLAZY_OR_NOW RTLD_LAZY
11370# else
11371# ifdef DL_LAZY
11372# define LT_DLLAZY_OR_NOW DL_LAZY
11373# else
11374# ifdef RTLD_NOW
11375# define LT_DLLAZY_OR_NOW RTLD_NOW
11376# else
11377# ifdef DL_NOW
11378# define LT_DLLAZY_OR_NOW DL_NOW
11379# else
11380# define LT_DLLAZY_OR_NOW 0
11381# endif
11382# endif
11383# endif
11384# endif
11385#endif
11386
11387/* When -fvisbility=hidden is used, assume the code has been annotated
11388 correspondingly for the symbols needed. */
11389#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11390void fnord () __attribute__((visibility("default")));
11391#endif
11392
11393void fnord () { int i=42; }
11394int main ()
11395{
11396 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11397 int status = $lt_dlunknown;
11398
11399 if (self)
11400 {
11401 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11402 else
11403 {
11404 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11405 else puts (dlerror ());
11406 }
11407 /* dlclose (self); */
11408 }
11409 else
11410 puts (dlerror ());
11411
11412 return status;
11413}
11414_LT_EOF
11415 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11416 (eval $ac_link) 2>&5
11417 ac_status=$?
11418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11419 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11420 (./conftest; exit; ) >&5 2>/dev/null
11421 lt_status=$?
11422 case x$lt_status in
11423 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11424 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11425 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11426 esac
11427 else :
11428 # compilation failed
11429 lt_cv_dlopen_self=no
11430 fi
11431fi
11432rm -fr conftest*
11433
11434
11435fi
11436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11437$as_echo "$lt_cv_dlopen_self" >&6; }
11438
11439 if test "x$lt_cv_dlopen_self" = xyes; then
11440 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11442$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
ea2e69a4 11443if ${lt_cv_dlopen_self_static+:} false; then :
e440a328 11444 $as_echo_n "(cached) " >&6
11445else
11446 if test "$cross_compiling" = yes; then :
11447 lt_cv_dlopen_self_static=cross
11448else
11449 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11450 lt_status=$lt_dlunknown
11451 cat > conftest.$ac_ext <<_LT_EOF
c6ad139d 11452#line 11452 "configure"
e440a328 11453#include "confdefs.h"
11454
11455#if HAVE_DLFCN_H
11456#include <dlfcn.h>
11457#endif
11458
11459#include <stdio.h>
11460
11461#ifdef RTLD_GLOBAL
11462# define LT_DLGLOBAL RTLD_GLOBAL
11463#else
11464# ifdef DL_GLOBAL
11465# define LT_DLGLOBAL DL_GLOBAL
11466# else
11467# define LT_DLGLOBAL 0
11468# endif
11469#endif
11470
11471/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11472 find out it does not work in some platform. */
11473#ifndef LT_DLLAZY_OR_NOW
11474# ifdef RTLD_LAZY
11475# define LT_DLLAZY_OR_NOW RTLD_LAZY
11476# else
11477# ifdef DL_LAZY
11478# define LT_DLLAZY_OR_NOW DL_LAZY
11479# else
11480# ifdef RTLD_NOW
11481# define LT_DLLAZY_OR_NOW RTLD_NOW
11482# else
11483# ifdef DL_NOW
11484# define LT_DLLAZY_OR_NOW DL_NOW
11485# else
11486# define LT_DLLAZY_OR_NOW 0
11487# endif
11488# endif
11489# endif
11490# endif
11491#endif
11492
11493/* When -fvisbility=hidden is used, assume the code has been annotated
11494 correspondingly for the symbols needed. */
11495#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11496void fnord () __attribute__((visibility("default")));
11497#endif
11498
11499void fnord () { int i=42; }
11500int main ()
11501{
11502 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11503 int status = $lt_dlunknown;
11504
11505 if (self)
11506 {
11507 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11508 else
11509 {
11510 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11511 else puts (dlerror ());
11512 }
11513 /* dlclose (self); */
11514 }
11515 else
11516 puts (dlerror ());
11517
11518 return status;
11519}
11520_LT_EOF
11521 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11522 (eval $ac_link) 2>&5
11523 ac_status=$?
11524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11525 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11526 (./conftest; exit; ) >&5 2>/dev/null
11527 lt_status=$?
11528 case x$lt_status in
11529 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11530 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11531 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11532 esac
11533 else :
11534 # compilation failed
11535 lt_cv_dlopen_self_static=no
11536 fi
11537fi
11538rm -fr conftest*
11539
11540
11541fi
11542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11543$as_echo "$lt_cv_dlopen_self_static" >&6; }
11544 fi
11545
11546 CPPFLAGS="$save_CPPFLAGS"
11547 LDFLAGS="$save_LDFLAGS"
11548 LIBS="$save_LIBS"
11549 ;;
11550 esac
11551
11552 case $lt_cv_dlopen_self in
11553 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11554 *) enable_dlopen_self=unknown ;;
11555 esac
11556
11557 case $lt_cv_dlopen_self_static in
11558 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11559 *) enable_dlopen_self_static=unknown ;;
11560 esac
11561fi
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579striplib=
11580old_striplib=
11581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11582$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11583if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11584 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11585 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11587$as_echo "yes" >&6; }
11588else
11589# FIXME - insert some real tests, host_os isn't really good enough
11590 case $host_os in
11591 darwin*)
11592 if test -n "$STRIP" ; then
11593 striplib="$STRIP -x"
11594 old_striplib="$STRIP -S"
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11596$as_echo "yes" >&6; }
11597 else
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11599$as_echo "no" >&6; }
11600 fi
11601 ;;
11602 *)
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11604$as_echo "no" >&6; }
11605 ;;
11606 esac
11607fi
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620 # Report which library types will actually be built
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11622$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11624$as_echo "$can_build_shared" >&6; }
11625
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11627$as_echo_n "checking whether to build shared libraries... " >&6; }
11628 test "$can_build_shared" = "no" && enable_shared=no
11629
11630 # On AIX, shared libraries and static libraries use the same namespace, and
11631 # are all built from PIC.
11632 case $host_os in
11633 aix3*)
11634 test "$enable_shared" = yes && enable_static=no
11635 if test -n "$RANLIB"; then
11636 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11637 postinstall_cmds='$RANLIB $lib'
11638 fi
11639 ;;
11640
11641 aix[4-9]*)
11642 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11643 test "$enable_shared" = yes && enable_static=no
11644 fi
11645 ;;
11646 esac
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11648$as_echo "$enable_shared" >&6; }
11649
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11651$as_echo_n "checking whether to build static libraries... " >&6; }
11652 # Make sure either enable_shared or enable_static is yes.
11653 test "$enable_shared" = yes || enable_static=yes
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11655$as_echo "$enable_static" >&6; }
11656
11657
11658
11659
11660fi
11661ac_ext=c
11662ac_cpp='$CPP $CPPFLAGS'
11663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11665ac_compiler_gnu=$ac_cv_c_compiler_gnu
11666
11667CC="$lt_save_CC"
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681# Source file extension for Go test sources.
11682ac_ext=go
11683
11684# Object file extension for compiled Go test sources.
11685objext=o
11686objext_GO=$objext
11687
11688# Code to be used in simple compile tests
11689lt_simple_compile_test_code="package main; func main() { }"
11690
11691# Code to be used in simple link tests
11692lt_simple_link_test_code='package main; func main() { }'
11693
11694# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11695
11696
11697
11698
11699
11700
11701# If no C compiler was specified, use CC.
11702LTCC=${LTCC-"$CC"}
11703
11704# If no C compiler flags were specified, use CFLAGS.
11705LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11706
11707# Allow CC to be a program name with arguments.
11708compiler=$CC
11709
11710
11711# save warnings/boilerplate of simple test code
11712ac_outfile=conftest.$ac_objext
11713echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11714eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11715_lt_compiler_boilerplate=`cat conftest.err`
11716$RM conftest*
11717
11718ac_outfile=conftest.$ac_objext
11719echo "$lt_simple_link_test_code" >conftest.$ac_ext
11720eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11721_lt_linker_boilerplate=`cat conftest.err`
11722$RM -r conftest*
11723
11724
11725# Allow CC to be a program name with arguments.
11726lt_save_CC="$CC"
11727lt_save_GCC="$GCC"
11728GCC=yes
11729CC=${GOC-"gccgo"}
11730compiler=$CC
11731compiler_GO=$CC
11732LD_GO="$LD"
11733for cc_temp in $compiler""; do
11734 case $cc_temp in
11735 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11736 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11737 \-*) ;;
11738 *) break;;
11739 esac
11740done
11741cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11742
11743
11744# Go did not exist at the time GCC didn't implicitly link libc in.
11745archive_cmds_need_lc_GO=no
11746
11747old_archive_cmds_GO=$old_archive_cmds
11748
11749## CAVEAT EMPTOR:
11750## There is no encapsulation within the following macros, do not change
11751## the running order or otherwise move them around unless you know exactly
11752## what you are doing...
11753if test -n "$compiler"; then
11754
11755lt_prog_compiler_no_builtin_flag_GO=
11756
11757if test "$GCC" = yes; then
11758 case $cc_basename in
11759 nvcc*)
11760 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11761 *)
11762 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11763 esac
11764
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11766$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
ea2e69a4 11767if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
e440a328 11768 $as_echo_n "(cached) " >&6
11769else
11770 lt_cv_prog_compiler_rtti_exceptions=no
11771 ac_outfile=conftest.$ac_objext
11772 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11773 lt_compiler_flag="-fno-rtti -fno-exceptions"
11774 # Insert the option either (1) after the last *FLAGS variable, or
11775 # (2) before a word containing "conftest.", or (3) at the end.
11776 # Note that $ac_compile itself does not contain backslashes and begins
11777 # with a dollar sign (not a hyphen), so the echo should work correctly.
11778 # The option is referenced via a variable to avoid confusing sed.
11779 lt_compile=`echo "$ac_compile" | $SED \
11780 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11781 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11782 -e 's:$: $lt_compiler_flag:'`
11783 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11784 (eval "$lt_compile" 2>conftest.err)
11785 ac_status=$?
11786 cat conftest.err >&5
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 if (exit $ac_status) && test -s "$ac_outfile"; then
11789 # The compiler can only warn and ignore the option if not recognized
11790 # So say no if there are warnings other than the usual output.
11791 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11792 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11793 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11794 lt_cv_prog_compiler_rtti_exceptions=yes
11795 fi
11796 fi
11797 $RM conftest*
11798
11799fi
11800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11801$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11802
11803if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11804 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11805else
11806 :
11807fi
11808
11809fi
11810
11811
11812
11813 lt_prog_compiler_wl_GO=
11814lt_prog_compiler_pic_GO=
11815lt_prog_compiler_static_GO=
11816
11817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11818$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11819
11820 if test "$GCC" = yes; then
11821 lt_prog_compiler_wl_GO='-Wl,'
11822 lt_prog_compiler_static_GO='-static'
11823
11824 case $host_os in
11825 aix*)
11826 # All AIX code is PIC.
11827 if test "$host_cpu" = ia64; then
11828 # AIX 5 now supports IA64 processor
11829 lt_prog_compiler_static_GO='-Bstatic'
11830 fi
31d696fa 11831 lt_prog_compiler_pic_GO='-fPIC'
e440a328 11832 ;;
11833
11834 amigaos*)
11835 case $host_cpu in
11836 powerpc)
11837 # see comment about AmigaOS4 .so support
11838 lt_prog_compiler_pic_GO='-fPIC'
11839 ;;
11840 m68k)
11841 # FIXME: we need at least 68020 code to build shared libraries, but
11842 # adding the `-m68020' flag to GCC prevents building anything better,
11843 # like `-m68040'.
11844 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11845 ;;
11846 esac
11847 ;;
11848
11849 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11850 # PIC is the default for these OSes.
11851 ;;
11852
11853 mingw* | cygwin* | pw32* | os2* | cegcc*)
11854 # This hack is so that the source file can tell whether it is being
11855 # built for inclusion in a dll (and should export symbols for example).
11856 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11857 # (--disable-auto-import) libraries
11858 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11859 ;;
11860
11861 darwin* | rhapsody*)
11862 # PIC is the default on this platform
11863 # Common symbols not allowed in MH_DYLIB files
11864 lt_prog_compiler_pic_GO='-fno-common'
11865 ;;
11866
11867 haiku*)
11868 # PIC is the default for Haiku.
11869 # The "-static" flag exists, but is broken.
11870 lt_prog_compiler_static_GO=
11871 ;;
11872
11873 hpux*)
11874 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11875 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11876 # sets the default TLS model and affects inlining.
11877 case $host_cpu in
11878 hppa*64*)
11879 # +Z the default
11880 ;;
11881 *)
11882 lt_prog_compiler_pic_GO='-fPIC'
11883 ;;
11884 esac
11885 ;;
11886
11887 interix[3-9]*)
11888 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11889 # Instead, we relocate shared libraries at runtime.
11890 ;;
11891
11892 msdosdjgpp*)
11893 # Just because we use GCC doesn't mean we suddenly get shared libraries
11894 # on systems that don't support them.
11895 lt_prog_compiler_can_build_shared_GO=no
11896 enable_shared=no
11897 ;;
11898
11899 *nto* | *qnx*)
11900 # QNX uses GNU C++, but need to define -shared option too, otherwise
11901 # it will coredump.
11902 lt_prog_compiler_pic_GO='-fPIC -shared'
11903 ;;
11904
11905 sysv4*MP*)
11906 if test -d /usr/nec; then
11907 lt_prog_compiler_pic_GO=-Kconform_pic
11908 fi
11909 ;;
11910
11911 *)
11912 lt_prog_compiler_pic_GO='-fPIC'
11913 ;;
11914 esac
11915
11916 case $cc_basename in
11917 nvcc*) # Cuda Compiler Driver 2.2
11918 lt_prog_compiler_wl_GO='-Xlinker '
11919 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11920 ;;
11921 esac
11922 else
11923 # PORTME Check for flag to pass linker flags through the system compiler.
11924 case $host_os in
11925 aix*)
11926 lt_prog_compiler_wl_GO='-Wl,'
11927 if test "$host_cpu" = ia64; then
11928 # AIX 5 now supports IA64 processor
11929 lt_prog_compiler_static_GO='-Bstatic'
11930 else
11931 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11932 fi
11933 ;;
11934
11935 mingw* | cygwin* | pw32* | os2* | cegcc*)
11936 # This hack is so that the source file can tell whether it is being
11937 # built for inclusion in a dll (and should export symbols for example).
11938 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11939 ;;
11940
11941 hpux9* | hpux10* | hpux11*)
11942 lt_prog_compiler_wl_GO='-Wl,'
11943 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11944 # not for PA HP-UX.
11945 case $host_cpu in
11946 hppa*64*|ia64*)
11947 # +Z the default
11948 ;;
11949 *)
11950 lt_prog_compiler_pic_GO='+Z'
11951 ;;
11952 esac
11953 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11954 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11955 ;;
11956
11957 irix5* | irix6* | nonstopux*)
11958 lt_prog_compiler_wl_GO='-Wl,'
11959 # PIC (with -KPIC) is the default.
11960 lt_prog_compiler_static_GO='-non_shared'
11961 ;;
11962
11963 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11964 case $cc_basename in
11965 # old Intel for x86_64 which still supported -KPIC.
11966 ecc*)
11967 lt_prog_compiler_wl_GO='-Wl,'
11968 lt_prog_compiler_pic_GO='-KPIC'
11969 lt_prog_compiler_static_GO='-static'
11970 ;;
11971 # icc used to be incompatible with GCC.
11972 # ICC 10 doesn't accept -KPIC any more.
11973 icc* | ifort*)
11974 lt_prog_compiler_wl_GO='-Wl,'
11975 lt_prog_compiler_pic_GO='-fPIC'
11976 lt_prog_compiler_static_GO='-static'
11977 ;;
11978 # Lahey Fortran 8.1.
11979 lf95*)
11980 lt_prog_compiler_wl_GO='-Wl,'
11981 lt_prog_compiler_pic_GO='--shared'
11982 lt_prog_compiler_static_GO='--static'
11983 ;;
11984 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11985 # Portland Group compilers (*not* the Pentium gcc compiler,
11986 # which looks to be a dead project)
11987 lt_prog_compiler_wl_GO='-Wl,'
11988 lt_prog_compiler_pic_GO='-fpic'
11989 lt_prog_compiler_static_GO='-Bstatic'
11990 ;;
11991 ccc*)
11992 lt_prog_compiler_wl_GO='-Wl,'
11993 # All Alpha code is PIC.
11994 lt_prog_compiler_static_GO='-non_shared'
11995 ;;
11996 xl* | bgxl* | bgf* | mpixl*)
11997 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11998 lt_prog_compiler_wl_GO='-Wl,'
11999 lt_prog_compiler_pic_GO='-qpic'
12000 lt_prog_compiler_static_GO='-qstaticlink'
12001 ;;
12002 *)
12003 case `$CC -V 2>&1 | sed 5q` in
12004 *Sun\ F* | *Sun*Fortran*)
12005 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12006 lt_prog_compiler_pic_GO='-KPIC'
12007 lt_prog_compiler_static_GO='-Bstatic'
12008 lt_prog_compiler_wl_GO=''
12009 ;;
12010 *Sun\ C*)
12011 # Sun C 5.9
12012 lt_prog_compiler_pic_GO='-KPIC'
12013 lt_prog_compiler_static_GO='-Bstatic'
12014 lt_prog_compiler_wl_GO='-Wl,'
12015 ;;
12016 esac
12017 ;;
12018 esac
12019 ;;
12020
12021 newsos6)
12022 lt_prog_compiler_pic_GO='-KPIC'
12023 lt_prog_compiler_static_GO='-Bstatic'
12024 ;;
12025
12026 *nto* | *qnx*)
12027 # QNX uses GNU C++, but need to define -shared option too, otherwise
12028 # it will coredump.
12029 lt_prog_compiler_pic_GO='-fPIC -shared'
12030 ;;
12031
12032 osf3* | osf4* | osf5*)
12033 lt_prog_compiler_wl_GO='-Wl,'
12034 # All OSF/1 code is PIC.
12035 lt_prog_compiler_static_GO='-non_shared'
12036 ;;
12037
12038 rdos*)
12039 lt_prog_compiler_static_GO='-non_shared'
12040 ;;
12041
12042 solaris*)
12043 lt_prog_compiler_pic_GO='-KPIC'
12044 lt_prog_compiler_static_GO='-Bstatic'
12045 case $cc_basename in
12046 f77* | f90* | f95*)
12047 lt_prog_compiler_wl_GO='-Qoption ld ';;
12048 *)
12049 lt_prog_compiler_wl_GO='-Wl,';;
12050 esac
12051 ;;
12052
12053 sunos4*)
12054 lt_prog_compiler_wl_GO='-Qoption ld '
12055 lt_prog_compiler_pic_GO='-PIC'
12056 lt_prog_compiler_static_GO='-Bstatic'
12057 ;;
12058
12059 sysv4 | sysv4.2uw2* | sysv4.3*)
12060 lt_prog_compiler_wl_GO='-Wl,'
12061 lt_prog_compiler_pic_GO='-KPIC'
12062 lt_prog_compiler_static_GO='-Bstatic'
12063 ;;
12064
12065 sysv4*MP*)
12066 if test -d /usr/nec ;then
12067 lt_prog_compiler_pic_GO='-Kconform_pic'
12068 lt_prog_compiler_static_GO='-Bstatic'
12069 fi
12070 ;;
12071
12072 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12073 lt_prog_compiler_wl_GO='-Wl,'
12074 lt_prog_compiler_pic_GO='-KPIC'
12075 lt_prog_compiler_static_GO='-Bstatic'
12076 ;;
12077
12078 unicos*)
12079 lt_prog_compiler_wl_GO='-Wl,'
12080 lt_prog_compiler_can_build_shared_GO=no
12081 ;;
12082
12083 uts4*)
12084 lt_prog_compiler_pic_GO='-pic'
12085 lt_prog_compiler_static_GO='-Bstatic'
12086 ;;
12087
12088 *)
12089 lt_prog_compiler_can_build_shared_GO=no
12090 ;;
12091 esac
12092 fi
12093
12094case $host_os in
12095 # For platforms which do not support PIC, -DPIC is meaningless:
12096 *djgpp*)
12097 lt_prog_compiler_pic_GO=
12098 ;;
12099 *)
12100 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
12101 ;;
12102esac
12103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
12104$as_echo "$lt_prog_compiler_pic_GO" >&6; }
12105
12106
12107
12108#
12109# Check to make sure the PIC flag actually works.
12110#
12111if test -n "$lt_prog_compiler_pic_GO"; then
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
12113$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
ea2e69a4 12114if ${lt_cv_prog_compiler_pic_works_GO+:} false; then :
e440a328 12115 $as_echo_n "(cached) " >&6
12116else
12117 lt_cv_prog_compiler_pic_works_GO=no
12118 ac_outfile=conftest.$ac_objext
12119 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12120 lt_compiler_flag="$lt_prog_compiler_pic_GO"
12121 # Insert the option either (1) after the last *FLAGS variable, or
12122 # (2) before a word containing "conftest.", or (3) at the end.
12123 # Note that $ac_compile itself does not contain backslashes and begins
12124 # with a dollar sign (not a hyphen), so the echo should work correctly.
12125 # The option is referenced via a variable to avoid confusing sed.
12126 lt_compile=`echo "$ac_compile" | $SED \
12127 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12128 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12129 -e 's:$: $lt_compiler_flag:'`
12130 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12131 (eval "$lt_compile" 2>conftest.err)
12132 ac_status=$?
12133 cat conftest.err >&5
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 if (exit $ac_status) && test -s "$ac_outfile"; then
12136 # The compiler can only warn and ignore the option if not recognized
12137 # So say no if there are warnings other than the usual output.
12138 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12139 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12140 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12141 lt_cv_prog_compiler_pic_works_GO=yes
12142 fi
12143 fi
12144 $RM conftest*
12145
12146fi
12147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
12148$as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
12149
12150if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
12151 case $lt_prog_compiler_pic_GO in
12152 "" | " "*) ;;
12153 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
12154 esac
12155else
12156 lt_prog_compiler_pic_GO=
12157 lt_prog_compiler_can_build_shared_GO=no
12158fi
12159
12160fi
12161
12162
12163
12164#
12165# Check to make sure the static flag actually works.
12166#
12167wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
12168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12169$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
ea2e69a4 12170if ${lt_cv_prog_compiler_static_works_GO+:} false; then :
e440a328 12171 $as_echo_n "(cached) " >&6
12172else
12173 lt_cv_prog_compiler_static_works_GO=no
12174 save_LDFLAGS="$LDFLAGS"
12175 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12176 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12177 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12178 # The linker can only warn and ignore the option if not recognized
12179 # So say no if there are warnings
12180 if test -s conftest.err; then
12181 # Append any errors to the config.log.
12182 cat conftest.err 1>&5
12183 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12184 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12185 if diff conftest.exp conftest.er2 >/dev/null; then
12186 lt_cv_prog_compiler_static_works_GO=yes
12187 fi
12188 else
12189 lt_cv_prog_compiler_static_works_GO=yes
12190 fi
12191 fi
12192 $RM -r conftest*
12193 LDFLAGS="$save_LDFLAGS"
12194
12195fi
12196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
12197$as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
12198
12199if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
12200 :
12201else
12202 lt_prog_compiler_static_GO=
12203fi
12204
12205
12206
12207
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12209$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ea2e69a4 12210if ${lt_cv_prog_compiler_c_o_GO+:} false; then :
e440a328 12211 $as_echo_n "(cached) " >&6
12212else
12213 lt_cv_prog_compiler_c_o_GO=no
12214 $RM -r conftest 2>/dev/null
12215 mkdir conftest
12216 cd conftest
12217 mkdir out
12218 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12219
12220 lt_compiler_flag="-o out/conftest2.$ac_objext"
12221 # Insert the option either (1) after the last *FLAGS variable, or
12222 # (2) before a word containing "conftest.", or (3) at the end.
12223 # Note that $ac_compile itself does not contain backslashes and begins
12224 # with a dollar sign (not a hyphen), so the echo should work correctly.
12225 lt_compile=`echo "$ac_compile" | $SED \
12226 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12227 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12228 -e 's:$: $lt_compiler_flag:'`
12229 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12230 (eval "$lt_compile" 2>out/conftest.err)
12231 ac_status=$?
12232 cat out/conftest.err >&5
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12235 then
12236 # The compiler can only warn and ignore the option if not recognized
12237 # So say no if there are warnings
12238 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12239 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12240 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12241 lt_cv_prog_compiler_c_o_GO=yes
12242 fi
12243 fi
12244 chmod u+w . 2>&5
12245 $RM conftest*
12246 # SGI C++ compiler will create directory out/ii_files/ for
12247 # template instantiation
12248 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12249 $RM out/* && rmdir out
12250 cd ..
12251 $RM -r conftest
12252 $RM conftest*
12253
12254fi
12255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12256$as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12257
12258
12259
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12261$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ea2e69a4 12262if ${lt_cv_prog_compiler_c_o_GO+:} false; then :
e440a328 12263 $as_echo_n "(cached) " >&6
12264else
12265 lt_cv_prog_compiler_c_o_GO=no
12266 $RM -r conftest 2>/dev/null
12267 mkdir conftest
12268 cd conftest
12269 mkdir out
12270 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12271
12272 lt_compiler_flag="-o out/conftest2.$ac_objext"
12273 # Insert the option either (1) after the last *FLAGS variable, or
12274 # (2) before a word containing "conftest.", or (3) at the end.
12275 # Note that $ac_compile itself does not contain backslashes and begins
12276 # with a dollar sign (not a hyphen), so the echo should work correctly.
12277 lt_compile=`echo "$ac_compile" | $SED \
12278 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12279 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12280 -e 's:$: $lt_compiler_flag:'`
12281 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12282 (eval "$lt_compile" 2>out/conftest.err)
12283 ac_status=$?
12284 cat out/conftest.err >&5
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12287 then
12288 # The compiler can only warn and ignore the option if not recognized
12289 # So say no if there are warnings
12290 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12291 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12292 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12293 lt_cv_prog_compiler_c_o_GO=yes
12294 fi
12295 fi
12296 chmod u+w . 2>&5
12297 $RM conftest*
12298 # SGI C++ compiler will create directory out/ii_files/ for
12299 # template instantiation
12300 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12301 $RM out/* && rmdir out
12302 cd ..
12303 $RM -r conftest
12304 $RM conftest*
12305
12306fi
12307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12308$as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12309
12310
12311
12312
12313hard_links="nottested"
12314if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
12315 # do not overwrite the value of need_locks provided by the user
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12317$as_echo_n "checking if we can lock with hard links... " >&6; }
12318 hard_links=yes
12319 $RM conftest*
12320 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12321 touch conftest.a
12322 ln conftest.a conftest.b 2>&5 || hard_links=no
12323 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12325$as_echo "$hard_links" >&6; }
12326 if test "$hard_links" = no; then
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12328$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12329 need_locks=warn
12330 fi
12331else
12332 need_locks=no
12333fi
12334
12335
12336
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12338$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12339
12340 runpath_var=
12341 allow_undefined_flag_GO=
12342 always_export_symbols_GO=no
12343 archive_cmds_GO=
12344 archive_expsym_cmds_GO=
12345 compiler_needs_object_GO=no
12346 enable_shared_with_static_runtimes_GO=no
12347 export_dynamic_flag_spec_GO=
12348 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12349 hardcode_automatic_GO=no
12350 hardcode_direct_GO=no
12351 hardcode_direct_absolute_GO=no
12352 hardcode_libdir_flag_spec_GO=
12353 hardcode_libdir_flag_spec_ld_GO=
12354 hardcode_libdir_separator_GO=
12355 hardcode_minus_L_GO=no
12356 hardcode_shlibpath_var_GO=unsupported
12357 inherit_rpath_GO=no
12358 link_all_deplibs_GO=unknown
12359 module_cmds_GO=
12360 module_expsym_cmds_GO=
12361 old_archive_from_new_cmds_GO=
12362 old_archive_from_expsyms_cmds_GO=
12363 thread_safe_flag_spec_GO=
12364 whole_archive_flag_spec_GO=
12365 # include_expsyms should be a list of space-separated symbols to be *always*
12366 # included in the symbol list
12367 include_expsyms_GO=
12368 # exclude_expsyms can be an extended regexp of symbols to exclude
12369 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12370 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12371 # as well as any symbol that contains `d'.
12372 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12373 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12374 # platforms (ab)use it in PIC code, but their linkers get confused if
12375 # the symbol is explicitly referenced. Since portable code cannot
12376 # rely on this symbol name, it's probably fine to never include it in
12377 # preloaded symbol tables.
12378 # Exclude shared library initialization/finalization symbols.
12379 extract_expsyms_cmds=
12380
12381 case $host_os in
12382 cygwin* | mingw* | pw32* | cegcc*)
12383 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12384 # When not using gcc, we currently assume that we are using
12385 # Microsoft Visual C++.
12386 if test "$GCC" != yes; then
12387 with_gnu_ld=no
12388 fi
12389 ;;
12390 interix*)
12391 # we just hope/assume this is gcc and not c89 (= MSVC++)
12392 with_gnu_ld=yes
12393 ;;
12394 openbsd*)
12395 with_gnu_ld=no
12396 ;;
12397 esac
12398
12399 ld_shlibs_GO=yes
12400
12401 # On some targets, GNU ld is compatible enough with the native linker
12402 # that we're better off using the native interface for both.
12403 lt_use_gnu_ld_interface=no
12404 if test "$with_gnu_ld" = yes; then
12405 case $host_os in
12406 aix*)
12407 # The AIX port of GNU ld has always aspired to compatibility
12408 # with the native linker. However, as the warning in the GNU ld
12409 # block says, versions before 2.19.5* couldn't really create working
12410 # shared libraries, regardless of the interface used.
12411 case `$LD -v 2>&1` in
12412 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12413 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12414 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12415 *)
12416 lt_use_gnu_ld_interface=yes
12417 ;;
12418 esac
12419 ;;
12420 *)
12421 lt_use_gnu_ld_interface=yes
12422 ;;
12423 esac
12424 fi
12425
12426 if test "$lt_use_gnu_ld_interface" = yes; then
12427 # If archive_cmds runs LD, not CC, wlarc should be empty
12428 wlarc='${wl}'
12429
12430 # Set some defaults for GNU ld with shared library support. These
12431 # are reset later if shared libraries are not supported. Putting them
12432 # here allows them to be overridden if necessary.
12433 runpath_var=LD_RUN_PATH
12434 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12435 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12436 # ancient GNU ld didn't support --whole-archive et. al.
12437 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12438 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12439 else
12440 whole_archive_flag_spec_GO=
12441 fi
12442 supports_anon_versioning=no
12443 case `$LD -v 2>&1` in
12444 *GNU\ gold*) supports_anon_versioning=yes ;;
12445 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12446 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12447 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12448 *\ 2.11.*) ;; # other 2.11 versions
12449 *) supports_anon_versioning=yes ;;
12450 esac
12451
12452 # See if GNU ld supports shared libraries.
12453 case $host_os in
12454 aix[3-9]*)
12455 # On AIX/PPC, the GNU linker is very broken
12456 if test "$host_cpu" != ia64; then
12457 ld_shlibs_GO=no
12458 cat <<_LT_EOF 1>&2
12459
12460*** Warning: the GNU linker, at least up to release 2.19, is reported
12461*** to be unable to reliably create shared libraries on AIX.
12462*** Therefore, libtool is disabling shared libraries support. If you
12463*** really care for shared libraries, you may want to install binutils
12464*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12465*** You will then need to restart the configuration process.
12466
12467_LT_EOF
12468 fi
12469 ;;
12470
12471 amigaos*)
12472 case $host_cpu in
12473 powerpc)
12474 # see comment about AmigaOS4 .so support
12475 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12476 archive_expsym_cmds_GO=''
12477 ;;
12478 m68k)
12479 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)'
12480 hardcode_libdir_flag_spec_GO='-L$libdir'
12481 hardcode_minus_L_GO=yes
12482 ;;
12483 esac
12484 ;;
12485
12486 beos*)
12487 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12488 allow_undefined_flag_GO=unsupported
12489 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12490 # support --undefined. This deserves some investigation. FIXME
12491 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12492 else
12493 ld_shlibs_GO=no
12494 fi
12495 ;;
12496
12497 cygwin* | mingw* | pw32* | cegcc*)
12498 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12499 # as there is no search path for DLLs.
12500 hardcode_libdir_flag_spec_GO='-L$libdir'
12501 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12502 allow_undefined_flag_GO=unsupported
12503 always_export_symbols_GO=no
12504 enable_shared_with_static_runtimes_GO=yes
12505 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12506
12507 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12508 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12509 # If the export-symbols file already is a .def file (1st line
12510 # is EXPORTS), use it as is; otherwise, prepend...
12511 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12512 cp $export_symbols $output_objdir/$soname.def;
12513 else
12514 echo EXPORTS > $output_objdir/$soname.def;
12515 cat $export_symbols >> $output_objdir/$soname.def;
12516 fi~
12517 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12518 else
12519 ld_shlibs_GO=no
12520 fi
12521 ;;
12522
12523 haiku*)
12524 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12525 link_all_deplibs_GO=yes
12526 ;;
12527
12528 interix[3-9]*)
12529 hardcode_direct_GO=no
12530 hardcode_shlibpath_var_GO=no
12531 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12532 export_dynamic_flag_spec_GO='${wl}-E'
12533 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12534 # Instead, shared libraries are loaded at an image base (0x10000000 by
12535 # default) and relocated if they conflict, which is a slow very memory
12536 # consuming and fragmenting process. To avoid this, we pick a random,
12537 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12538 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12539 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'
12540 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'
12541 ;;
12542
12543 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12544 tmp_diet=no
12545 if test "$host_os" = linux-dietlibc; then
12546 case $cc_basename in
12547 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12548 esac
12549 fi
12550 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12551 && test "$tmp_diet" = no
12552 then
12553 tmp_addflag=
12554 tmp_sharedflag='-shared'
12555 case $cc_basename,$host_cpu in
12556 pgcc*) # Portland Group C compiler
12557 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'
12558 tmp_addflag=' $pic_flag'
12559 ;;
12560 pgf77* | pgf90* | pgf95* | pgfortran*)
12561 # Portland Group f77 and f90 compilers
12562 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'
12563 tmp_addflag=' $pic_flag -Mnomain' ;;
12564 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12565 tmp_addflag=' -i_dynamic' ;;
12566 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12567 tmp_addflag=' -i_dynamic -nofor_main' ;;
12568 ifc* | ifort*) # Intel Fortran compiler
12569 tmp_addflag=' -nofor_main' ;;
12570 lf95*) # Lahey Fortran 8.1
12571 whole_archive_flag_spec_GO=
12572 tmp_sharedflag='--shared' ;;
12573 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12574 tmp_sharedflag='-qmkshrobj'
12575 tmp_addflag= ;;
12576 nvcc*) # Cuda Compiler Driver 2.2
12577 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'
12578 compiler_needs_object_GO=yes
12579 ;;
12580 esac
12581 case `$CC -V 2>&1 | sed 5q` in
12582 *Sun\ C*) # Sun C 5.9
12583 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'
12584 compiler_needs_object_GO=yes
12585 tmp_sharedflag='-G' ;;
12586 *Sun\ F*) # Sun Fortran 8.3
12587 tmp_sharedflag='-G' ;;
12588 esac
12589 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12590
12591 if test "x$supports_anon_versioning" = xyes; then
12592 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12593 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12594 echo "local: *; };" >> $output_objdir/$libname.ver~
12595 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12596 fi
12597
12598 case $cc_basename in
12599 xlf* | bgf* | bgxlf* | mpixlf*)
12600 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12601 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12602 hardcode_libdir_flag_spec_GO=
12603 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12604 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12605 if test "x$supports_anon_versioning" = xyes; then
12606 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12607 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12608 echo "local: *; };" >> $output_objdir/$libname.ver~
12609 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12610 fi
12611 ;;
12612 esac
12613 else
12614 ld_shlibs_GO=no
12615 fi
12616 ;;
12617
12618 netbsd*)
12619 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12620 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12621 wlarc=
12622 else
12623 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12624 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12625 fi
12626 ;;
12627
12628 solaris*)
12629 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12630 ld_shlibs_GO=no
12631 cat <<_LT_EOF 1>&2
12632
12633*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12634*** create shared libraries on Solaris systems. Therefore, libtool
12635*** is disabling shared libraries support. We urge you to upgrade GNU
12636*** binutils to release 2.9.1 or newer. Another option is to modify
12637*** your PATH or compiler configuration so that the native linker is
12638*** used, and then restart.
12639
12640_LT_EOF
12641 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12642 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12643 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12644 else
12645 ld_shlibs_GO=no
12646 fi
12647 ;;
12648
12649 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12650 case `$LD -v 2>&1` in
12651 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12652 ld_shlibs_GO=no
12653 cat <<_LT_EOF 1>&2
12654
12655*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12656*** reliably create shared libraries on SCO systems. Therefore, libtool
12657*** is disabling shared libraries support. We urge you to upgrade GNU
12658*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12659*** your PATH or compiler configuration so that the native linker is
12660*** used, and then restart.
12661
12662_LT_EOF
12663 ;;
12664 *)
12665 # For security reasons, it is highly recommended that you always
12666 # use absolute paths for naming shared libraries, and exclude the
12667 # DT_RUNPATH tag from executables and libraries. But doing so
12668 # requires that you compile everything twice, which is a pain.
12669 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12670 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12671 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12672 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12673 else
12674 ld_shlibs_GO=no
12675 fi
12676 ;;
12677 esac
12678 ;;
12679
12680 sunos4*)
12681 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12682 wlarc=
12683 hardcode_direct_GO=yes
12684 hardcode_shlibpath_var_GO=no
12685 ;;
12686
12687 *)
12688 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12689 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12690 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12691 else
12692 ld_shlibs_GO=no
12693 fi
12694 ;;
12695 esac
12696
12697 if test "$ld_shlibs_GO" = no; then
12698 runpath_var=
12699 hardcode_libdir_flag_spec_GO=
12700 export_dynamic_flag_spec_GO=
12701 whole_archive_flag_spec_GO=
12702 fi
12703 else
12704 # PORTME fill in a description of your system's linker (not GNU ld)
12705 case $host_os in
12706 aix3*)
12707 allow_undefined_flag_GO=unsupported
12708 always_export_symbols_GO=yes
12709 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'
12710 # Note: this linker hardcodes the directories in LIBPATH if there
12711 # are no directories specified by -L.
12712 hardcode_minus_L_GO=yes
12713 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12714 # Neither direct hardcoding nor static linking is supported with a
12715 # broken collect2.
12716 hardcode_direct_GO=unsupported
12717 fi
12718 ;;
12719
12720 aix[4-9]*)
12721 if test "$host_cpu" = ia64; then
12722 # On IA64, the linker does run time linking by default, so we don't
12723 # have to do anything special.
12724 aix_use_runtimelinking=no
12725 exp_sym_flag='-Bexport'
12726 no_entry_flag=""
12727 else
12728 # If we're using GNU nm, then we don't want the "-C" option.
12729 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12730 # Also, AIX nm treats weak defined symbols like other global
12731 # defined symbols, whereas GNU nm marks them as "W".
12732 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12733 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'
12734 else
12735 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'
12736 fi
12737 aix_use_runtimelinking=no
12738
12739 # Test if we are trying to use run time linking or normal
12740 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12741 # need to do runtime linking.
12742 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12743 for ld_flag in $LDFLAGS; do
12744 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12745 aix_use_runtimelinking=yes
12746 break
12747 fi
12748 done
12749 ;;
12750 esac
12751
12752 exp_sym_flag='-bexport'
12753 no_entry_flag='-bnoentry'
12754 fi
12755
12756 # When large executables or shared objects are built, AIX ld can
12757 # have problems creating the table of contents. If linking a library
12758 # or program results in "error TOC overflow" add -mminimal-toc to
12759 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12760 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12761
12762 archive_cmds_GO=''
12763 hardcode_direct_GO=yes
12764 hardcode_direct_absolute_GO=yes
12765 hardcode_libdir_separator_GO=':'
12766 link_all_deplibs_GO=yes
12767 file_list_spec_GO='${wl}-f,'
12768
12769 if test "$GCC" = yes; then
12770 case $host_os in aix4.[012]|aix4.[012].*)
12771 # We only want to do this on AIX 4.2 and lower, the check
12772 # below for broken collect2 doesn't work under 4.3+
12773 collect2name=`${CC} -print-prog-name=collect2`
12774 if test -f "$collect2name" &&
12775 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12776 then
12777 # We have reworked collect2
12778 :
12779 else
12780 # We have old collect2
12781 hardcode_direct_GO=unsupported
12782 # It fails to find uninstalled libraries when the uninstalled
12783 # path is not listed in the libpath. Setting hardcode_minus_L
12784 # to unsupported forces relinking
12785 hardcode_minus_L_GO=yes
12786 hardcode_libdir_flag_spec_GO='-L$libdir'
12787 hardcode_libdir_separator_GO=
12788 fi
12789 ;;
12790 esac
12791 shared_flag='-shared'
12792 if test "$aix_use_runtimelinking" = yes; then
12793 shared_flag="$shared_flag "'${wl}-G'
12794 fi
12795 else
12796 # not using gcc
12797 if test "$host_cpu" = ia64; then
12798 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12799 # chokes on -Wl,-G. The following line is correct:
12800 shared_flag='-G'
12801 else
12802 if test "$aix_use_runtimelinking" = yes; then
12803 shared_flag='${wl}-G'
12804 else
12805 shared_flag='${wl}-bM:SRE'
12806 fi
12807 fi
12808 fi
12809
12810 export_dynamic_flag_spec_GO='${wl}-bexpall'
12811 # It seems that -bexpall does not export symbols beginning with
12812 # underscore (_), so it is better to generate a list of symbols to export.
12813 always_export_symbols_GO=yes
12814 if test "$aix_use_runtimelinking" = yes; then
12815 # Warning - without using the other runtime loading flags (-brtl),
12816 # -berok will link without error, but may produce a broken library.
12817 allow_undefined_flag_GO='-berok'
12818 # Determine the default libpath from the value encoded in an
12819 # empty executable.
12820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12821/* end confdefs.h. */
12822
12823int
12824main ()
12825{
12826
12827 ;
12828 return 0;
12829}
12830_ACEOF
12831if ac_fn_c_try_link "$LINENO"; then :
12832
12833lt_aix_libpath_sed='
12834 /Import File Strings/,/^$/ {
12835 /^0/ {
12836 s/^0 *\(.*\)$/\1/
12837 p
12838 }
12839 }'
12840aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12841# Check for a 64-bit object if we didn't find anything.
12842if test -z "$aix_libpath"; then
12843 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12844fi
12845fi
12846rm -f core conftest.err conftest.$ac_objext \
12847 conftest$ac_exeext conftest.$ac_ext
12848if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12849
12850 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12851 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"
12852 else
12853 if test "$host_cpu" = ia64; then
12854 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12855 allow_undefined_flag_GO="-z nodefs"
12856 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"
12857 else
12858 # Determine the default libpath from the value encoded in an
12859 # empty executable.
12860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12861/* end confdefs.h. */
12862
12863int
12864main ()
12865{
12866
12867 ;
12868 return 0;
12869}
12870_ACEOF
12871if ac_fn_c_try_link "$LINENO"; then :
12872
12873lt_aix_libpath_sed='
12874 /Import File Strings/,/^$/ {
12875 /^0/ {
12876 s/^0 *\(.*\)$/\1/
12877 p
12878 }
12879 }'
12880aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12881# Check for a 64-bit object if we didn't find anything.
12882if test -z "$aix_libpath"; then
12883 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12884fi
12885fi
12886rm -f core conftest.err conftest.$ac_objext \
12887 conftest$ac_exeext conftest.$ac_ext
12888if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12889
12890 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12891 # Warning - without using the other run time loading flags,
12892 # -berok will link without error, but may produce a broken library.
12893 no_undefined_flag_GO=' ${wl}-bernotok'
12894 allow_undefined_flag_GO=' ${wl}-berok'
12895 if test "$with_gnu_ld" = yes; then
12896 # We only use this code for GNU lds that support --whole-archive.
12897 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12898 else
12899 # Exported symbols can be pulled into shared objects from archives
12900 whole_archive_flag_spec_GO='$convenience'
12901 fi
12902 archive_cmds_need_lc_GO=yes
12903 # This is similar to how AIX traditionally builds its shared libraries.
12904 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'
12905 fi
12906 fi
12907 ;;
12908
12909 amigaos*)
12910 case $host_cpu in
12911 powerpc)
12912 # see comment about AmigaOS4 .so support
12913 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12914 archive_expsym_cmds_GO=''
12915 ;;
12916 m68k)
12917 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)'
12918 hardcode_libdir_flag_spec_GO='-L$libdir'
12919 hardcode_minus_L_GO=yes
12920 ;;
12921 esac
12922 ;;
12923
12924 bsdi[45]*)
12925 export_dynamic_flag_spec_GO=-rdynamic
12926 ;;
12927
12928 cygwin* | mingw* | pw32* | cegcc*)
12929 # When not using gcc, we currently assume that we are using
12930 # Microsoft Visual C++.
12931 # hardcode_libdir_flag_spec is actually meaningless, as there is
12932 # no search path for DLLs.
12933 hardcode_libdir_flag_spec_GO=' '
12934 allow_undefined_flag_GO=unsupported
12935 # Tell ltmain to make .lib files, not .a files.
12936 libext=lib
12937 # Tell ltmain to make .dll files, not .so files.
12938 shrext_cmds=".dll"
12939 # FIXME: Setting linknames here is a bad hack.
12940 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12941 # The linker will automatically build a .lib file if we build a DLL.
12942 old_archive_from_new_cmds_GO='true'
12943 # FIXME: Should let the user specify the lib program.
12944 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12945 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12946 enable_shared_with_static_runtimes_GO=yes
12947 ;;
12948
12949 darwin* | rhapsody*)
12950
12951
12952 archive_cmds_need_lc_GO=no
12953 hardcode_direct_GO=no
12954 hardcode_automatic_GO=yes
12955 hardcode_shlibpath_var_GO=unsupported
12956 if test "$lt_cv_ld_force_load" = "yes"; then
12957 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\"`'
12958 else
12959 whole_archive_flag_spec_GO=''
12960 fi
12961 link_all_deplibs_GO=yes
12962 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12963 case $cc_basename in
12964 ifort*) _lt_dar_can_shared=yes ;;
12965 *) _lt_dar_can_shared=$GCC ;;
12966 esac
12967 if test "$_lt_dar_can_shared" = "yes"; then
12968 output_verbose_link_cmd=func_echo_all
12969 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}"
12970 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12971 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}"
12972 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}"
12973
12974 else
12975 ld_shlibs_GO=no
12976 fi
12977
12978 ;;
12979
12980 dgux*)
12981 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12982 hardcode_libdir_flag_spec_GO='-L$libdir'
12983 hardcode_shlibpath_var_GO=no
12984 ;;
12985
e440a328 12986 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12987 # support. Future versions do this automatically, but an explicit c++rt0.o
12988 # does not break anything, and helps significantly (at the cost of a little
12989 # extra space).
12990 freebsd2.2*)
12991 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12992 hardcode_libdir_flag_spec_GO='-R$libdir'
12993 hardcode_direct_GO=yes
12994 hardcode_shlibpath_var_GO=no
12995 ;;
12996
12997 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
31d696fa 12998 freebsd2.*)
e440a328 12999 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13000 hardcode_direct_GO=yes
13001 hardcode_minus_L_GO=yes
13002 hardcode_shlibpath_var_GO=no
13003 ;;
13004
13005 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13006 freebsd* | dragonfly*)
13007 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13008 hardcode_libdir_flag_spec_GO='-R$libdir'
13009 hardcode_direct_GO=yes
13010 hardcode_shlibpath_var_GO=no
13011 ;;
13012
13013 hpux9*)
13014 if test "$GCC" = yes; then
13015 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'
13016 else
13017 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'
13018 fi
13019 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
13020 hardcode_libdir_separator_GO=:
13021 hardcode_direct_GO=yes
13022
13023 # hardcode_minus_L: Not really in the search PATH,
13024 # but as the default location of the library.
13025 hardcode_minus_L_GO=yes
13026 export_dynamic_flag_spec_GO='${wl}-E'
13027 ;;
13028
13029 hpux10*)
13030 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13031 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13032 else
13033 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13034 fi
13035 if test "$with_gnu_ld" = no; then
13036 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
13037 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
13038 hardcode_libdir_separator_GO=:
13039 hardcode_direct_GO=yes
13040 hardcode_direct_absolute_GO=yes
13041 export_dynamic_flag_spec_GO='${wl}-E'
13042 # hardcode_minus_L: Not really in the search PATH,
13043 # but as the default location of the library.
13044 hardcode_minus_L_GO=yes
13045 fi
13046 ;;
13047
13048 hpux11*)
13049 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13050 case $host_cpu in
13051 hppa*64*)
13052 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13053 ;;
13054 ia64*)
13055 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13056 ;;
13057 *)
13058 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13059 ;;
13060 esac
13061 else
13062 case $host_cpu in
13063 hppa*64*)
13064 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13065 ;;
13066 ia64*)
13067 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13068 ;;
13069 *)
13070 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13071 ;;
13072 esac
13073 fi
13074 if test "$with_gnu_ld" = no; then
13075 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
13076 hardcode_libdir_separator_GO=:
13077
13078 case $host_cpu in
13079 hppa*64*|ia64*)
13080 hardcode_direct_GO=no
13081 hardcode_shlibpath_var_GO=no
13082 ;;
13083 *)
13084 hardcode_direct_GO=yes
13085 hardcode_direct_absolute_GO=yes
13086 export_dynamic_flag_spec_GO='${wl}-E'
13087
13088 # hardcode_minus_L: Not really in the search PATH,
13089 # but as the default location of the library.
13090 hardcode_minus_L_GO=yes
13091 ;;
13092 esac
13093 fi
13094 ;;
13095
13096 irix5* | irix6* | nonstopux*)
13097 if test "$GCC" = yes; then
13098 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'
13099 # Try to use the -exported_symbol ld option, if it does not
13100 # work, assume that -exports_file does not work either and
13101 # implicitly export all symbols.
13102 save_LDFLAGS="$LDFLAGS"
13103 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13105/* end confdefs.h. */
13106int foo(void) {}
13107_ACEOF
13108if ac_fn_c_try_link "$LINENO"; then :
13109 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'
13110
13111fi
13112rm -f core conftest.err conftest.$ac_objext \
13113 conftest$ac_exeext conftest.$ac_ext
13114 LDFLAGS="$save_LDFLAGS"
13115 else
13116 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'
13117 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'
13118 fi
13119 archive_cmds_need_lc_GO='no'
13120 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
13121 hardcode_libdir_separator_GO=:
13122 inherit_rpath_GO=yes
13123 link_all_deplibs_GO=yes
13124 ;;
13125
13126 netbsd*)
13127 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13128 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13129 else
13130 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13131 fi
13132 hardcode_libdir_flag_spec_GO='-R$libdir'
13133 hardcode_direct_GO=yes
13134 hardcode_shlibpath_var_GO=no
13135 ;;
13136
13137 newsos6)
13138 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13139 hardcode_direct_GO=yes
13140 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
13141 hardcode_libdir_separator_GO=:
13142 hardcode_shlibpath_var_GO=no
13143 ;;
13144
13145 *nto* | *qnx*)
13146 ;;
13147
13148 openbsd*)
13149 if test -f /usr/libexec/ld.so; then
13150 hardcode_direct_GO=yes
13151 hardcode_shlibpath_var_GO=no
13152 hardcode_direct_absolute_GO=yes
13153 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13154 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13155 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13156 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
13157 export_dynamic_flag_spec_GO='${wl}-E'
13158 else
13159 case $host_os in
13160 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13161 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13162 hardcode_libdir_flag_spec_GO='-R$libdir'
13163 ;;
13164 *)
13165 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13166 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
13167 ;;
13168 esac
13169 fi
13170 else
13171 ld_shlibs_GO=no
13172 fi
13173 ;;
13174
13175 os2*)
13176 hardcode_libdir_flag_spec_GO='-L$libdir'
13177 hardcode_minus_L_GO=yes
13178 allow_undefined_flag_GO=unsupported
13179 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'
13180 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13181 ;;
13182
13183 osf3*)
13184 if test "$GCC" = yes; then
13185 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
13186 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'
13187 else
13188 allow_undefined_flag_GO=' -expect_unresolved \*'
13189 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'
13190 fi
13191 archive_cmds_need_lc_GO='no'
13192 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
13193 hardcode_libdir_separator_GO=:
13194 ;;
13195
13196 osf4* | osf5*) # as osf3* with the addition of -msym flag
13197 if test "$GCC" = yes; then
13198 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
13199 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'
13200 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
13201 else
13202 allow_undefined_flag_GO=' -expect_unresolved \*'
13203 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'
13204 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~
13205 $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'
13206
13207 # Both c and cxx compiler support -rpath directly
13208 hardcode_libdir_flag_spec_GO='-rpath $libdir'
13209 fi
13210 archive_cmds_need_lc_GO='no'
13211 hardcode_libdir_separator_GO=:
13212 ;;
13213
13214 solaris*)
13215 no_undefined_flag_GO=' -z defs'
13216 if test "$GCC" = yes; then
13217 wlarc='${wl}'
13218 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13219 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13220 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13221 else
13222 case `$CC -V 2>&1` in
13223 *"Compilers 5.0"*)
13224 wlarc=''
13225 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13226 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13227 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13228 ;;
13229 *)
13230 wlarc='${wl}'
13231 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13232 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13233 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13234 ;;
13235 esac
13236 fi
13237 hardcode_libdir_flag_spec_GO='-R$libdir'
13238 hardcode_shlibpath_var_GO=no
13239 case $host_os in
13240 solaris2.[0-5] | solaris2.[0-5].*) ;;
13241 *)
13242 # The compiler driver will combine and reorder linker options,
13243 # but understands `-z linker_flag'. GCC discards it without `$wl',
13244 # but is careful enough not to reorder.
13245 # Supported since Solaris 2.6 (maybe 2.5.1?)
13246 if test "$GCC" = yes; then
13247 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13248 else
13249 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
13250 fi
13251 ;;
13252 esac
13253 link_all_deplibs_GO=yes
13254 ;;
13255
13256 sunos4*)
13257 if test "x$host_vendor" = xsequent; then
13258 # Use $CC to link under sequent, because it throws in some extra .o
13259 # files that make .init and .fini sections work.
13260 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13261 else
13262 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13263 fi
13264 hardcode_libdir_flag_spec_GO='-L$libdir'
13265 hardcode_direct_GO=yes
13266 hardcode_minus_L_GO=yes
13267 hardcode_shlibpath_var_GO=no
13268 ;;
13269
13270 sysv4)
13271 case $host_vendor in
13272 sni)
13273 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13274 hardcode_direct_GO=yes # is this really true???
13275 ;;
13276 siemens)
13277 ## LD is ld it makes a PLAMLIB
13278 ## CC just makes a GrossModule.
13279 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13280 reload_cmds_GO='$CC -r -o $output$reload_objs'
13281 hardcode_direct_GO=no
13282 ;;
13283 motorola)
13284 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13285 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
13286 ;;
13287 esac
13288 runpath_var='LD_RUN_PATH'
13289 hardcode_shlibpath_var_GO=no
13290 ;;
13291
13292 sysv4.3*)
13293 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13294 hardcode_shlibpath_var_GO=no
13295 export_dynamic_flag_spec_GO='-Bexport'
13296 ;;
13297
13298 sysv4*MP*)
13299 if test -d /usr/nec; then
13300 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13301 hardcode_shlibpath_var_GO=no
13302 runpath_var=LD_RUN_PATH
13303 hardcode_runpath_var=yes
13304 ld_shlibs_GO=yes
13305 fi
13306 ;;
13307
13308 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13309 no_undefined_flag_GO='${wl}-z,text'
13310 archive_cmds_need_lc_GO=no
13311 hardcode_shlibpath_var_GO=no
13312 runpath_var='LD_RUN_PATH'
13313
13314 if test "$GCC" = yes; then
13315 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13316 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13317 else
13318 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13319 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13320 fi
13321 ;;
13322
13323 sysv5* | sco3.2v5* | sco5v6*)
13324 # Note: We can NOT use -z defs as we might desire, because we do not
13325 # link with -lc, and that would cause any symbols used from libc to
13326 # always be unresolved, which means just about no library would
13327 # ever link correctly. If we're not using GNU ld we use -z text
13328 # though, which does catch some bad symbols but isn't as heavy-handed
13329 # as -z defs.
13330 no_undefined_flag_GO='${wl}-z,text'
13331 allow_undefined_flag_GO='${wl}-z,nodefs'
13332 archive_cmds_need_lc_GO=no
13333 hardcode_shlibpath_var_GO=no
13334 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
13335 hardcode_libdir_separator_GO=':'
13336 link_all_deplibs_GO=yes
13337 export_dynamic_flag_spec_GO='${wl}-Bexport'
13338 runpath_var='LD_RUN_PATH'
13339
13340 if test "$GCC" = yes; then
13341 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13342 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13343 else
13344 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13345 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13346 fi
13347 ;;
13348
13349 uts4*)
13350 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13351 hardcode_libdir_flag_spec_GO='-L$libdir'
13352 hardcode_shlibpath_var_GO=no
13353 ;;
13354
13355 *)
13356 ld_shlibs_GO=no
13357 ;;
13358 esac
13359
13360 if test x$host_vendor = xsni; then
13361 case $host in
13362 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13363 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
13364 ;;
13365 esac
13366 fi
13367 fi
13368
13369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13370$as_echo "$ld_shlibs_GO" >&6; }
13371test "$ld_shlibs_GO" = no && can_build_shared=no
13372
13373with_gnu_ld_GO=$with_gnu_ld
13374
13375
13376
13377
13378
13379
13380#
13381# Do we need to explicitly link libc?
13382#
13383case "x$archive_cmds_need_lc_GO" in
13384x|xyes)
13385 # Assume -lc should be added
13386 archive_cmds_need_lc_GO=yes
13387
13388 if test "$enable_shared" = yes && test "$GCC" = yes; then
13389 case $archive_cmds_GO in
13390 *'~'*)
13391 # FIXME: we may have to deal with multi-command sequences.
13392 ;;
13393 '$CC '*)
13394 # Test whether the compiler implicitly links with -lc since on some
13395 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13396 # to ld, don't add -lc before -lgcc.
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13398$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
ea2e69a4 13399if ${lt_cv_archive_cmds_need_lc_GO+:} false; then :
e440a328 13400 $as_echo_n "(cached) " >&6
13401else
13402 $RM conftest*
13403 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13404
13405 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13406 (eval $ac_compile) 2>&5
13407 ac_status=$?
13408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13409 test $ac_status = 0; } 2>conftest.err; then
13410 soname=conftest
13411 lib=conftest
13412 libobjs=conftest.$ac_objext
13413 deplibs=
13414 wl=$lt_prog_compiler_wl_GO
13415 pic_flag=$lt_prog_compiler_pic_GO
13416 compiler_flags=-v
13417 linker_flags=-v
13418 verstring=
13419 output_objdir=.
13420 libname=conftest
13421 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
13422 allow_undefined_flag_GO=
13423 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13424 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13425 ac_status=$?
13426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13427 test $ac_status = 0; }
13428 then
13429 lt_cv_archive_cmds_need_lc_GO=no
13430 else
13431 lt_cv_archive_cmds_need_lc_GO=yes
13432 fi
13433 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13434 else
13435 cat conftest.err 1>&5
13436 fi
13437 $RM conftest*
13438
13439fi
13440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13441$as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13442 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13443 ;;
13444 esac
13445 fi
13446 ;;
13447esac
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13513$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13514hardcode_action_GO=
13515if test -n "$hardcode_libdir_flag_spec_GO" ||
13516 test -n "$runpath_var_GO" ||
13517 test "X$hardcode_automatic_GO" = "Xyes" ; then
13518
13519 # We can hardcode non-existent directories.
13520 if test "$hardcode_direct_GO" != no &&
13521 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13522 # have to relink, otherwise we might link with an installed library
13523 # when we should be linking with a yet-to-be-installed one
13524 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13525 test "$hardcode_minus_L_GO" != no; then
13526 # Linking always hardcodes the temporary library directory.
13527 hardcode_action_GO=relink
13528 else
13529 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13530 hardcode_action_GO=immediate
13531 fi
13532else
13533 # We cannot hardcode anything, or else we can only hardcode existing
13534 # directories.
13535 hardcode_action_GO=unsupported
13536fi
13537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13538$as_echo "$hardcode_action_GO" >&6; }
13539
13540if test "$hardcode_action_GO" = relink ||
13541 test "$inherit_rpath_GO" = yes; then
13542 # Fast installation is not supported
13543 enable_fast_install=no
13544elif test "$shlibpath_overrides_runpath" = yes ||
13545 test "$enable_shared" = no; then
13546 # Fast installation is not necessary
13547 enable_fast_install=needless
13548fi
13549
13550
13551
13552
13553
13554
13555
13556fi
13557
13558ac_ext=c
13559ac_cpp='$CPP $CPPFLAGS'
13560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13562ac_compiler_gnu=$ac_cv_c_compiler_gnu
13563
13564
13565GCC=$lt_save_GCC
13566CC="$lt_save_CC"
13567
13568
13569
13570
13571 ac_config_commands="$ac_config_commands libtool"
13572
13573
13574
13575
13576# Only expand once:
13577
13578
13579
13580
13581
a27e1015 13582CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13583
13584
d477de41 13585for ac_prog in gawk mawk nawk awk
13586do
13587 # Extract the first word of "$ac_prog", so it can be a program name with args.
13588set dummy $ac_prog; ac_word=$2
13589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13590$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 13591if ${ac_cv_prog_AWK+:} false; then :
d477de41 13592 $as_echo_n "(cached) " >&6
13593else
13594 if test -n "$AWK"; then
13595 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13596else
13597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13598for as_dir in $PATH
13599do
13600 IFS=$as_save_IFS
13601 test -z "$as_dir" && as_dir=.
13602 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 13603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d477de41 13604 ac_cv_prog_AWK="$ac_prog"
13605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13606 break 2
13607 fi
13608done
13609 done
13610IFS=$as_save_IFS
13611
13612fi
13613fi
13614AWK=$ac_cv_prog_AWK
13615if test -n "$AWK"; then
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13617$as_echo "$AWK" >&6; }
13618else
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13620$as_echo "no" >&6; }
13621fi
13622
13623
13624 test -n "$AWK" && break
13625done
13626
13627
e440a328 13628WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13629
13630
75935341 13631# Check whether --enable-werror was given.
13632if test "${enable_werror+set}" = set; then :
13633 enableval=$enable_werror;
13634fi
13635
13636if test "x$enable_werror" != "xno"; then
13637 WERROR="-Werror"
13638fi
e440a328 13639
13640
13641glibgo_toolexecdir=no
13642glibgo_toolexeclibdir=no
e440a328 13643
13644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13645$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13646# Check whether --enable-version-specific-runtime-libs was given.
13647if test "${enable_version_specific_runtime_libs+set}" = set; then :
13648 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13649 yes) version_specific_libs=yes ;;
13650 no) version_specific_libs=no ;;
ea2e69a4 13651 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
e440a328 13652 esac
13653else
13654 version_specific_libs=no
13655fi
13656
13657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13658$as_echo "$version_specific_libs" >&6; }
13659
13660# Version-specific runtime libs processing.
13661if test $version_specific_libs = yes; then
13662 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13663 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13664fi
13665
13666# Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13667# Install a library built with a cross compiler in tooldir, not libdir.
61efdf66 13668if test -n "$with_cross_host" &&
13669 test x"$with_cross_host" != x"no"; then
13670 nover_glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13671 nover_glibgo_toolexeclibdir='${toolexecdir}/lib'
13672else
13673 nover_glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13674 nover_glibgo_toolexeclibdir='${libdir}'
13675fi
67d3a836 13676multi_os_directory=`$GOC -print-multi-os-directory`
61efdf66 13677case $multi_os_directory in
13678 .) ;; # Avoid trailing /.
13679 *) nover_glibgo_toolexeclibdir=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;;
13680esac
13681
e440a328 13682if test x"$glibgo_toolexecdir" = x"no"; then
61efdf66 13683 glibgo_toolexecdir="${nover_glibgo_toolexecdir}"
13684 glibgo_toolexeclibdir="${nover_glibgo_toolexeclibdir}"
e440a328 13685fi
13686
13687
13688
13689
13690
13691# See if the user wants to configure without libffi. Some
13692# architectures don't support it. FIXME: We should set a default
13693# based on the host.
13694
13695# Check whether --with-libffi was given.
13696if test "${with_libffi+set}" = set; then :
13697 withval=$with_libffi; :
13698else
13699 with_libffi=${with_libffi_default-yes}
13700fi
13701
13702
13703LIBFFI=
13704LIBFFIINCS=
13705if test "$with_libffi" != no; then
13706
13707$as_echo "#define USE_LIBFFI 1" >>confdefs.h
13708
13709 LIBFFI=../libffi/libffi_convenience.la
13710 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13711fi
13712
13713
63e457ad 13714 if test "$with_liffi" != "no"; then
13715 USE_LIBFFI_TRUE=
13716 USE_LIBFFI_FALSE='#'
13717else
13718 USE_LIBFFI_TRUE='#'
13719 USE_LIBFFI_FALSE=
13720fi
13721
e440a328 13722
7920387d 13723# See if the user wants to configure without libatomic. This is useful if we are
13724# on an architecture for which libgo does not need an atomic support library and
13725# libatomic does not support our C compiler.
13726
13727# Check whether --with-libatomic was given.
13728if test "${with_libatomic+set}" = set; then :
13729 withval=$with_libatomic; :
13730else
13731 with_libatomic=${with_libatomic_default-yes}
13732fi
13733
13734
13735LIBATOMIC=
13736if test "$with_libatomic" != no; then
13737 LIBATOMIC=../libatomic/libatomic_convenience.la
13738fi
13739
13740
4180345a 13741# Used to tell GNU make to include a file without telling automake to
13742# include it.
13743go_include="-include"
13744
13745
91d733e1 13746# All known GOOS values. This is the union of all operating systems
13747# supported by the gofrontend and all operating systems supported by
13748# the gc toolchain.
31975c5e 13749ALLGOOS="aix android darwin dragonfly freebsd hurd irix js linux netbsd openbsd plan9 rtems solaris windows"
91d733e1 13750
e440a328 13751is_darwin=no
13752is_freebsd=no
524b52f8 13753is_irix=no
e440a328 13754is_linux=no
12adcb64 13755is_netbsd=no
fb08d005 13756is_openbsd=no
0ce10ea1 13757is_dragonfly=no
e440a328 13758is_rtems=no
cea7ac49 13759is_solaris=no
03118c21 13760is_aix=no
c6ad139d 13761is_hurd=no
7731bf71 13762GOOS=unknown
e440a328 13763case ${host} in
cea7ac49 13764 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13765 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
524b52f8 13766 *-*-irix6*) is_irix=yes; GOOS=irix ;;
cea7ac49 13767 *-*-linux*) is_linux=yes; GOOS=linux ;;
86240434 13768 *-*-netbsd*) is_netbsd=yes; GOOS=netbsd ;;
fb08d005 13769 *-*-openbsd*) is_openbsd=yes; GOOS=openbsd ;;
0ce10ea1 13770 *-*-dragonfly*) is_dragonfly=yes; GOOS=dragonfly ;;
cea7ac49 13771 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13772 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
03118c21 13773 *-*-aix*) is_aix=yes; GOOS=aix ;;
c6ad139d 13774 *-*-gnu*) is_hurd=yes; GOOS=hurd ;;
e440a328 13775esac
13776 if test $is_darwin = yes; then
13777 LIBGO_IS_DARWIN_TRUE=
13778 LIBGO_IS_DARWIN_FALSE='#'
13779else
13780 LIBGO_IS_DARWIN_TRUE='#'
13781 LIBGO_IS_DARWIN_FALSE=
13782fi
13783
13784 if test $is_freebsd = yes; then
13785 LIBGO_IS_FREEBSD_TRUE=
13786 LIBGO_IS_FREEBSD_FALSE='#'
13787else
13788 LIBGO_IS_FREEBSD_TRUE='#'
13789 LIBGO_IS_FREEBSD_FALSE=
13790fi
13791
524b52f8 13792 if test $is_irix = yes; then
13793 LIBGO_IS_IRIX_TRUE=
13794 LIBGO_IS_IRIX_FALSE='#'
13795else
13796 LIBGO_IS_IRIX_TRUE='#'
13797 LIBGO_IS_IRIX_FALSE=
13798fi
13799
e440a328 13800 if test $is_linux = yes; then
13801 LIBGO_IS_LINUX_TRUE=
13802 LIBGO_IS_LINUX_FALSE='#'
13803else
13804 LIBGO_IS_LINUX_TRUE='#'
13805 LIBGO_IS_LINUX_FALSE=
13806fi
13807
86240434 13808 if test $is_netbsd = yes; then
13809 LIBGO_IS_NETBSD_TRUE=
13810 LIBGO_IS_NETBSD_FALSE='#'
13811else
13812 LIBGO_IS_NETBSD_TRUE='#'
13813 LIBGO_IS_NETBSD_FALSE=
13814fi
13815
fb08d005 13816 if test $is_openbsd = yes; then
13817 LIBGO_IS_OPENBSD_TRUE=
13818 LIBGO_IS_OPENBSD_FALSE='#'
13819else
13820 LIBGO_IS_OPENBSD_TRUE='#'
13821 LIBGO_IS_OPENBSD_FALSE=
13822fi
13823
e6af9bdb 13824 if test $is_dragonfly = yes; then
0ce10ea1 13825 LIBGO_IS_DRAGONFLY_TRUE=
13826 LIBGO_IS_DRAGONFLY_FALSE='#'
13827else
13828 LIBGO_IS_DRAGONFLY_TRUE='#'
13829 LIBGO_IS_DRAGONFLY_FALSE=
13830fi
13831
e440a328 13832 if test $is_rtems = yes; then
13833 LIBGO_IS_RTEMS_TRUE=
13834 LIBGO_IS_RTEMS_FALSE='#'
13835else
13836 LIBGO_IS_RTEMS_TRUE='#'
13837 LIBGO_IS_RTEMS_FALSE=
13838fi
13839
cea7ac49 13840 if test $is_solaris = yes; then
13841 LIBGO_IS_SOLARIS_TRUE=
13842 LIBGO_IS_SOLARIS_FALSE='#'
13843else
13844 LIBGO_IS_SOLARIS_TRUE='#'
13845 LIBGO_IS_SOLARIS_FALSE=
13846fi
13847
03118c21 13848 if test $is_aix = yes; then
13849 LIBGO_IS_AIX_TRUE=
13850 LIBGO_IS_AIX_FALSE='#'
13851else
13852 LIBGO_IS_AIX_TRUE='#'
13853 LIBGO_IS_AIX_FALSE=
13854fi
13855
c6ad139d 13856 if test $is_hurd = yes; then
13857 LIBGO_IS_HURD_TRUE=
13858 LIBGO_IS_HURD_FALSE='#'
13859else
13860 LIBGO_IS_HURD_TRUE='#'
13861 LIBGO_IS_HURD_FALSE=
13862fi
13863
be239ed2 13864 if test $is_darwin = yes -o $is_dragonfly = yes -o $is_freebsd = yes -o $is_netbsd = yes -o $is_openbsd = yes; then
13865 LIBGO_IS_BSD_TRUE=
13866 LIBGO_IS_BSD_FALSE='#'
13867else
13868 LIBGO_IS_BSD_TRUE='#'
13869 LIBGO_IS_BSD_FALSE=
13870fi
13871
e440a328 13872
7731bf71 13873
91d733e1 13874
6222f4a8 13875USE_DEJAGNU=no
13876case ${host} in
13877 *-*-rtems*) USE_DEJAGNU=yes ;;
9d5dfb12 13878 ${build}) ;;
6222f4a8 13879 *) USE_DEJAGNU=yes ;;
13880esac
13881
13882
91d733e1 13883# All known GOARCH values. This is the union of all architectures
13884# supported by the gofrontend and all architectures supported by the
13885# gc toolchain.
a3cba53d 13886# To add a new architecture:
13887# - add it to this list
13888# - if appropriate, add an entry to ALLGOARCHFAMILY below
13889# - add an entry to the case on ${host} below to set GOARCH
13890# - update goarchList in libgo/go/go/build/syslist.go
13891# - update goarch.sh to report the values for this architecture
13892# - update go-set-goarch in gcc/testsuite/go.test/go-test.exp
13893# - update ptrSizeMap and intSizeMap in libgo/go/cmd/cgo/main.go
13894# - update arch lists in libgo/match.sh
13895# - update arch lists in libgo/testsuite/gotest
13896# - update +build lines in several places
13897# - libgo/go/runtime/lfstack_NNbit.go
13898# - libgo/go/runtime/hashNN.go
13899# - libgo/go/runtime/unalignedN.go
13900# - libgo/go/syscall/endian_XX.go
13901# - possibly others
13902# - possibly update files in libgo/go/internal/syscall/unix
9be94393 13903ALLGOARCH="386 alpha amd64 amd64p32 arm armbe arm64 arm64be ia64 m68k mips mipsle mips64 mips64le mips64p32 mips64p32le nios2 ppc ppc64 ppc64le riscv riscv64 s390 s390x sh shbe sparc sparc64 wasm"
91d733e1 13904
a3cba53d 13905# All known GOARCH family values.
9be94393 13906ALLGOARCHFAMILY="I386 ALPHA AMD64 ARM ARM64 IA64 M68K MIPS MIPS64 NIOS2 PPC PPC64 RISCV RISCV64 S390 S390X SH SPARC SPARC64 WASM"
91d733e1 13907
7731bf71 13908GOARCH=unknown
e440a328 13909case ${host} in
16dc3e4d 13910 alpha*-*-*)
16dc3e4d 13911 GOARCH=alpha
13912 ;;
275f094b 13913 aarch64-*-*)
275f094b 13914 GOARCH=arm64
13915 ;;
8fb241fa 13916 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
8fb241fa 13917 GOARCH=arm
33d1d391 13918 case ${host} in
13919 arm*b*-*-*)
13920 GOARCH=armbe
33d1d391 13921 ;;
13922 esac
8fb241fa 13923 ;;
7731bf71 13924 i[34567]86-*-* | x86_64-*-*)
13925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13926/* end confdefs.h. */
13927
13928#ifdef __x86_64__
13929#error 64-bit
13930#endif
ea2e69a4 13931
7731bf71 13932_ACEOF
3ae9cf6a 13933if ac_fn_c_try_compile "$LINENO"; then :
91d733e1 13934 GOARCH=386
7731bf71 13935else
0caa25c9 13936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13937/* end confdefs.h. */
13938
13939#ifdef __ILP32__
13940#error x32
13941#endif
ea2e69a4 13942
0caa25c9 13943_ACEOF
13944if ac_fn_c_try_compile "$LINENO"; then :
91d733e1 13945 GOARCH=amd64
0caa25c9 13946else
13947 GOARCH=amd64p32
13948fi
13949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7731bf71 13950fi
3ae9cf6a 13951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e440a328 13952 ;;
4d29d40e 13953 ia64-*-*)
4d29d40e 13954 GOARCH=ia64
13955 ;;
8fb241fa 13956 m68k*-*-*)
8fb241fa 13957 GOARCH=m68k
13958 ;;
13959 mips*-*-*)
13960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13961/* end confdefs.h. */
13962
fa5e552e 13963#if _MIPS_SIM != _ABIO32
13964#error not o32
13965#endif
ea2e69a4 13966
fa5e552e 13967_ACEOF
13968if ac_fn_c_try_compile "$LINENO"; then :
13969 mips_abi="o32"
13970else
13971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13972/* end confdefs.h. */
13973
13974#if _MIPS_SIM != _ABIN32
13975#error not n32
8fb241fa 13976#endif
ea2e69a4 13977
8fb241fa 13978_ACEOF
3ae9cf6a 13979if ac_fn_c_try_compile "$LINENO"; then :
fa5e552e 13980 mips_abi="n32"
8fb241fa 13981else
fa5e552e 13982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13983/* end confdefs.h. */
13984
13985#if _MIPS_SIM != _ABI64
13986#error not n64
13987#endif
ea2e69a4 13988
fa5e552e 13989_ACEOF
13990if ac_fn_c_try_compile "$LINENO"; then :
13991 mips_abi="n64"
fa5e552e 13992else
ea2e69a4 13993 as_fn_error $? "unknown MIPS ABI" "$LINENO" 5
fa5e552e 13994mips_abi="n32"
8fb241fa 13995fi
3ae9cf6a 13996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fa5e552e 13997fi
13998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13999fi
fa5e552e 14000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14001 case "$mips_abi" in
074bbd7b 14002 "o32") GOARCH=mips ;;
14003 "n32") GOARCH=mips64p32 ;;
14004 "n64") GOARCH=mips64 ;;
fa5e552e 14005 esac
91d733e1 14006 case "${host}" in
074bbd7b 14007 mips*el-*-*)
f3fc9ea4 14008 GOARCH="${GOARCH}le"
91d733e1 14009 ;;
91d733e1 14010 esac
8fb241fa 14011 ;;
9eb30feb 14012 nios2-*-*)
14013 GOARCH=nios2
14014 ;;
8fb241fa 14015 rs6000*-*-* | powerpc*-*-*)
14016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14017/* end confdefs.h. */
14018
14019#ifdef _ARCH_PPC64
14020#error 64-bit
14021#endif
ea2e69a4 14022
8fb241fa 14023_ACEOF
3ae9cf6a 14024if ac_fn_c_try_compile "$LINENO"; then :
91d733e1 14025 GOARCH=ppc
59eb586e 14026else
91d733e1 14027
91d733e1 14028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59eb586e 14029/* end confdefs.h. */
14030
14031#if defined(_BIG_ENDIAN) || defined(__BIG_ENDIAN__)
14032#error 64be
14033#endif
ea2e69a4 14034
59eb586e 14035_ACEOF
14036if ac_fn_c_try_compile "$LINENO"; then :
91d733e1 14037 GOARCH=ppc64le
8fb241fa 14038else
91d733e1 14039 GOARCH=ppc64
8fb241fa 14040fi
59eb586e 14041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14042fi
3ae9cf6a 14043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e440a328 14044 ;;
364c6e61 14045 riscv64-*-*)
14046 GOARCH=riscv64
14047 ;;
141eb62b 14048 s390*-*-*)
14049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14050/* end confdefs.h. */
14051
14052#if defined(__s390x__)
14053#error 64-bit
14054#endif
ea2e69a4 14055
141eb62b 14056_ACEOF
14057if ac_fn_c_try_compile "$LINENO"; then :
91d733e1 14058 GOARCH=s390
141eb62b 14059else
91d733e1 14060 GOARCH=s390x
141eb62b 14061fi
14062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
141eb62b 14063 ;;
a3cba53d 14064 sh3eb*-*-* | sh4eb*-*-*)
3a4ffbd2 14065 GOARCH=shbe
3a4ffbd2 14066 ;;
a3cba53d 14067 sh3*-*-* | sh4*-*-*)
3a4ffbd2 14068 GOARCH=sh
3a4ffbd2 14069 ;;
cea7ac49 14070 sparc*-*-*)
14071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14072/* end confdefs.h. */
14073
14074#if defined(__sparcv9) || defined(__arch64__)
14075#error 64-bit
14076#endif
ea2e69a4 14077
cea7ac49 14078_ACEOF
3ae9cf6a 14079if ac_fn_c_try_compile "$LINENO"; then :
91d733e1 14080 GOARCH=sparc
cea7ac49 14081else
91d733e1 14082 GOARCH=sparc64
cea7ac49 14083fi
3ae9cf6a 14084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cea7ac49 14085 ;;
e440a328 14086esac
fa5e552e 14087
8fb241fa 14088
0694cef2 14089
8fb241fa 14090
d477de41 14091GO_LIBCALL_OS_FILE=
14092GO_LIBCALL_OS_ARCH_FILE=
14093GO_SYSCALL_OS_FILE=
14094GO_SYSCALL_OS_ARCH_FILE=
4a7cfa71 14095if test -f "${srcdir}/go/syscall/libcall_${GOOS}.go"; then
14096 GO_LIBCALL_OS_FILE="go/syscall/libcall_${GOOS}.go"
8fb241fa 14097fi
4a7cfa71 14098if test -f "${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go"; then
14099 GO_LIBCALL_OS_ARCH_FILE="go/syscall/libcall_${GOOS}_${GOARCH}.go"
d477de41 14100fi
4a7cfa71 14101if test -f "${srcdir}/go/syscall/syscall_${GOOS}.go"; then
14102 GO_SYSCALL_OS_FILE="go/syscall/syscall_${GOOS}.go"
d477de41 14103fi
4a7cfa71 14104if test -f "${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go"; then
14105 GO_SYSCALL_OS_ARCH_FILE="go/syscall/syscall_${GOOS}_${GOARCH}.go"
d477de41 14106fi
14107
14108
14109
8fb241fa 14110
14111
6785caa3 14112OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
69db433d 14113case "$target" in
e0519e05 14114 mips-sgi-irix6.5*)
14115 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
14116 # msghdr in <sys/socket.h>.
6785caa3 14117 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
e0519e05 14118 ;;
69db433d 14119 *-*-solaris2.1[01])
14120 # Solaris 10+ needs this so struct msghdr gets the msg_control
ed845d9d 14121 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
69db433d 14122 # above doesn't work with C99.
ed845d9d 14123 OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
69db433d 14124 ;;
14125esac
14126
14127
91eedfd7 14128
f7b28005 14129 test -z "$HWCAP_CFLAGS" && HWCAP_CFLAGS=''
91eedfd7 14130
f7b28005 14131 # Restrict the test to Solaris, other assemblers (e.g. AIX as) have -nH
14132 # with a different meaning.
14133 case ${target_os} in
14134 solaris2*)
14135 ac_save_CFLAGS="$CFLAGS"
14136 CFLAGS="$CFLAGS -Wa,-nH"
91eedfd7 14137
f7b28005 14138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as that supports -Wa,-nH" >&5
14139$as_echo_n "checking for as that supports -Wa,-nH... " >&6; }
14140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
91eedfd7 14141/* end confdefs.h. */
14142
14143int
14144main ()
14145{
14146return 0;
14147 ;
14148 return 0;
14149}
14150_ACEOF
f7b28005 14151if ac_fn_c_try_compile "$LINENO"; then :
14152 ac_hwcap_flags=yes
91eedfd7 14153else
f7b28005 14154 ac_hwcap_flags=no
91eedfd7 14155fi
f7b28005 14156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14157 if test "$ac_hwcap_flags" = "yes"; then
14158 HWCAP_CFLAGS="-Wa,-nH $HWCAP_CFLAGS"
14159 fi
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_flags" >&5
14161$as_echo "$ac_hwcap_flags" >&6; }
91eedfd7 14162
f7b28005 14163 CFLAGS="$ac_save_CFLAGS"
14164 ;;
14165 esac
91eedfd7 14166
14167
91eedfd7 14168
14169
e440a328 14170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
14171$as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
ea2e69a4 14172if ${libgo_cv_c_split_stack_supported+:} false; then :
e440a328 14173 $as_echo_n "(cached) " >&6
14174else
14175 CFLAGS_hold=$CFLAGS
14176CFLAGS="$CFLAGS -fsplit-stack"
14177cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14178/* end confdefs.h. */
14179int i;
14180_ACEOF
14181if ac_fn_c_try_compile "$LINENO"; then :
cea7ac49 14182 libgo_cv_c_split_stack_supported=yes
e440a328 14183else
cea7ac49 14184 libgo_cv_c_split_stack_supported=no
e440a328 14185fi
14186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14187CFLAGS=$CFLAGS_hold
14188fi
cea7ac49 14189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
14190$as_echo "$libgo_cv_c_split_stack_supported" >&6; }
f137de11 14191
14192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split/non-split linked together" >&5
14193$as_echo_n "checking whether linker supports split/non-split linked together... " >&6; }
ea2e69a4 14194if ${libgo_cv_c_linker_split_non_split+:} false; then :
f137de11 14195 $as_echo_n "(cached) " >&6
14196else
14197 cat > conftest1.c << EOF
14198extern void f();
14199int main() { f(); return 0; }
14200EOF
14201cat > conftest2.c << EOF
14202void f() {}
14203EOF
bea517c4 14204$CC -c -fsplit-stack $CFLAGS $CPPFLAGS conftest1.c >/dev/null 2>&1
14205$CC -c $CFLAGS $CPPFLAGS conftest2.c > /dev/null 2>&1
14206if $CC -o conftest conftest1.$ac_objext conftest2.$ac_objext > /dev/null 2>&1; then
f137de11 14207 libgo_cv_c_linker_split_non_split=yes
14208else
14209 libgo_cv_c_linker_split_non_split=no
14210fi
14211rm -f conftest1.* conftest2.* conftest
14212fi
14213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_split_non_split" >&5
14214$as_echo "$libgo_cv_c_linker_split_non_split" >&6; }
14215
14216if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
e440a328 14217 SPLIT_STACK=-fsplit-stack
14218
14219$as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
14220
14221else
14222 SPLIT_STACK=
14223fi
14224
f137de11 14225 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
e440a328 14226 USING_SPLIT_STACK_TRUE=
14227 USING_SPLIT_STACK_FALSE='#'
14228else
14229 USING_SPLIT_STACK_TRUE='#'
14230 USING_SPLIT_STACK_FALSE=
14231fi
14232
14233
242418a3 14234if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = no; then
14235 GO_SPLIT_STACK=-fno-split-stack
14236else
14237 GO_SPLIT_STACK=
14238fi
14239
14240
e440a328 14241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
14242$as_echo_n "checking whether linker supports split stack... " >&6; }
ea2e69a4 14243if ${libgo_cv_c_linker_supports_split_stack+:} false; then :
e440a328 14244 $as_echo_n "(cached) " >&6
14245else
cea7ac49 14246 libgo_cv_c_linker_supports_split_stack=no
7dc947bd 14247if $GOC -Wl,--help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
cea7ac49 14248 libgo_cv_c_linker_supports_split_stack=yes
e440a328 14249fi
14250fi
cea7ac49 14251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
14252$as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
14253if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
e440a328 14254
14255$as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
14256
14257fi
14258
b5f8bff0 14259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is llgo" >&5
14260$as_echo_n "checking whether compiler is llgo... " >&6; }
ea2e69a4 14261if ${libgo_cv_c_goc_is_llgo+:} false; then :
b5f8bff0 14262 $as_echo_n "(cached) " >&6
14263else
14264 libgo_cv_c_goc_is_llgo=no
14265if $GOC -dumpversion 2>/dev/null | grep llgo >/dev/null 2>&1; then
14266 libgo_cv_c_goc_is_llgo=yes
14267fi
14268fi
14269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_goc_is_llgo" >&5
14270$as_echo "$libgo_cv_c_goc_is_llgo" >&6; }
14271 if test "$libgo_cv_c_goc_is_llgo" = yes; then
14272 GOC_IS_LLGO_TRUE=
14273 GOC_IS_LLGO_FALSE='#'
14274else
14275 GOC_IS_LLGO_TRUE='#'
14276 GOC_IS_LLGO_FALSE=
14277fi
14278
14279
7d17fab3 14280MATH_LIBS=
14281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14282$as_echo_n "checking for sqrt in -lm... " >&6; }
ea2e69a4 14283if ${ac_cv_lib_m_sqrt+:} false; then :
7d17fab3 14284 $as_echo_n "(cached) " >&6
14285else
14286 ac_check_lib_save_LIBS=$LIBS
14287LIBS="-lm $LIBS"
14288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14289/* end confdefs.h. */
14290
14291/* Override any GCC internal prototype to avoid an error.
14292 Use char because int might match the return type of a GCC
14293 builtin and then its argument prototype would still apply. */
14294#ifdef __cplusplus
14295extern "C"
14296#endif
14297char sqrt ();
14298int
14299main ()
14300{
14301return sqrt ();
14302 ;
14303 return 0;
14304}
14305_ACEOF
14306if ac_fn_c_try_link "$LINENO"; then :
14307 ac_cv_lib_m_sqrt=yes
14308else
14309 ac_cv_lib_m_sqrt=no
14310fi
14311rm -f core conftest.err conftest.$ac_objext \
14312 conftest$ac_exeext conftest.$ac_ext
14313LIBS=$ac_check_lib_save_LIBS
14314fi
14315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14316$as_echo "$ac_cv_lib_m_sqrt" >&6; }
ea2e69a4 14317if test "x$ac_cv_lib_m_sqrt" = xyes; then :
7d17fab3 14318 MATH_LIBS=-lm
14319fi
14320
14321
14322
cea7ac49 14323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14324$as_echo_n "checking for socket libraries... " >&6; }
ea2e69a4 14325if ${libgo_cv_lib_sockets+:} false; then :
cea7ac49 14326 $as_echo_n "(cached) " >&6
14327else
14328 libgo_cv_lib_sockets=
14329 libgo_check_both=no
14330 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
ea2e69a4 14331if test "x$ac_cv_func_connect" = xyes; then :
cea7ac49 14332 libgo_check_socket=no
14333else
14334 libgo_check_socket=yes
14335fi
14336
14337 if test "$libgo_check_socket" = "yes"; then
14338 unset ac_cv_func_connect
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14340$as_echo_n "checking for main in -lsocket... " >&6; }
ea2e69a4 14341if ${ac_cv_lib_socket_main+:} false; then :
cea7ac49 14342 $as_echo_n "(cached) " >&6
14343else
14344 ac_check_lib_save_LIBS=$LIBS
14345LIBS="-lsocket $LIBS"
14346cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14347/* end confdefs.h. */
14348
14349
14350int
14351main ()
14352{
14353return main ();
14354 ;
14355 return 0;
14356}
14357_ACEOF
14358if ac_fn_c_try_link "$LINENO"; then :
14359 ac_cv_lib_socket_main=yes
14360else
14361 ac_cv_lib_socket_main=no
14362fi
14363rm -f core conftest.err conftest.$ac_objext \
14364 conftest$ac_exeext conftest.$ac_ext
14365LIBS=$ac_check_lib_save_LIBS
14366fi
14367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14368$as_echo "$ac_cv_lib_socket_main" >&6; }
ea2e69a4 14369if test "x$ac_cv_lib_socket_main" = xyes; then :
cea7ac49 14370 libgo_cv_lib_sockets="-lsocket"
14371else
14372 libgo_check_both=yes
14373fi
14374
14375 fi
14376 if test "$libgo_check_both" = "yes"; then
14377 libgo_old_libs=$LIBS
14378 LIBS="$LIBS -lsocket -lnsl"
14379 unset ac_cv_func_accept
14380 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
ea2e69a4 14381if test "x$ac_cv_func_accept" = xyes; then :
cea7ac49 14382 libgo_check_nsl=no
14383 libgo_cv_lib_sockets="-lsocket -lnsl"
14384fi
14385
14386 unset ac_cv_func_accept
14387 LIBS=$libgo_old_libs
14388 fi
14389 unset ac_cv_func_gethostbyname
14390 libgo_old_libs="$LIBS"
14391 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
ea2e69a4 14392if test "x$ac_cv_func_gethostbyname" = xyes; then :
cea7ac49 14393
14394else
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14396$as_echo_n "checking for main in -lnsl... " >&6; }
ea2e69a4 14397if ${ac_cv_lib_nsl_main+:} false; then :
cea7ac49 14398 $as_echo_n "(cached) " >&6
14399else
14400 ac_check_lib_save_LIBS=$LIBS
14401LIBS="-lnsl $LIBS"
14402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14403/* end confdefs.h. */
14404
14405
14406int
14407main ()
14408{
14409return main ();
14410 ;
14411 return 0;
14412}
14413_ACEOF
14414if ac_fn_c_try_link "$LINENO"; then :
14415 ac_cv_lib_nsl_main=yes
14416else
14417 ac_cv_lib_nsl_main=no
14418fi
14419rm -f core conftest.err conftest.$ac_objext \
14420 conftest$ac_exeext conftest.$ac_ext
14421LIBS=$ac_check_lib_save_LIBS
14422fi
14423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14424$as_echo "$ac_cv_lib_nsl_main" >&6; }
ea2e69a4 14425if test "x$ac_cv_lib_nsl_main" = xyes; then :
cea7ac49 14426 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
14427fi
14428
14429fi
14430
14431 unset ac_cv_func_gethostbyname
5c55b1cf 14432 ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
ea2e69a4 14433if test "x$ac_cv_func_sendfile" = xyes; then :
5c55b1cf 14434
14435else
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsendfile" >&5
14437$as_echo_n "checking for main in -lsendfile... " >&6; }
ea2e69a4 14438if ${ac_cv_lib_sendfile_main+:} false; then :
5c55b1cf 14439 $as_echo_n "(cached) " >&6
14440else
14441 ac_check_lib_save_LIBS=$LIBS
14442LIBS="-lsendfile $LIBS"
14443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14444/* end confdefs.h. */
14445
14446
14447int
14448main ()
14449{
14450return main ();
14451 ;
14452 return 0;
14453}
14454_ACEOF
14455if ac_fn_c_try_link "$LINENO"; then :
14456 ac_cv_lib_sendfile_main=yes
14457else
14458 ac_cv_lib_sendfile_main=no
14459fi
14460rm -f core conftest.err conftest.$ac_objext \
14461 conftest$ac_exeext conftest.$ac_ext
14462LIBS=$ac_check_lib_save_LIBS
14463fi
14464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_main" >&5
14465$as_echo "$ac_cv_lib_sendfile_main" >&6; }
ea2e69a4 14466if test "x$ac_cv_lib_sendfile_main" = xyes; then :
5c55b1cf 14467 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lsendfile"
14468fi
14469
14470fi
14471
cea7ac49 14472 LIBS=$libgo_old_libs
14473
14474fi
14475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14476$as_echo "$libgo_cv_lib_sockets" >&6; }
14477NET_LIBS="$libgo_cv_lib_sockets"
14478
14479
f555a9df 14480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14481$as_echo_n "checking whether -pthread is supported... " >&6; }
ea2e69a4 14482if ${libgo_cv_lib_pthread+:} false; then :
f555a9df 14483 $as_echo_n "(cached) " >&6
14484else
14485 CFLAGS_hold=$CFLAGS
ac58a228 14486CFLAGS="$CFLAGS -pthread -L../libatomic/.libs"
f555a9df 14487cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14488/* end confdefs.h. */
14489int i;
14490_ACEOF
14491if ac_fn_c_try_compile "$LINENO"; then :
cea7ac49 14492 libgo_cv_lib_pthread=yes
f555a9df 14493else
cea7ac49 14494 libgo_cv_lib_pthread=no
f555a9df 14495fi
14496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14497CFLAGS=$CFLAGS_hold
14498fi
cea7ac49 14499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14500$as_echo "$libgo_cv_lib_pthread" >&6; }
f555a9df 14501PTHREAD_CFLAGS=
cea7ac49 14502if test "$libgo_cv_lib_pthread" = yes; then
ac58a228 14503 # RISC-V apparently adds -latomic when using -pthread.
14504 PTHREAD_CFLAGS="-pthread -L../libatomic/.libs"
f555a9df 14505fi
14506
14507
14508PTHREAD_LIBS=
14509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14510$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
ea2e69a4 14511if ${ac_cv_lib_pthread_pthread_create+:} false; then :
f555a9df 14512 $as_echo_n "(cached) " >&6
14513else
14514 ac_check_lib_save_LIBS=$LIBS
14515LIBS="-lpthread $LIBS"
14516cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14517/* end confdefs.h. */
14518
14519/* Override any GCC internal prototype to avoid an error.
14520 Use char because int might match the return type of a GCC
14521 builtin and then its argument prototype would still apply. */
14522#ifdef __cplusplus
14523extern "C"
14524#endif
14525char pthread_create ();
14526int
14527main ()
14528{
14529return pthread_create ();
14530 ;
14531 return 0;
14532}
14533_ACEOF
14534if ac_fn_c_try_link "$LINENO"; then :
14535 ac_cv_lib_pthread_pthread_create=yes
14536else
14537 ac_cv_lib_pthread_pthread_create=no
14538fi
14539rm -f core conftest.err conftest.$ac_objext \
14540 conftest$ac_exeext conftest.$ac_ext
14541LIBS=$ac_check_lib_save_LIBS
14542fi
14543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14544$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
ea2e69a4 14545if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
f555a9df 14546 PTHREAD_LIBS=-lpthread
14547fi
14548
14549
14550
554126c9 14551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14552$as_echo_n "checking for library containing sched_yield... " >&6; }
ea2e69a4 14553if ${ac_cv_search_sched_yield+:} false; then :
554126c9 14554 $as_echo_n "(cached) " >&6
14555else
14556 ac_func_search_save_LIBS=$LIBS
14557cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14558/* end confdefs.h. */
14559
14560/* Override any GCC internal prototype to avoid an error.
14561 Use char because int might match the return type of a GCC
14562 builtin and then its argument prototype would still apply. */
14563#ifdef __cplusplus
14564extern "C"
14565#endif
14566char sched_yield ();
14567int
14568main ()
14569{
14570return sched_yield ();
14571 ;
14572 return 0;
14573}
14574_ACEOF
14575for ac_lib in '' rt; do
14576 if test -z "$ac_lib"; then
14577 ac_res="none required"
14578 else
14579 ac_res=-l$ac_lib
14580 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14581 fi
14582 if ac_fn_c_try_link "$LINENO"; then :
14583 ac_cv_search_sched_yield=$ac_res
14584fi
14585rm -f core conftest.err conftest.$ac_objext \
14586 conftest$ac_exeext
ea2e69a4 14587 if ${ac_cv_search_sched_yield+:} false; then :
554126c9 14588 break
14589fi
14590done
ea2e69a4 14591if ${ac_cv_search_sched_yield+:} false; then :
554126c9 14592
14593else
14594 ac_cv_search_sched_yield=no
14595fi
14596rm conftest.$ac_ext
14597LIBS=$ac_func_search_save_LIBS
14598fi
14599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14600$as_echo "$ac_cv_search_sched_yield" >&6; }
14601ac_res=$ac_cv_search_sched_yield
14602if test "$ac_res" != no; then :
14603 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14604
697aef8c 14605fi
14606
14607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14608$as_echo_n "checking for library containing nanosleep... " >&6; }
ea2e69a4 14609if ${ac_cv_search_nanosleep+:} false; then :
697aef8c 14610 $as_echo_n "(cached) " >&6
14611else
14612 ac_func_search_save_LIBS=$LIBS
14613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14614/* end confdefs.h. */
14615
14616/* Override any GCC internal prototype to avoid an error.
14617 Use char because int might match the return type of a GCC
14618 builtin and then its argument prototype would still apply. */
14619#ifdef __cplusplus
14620extern "C"
14621#endif
14622char nanosleep ();
14623int
14624main ()
14625{
14626return nanosleep ();
14627 ;
14628 return 0;
14629}
14630_ACEOF
14631for ac_lib in '' rt; do
14632 if test -z "$ac_lib"; then
14633 ac_res="none required"
14634 else
14635 ac_res=-l$ac_lib
14636 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14637 fi
14638 if ac_fn_c_try_link "$LINENO"; then :
14639 ac_cv_search_nanosleep=$ac_res
14640fi
14641rm -f core conftest.err conftest.$ac_objext \
14642 conftest$ac_exeext
ea2e69a4 14643 if ${ac_cv_search_nanosleep+:} false; then :
697aef8c 14644 break
14645fi
14646done
ea2e69a4 14647if ${ac_cv_search_nanosleep+:} false; then :
697aef8c 14648
14649else
14650 ac_cv_search_nanosleep=no
14651fi
14652rm conftest.$ac_ext
14653LIBS=$ac_func_search_save_LIBS
14654fi
14655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14656$as_echo "$ac_cv_search_nanosleep" >&6; }
14657ac_res=$ac_cv_search_nanosleep
14658if test "$ac_res" != no; then :
14659 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14660
2b19d687 14661fi
14662
14663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14664$as_echo_n "checking for library containing clock_gettime... " >&6; }
ea2e69a4 14665if ${ac_cv_search_clock_gettime+:} false; then :
2b19d687 14666 $as_echo_n "(cached) " >&6
14667else
14668 ac_func_search_save_LIBS=$LIBS
14669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14670/* end confdefs.h. */
14671
14672/* Override any GCC internal prototype to avoid an error.
14673 Use char because int might match the return type of a GCC
14674 builtin and then its argument prototype would still apply. */
14675#ifdef __cplusplus
14676extern "C"
14677#endif
14678char clock_gettime ();
14679int
14680main ()
14681{
14682return clock_gettime ();
14683 ;
14684 return 0;
14685}
14686_ACEOF
14687for ac_lib in '' rt; do
14688 if test -z "$ac_lib"; then
14689 ac_res="none required"
14690 else
14691 ac_res=-l$ac_lib
14692 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14693 fi
14694 if ac_fn_c_try_link "$LINENO"; then :
14695 ac_cv_search_clock_gettime=$ac_res
14696fi
14697rm -f core conftest.err conftest.$ac_objext \
14698 conftest$ac_exeext
ea2e69a4 14699 if ${ac_cv_search_clock_gettime+:} false; then :
2b19d687 14700 break
14701fi
14702done
ea2e69a4 14703if ${ac_cv_search_clock_gettime+:} false; then :
2b19d687 14704
14705else
14706 ac_cv_search_clock_gettime=no
14707fi
14708rm conftest.$ac_ext
14709LIBS=$ac_func_search_save_LIBS
14710fi
14711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14712$as_echo "$ac_cv_search_clock_gettime" >&6; }
14713ac_res=$ac_cv_search_clock_gettime
14714if test "$ac_res" != no; then :
14715 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14716
554126c9 14717fi
14718
14719
e440a328 14720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14721$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
ea2e69a4 14722if ${ac_cv_c_bigendian+:} false; then :
e440a328 14723 $as_echo_n "(cached) " >&6
14724else
14725 ac_cv_c_bigendian=unknown
14726 # See if we're dealing with a universal compiler.
14727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14728/* end confdefs.h. */
14729#ifndef __APPLE_CC__
14730 not a universal capable compiler
14731 #endif
14732 typedef int dummy;
14733
14734_ACEOF
14735if ac_fn_c_try_compile "$LINENO"; then :
14736
14737 # Check for potential -arch flags. It is not universal unless
14738 # there are at least two -arch flags with different values.
14739 ac_arch=
14740 ac_prev=
14741 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14742 if test -n "$ac_prev"; then
14743 case $ac_word in
14744 i?86 | x86_64 | ppc | ppc64)
14745 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14746 ac_arch=$ac_word
14747 else
14748 ac_cv_c_bigendian=universal
14749 break
14750 fi
14751 ;;
14752 esac
14753 ac_prev=
14754 elif test "x$ac_word" = "x-arch"; then
14755 ac_prev=arch
14756 fi
14757 done
14758fi
14759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14760 if test $ac_cv_c_bigendian = unknown; then
14761 # See if sys/param.h defines the BYTE_ORDER macro.
14762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14763/* end confdefs.h. */
14764#include <sys/types.h>
14765 #include <sys/param.h>
14766
14767int
14768main ()
14769{
14770#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14771 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14772 && LITTLE_ENDIAN)
14773 bogus endian macros
14774 #endif
14775
14776 ;
14777 return 0;
14778}
14779_ACEOF
14780if ac_fn_c_try_compile "$LINENO"; then :
14781 # It does; now see whether it defined to BIG_ENDIAN or not.
14782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14783/* end confdefs.h. */
14784#include <sys/types.h>
14785 #include <sys/param.h>
14786
14787int
14788main ()
14789{
14790#if BYTE_ORDER != BIG_ENDIAN
14791 not big endian
14792 #endif
14793
14794 ;
14795 return 0;
14796}
14797_ACEOF
14798if ac_fn_c_try_compile "$LINENO"; then :
14799 ac_cv_c_bigendian=yes
14800else
14801 ac_cv_c_bigendian=no
14802fi
14803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14804fi
14805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14806 fi
14807 if test $ac_cv_c_bigendian = unknown; then
14808 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14810/* end confdefs.h. */
14811#include <limits.h>
14812
14813int
14814main ()
14815{
14816#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14817 bogus endian macros
14818 #endif
14819
14820 ;
14821 return 0;
14822}
14823_ACEOF
14824if ac_fn_c_try_compile "$LINENO"; then :
14825 # It does; now see whether it defined to _BIG_ENDIAN or not.
14826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14827/* end confdefs.h. */
14828#include <limits.h>
14829
14830int
14831main ()
14832{
14833#ifndef _BIG_ENDIAN
14834 not big endian
14835 #endif
14836
14837 ;
14838 return 0;
14839}
14840_ACEOF
14841if ac_fn_c_try_compile "$LINENO"; then :
14842 ac_cv_c_bigendian=yes
14843else
14844 ac_cv_c_bigendian=no
14845fi
14846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14847fi
14848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14849 fi
14850 if test $ac_cv_c_bigendian = unknown; then
14851 # Compile a test program.
14852 if test "$cross_compiling" = yes; then :
14853 # Try to guess by grepping values from an object file.
14854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14855/* end confdefs.h. */
14856short int ascii_mm[] =
14857 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14858 short int ascii_ii[] =
14859 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14860 int use_ascii (int i) {
14861 return ascii_mm[i] + ascii_ii[i];
14862 }
14863 short int ebcdic_ii[] =
14864 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14865 short int ebcdic_mm[] =
14866 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14867 int use_ebcdic (int i) {
14868 return ebcdic_mm[i] + ebcdic_ii[i];
14869 }
14870 extern int foo;
14871
14872int
14873main ()
14874{
14875return use_ascii (foo) == use_ebcdic (foo);
14876 ;
14877 return 0;
14878}
14879_ACEOF
14880if ac_fn_c_try_compile "$LINENO"; then :
14881 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14882 ac_cv_c_bigendian=yes
14883 fi
14884 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14885 if test "$ac_cv_c_bigendian" = unknown; then
14886 ac_cv_c_bigendian=no
14887 else
14888 # finding both strings is unlikely to happen, but who knows?
14889 ac_cv_c_bigendian=unknown
14890 fi
14891 fi
14892fi
14893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14894else
14895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14896/* end confdefs.h. */
14897$ac_includes_default
14898int
14899main ()
14900{
14901
14902 /* Are we little or big endian? From Harbison&Steele. */
14903 union
14904 {
14905 long int l;
14906 char c[sizeof (long int)];
14907 } u;
14908 u.l = 1;
14909 return u.c[sizeof (long int) - 1] == 1;
14910
14911 ;
14912 return 0;
14913}
14914_ACEOF
14915if ac_fn_c_try_run "$LINENO"; then :
14916 ac_cv_c_bigendian=no
14917else
14918 ac_cv_c_bigendian=yes
14919fi
14920rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14921 conftest.$ac_objext conftest.beam conftest.$ac_ext
14922fi
14923
14924 fi
14925fi
14926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14927$as_echo "$ac_cv_c_bigendian" >&6; }
14928 case $ac_cv_c_bigendian in #(
14929 yes)
14930 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14931;; #(
14932 no)
14933 ;; #(
14934 universal)
14935
14936$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14937
14938 ;; #(
14939 *)
ea2e69a4 14940 as_fn_error $? "unknown endianness
e440a328 14941 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14942 esac
14943
14944
4a273582 14945
14946
14947# Check whether --with-system-libunwind was given.
14948if test "${with_system_libunwind+set}" = set; then :
14949 withval=$with_system_libunwind;
14950fi
14951
14952 # If system-libunwind was not specifically set, pick a default setting.
14953 if test x$with_system_libunwind = x; then
14954 case ${target} in
14955 ia64-*-hpux*) with_system_libunwind=yes ;;
14956 *) with_system_libunwind=no ;;
14957 esac
14958 fi
14959 # Based on system-libunwind and target, do we have ipinfo?
14960 if test x$with_system_libunwind = xyes; then
14961 case ${target} in
14962 ia64-*-*) have_unwind_getipinfo=no ;;
14963 *) have_unwind_getipinfo=yes ;;
14964 esac
14965 else
14966 # Darwin before version 9 does not have _Unwind_GetIPInfo.
14967
14968 case ${target} in
14969 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14970 *) have_unwind_getipinfo=yes ;;
14971 esac
14972
14973 fi
14974
14975 if test x$have_unwind_getipinfo = xyes; then
14976
14977$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14978
14979 fi
14980
e440a328 14981
04206864 14982for ac_header in port.h sched.h semaphore.h sys/file.h sys/mman.h syscall.h sys/epoll.h sys/event.h sys/inotify.h sys/ptrace.h sys/syscall.h sys/user.h sys/utsname.h sys/select.h sys/socket.h net/if.h net/if_arp.h net/route.h netpacket/packet.h sys/prctl.h sys/mount.h sys/vfs.h sys/statfs.h sys/timex.h sys/sysinfo.h utime.h linux/ether.h linux/fs.h linux/ptrace.h linux/reboot.h netinet/in_syst.h netinet/ip.h netinet/ip_mroute.h netinet/if_ether.h
e440a328 14983do :
14984 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14985ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
ea2e69a4 14986if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
e440a328 14987 cat >>confdefs.h <<_ACEOF
14988#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14989_ACEOF
14990
14991fi
14992
14993done
14994
49b4e44b 14995
04206864 14996for ac_header in netinet/icmp6.h
14997do :
14998 ac_fn_c_check_header_compile "$LINENO" "netinet/icmp6.h" "ac_cv_header_netinet_icmp6_h" "#include <netinet/in.h>
14999
15000"
ea2e69a4 15001if test "x$ac_cv_header_netinet_icmp6_h" = xyes; then :
04206864 15002 cat >>confdefs.h <<_ACEOF
15003#define HAVE_NETINET_ICMP6_H 1
15004_ACEOF
15005
15006fi
15007
15008done
15009
15010
87e44028 15011for ac_header in linux/filter.h linux/if_addr.h linux/if_ether.h linux/if_tun.h linux/netlink.h linux/rtnetlink.h
49b4e44b 15012do :
15013 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15014ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
15015#include <sys/socket.h>
15016#endif
15017
15018"
ea2e69a4 15019if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
49b4e44b 15020 cat >>confdefs.h <<_ACEOF
15021#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15022_ACEOF
15023
15024fi
15025
15026done
15027
15028
e440a328 15029 if test "$ac_cv_header_sys_mman_h" = yes; then
15030 HAVE_SYS_MMAN_H_TRUE=
15031 HAVE_SYS_MMAN_H_FALSE='#'
15032else
15033 HAVE_SYS_MMAN_H_TRUE='#'
15034 HAVE_SYS_MMAN_H_FALSE=
15035fi
15036
ccd3f476 15037
00554582 15038for ac_func in strerror_r strsignal wait4 mincore setenv unsetenv dl_iterate_phdr memmem
e440a328 15039do :
15040 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15041ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
ea2e69a4 15042if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
e440a328 15043 cat >>confdefs.h <<_ACEOF
15044#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15045_ACEOF
15046
15047fi
15048done
15049
ccd3f476 15050 if test "$ac_cv_func_strerror_r" = yes; then
15051 HAVE_STRERROR_R_TRUE=
15052 HAVE_STRERROR_R_FALSE='#'
15053else
15054 HAVE_STRERROR_R_TRUE='#'
15055 HAVE_STRERROR_R_FALSE=
15056fi
15057
37d6b690 15058 if test "$ac_cv_func_wait4" = yes; then
15059 HAVE_WAIT4_TRUE=
15060 HAVE_WAIT4_FALSE='#'
15061else
15062 HAVE_WAIT4_TRUE='#'
15063 HAVE_WAIT4_FALSE=
15064fi
15065
e440a328 15066
03118c21 15067for ac_func in accept4 dup3 epoll_create1 faccessat fallocate fchmodat fchownat futimesat getxattr inotify_add_watch inotify_init inotify_init1 inotify_rm_watch listxattr mkdirat mknodat open64 openat pipe2 removexattr renameat setxattr sync_file_range splice syscall tee unlinkat unshare utimensat
8202cb3c 15068do :
15069 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15070ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
ea2e69a4 15071if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8202cb3c 15072 cat >>confdefs.h <<_ACEOF
15073#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15074_ACEOF
15075
15076fi
15077done
15078
0ec80c0c 15079ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
ea2e69a4 15080if test "x$ac_cv_type_off_t" = xyes; then :
0ec80c0c 15081
15082else
15083
15084cat >>confdefs.h <<_ACEOF
15085#define off_t long int
15086_ACEOF
15087
15088fi
15089
8202cb3c 15090ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
ea2e69a4 15091if test "x$ac_cv_type_loff_t" = xyes; then :
8202cb3c 15092
15093cat >>confdefs.h <<_ACEOF
15094#define HAVE_LOFF_T 1
15095_ACEOF
15096
15097
15098fi
15099
15100
6217b5f4 15101LIBS_hold="$LIBS"
15102LIBS="$LIBS -lm"
15103for ac_func in cosl expl logl sinl tanl acosl asinl atanl atan2l expm1l ldexpl log10l log1pl
15104do :
15105 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15106ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
ea2e69a4 15107if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6217b5f4 15108 cat >>confdefs.h <<_ACEOF
15109#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15110_ACEOF
15111
15112fi
15113done
15114
15115LIBS="$LIBS_hold"
15116
a101a385 15117CFLAGS_hold="$CFLAGS"
15118CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15119LIBS_hold="$LIBS"
15120LIBS="$LIBS $PTHREAD_LIBS"
15121for ac_func in sem_timedwait
15122do :
15123 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
ea2e69a4 15124if test "x$ac_cv_func_sem_timedwait" = xyes; then :
a101a385 15125 cat >>confdefs.h <<_ACEOF
15126#define HAVE_SEM_TIMEDWAIT 1
15127_ACEOF
15128
15129fi
15130done
15131
15132CFLAGS="$CFLAGS_hold"
15133LIBS="$LIBS_hold"
15134
5b49fca6 15135LIBS_hold="$LIBS"
15136LIBS="$LIBS $MATH_LIBS"
15137for ac_func in matherr
15138do :
15139 ac_fn_c_check_func "$LINENO" "matherr" "ac_cv_func_matherr"
ea2e69a4 15140if test "x$ac_cv_func_matherr" = xyes; then :
5b49fca6 15141 cat >>confdefs.h <<_ACEOF
15142#define HAVE_MATHERR 1
15143_ACEOF
15144
15145fi
15146done
15147
15148LIBS="$LIBS_hold"
15149
e440a328 15150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
15151$as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
ea2e69a4 15152if ${libgo_cv_c_stringops+:} false; then :
e440a328 15153 $as_echo_n "(cached) " >&6
15154else
15155 CFLAGS_hold=$CFLAGS
15156CFLAGS="$CFLAGS -minline-all-stringops"
15157cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15158/* end confdefs.h. */
15159int i;
15160_ACEOF
15161if ac_fn_c_try_compile "$LINENO"; then :
cea7ac49 15162 libgo_cv_c_stringops=yes
e440a328 15163else
cea7ac49 15164 libgo_cv_c_stringops=no
e440a328 15165fi
15166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15167CFLAGS=$CFLAGS_hold
15168fi
cea7ac49 15169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
15170$as_echo "$libgo_cv_c_stringops" >&6; }
e440a328 15171STRINGOPS_FLAG=
cea7ac49 15172if test "$libgo_cv_c_stringops" = yes; then
e440a328 15173 STRINGOPS_FLAG=-minline-all-stringops
15174fi
15175
15176
68e1881d 15177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5
15178$as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; }
ea2e69a4 15179if ${libgo_cv_c_fancymath+:} false; then :
68e1881d 15180 $as_echo_n "(cached) " >&6
15181else
15182 CFLAGS_hold=$CFLAGS
15183CFLAGS="$CFLAGS -mfancy-math-387"
15184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15185/* end confdefs.h. */
15186int i;
15187_ACEOF
15188if ac_fn_c_try_compile "$LINENO"; then :
15189 libgo_cv_c_fancymath=yes
15190else
15191 libgo_cv_c_fancymath=no
15192fi
15193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15194CFLAGS=$CFLAGS_hold
15195fi
15196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5
15197$as_echo "$libgo_cv_c_fancymath" >&6; }
15198MATH_FLAG=
15199if test "$libgo_cv_c_fancymath" = yes; then
ff60d2b1 15200 MATH_FLAG="-mfancy-math-387"
68e1881d 15201fi
ff60d2b1 15202MATH_FLAG="${MATH_FLAG} -ffp-contract=off -fno-math-errno -fno-trapping-math"
68e1881d 15203
15204
e440a328 15205CFLAGS_hold=$CFLAGS
15206CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
15207ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
ea2e69a4 15208if test "x$ac_cv_type_off64_t" = xyes; then :
e440a328 15209
15210cat >>confdefs.h <<_ACEOF
15211#define HAVE_OFF64_T 1
15212_ACEOF
15213
15214
15215fi
15216
15217CFLAGS=$CFLAGS_hold
15218
d772e63b 15219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
15220$as_echo_n "checking epoll_event size... " >&6; }
ea2e69a4 15221if ${libgo_cv_c_epoll_event_size+:} false; then :
d772e63b 15222 $as_echo_n "(cached) " >&6
15223else
15224 if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then :
15225
15226else
15227 libgo_cv_c_epoll_event_size=0
15228fi
15229
15230fi
15231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
15232$as_echo "$libgo_cv_c_epoll_event_size" >&6; }
15233SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size}
15234
15235
15236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
15237$as_echo_n "checking epoll_event data.fd offset... " >&6; }
ea2e69a4 15238if ${libgo_cv_c_epoll_event_fd_offset+:} false; then :
d772e63b 15239 $as_echo_n "(cached) " >&6
15240else
15241 if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h>
15242#include <sys/epoll.h>"; then :
15243
15244else
15245 libgo_cv_c_epoll_event_fd_offset=0
15246fi
15247
15248fi
15249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
15250$as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
15251STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset}
15252
15253
8dcdfb38 15254cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15255/* end confdefs.h. */
15256#include <sys/stat.h>
15257
15258_ACEOF
15259if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15260 $EGREP "timespec_t.*st_atim" >/dev/null 2>&1; then :
15261 have_stat_timespec=yes
15262else
15263 have_stat_timespec=no
15264fi
15265rm -f conftest*
15266
15267 if test $have_stat_timespec = yes; then
15268 HAVE_STAT_TIMESPEC_TRUE=
15269 HAVE_STAT_TIMESPEC_FALSE='#'
15270else
15271 HAVE_STAT_TIMESPEC_TRUE='#'
15272 HAVE_STAT_TIMESPEC_FALSE=
15273fi
15274
15275
5b49fca6 15276ac_fn_c_check_type "$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include <math.h>
15277"
ea2e69a4 15278if test "x$ac_cv_type_struct_exception" = xyes; then :
5b49fca6 15279 libgo_has_struct_exception=yes
15280else
15281 libgo_has_struct_exception=no
15282fi
15283
15284if test "$libgo_has_struct_exception" = "yes"; then
15285
15286$as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
15287
15288fi
15289
96912098 15290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5
15291$as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; }
ea2e69a4 15292if ${libgo_cv_lib_setcontext_clobbers_tls+:} false; then :
96912098 15293 $as_echo_n "(cached) " >&6
15294else
84a24710 15295 CFLAGS_hold="$CFLAGS"
15296CFLAGS="$PTHREAD_CFLAGS"
15297LIBS_hold="$LIBS"
96912098 15298LIBS="$LIBS $PTHREAD_LIBS"
84a24710 15299# The cast to long int works around a bug in the HP C Compiler
15300# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15301# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15302# This bug is HP SR number 8606223364.
15303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15304$as_echo_n "checking size of void *... " >&6; }
ea2e69a4 15305if ${ac_cv_sizeof_void_p+:} false; then :
84a24710 15306 $as_echo_n "(cached) " >&6
15307else
15308 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15309
15310else
15311 if test "$ac_cv_type_void_p" = yes; then
15312 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15313$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ea2e69a4 15314as_fn_error 77 "cannot compute sizeof (void *)
15315See \`config.log' for more details" "$LINENO" 5; }
84a24710 15316 else
15317 ac_cv_sizeof_void_p=0
15318 fi
15319fi
15320
15321fi
15322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15323$as_echo "$ac_cv_sizeof_void_p" >&6; }
15324
15325
15326
15327cat >>confdefs.h <<_ACEOF
15328#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15329_ACEOF
15330
15331
15332as_fn_arith $ac_cv_sizeof_void_p \* 8 && ptr_type_size=$as_val
96912098 15333if test "$cross_compiling" = yes; then :
84a24710 15334 case "$target:$ptr_type_size" in
15335 i?86-*-solaris2.1[01]:64 | x86_64*-*-solaris2.1[01]:64)
15336 libgo_cv_lib_setcontext_clobbers_tls=yes ;;
15337 *)
15338 libgo_cv_lib_setcontext_clobbers_tls=no ;;
96912098 15339 esac
15340
15341else
15342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15343/* end confdefs.h. */
15344
15345#include <pthread.h>
15346#include <stdlib.h>
15347#include <ucontext.h>
15348#include <unistd.h>
15349
15350__thread int tls;
15351
15352static char stack[10 * 1024 * 1024];
15353static ucontext_t c;
15354
15355/* Called via makecontext/setcontext. */
15356
15357static void
15358cfn (void)
15359{
15360 exit (tls);
15361}
15362
15363/* Called via pthread_create. */
15364
15365static void *
15366tfn (void *dummy)
15367{
15368 /* The thread should still see this value after calling
15369 setcontext. */
15370 tls = 0;
15371
15372 setcontext (&c);
15373
15374 /* The call to setcontext should not return. */
15375 abort ();
15376}
15377
15378int
15379main ()
15380{
15381 pthread_t tid;
15382
15383 /* The thread should not see this value. */
15384 tls = 1;
15385
15386 if (getcontext (&c) < 0)
15387 abort ();
15388
15389 c.uc_stack.ss_sp = stack;
9f89fc14 15390#ifdef MAKECONTEXT_STACK_TOP
15391 c.uc_stack.ss_sp += sizeof stack;
15392#endif
96912098 15393 c.uc_stack.ss_flags = 0;
15394 c.uc_stack.ss_size = sizeof stack;
15395 c.uc_link = NULL;
15396 makecontext (&c, cfn, 0);
15397
15398 if (pthread_create (&tid, NULL, tfn, NULL) != 0)
15399 abort ();
15400
15401 if (pthread_join (tid, NULL) != 0)
15402 abort ();
15403
15404 /* The thread should have called exit. */
15405 abort ();
15406}
15407
15408_ACEOF
15409if ac_fn_c_try_run "$LINENO"; then :
15410 libgo_cv_lib_setcontext_clobbers_tls=no
15411else
15412 libgo_cv_lib_setcontext_clobbers_tls=yes
15413fi
15414rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15415 conftest.$ac_objext conftest.beam conftest.$ac_ext
15416fi
15417
84a24710 15418CFLAGS="$CFLAGS_hold"
96912098 15419LIBS="$LIBS_hold"
15420
15421fi
15422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5
15423$as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; }
15424if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
15425
15426$as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h
15427
15428fi
15429
11f8ac85 15430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
15431$as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
ea2e69a4 15432if ${libgo_cv_ro_eh_frame+:} false; then :
11f8ac85 15433 $as_echo_n "(cached) " >&6
15434else
15435
15436libgo_cv_ro_eh_frame=no
15437echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
15438if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
15439 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
15440 libgo_cv_ro_eh_frame=yes
15441 elif grep '.section.*eh_frame.*#alloc' conftest.c \
15442 | grep -v '#write' > /dev/null; then
15443 libgo_cv_ro_eh_frame=yes
15444 fi
15445fi
15446rm -f conftest.*
15447
15448fi
15449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ro_eh_frame" >&5
15450$as_echo "$libgo_cv_ro_eh_frame" >&6; }
15451if test "x$libgo_cv_ro_eh_frame" = xyes; then
15452
15453$as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
15454
15455else
15456
15457$as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
15458
15459fi
15460
5f69fdaa 15461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Qunused-arguments" >&5
15462$as_echo_n "checking if compiler supports -Qunused-arguments... " >&6; }
ea2e69a4 15463if ${libgo_cv_c_unused_arguments+:} false; then :
5f69fdaa 15464 $as_echo_n "(cached) " >&6
15465else
15466 CFLAGS_hold=$CFLAGS
15467CFLAGS="$CFLAGS -Qunused-arguments"
15468cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15469/* end confdefs.h. */
15470int i;
15471_ACEOF
15472if ac_fn_c_try_compile "$LINENO"; then :
15473 libgo_cv_c_unused_arguments=yes
15474else
15475 libgo_cv_c_unused_arguments=no
15476fi
15477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15478CFLAGS=$CFLAGS_hold
15479fi
15480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_unused_arguments" >&5
15481$as_echo "$libgo_cv_c_unused_arguments" >&6; }
15482
11f8ac85 15483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports GNU comdat group syntax" >&5
15484$as_echo_n "checking if assembler supports GNU comdat group syntax... " >&6; }
ea2e69a4 15485if ${libgo_cv_as_comdat_gnu+:} false; then :
11f8ac85 15486 $as_echo_n "(cached) " >&6
15487else
15488
15489echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
5f69fdaa 15490CFLAGS_hold=$CFLAGS
15491if test "$libgo_cv_c_unused_arguments" = yes; then
15492 CFLAGS="$CFLAGS -Qunused-arguments"
15493fi
11f8ac85 15494if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
15495 libgo_cv_as_comdat_gnu=yes
15496else
15497 libgo_cv_as_comdat_gnu=no
15498fi
5f69fdaa 15499CFLAGS=$CFLAGS_hold
11f8ac85 15500
15501fi
15502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_comdat_gnu" >&5
15503$as_echo "$libgo_cv_as_comdat_gnu" >&6; }
15504if test "x$libgo_cv_as_comdat_gnu" = xyes; then
15505
15506$as_echo "#define HAVE_AS_COMDAT_GAS 1" >>confdefs.h
15507
15508fi
15509
15510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15511$as_echo_n "checking assembler supports pc related relocs... " >&6; }
ea2e69a4 15512if ${libgo_cv_as_x86_pcrel+:} false; then :
11f8ac85 15513 $as_echo_n "(cached) " >&6
15514else
15515
15516libgo_cv_as_x86_pcrel=yes
15517echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
5f69fdaa 15518CFLAGS_hold=$CFLAGS
15519if test "$libgo_cv_c_unused_arguments" = yes; then
15520 CFLAGS="$CFLAGS -Qunused-arguments"
15521fi
11f8ac85 15522if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
15523 libgo_cv_as_x86_pcrel=no
15524fi
5f69fdaa 15525CFLAGS=$CFLAGS_hold
11f8ac85 15526
15527fi
15528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_pcrel" >&5
15529$as_echo "$libgo_cv_as_x86_pcrel" >&6; }
15530if test "x$libgo_cv_as_x86_pcrel" = xyes; then
15531
15532$as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
15533
15534fi
15535
15536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
15537$as_echo_n "checking assembler supports unwind section type... " >&6; }
ea2e69a4 15538if ${libgo_cv_as_x86_64_unwind_section_type+:} false; then :
11f8ac85 15539 $as_echo_n "(cached) " >&6
15540else
15541
15542libgo_cv_as_x86_64_unwind_section_type=yes
15543echo '.section .eh_frame,"a",@unwind' > conftest.s
5f69fdaa 15544CFLAGS_hold=$CFLAGS
15545if test "$libgo_cv_c_unused_arguments" = yes; then
15546 CFLAGS="$CFLAGS -Qunused-arguments"
15547fi
11f8ac85 15548if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
15549 libgo_cv_as_x86_64_unwind_section_type=no
15550fi
5f69fdaa 15551CFLAGS=$CFLAGS_hold
11f8ac85 15552
15553fi
15554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_64_unwind_section_type" >&5
15555$as_echo "$libgo_cv_as_x86_64_unwind_section_type" >&6; }
15556if test "x$libgo_cv_as_x86_64_unwind_section_type" = xyes; then
15557
15558$as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
15559
15560fi
15561
41981ad6 15562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports AES instructions" >&5
15563$as_echo_n "checking assembler supports AES instructions... " >&6; }
ea2e69a4 15564if ${libgo_cv_as_x86_aes+:} false; then :
41981ad6 15565 $as_echo_n "(cached) " >&6
15566else
15567
15568libgo_cv_as_x86_aes=yes
15569echo 'aesenc %xmm0, %xmm1' > conftest.s
15570CFLAGS_hold=$CFLAGS
15571if test "$libgo_cv_c_unused_arguments" = yes; then
15572 CFLAGS="$CFLAGS -Qunused-arguments"
15573fi
15574if $CC $CFLAGS -c conftest.s 2>&1 | grep -i error > /dev/null; then
15575 libgo_cv_as_x86_aes=no
15576fi
15577CFLAGS=$CFLAGS_hold
15578
15579fi
15580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_aes" >&5
15581$as_echo "$libgo_cv_as_x86_aes" >&6; }
15582if test "x$libgo_cv_as_x86_aes" = xyes; then
15583
15584$as_echo "#define HAVE_AS_X86_AES 1" >>confdefs.h
15585
15586fi
15587
e440a328 15588cat >confcache <<\_ACEOF
15589# This file is a shell script that caches the results of configure
15590# tests run on this system so they can be shared between configure
15591# scripts and configure runs, see configure's option --config-cache.
15592# It is not useful on other systems. If it contains results you don't
15593# want to keep, you may remove or edit it.
15594#
15595# config.status only pays attention to the cache file if you give it
15596# the --recheck option to rerun configure.
15597#
15598# `ac_cv_env_foo' variables (set or unset) will be overridden when
15599# loading this file, other *unset* `ac_cv_foo' will be assigned the
15600# following values.
15601
15602_ACEOF
15603
15604# The following way of writing the cache mishandles newlines in values,
15605# but we know of no workaround that is simple, portable, and efficient.
15606# So, we kill variables containing newlines.
15607# Ultrix sh set writes to stderr and can't be redirected directly,
15608# and sets the high bit in the cache file unless we assign to the vars.
15609(
15610 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15611 eval ac_val=\$$ac_var
15612 case $ac_val in #(
15613 *${as_nl}*)
15614 case $ac_var in #(
15615 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15616$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15617 esac
15618 case $ac_var in #(
15619 _ | IFS | as_nl) ;; #(
15620 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15621 *) { eval $ac_var=; unset $ac_var;} ;;
15622 esac ;;
15623 esac
15624 done
15625
15626 (set) 2>&1 |
15627 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15628 *${as_nl}ac_space=\ *)
15629 # `set' does not quote correctly, so add quotes: double-quote
15630 # substitution turns \\\\ into \\, and sed turns \\ into \.
15631 sed -n \
15632 "s/'/'\\\\''/g;
15633 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15634 ;; #(
15635 *)
15636 # `set' quotes correctly as required by POSIX, so do not add quotes.
15637 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15638 ;;
15639 esac |
15640 sort
15641) |
15642 sed '
15643 /^ac_cv_env_/b end
15644 t clear
15645 :clear
15646 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15647 t end
15648 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15649 :end' >>confcache
15650if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15651 if test -w "$cache_file"; then
ea2e69a4 15652 if test "x$cache_file" != "x/dev/null"; then
e440a328 15653 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15654$as_echo "$as_me: updating cache $cache_file" >&6;}
ea2e69a4 15655 if test ! -f "$cache_file" || test -h "$cache_file"; then
15656 cat confcache >"$cache_file"
15657 else
15658 case $cache_file in #(
15659 */* | ?:*)
15660 mv -f confcache "$cache_file"$$ &&
15661 mv -f "$cache_file"$$ "$cache_file" ;; #(
15662 *)
15663 mv -f confcache "$cache_file" ;;
15664 esac
15665 fi
15666 fi
e440a328 15667 else
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15669$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15670 fi
15671fi
15672rm -f confcache
15673
15674if test ${multilib} = yes; then
15675 multilib_arg="--enable-multilib"
15676else
15677 multilib_arg=
15678fi
15679
15680ac_config_files="$ac_config_files Makefile testsuite/Makefile"
15681
15682
15683ac_config_commands="$ac_config_commands default"
15684
15685
15686cat >confcache <<\_ACEOF
15687# This file is a shell script that caches the results of configure
15688# tests run on this system so they can be shared between configure
15689# scripts and configure runs, see configure's option --config-cache.
15690# It is not useful on other systems. If it contains results you don't
15691# want to keep, you may remove or edit it.
15692#
15693# config.status only pays attention to the cache file if you give it
15694# the --recheck option to rerun configure.
15695#
15696# `ac_cv_env_foo' variables (set or unset) will be overridden when
15697# loading this file, other *unset* `ac_cv_foo' will be assigned the
15698# following values.
15699
15700_ACEOF
15701
15702# The following way of writing the cache mishandles newlines in values,
15703# but we know of no workaround that is simple, portable, and efficient.
15704# So, we kill variables containing newlines.
15705# Ultrix sh set writes to stderr and can't be redirected directly,
15706# and sets the high bit in the cache file unless we assign to the vars.
15707(
15708 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15709 eval ac_val=\$$ac_var
15710 case $ac_val in #(
15711 *${as_nl}*)
15712 case $ac_var in #(
15713 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15714$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15715 esac
15716 case $ac_var in #(
15717 _ | IFS | as_nl) ;; #(
15718 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15719 *) { eval $ac_var=; unset $ac_var;} ;;
15720 esac ;;
15721 esac
15722 done
15723
15724 (set) 2>&1 |
15725 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15726 *${as_nl}ac_space=\ *)
15727 # `set' does not quote correctly, so add quotes: double-quote
15728 # substitution turns \\\\ into \\, and sed turns \\ into \.
15729 sed -n \
15730 "s/'/'\\\\''/g;
15731 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15732 ;; #(
15733 *)
15734 # `set' quotes correctly as required by POSIX, so do not add quotes.
15735 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15736 ;;
15737 esac |
15738 sort
15739) |
15740 sed '
15741 /^ac_cv_env_/b end
15742 t clear
15743 :clear
15744 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15745 t end
15746 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15747 :end' >>confcache
15748if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15749 if test -w "$cache_file"; then
ea2e69a4 15750 if test "x$cache_file" != "x/dev/null"; then
e440a328 15751 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15752$as_echo "$as_me: updating cache $cache_file" >&6;}
ea2e69a4 15753 if test ! -f "$cache_file" || test -h "$cache_file"; then
15754 cat confcache >"$cache_file"
15755 else
15756 case $cache_file in #(
15757 */* | ?:*)
15758 mv -f confcache "$cache_file"$$ &&
15759 mv -f "$cache_file"$$ "$cache_file" ;; #(
15760 *)
15761 mv -f confcache "$cache_file" ;;
15762 esac
15763 fi
15764 fi
e440a328 15765 else
15766 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15767$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15768 fi
15769fi
15770rm -f confcache
15771
15772test "x$prefix" = xNONE && prefix=$ac_default_prefix
15773# Let make expand exec_prefix.
15774test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15775
15776DEFS=-DHAVE_CONFIG_H
15777
15778ac_libobjs=
15779ac_ltlibobjs=
ea2e69a4 15780U=
e440a328 15781for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15782 # 1. Remove the extension, and $U if already installed.
15783 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15784 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15785 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15786 # will be set to the directory where LIBOBJS objects are built.
15787 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15788 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15789done
15790LIBOBJS=$ac_libobjs
15791
15792LTLIBOBJS=$ac_ltlibobjs
15793
15794
ea2e69a4 15795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15796$as_echo_n "checking that generated files are newer than configure... " >&6; }
15797 if test -n "$am_sleep_pid"; then
15798 # Hide warnings about reused PIDs.
15799 wait $am_sleep_pid 2>/dev/null
15800 fi
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15802$as_echo "done" >&6; }
e440a328 15803 if test -n "$EXEEXT"; then
15804 am__EXEEXT_TRUE=
15805 am__EXEEXT_FALSE='#'
15806else
15807 am__EXEEXT_TRUE='#'
15808 am__EXEEXT_FALSE=
15809fi
15810
15811if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
ea2e69a4 15812 as_fn_error $? "conditional \"AMDEP\" was never defined.
e440a328 15813Usually this means the macro was only invoked conditionally." "$LINENO" 5
15814fi
15815if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
ea2e69a4 15816 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
e440a328 15817Usually this means the macro was only invoked conditionally." "$LINENO" 5
15818fi
15819if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
ea2e69a4 15820 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
e440a328 15821Usually this means the macro was only invoked conditionally." "$LINENO" 5
15822fi
63e457ad 15823if test -z "${USE_LIBFFI_TRUE}" && test -z "${USE_LIBFFI_FALSE}"; then
ea2e69a4 15824 as_fn_error $? "conditional \"USE_LIBFFI\" was never defined.
63e457ad 15825Usually this means the macro was only invoked conditionally." "$LINENO" 5
15826fi
e440a328 15827if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
ea2e69a4 15828 as_fn_error $? "conditional \"LIBGO_IS_DARWIN\" was never defined.
e440a328 15829Usually this means the macro was only invoked conditionally." "$LINENO" 5
15830fi
15831if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
ea2e69a4 15832 as_fn_error $? "conditional \"LIBGO_IS_FREEBSD\" was never defined.
e440a328 15833Usually this means the macro was only invoked conditionally." "$LINENO" 5
524b52f8 15834fi
15835if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
ea2e69a4 15836 as_fn_error $? "conditional \"LIBGO_IS_IRIX\" was never defined.
524b52f8 15837Usually this means the macro was only invoked conditionally." "$LINENO" 5
e440a328 15838fi
15839if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
ea2e69a4 15840 as_fn_error $? "conditional \"LIBGO_IS_LINUX\" was never defined.
e440a328 15841Usually this means the macro was only invoked conditionally." "$LINENO" 5
15842fi
86240434 15843if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
ea2e69a4 15844 as_fn_error $? "conditional \"LIBGO_IS_NETBSD\" was never defined.
86240434 15845Usually this means the macro was only invoked conditionally." "$LINENO" 5
15846fi
fb08d005 15847if test -z "${LIBGO_IS_OPENBSD_TRUE}" && test -z "${LIBGO_IS_OPENBSD_FALSE}"; then
ea2e69a4 15848 as_fn_error $? "conditional \"LIBGO_IS_OPENBSD\" was never defined.
fb08d005 15849Usually this means the macro was only invoked conditionally." "$LINENO" 5
15850fi
0ce10ea1 15851if test -z "${LIBGO_IS_DRAGONFLY_TRUE}" && test -z "${LIBGO_IS_DRAGONFLY_FALSE}"; then
ea2e69a4 15852 as_fn_error $? "conditional \"LIBGO_IS_DRAGONFLY\" was never defined.
0ce10ea1 15853Usually this means the macro was only invoked conditionally." "$LINENO" 5
15854fi
e440a328 15855if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
ea2e69a4 15856 as_fn_error $? "conditional \"LIBGO_IS_RTEMS\" was never defined.
e440a328 15857Usually this means the macro was only invoked conditionally." "$LINENO" 5
15858fi
cea7ac49 15859if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
ea2e69a4 15860 as_fn_error $? "conditional \"LIBGO_IS_SOLARIS\" was never defined.
e440a328 15861Usually this means the macro was only invoked conditionally." "$LINENO" 5
15862fi
03118c21 15863if test -z "${LIBGO_IS_AIX_TRUE}" && test -z "${LIBGO_IS_AIX_FALSE}"; then
ea2e69a4 15864 as_fn_error $? "conditional \"LIBGO_IS_AIX\" was never defined.
03118c21 15865Usually this means the macro was only invoked conditionally." "$LINENO" 5
15866fi
c6ad139d 15867if test -z "${LIBGO_IS_HURD_TRUE}" && test -z "${LIBGO_IS_HURD_FALSE}"; then
15868 as_fn_error $? "conditional \"LIBGO_IS_HURD\" was never defined.
15869Usually this means the macro was only invoked conditionally." "$LINENO" 5
15870fi
be239ed2 15871if test -z "${LIBGO_IS_BSD_TRUE}" && test -z "${LIBGO_IS_BSD_FALSE}"; then
ea2e69a4 15872 as_fn_error $? "conditional \"LIBGO_IS_BSD\" was never defined.
be239ed2 15873Usually this means the macro was only invoked conditionally." "$LINENO" 5
15874fi
e440a328 15875if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
ea2e69a4 15876 as_fn_error $? "conditional \"USING_SPLIT_STACK\" was never defined.
e440a328 15877Usually this means the macro was only invoked conditionally." "$LINENO" 5
b5f8bff0 15878fi
15879if test -z "${GOC_IS_LLGO_TRUE}" && test -z "${GOC_IS_LLGO_FALSE}"; then
ea2e69a4 15880 as_fn_error $? "conditional \"GOC_IS_LLGO\" was never defined.
b5f8bff0 15881Usually this means the macro was only invoked conditionally." "$LINENO" 5
e440a328 15882fi
15883
15884if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
ea2e69a4 15885 as_fn_error $? "conditional \"HAVE_SYS_MMAN_H\" was never defined.
e440a328 15886Usually this means the macro was only invoked conditionally." "$LINENO" 5
15887fi
ccd3f476 15888if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
ea2e69a4 15889 as_fn_error $? "conditional \"HAVE_STRERROR_R\" was never defined.
ccd3f476 15890Usually this means the macro was only invoked conditionally." "$LINENO" 5
15891fi
37d6b690 15892if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
ea2e69a4 15893 as_fn_error $? "conditional \"HAVE_WAIT4\" was never defined.
37d6b690 15894Usually this means the macro was only invoked conditionally." "$LINENO" 5
15895fi
8dcdfb38 15896if test -z "${HAVE_STAT_TIMESPEC_TRUE}" && test -z "${HAVE_STAT_TIMESPEC_FALSE}"; then
ea2e69a4 15897 as_fn_error $? "conditional \"HAVE_STAT_TIMESPEC\" was never defined.
8dcdfb38 15898Usually this means the macro was only invoked conditionally." "$LINENO" 5
15899fi
e440a328 15900
ea2e69a4 15901: "${CONFIG_STATUS=./config.status}"
e440a328 15902ac_write_fail=0
15903ac_clean_files_save=$ac_clean_files
15904ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15905{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15906$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15907as_write_fail=0
15908cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15909#! $SHELL
15910# Generated by $as_me.
15911# Run this file to recreate the current configuration.
15912# Compiler output produced by configure, useful for debugging
15913# configure, is in config.log if it exists.
15914
15915debug=false
15916ac_cs_recheck=false
15917ac_cs_silent=false
15918
15919SHELL=\${CONFIG_SHELL-$SHELL}
15920export SHELL
15921_ASEOF
15922cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15923## -------------------- ##
15924## M4sh Initialization. ##
15925## -------------------- ##
15926
15927# Be more Bourne compatible
15928DUALCASE=1; export DUALCASE # for MKS sh
15929if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15930 emulate sh
15931 NULLCMD=:
15932 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15933 # is contrary to our usage. Disable this feature.
15934 alias -g '${1+"$@"}'='"$@"'
15935 setopt NO_GLOB_SUBST
15936else
15937 case `(set -o) 2>/dev/null` in #(
15938 *posix*) :
15939 set -o posix ;; #(
15940 *) :
15941 ;;
15942esac
15943fi
15944
15945
15946as_nl='
15947'
15948export as_nl
15949# Printing a long string crashes Solaris 7 /usr/bin/printf.
15950as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15951as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15952as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15953# Prefer a ksh shell builtin over an external printf program on Solaris,
15954# but without wasting forks for bash or zsh.
15955if test -z "$BASH_VERSION$ZSH_VERSION" \
15956 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15957 as_echo='print -r --'
15958 as_echo_n='print -rn --'
15959elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15960 as_echo='printf %s\n'
15961 as_echo_n='printf %s'
15962else
15963 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15964 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15965 as_echo_n='/usr/ucb/echo -n'
15966 else
15967 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15968 as_echo_n_body='eval
15969 arg=$1;
15970 case $arg in #(
15971 *"$as_nl"*)
15972 expr "X$arg" : "X\\(.*\\)$as_nl";
15973 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15974 esac;
15975 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15976 '
15977 export as_echo_n_body
15978 as_echo_n='sh -c $as_echo_n_body as_echo'
15979 fi
15980 export as_echo_body
15981 as_echo='sh -c $as_echo_body as_echo'
15982fi
15983
15984# The user is always right.
15985if test "${PATH_SEPARATOR+set}" != set; then
15986 PATH_SEPARATOR=:
15987 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15988 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15989 PATH_SEPARATOR=';'
15990 }
15991fi
15992
15993
15994# IFS
15995# We need space, tab and new line, in precisely that order. Quoting is
15996# there to prevent editors from complaining about space-tab.
15997# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15998# splitting by setting IFS to empty value.)
15999IFS=" "" $as_nl"
16000
16001# Find who we are. Look in the path if we contain no directory separator.
ea2e69a4 16002as_myself=
e440a328 16003case $0 in #((
16004 *[\\/]* ) as_myself=$0 ;;
16005 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16006for as_dir in $PATH
16007do
16008 IFS=$as_save_IFS
16009 test -z "$as_dir" && as_dir=.
16010 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16011 done
16012IFS=$as_save_IFS
16013
16014 ;;
16015esac
16016# We did not find ourselves, most probably we were run as `sh COMMAND'
16017# in which case we are not to be found in the path.
16018if test "x$as_myself" = x; then
16019 as_myself=$0
16020fi
16021if test ! -f "$as_myself"; then
16022 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16023 exit 1
16024fi
16025
16026# Unset variables that we do not need and which cause bugs (e.g. in
16027# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16028# suppresses any "Segmentation fault" message there. '((' could
16029# trigger a bug in pdksh 5.2.14.
16030for as_var in BASH_ENV ENV MAIL MAILPATH
16031do eval test x\${$as_var+set} = xset \
16032 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16033done
16034PS1='$ '
16035PS2='> '
16036PS4='+ '
16037
16038# NLS nuisances.
16039LC_ALL=C
16040export LC_ALL
16041LANGUAGE=C
16042export LANGUAGE
16043
16044# CDPATH.
16045(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16046
16047
ea2e69a4 16048# as_fn_error STATUS ERROR [LINENO LOG_FD]
16049# ----------------------------------------
e440a328 16050# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16051# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
ea2e69a4 16052# script with STATUS, using 1 if that was 0.
e440a328 16053as_fn_error ()
16054{
ea2e69a4 16055 as_status=$1; test $as_status -eq 0 && as_status=1
16056 if test "$4"; then
16057 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16058 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
e440a328 16059 fi
ea2e69a4 16060 $as_echo "$as_me: error: $2" >&2
e440a328 16061 as_fn_exit $as_status
16062} # as_fn_error
16063
16064
16065# as_fn_set_status STATUS
16066# -----------------------
16067# Set $? to STATUS, without forking.
16068as_fn_set_status ()
16069{
16070 return $1
16071} # as_fn_set_status
16072
16073# as_fn_exit STATUS
16074# -----------------
16075# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16076as_fn_exit ()
16077{
16078 set +e
16079 as_fn_set_status $1
16080 exit $1
16081} # as_fn_exit
16082
16083# as_fn_unset VAR
16084# ---------------
16085# Portably unset VAR.
16086as_fn_unset ()
16087{
16088 { eval $1=; unset $1;}
16089}
16090as_unset=as_fn_unset
16091# as_fn_append VAR VALUE
16092# ----------------------
16093# Append the text in VALUE to the end of the definition contained in VAR. Take
16094# advantage of any shell optimizations that allow amortized linear growth over
16095# repeated appends, instead of the typical quadratic growth present in naive
16096# implementations.
16097if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16098 eval 'as_fn_append ()
16099 {
16100 eval $1+=\$2
16101 }'
16102else
16103 as_fn_append ()
16104 {
16105 eval $1=\$$1\$2
16106 }
16107fi # as_fn_append
16108
16109# as_fn_arith ARG...
16110# ------------------
16111# Perform arithmetic evaluation on the ARGs, and store the result in the
16112# global $as_val. Take advantage of shells that can avoid forks. The arguments
16113# must be portable across $(()) and expr.
16114if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16115 eval 'as_fn_arith ()
16116 {
16117 as_val=$(( $* ))
16118 }'
16119else
16120 as_fn_arith ()
16121 {
16122 as_val=`expr "$@" || test $? -eq 1`
16123 }
16124fi # as_fn_arith
16125
16126
16127if expr a : '\(a\)' >/dev/null 2>&1 &&
16128 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16129 as_expr=expr
16130else
16131 as_expr=false
16132fi
16133
16134if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16135 as_basename=basename
16136else
16137 as_basename=false
16138fi
16139
16140if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16141 as_dirname=dirname
16142else
16143 as_dirname=false
16144fi
16145
16146as_me=`$as_basename -- "$0" ||
16147$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16148 X"$0" : 'X\(//\)$' \| \
16149 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16150$as_echo X/"$0" |
16151 sed '/^.*\/\([^/][^/]*\)\/*$/{
16152 s//\1/
16153 q
16154 }
16155 /^X\/\(\/\/\)$/{
16156 s//\1/
16157 q
16158 }
16159 /^X\/\(\/\).*/{
16160 s//\1/
16161 q
16162 }
16163 s/.*/./; q'`
16164
16165# Avoid depending upon Character Ranges.
16166as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16167as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16168as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16169as_cr_digits='0123456789'
16170as_cr_alnum=$as_cr_Letters$as_cr_digits
16171
16172ECHO_C= ECHO_N= ECHO_T=
16173case `echo -n x` in #(((((
16174-n*)
16175 case `echo 'xy\c'` in
16176 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16177 xy) ECHO_C='\c';;
16178 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16179 ECHO_T=' ';;
16180 esac;;
16181*)
16182 ECHO_N='-n';;
16183esac
16184
16185rm -f conf$$ conf$$.exe conf$$.file
16186if test -d conf$$.dir; then
16187 rm -f conf$$.dir/conf$$.file
16188else
16189 rm -f conf$$.dir
16190 mkdir conf$$.dir 2>/dev/null
16191fi
16192if (echo >conf$$.file) 2>/dev/null; then
16193 if ln -s conf$$.file conf$$ 2>/dev/null; then
16194 as_ln_s='ln -s'
16195 # ... but there are two gotchas:
16196 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16197 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
ea2e69a4 16198 # In both cases, we have to default to `cp -pR'.
e440a328 16199 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
ea2e69a4 16200 as_ln_s='cp -pR'
e440a328 16201 elif ln conf$$.file conf$$ 2>/dev/null; then
16202 as_ln_s=ln
16203 else
ea2e69a4 16204 as_ln_s='cp -pR'
e440a328 16205 fi
16206else
ea2e69a4 16207 as_ln_s='cp -pR'
e440a328 16208fi
16209rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16210rmdir conf$$.dir 2>/dev/null
16211
16212
16213# as_fn_mkdir_p
16214# -------------
16215# Create "$as_dir" as a directory, including parents if necessary.
16216as_fn_mkdir_p ()
16217{
16218
16219 case $as_dir in #(
16220 -*) as_dir=./$as_dir;;
16221 esac
16222 test -d "$as_dir" || eval $as_mkdir_p || {
16223 as_dirs=
16224 while :; do
16225 case $as_dir in #(
16226 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16227 *) as_qdir=$as_dir;;
16228 esac
16229 as_dirs="'$as_qdir' $as_dirs"
16230 as_dir=`$as_dirname -- "$as_dir" ||
16231$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16232 X"$as_dir" : 'X\(//\)[^/]' \| \
16233 X"$as_dir" : 'X\(//\)$' \| \
16234 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16235$as_echo X"$as_dir" |
16236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16237 s//\1/
16238 q
16239 }
16240 /^X\(\/\/\)[^/].*/{
16241 s//\1/
16242 q
16243 }
16244 /^X\(\/\/\)$/{
16245 s//\1/
16246 q
16247 }
16248 /^X\(\/\).*/{
16249 s//\1/
16250 q
16251 }
16252 s/.*/./; q'`
16253 test -d "$as_dir" && break
16254 done
16255 test -z "$as_dirs" || eval "mkdir $as_dirs"
ea2e69a4 16256 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
e440a328 16257
16258
16259} # as_fn_mkdir_p
16260if mkdir -p . 2>/dev/null; then
16261 as_mkdir_p='mkdir -p "$as_dir"'
16262else
16263 test -d ./-p && rmdir ./-p
16264 as_mkdir_p=false
16265fi
16266
ea2e69a4 16267
16268# as_fn_executable_p FILE
16269# -----------------------
16270# Test if FILE is an executable regular file.
16271as_fn_executable_p ()
16272{
16273 test -f "$1" && test -x "$1"
16274} # as_fn_executable_p
16275as_test_x='test -x'
16276as_executable_p=as_fn_executable_p
e440a328 16277
16278# Sed expression to map a string onto a valid CPP name.
16279as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16280
16281# Sed expression to map a string onto a valid variable name.
16282as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16283
16284
16285exec 6>&1
16286## ----------------------------------- ##
16287## Main body of $CONFIG_STATUS script. ##
16288## ----------------------------------- ##
16289_ASEOF
16290test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16291
16292cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16293# Save the log message, to keep $0 and so on meaningful, and to
16294# report actual input values of CONFIG_FILES etc. instead of their
16295# values after options handling.
16296ac_log="
16297This file was extended by package-unused $as_me version-unused, which was
ea2e69a4 16298generated by GNU Autoconf 2.69. Invocation command line was
e440a328 16299
16300 CONFIG_FILES = $CONFIG_FILES
16301 CONFIG_HEADERS = $CONFIG_HEADERS
16302 CONFIG_LINKS = $CONFIG_LINKS
16303 CONFIG_COMMANDS = $CONFIG_COMMANDS
16304 $ $0 $@
16305
16306on `(hostname || uname -n) 2>/dev/null | sed 1q`
16307"
16308
16309_ACEOF
16310
16311case $ac_config_files in *"
16312"*) set x $ac_config_files; shift; ac_config_files=$*;;
16313esac
16314
16315case $ac_config_headers in *"
16316"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16317esac
16318
16319
16320cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16321# Files that config.status was made for.
16322config_files="$ac_config_files"
16323config_headers="$ac_config_headers"
16324config_commands="$ac_config_commands"
16325
16326_ACEOF
16327
16328cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16329ac_cs_usage="\
16330\`$as_me' instantiates files and other configuration actions
16331from templates according to the current configuration. Unless the files
16332and actions are specified as TAGs, all are instantiated by default.
16333
16334Usage: $0 [OPTION]... [TAG]...
16335
16336 -h, --help print this help, then exit
16337 -V, --version print version number and configuration settings, then exit
ea2e69a4 16338 --config print configuration, then exit
e440a328 16339 -q, --quiet, --silent
16340 do not print progress messages
16341 -d, --debug don't remove temporary files
16342 --recheck update $as_me by reconfiguring in the same conditions
16343 --file=FILE[:TEMPLATE]
16344 instantiate the configuration file FILE
16345 --header=FILE[:TEMPLATE]
16346 instantiate the configuration header FILE
16347
16348Configuration files:
16349$config_files
16350
16351Configuration headers:
16352$config_headers
16353
16354Configuration commands:
16355$config_commands
16356
16357Report bugs to the package provider."
16358
16359_ACEOF
16360cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ea2e69a4 16361ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
e440a328 16362ac_cs_version="\\
16363package-unused config.status version-unused
ea2e69a4 16364configured by $0, generated by GNU Autoconf 2.69,
16365 with options \\"\$ac_cs_config\\"
e440a328 16366
ea2e69a4 16367Copyright (C) 2012 Free Software Foundation, Inc.
e440a328 16368This config.status script is free software; the Free Software Foundation
16369gives unlimited permission to copy, distribute and modify it."
16370
16371ac_pwd='$ac_pwd'
16372srcdir='$srcdir'
16373INSTALL='$INSTALL'
16374MKDIR_P='$MKDIR_P'
16375AWK='$AWK'
16376test -n "\$AWK" || AWK=awk
16377_ACEOF
16378
16379cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16380# The default lists apply if the user does not specify any file.
16381ac_need_defaults=:
16382while test $# != 0
16383do
16384 case $1 in
ea2e69a4 16385 --*=?*)
e440a328 16386 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16387 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16388 ac_shift=:
16389 ;;
ea2e69a4 16390 --*=)
16391 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16392 ac_optarg=
16393 ac_shift=:
16394 ;;
e440a328 16395 *)
16396 ac_option=$1
16397 ac_optarg=$2
16398 ac_shift=shift
16399 ;;
16400 esac
16401
16402 case $ac_option in
16403 # Handling of the options.
16404 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16405 ac_cs_recheck=: ;;
16406 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16407 $as_echo "$ac_cs_version"; exit ;;
ea2e69a4 16408 --config | --confi | --conf | --con | --co | --c )
16409 $as_echo "$ac_cs_config"; exit ;;
e440a328 16410 --debug | --debu | --deb | --de | --d | -d )
16411 debug=: ;;
16412 --file | --fil | --fi | --f )
16413 $ac_shift
16414 case $ac_optarg in
16415 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
ea2e69a4 16416 '') as_fn_error $? "missing file argument" ;;
e440a328 16417 esac
16418 as_fn_append CONFIG_FILES " '$ac_optarg'"
16419 ac_need_defaults=false;;
16420 --header | --heade | --head | --hea )
16421 $ac_shift
16422 case $ac_optarg in
16423 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16424 esac
16425 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16426 ac_need_defaults=false;;
16427 --he | --h)
16428 # Conflict between --help and --header
ea2e69a4 16429 as_fn_error $? "ambiguous option: \`$1'
e440a328 16430Try \`$0 --help' for more information.";;
16431 --help | --hel | -h )
16432 $as_echo "$ac_cs_usage"; exit ;;
16433 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16434 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16435 ac_cs_silent=: ;;
16436
16437 # This is an error.
ea2e69a4 16438 -*) as_fn_error $? "unrecognized option: \`$1'
e440a328 16439Try \`$0 --help' for more information." ;;
16440
16441 *) as_fn_append ac_config_targets " $1"
16442 ac_need_defaults=false ;;
16443
16444 esac
16445 shift
16446done
16447
16448ac_configure_extra_args=
16449
16450if $ac_cs_silent; then
16451 exec 6>/dev/null
16452 ac_configure_extra_args="$ac_configure_extra_args --silent"
16453fi
16454
16455_ACEOF
16456cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16457if \$ac_cs_recheck; then
ea2e69a4 16458 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
e440a328 16459 shift
16460 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16461 CONFIG_SHELL='$SHELL'
16462 export CONFIG_SHELL
16463 exec "\$@"
16464fi
16465
16466_ACEOF
16467cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16468exec 5>>config.log
16469{
16470 echo
16471 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16472## Running $as_me. ##
16473_ASBOX
16474 $as_echo "$ac_log"
16475} >&5
16476
16477_ACEOF
16478cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16479#
16480# INIT-COMMANDS
16481#
16482
16483srcdir="$srcdir"
16484host="$host"
16485target="$target"
16486with_multisubdir="$with_multisubdir"
16487with_multisrctop="$with_multisrctop"
16488with_target_subdir="$with_target_subdir"
16489ac_configure_args="${multilib_arg} ${ac_configure_args}"
16490multi_basedir="$multi_basedir"
16491CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16492CC="$CC"
4a273582 16493CXX="$CXX"
16494GFORTRAN="$GFORTRAN"
ea2e69a4 16495GDC="$GDC"
e440a328 16496AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16497
16498
16499# The HP-UX ksh and POSIX shell print the target directory to stdout
16500# if CDPATH is set.
16501(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16502
16503sed_quote_subst='$sed_quote_subst'
16504double_quote_subst='$double_quote_subst'
16505delay_variable_subst='$delay_variable_subst'
16506SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16507Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16508GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16509EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16510FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16511SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16512ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16513LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16514macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16515macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16516enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16517enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16518pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16519enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16520host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16521host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16522host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16523build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16524build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16525build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16526NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16527LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16528max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16529ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16530exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16531lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16532lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16533lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16534reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16535reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16536OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16537deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16538file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16539AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16540AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16541STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16542RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16543old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16544old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16545old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16546lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16547CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16548CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16549compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16550GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16551lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16552lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16553lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16554lt_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"`'
16555objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16556MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16557lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16558lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16559lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16560lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16561lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16562need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16563DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16564NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16565LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16566OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16567OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16568libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16569shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16570extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16571archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16572enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16573export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16574whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16575compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16576old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16577old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16578archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16579archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16580module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16581module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16582with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16583allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16584no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16585hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16586hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16587hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16588hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16589hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16590hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16591hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16592hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16593inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16594link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16595fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16596always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16597export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16598exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16599include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16600prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16601file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16602variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16603need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16604need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16605version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16606runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16607shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16608shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16609libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16610library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16611soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16612install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16613postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16614postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16615finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16616finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16617hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16618sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16619sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16620hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16621enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16622enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16623enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16624old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16625striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16626LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
16627reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
16628reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
16629old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16630compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
16631GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
16632lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
16633lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
16634lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
16635lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
16636lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
16637archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
16638enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
16639export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16640whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16641compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
16642old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
16643old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
16644archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16645archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16646module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
16647module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16648with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
16649allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16650no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16651hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16652hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
16653hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
16654hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
16655hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
16656hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
16657hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
16658hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
16659inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
16660link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
16661fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
16662always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
16663export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
16664exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16665include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16666prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
16667file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
16668hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
16669
16670LTCC='$LTCC'
16671LTCFLAGS='$LTCFLAGS'
16672compiler='$compiler_DEFAULT'
16673
16674# A function that is used when there is no print builtin or printf.
16675func_fallback_echo ()
16676{
16677 eval 'cat <<_LTECHO_EOF
16678\$1
16679_LTECHO_EOF'
16680}
16681
16682# Quote evaled strings.
16683for var in SED \
16684GREP \
16685EGREP \
16686FGREP \
16687SHELL \
16688ECHO \
16689LD \
16690NM \
16691LN_S \
16692lt_SP2NL \
16693lt_NL2SP \
16694reload_flag \
16695OBJDUMP \
16696deplibs_check_method \
16697file_magic_cmd \
16698AR \
16699AR_FLAGS \
16700STRIP \
16701RANLIB \
16702CC \
16703CFLAGS \
16704compiler \
16705lt_cv_sys_global_symbol_pipe \
16706lt_cv_sys_global_symbol_to_cdecl \
16707lt_cv_sys_global_symbol_to_c_name_address \
16708lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16709lt_prog_compiler_no_builtin_flag \
16710lt_prog_compiler_wl \
16711lt_prog_compiler_pic \
16712lt_prog_compiler_static \
16713lt_cv_prog_compiler_c_o \
16714need_locks \
16715DSYMUTIL \
16716NMEDIT \
16717LIPO \
16718OTOOL \
16719OTOOL64 \
16720shrext_cmds \
16721export_dynamic_flag_spec \
16722whole_archive_flag_spec \
16723compiler_needs_object \
16724with_gnu_ld \
16725allow_undefined_flag \
16726no_undefined_flag \
16727hardcode_libdir_flag_spec \
16728hardcode_libdir_flag_spec_ld \
16729hardcode_libdir_separator \
16730fix_srcfile_path \
16731exclude_expsyms \
16732include_expsyms \
16733file_list_spec \
16734variables_saved_for_relink \
16735libname_spec \
16736library_names_spec \
16737soname_spec \
16738install_override_mode \
16739finish_eval \
16740old_striplib \
16741striplib \
16742LD_GO \
16743reload_flag_GO \
16744compiler_GO \
16745lt_prog_compiler_no_builtin_flag_GO \
16746lt_prog_compiler_wl_GO \
16747lt_prog_compiler_pic_GO \
16748lt_prog_compiler_static_GO \
16749lt_cv_prog_compiler_c_o_GO \
16750export_dynamic_flag_spec_GO \
16751whole_archive_flag_spec_GO \
16752compiler_needs_object_GO \
16753with_gnu_ld_GO \
16754allow_undefined_flag_GO \
16755no_undefined_flag_GO \
16756hardcode_libdir_flag_spec_GO \
16757hardcode_libdir_flag_spec_ld_GO \
16758hardcode_libdir_separator_GO \
16759fix_srcfile_path_GO \
16760exclude_expsyms_GO \
16761include_expsyms_GO \
16762file_list_spec_GO; do
16763 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16764 *[\\\\\\\`\\"\\\$]*)
16765 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16766 ;;
16767 *)
16768 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16769 ;;
16770 esac
16771done
16772
16773# Double-quote double-evaled strings.
16774for var in reload_cmds \
16775old_postinstall_cmds \
16776old_postuninstall_cmds \
16777old_archive_cmds \
16778extract_expsyms_cmds \
16779old_archive_from_new_cmds \
16780old_archive_from_expsyms_cmds \
16781archive_cmds \
16782archive_expsym_cmds \
16783module_cmds \
16784module_expsym_cmds \
16785export_symbols_cmds \
16786prelink_cmds \
16787postinstall_cmds \
16788postuninstall_cmds \
16789finish_cmds \
16790sys_lib_search_path_spec \
16791sys_lib_dlsearch_path_spec \
16792reload_cmds_GO \
16793old_archive_cmds_GO \
16794old_archive_from_new_cmds_GO \
16795old_archive_from_expsyms_cmds_GO \
16796archive_cmds_GO \
16797archive_expsym_cmds_GO \
16798module_cmds_GO \
16799module_expsym_cmds_GO \
16800export_symbols_cmds_GO \
16801prelink_cmds_GO; do
16802 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16803 *[\\\\\\\`\\"\\\$]*)
16804 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16805 ;;
16806 *)
16807 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16808 ;;
16809 esac
16810done
16811
16812ac_aux_dir='$ac_aux_dir'
16813xsi_shell='$xsi_shell'
16814lt_shell_append='$lt_shell_append'
16815
16816# See if we are running on zsh, and set the options which allow our
16817# commands through without removal of \ escapes INIT.
16818if test -n "\${ZSH_VERSION+set}" ; then
16819 setopt NO_GLOB_SUBST
16820fi
16821
16822
16823 PACKAGE='$PACKAGE'
16824 VERSION='$VERSION'
16825 TIMESTAMP='$TIMESTAMP'
16826 RM='$RM'
16827 ofile='$ofile'
16828
16829
16830
16831
16832
16833
16834# Variables needed in config.status (file generation) which aren't already
16835# passed by autoconf.
16836SUBDIRS="$SUBDIRS"
16837
16838
16839_ACEOF
16840
16841cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16842
16843# Handling of arguments.
16844for ac_config_target in $ac_config_targets
16845do
16846 case $ac_config_target in
16847 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16848 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16849 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16850 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16851 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16852 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16853 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16854
ea2e69a4 16855 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
e440a328 16856 esac
16857done
16858
16859
16860# If the user did not use the arguments to specify the items to instantiate,
16861# then the envvar interface is used. Set only those that are not.
16862# We use the long form for the default assignment because of an extremely
16863# bizarre bug on SunOS 4.1.3.
16864if $ac_need_defaults; then
16865 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16866 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16867 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16868fi
16869
16870# Have a temporary directory for convenience. Make it in the build tree
16871# simply because there is no reason against having it here, and in addition,
16872# creating and moving files from /tmp can sometimes cause problems.
16873# Hook for its removal unless debugging.
16874# Note that there is a small window in which the directory will not be cleaned:
16875# after its creation but before its name has been assigned to `$tmp'.
16876$debug ||
16877{
ea2e69a4 16878 tmp= ac_tmp=
e440a328 16879 trap 'exit_status=$?
ea2e69a4 16880 : "${ac_tmp:=$tmp}"
16881 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
e440a328 16882' 0
16883 trap 'as_fn_exit 1' 1 2 13 15
16884}
16885# Create a (secure) tmp directory for tmp files.
16886
16887{
16888 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ea2e69a4 16889 test -d "$tmp"
e440a328 16890} ||
16891{
16892 tmp=./conf$$-$RANDOM
16893 (umask 077 && mkdir "$tmp")
ea2e69a4 16894} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16895ac_tmp=$tmp
e440a328 16896
16897# Set up the scripts for CONFIG_FILES section.
16898# No need to generate them if there are no CONFIG_FILES.
16899# This happens for instance with `./config.status config.h'.
16900if test -n "$CONFIG_FILES"; then
16901
16902
16903ac_cr=`echo X | tr X '\015'`
16904# On cygwin, bash can eat \r inside `` if the user requested igncr.
16905# But we know of no other shell where ac_cr would be empty at this
16906# point, so we can use a bashism as a fallback.
16907if test "x$ac_cr" = x; then
16908 eval ac_cr=\$\'\\r\'
16909fi
16910ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16911if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
ea2e69a4 16912 ac_cs_awk_cr='\\r'
e440a328 16913else
16914 ac_cs_awk_cr=$ac_cr
16915fi
16916
ea2e69a4 16917echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
e440a328 16918_ACEOF
16919
16920
16921{
16922 echo "cat >conf$$subs.awk <<_ACEOF" &&
16923 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16924 echo "_ACEOF"
16925} >conf$$subs.sh ||
ea2e69a4 16926 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16927ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
e440a328 16928ac_delim='%!_!# '
16929for ac_last_try in false false false false false :; do
16930 . ./conf$$subs.sh ||
ea2e69a4 16931 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
e440a328 16932
16933 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16934 if test $ac_delim_n = $ac_delim_num; then
16935 break
16936 elif $ac_last_try; then
ea2e69a4 16937 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
e440a328 16938 else
16939 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16940 fi
16941done
16942rm -f conf$$subs.sh
16943
16944cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ea2e69a4 16945cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
e440a328 16946_ACEOF
16947sed -n '
16948h
16949s/^/S["/; s/!.*/"]=/
16950p
16951g
16952s/^[^!]*!//
16953:repl
16954t repl
16955s/'"$ac_delim"'$//
16956t delim
16957:nl
16958h
ea2e69a4 16959s/\(.\{148\}\)..*/\1/
e440a328 16960t more1
16961s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16962p
16963n
16964b repl
16965:more1
16966s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16967p
16968g
16969s/.\{148\}//
16970t nl
16971:delim
16972h
ea2e69a4 16973s/\(.\{148\}\)..*/\1/
e440a328 16974t more2
16975s/["\\]/\\&/g; s/^/"/; s/$/"/
16976p
16977b
16978:more2
16979s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16980p
16981g
16982s/.\{148\}//
16983t delim
16984' <conf$$subs.awk | sed '
16985/^[^""]/{
16986 N
16987 s/\n//
16988}
16989' >>$CONFIG_STATUS || ac_write_fail=1
16990rm -f conf$$subs.awk
16991cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16992_ACAWK
ea2e69a4 16993cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
e440a328 16994 for (key in S) S_is_set[key] = 1
16995 FS = "\a"
16996
16997}
16998{
16999 line = $ 0
17000 nfields = split(line, field, "@")
17001 substed = 0
17002 len = length(field[1])
17003 for (i = 2; i < nfields; i++) {
17004 key = field[i]
17005 keylen = length(key)
17006 if (S_is_set[key]) {
17007 value = S[key]
17008 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17009 len += length(value) + length(field[++i])
17010 substed = 1
17011 } else
17012 len += 1 + keylen
17013 }
17014
17015 print line
17016}
17017
17018_ACAWK
17019_ACEOF
17020cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17021if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17022 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17023else
17024 cat
ea2e69a4 17025fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17026 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
e440a328 17027_ACEOF
17028
ea2e69a4 17029# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17030# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
e440a328 17031# trailing colons and then remove the whole line if VPATH becomes empty
17032# (actually we leave an empty line to preserve line numbers).
17033if test "x$srcdir" = x.; then
ea2e69a4 17034 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17035h
17036s///
17037s/^/:/
17038s/[ ]*$/:/
17039s/:\$(srcdir):/:/g
17040s/:\${srcdir}:/:/g
17041s/:@srcdir@:/:/g
17042s/^:*//
e440a328 17043s/:*$//
ea2e69a4 17044x
17045s/\(=[ ]*\).*/\1/
17046G
17047s/\n//
e440a328 17048s/^[^=]*=[ ]*$//
17049}'
17050fi
17051
17052cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17053fi # test -n "$CONFIG_FILES"
17054
17055# Set up the scripts for CONFIG_HEADERS section.
17056# No need to generate them if there are no CONFIG_HEADERS.
17057# This happens for instance with `./config.status Makefile'.
17058if test -n "$CONFIG_HEADERS"; then
ea2e69a4 17059cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
e440a328 17060BEGIN {
17061_ACEOF
17062
17063# Transform confdefs.h into an awk script `defines.awk', embedded as
17064# here-document in config.status, that substitutes the proper values into
17065# config.h.in to produce config.h.
17066
17067# Create a delimiter string that does not exist in confdefs.h, to ease
17068# handling of long lines.
17069ac_delim='%!_!# '
17070for ac_last_try in false false :; do
ea2e69a4 17071 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17072 if test -z "$ac_tt"; then
e440a328 17073 break
17074 elif $ac_last_try; then
ea2e69a4 17075 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
e440a328 17076 else
17077 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17078 fi
17079done
17080
17081# For the awk script, D is an array of macro values keyed by name,
17082# likewise P contains macro parameters if any. Preserve backslash
17083# newline sequences.
17084
17085ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17086sed -n '
17087s/.\{148\}/&'"$ac_delim"'/g
17088t rset
17089:rset
17090s/^[ ]*#[ ]*define[ ][ ]*/ /
17091t def
17092d
17093:def
17094s/\\$//
17095t bsnl
17096s/["\\]/\\&/g
17097s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17098D["\1"]=" \3"/p
17099s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17100d
17101:bsnl
17102s/["\\]/\\&/g
17103s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17104D["\1"]=" \3\\\\\\n"\\/p
17105t cont
17106s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17107t cont
17108d
17109:cont
17110n
17111s/.\{148\}/&'"$ac_delim"'/g
17112t clear
17113:clear
17114s/\\$//
17115t bsnlc
17116s/["\\]/\\&/g; s/^/"/; s/$/"/p
17117d
17118:bsnlc
17119s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17120b cont
17121' <confdefs.h | sed '
17122s/'"$ac_delim"'/"\\\
17123"/g' >>$CONFIG_STATUS || ac_write_fail=1
17124
17125cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17126 for (key in D) D_is_set[key] = 1
17127 FS = "\a"
17128}
17129/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17130 line = \$ 0
17131 split(line, arg, " ")
17132 if (arg[1] == "#") {
17133 defundef = arg[2]
17134 mac1 = arg[3]
17135 } else {
17136 defundef = substr(arg[1], 2)
17137 mac1 = arg[2]
17138 }
17139 split(mac1, mac2, "(") #)
17140 macro = mac2[1]
17141 prefix = substr(line, 1, index(line, defundef) - 1)
17142 if (D_is_set[macro]) {
17143 # Preserve the white space surrounding the "#".
17144 print prefix "define", macro P[macro] D[macro]
17145 next
17146 } else {
17147 # Replace #undef with comments. This is necessary, for example,
17148 # in the case of _POSIX_SOURCE, which is predefined and required
17149 # on some systems where configure will not decide to define it.
17150 if (defundef == "undef") {
17151 print "/*", prefix defundef, macro, "*/"
17152 next
17153 }
17154 }
17155}
17156{ print }
17157_ACAWK
17158_ACEOF
17159cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ea2e69a4 17160 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
e440a328 17161fi # test -n "$CONFIG_HEADERS"
17162
17163
17164eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17165shift
17166for ac_tag
17167do
17168 case $ac_tag in
17169 :[FHLC]) ac_mode=$ac_tag; continue;;
17170 esac
17171 case $ac_mode$ac_tag in
17172 :[FHL]*:*);;
ea2e69a4 17173 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
e440a328 17174 :[FH]-) ac_tag=-:-;;
17175 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17176 esac
17177 ac_save_IFS=$IFS
17178 IFS=:
17179 set x $ac_tag
17180 IFS=$ac_save_IFS
17181 shift
17182 ac_file=$1
17183 shift
17184
17185 case $ac_mode in
17186 :L) ac_source=$1;;
17187 :[FH])
17188 ac_file_inputs=
17189 for ac_f
17190 do
17191 case $ac_f in
ea2e69a4 17192 -) ac_f="$ac_tmp/stdin";;
e440a328 17193 *) # Look for the file first in the build tree, then in the source tree
17194 # (if the path is not absolute). The absolute path cannot be DOS-style,
17195 # because $ac_f cannot contain `:'.
17196 test -f "$ac_f" ||
17197 case $ac_f in
17198 [\\/$]*) false;;
17199 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17200 esac ||
ea2e69a4 17201 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
e440a328 17202 esac
17203 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17204 as_fn_append ac_file_inputs " '$ac_f'"
17205 done
17206
17207 # Let's still pretend it is `configure' which instantiates (i.e., don't
17208 # use $as_me), people would be surprised to read:
17209 # /* config.h. Generated by config.status. */
17210 configure_input='Generated from '`
17211 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17212 `' by configure.'
17213 if test x"$ac_file" != x-; then
17214 configure_input="$ac_file. $configure_input"
17215 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17216$as_echo "$as_me: creating $ac_file" >&6;}
17217 fi
17218 # Neutralize special characters interpreted by sed in replacement strings.
17219 case $configure_input in #(
17220 *\&* | *\|* | *\\* )
17221 ac_sed_conf_input=`$as_echo "$configure_input" |
17222 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17223 *) ac_sed_conf_input=$configure_input;;
17224 esac
17225
17226 case $ac_tag in
ea2e69a4 17227 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17228 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
e440a328 17229 esac
17230 ;;
17231 esac
17232
17233 ac_dir=`$as_dirname -- "$ac_file" ||
17234$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17235 X"$ac_file" : 'X\(//\)[^/]' \| \
17236 X"$ac_file" : 'X\(//\)$' \| \
17237 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17238$as_echo X"$ac_file" |
17239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17240 s//\1/
17241 q
17242 }
17243 /^X\(\/\/\)[^/].*/{
17244 s//\1/
17245 q
17246 }
17247 /^X\(\/\/\)$/{
17248 s//\1/
17249 q
17250 }
17251 /^X\(\/\).*/{
17252 s//\1/
17253 q
17254 }
17255 s/.*/./; q'`
17256 as_dir="$ac_dir"; as_fn_mkdir_p
17257 ac_builddir=.
17258
17259case "$ac_dir" in
17260.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17261*)
17262 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17263 # A ".." for each directory in $ac_dir_suffix.
17264 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17265 case $ac_top_builddir_sub in
17266 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17267 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17268 esac ;;
17269esac
17270ac_abs_top_builddir=$ac_pwd
17271ac_abs_builddir=$ac_pwd$ac_dir_suffix
17272# for backward compatibility:
17273ac_top_builddir=$ac_top_build_prefix
17274
17275case $srcdir in
17276 .) # We are building in place.
17277 ac_srcdir=.
17278 ac_top_srcdir=$ac_top_builddir_sub
17279 ac_abs_top_srcdir=$ac_pwd ;;
17280 [\\/]* | ?:[\\/]* ) # Absolute name.
17281 ac_srcdir=$srcdir$ac_dir_suffix;
17282 ac_top_srcdir=$srcdir
17283 ac_abs_top_srcdir=$srcdir ;;
17284 *) # Relative name.
17285 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17286 ac_top_srcdir=$ac_top_build_prefix$srcdir
17287 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17288esac
17289ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17290
17291
17292 case $ac_mode in
17293 :F)
17294 #
17295 # CONFIG_FILE
17296 #
17297
17298 case $INSTALL in
17299 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17300 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17301 esac
17302 ac_MKDIR_P=$MKDIR_P
17303 case $MKDIR_P in
17304 [\\/$]* | ?:[\\/]* ) ;;
17305 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17306 esac
17307_ACEOF
17308
17309cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17310# If the template does not know about datarootdir, expand it.
17311# FIXME: This hack should be removed a few years after 2.60.
17312ac_datarootdir_hack=; ac_datarootdir_seen=
17313ac_sed_dataroot='
17314/datarootdir/ {
17315 p
17316 q
17317}
17318/@datadir@/p
17319/@docdir@/p
17320/@infodir@/p
17321/@localedir@/p
17322/@mandir@/p'
17323case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17324*datarootdir*) ac_datarootdir_seen=yes;;
17325*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17327$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17328_ACEOF
17329cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17330 ac_datarootdir_hack='
17331 s&@datadir@&$datadir&g
17332 s&@docdir@&$docdir&g
17333 s&@infodir@&$infodir&g
17334 s&@localedir@&$localedir&g
17335 s&@mandir@&$mandir&g
17336 s&\\\${datarootdir}&$datarootdir&g' ;;
17337esac
17338_ACEOF
17339
17340# Neutralize VPATH when `$srcdir' = `.'.
17341# Shell code in configure.ac might set extrasub.
17342# FIXME: do we really want to maintain this feature?
17343cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17344ac_sed_extra="$ac_vpsub
17345$extrasub
17346_ACEOF
17347cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17348:t
17349/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17350s|@configure_input@|$ac_sed_conf_input|;t t
17351s&@top_builddir@&$ac_top_builddir_sub&;t t
17352s&@top_build_prefix@&$ac_top_build_prefix&;t t
17353s&@srcdir@&$ac_srcdir&;t t
17354s&@abs_srcdir@&$ac_abs_srcdir&;t t
17355s&@top_srcdir@&$ac_top_srcdir&;t t
17356s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17357s&@builddir@&$ac_builddir&;t t
17358s&@abs_builddir@&$ac_abs_builddir&;t t
17359s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17360s&@INSTALL@&$ac_INSTALL&;t t
17361s&@MKDIR_P@&$ac_MKDIR_P&;t t
17362$ac_datarootdir_hack
17363"
ea2e69a4 17364eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17365 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
e440a328 17366
17367test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
ea2e69a4 17368 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17369 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17370 "$ac_tmp/out"`; test -z "$ac_out"; } &&
e440a328 17371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
ea2e69a4 17372which seems to be undefined. Please make sure it is defined" >&5
e440a328 17373$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
ea2e69a4 17374which seems to be undefined. Please make sure it is defined" >&2;}
e440a328 17375
ea2e69a4 17376 rm -f "$ac_tmp/stdin"
e440a328 17377 case $ac_file in
ea2e69a4 17378 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17379 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
e440a328 17380 esac \
ea2e69a4 17381 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
e440a328 17382 ;;
17383 :H)
17384 #
17385 # CONFIG_HEADER
17386 #
17387 if test x"$ac_file" != x-; then
17388 {
17389 $as_echo "/* $configure_input */" \
ea2e69a4 17390 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17391 } >"$ac_tmp/config.h" \
17392 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17393 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
e440a328 17394 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17395$as_echo "$as_me: $ac_file is unchanged" >&6;}
17396 else
17397 rm -f "$ac_file"
ea2e69a4 17398 mv "$ac_tmp/config.h" "$ac_file" \
17399 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
e440a328 17400 fi
17401 else
17402 $as_echo "/* $configure_input */" \
ea2e69a4 17403 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17404 || as_fn_error $? "could not create -" "$LINENO" 5
e440a328 17405 fi
17406# Compute "$ac_file"'s index in $config_headers.
17407_am_arg="$ac_file"
17408_am_stamp_count=1
17409for _am_header in $config_headers :; do
17410 case $_am_header in
17411 $_am_arg | $_am_arg:* )
17412 break ;;
17413 * )
17414 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17415 esac
17416done
17417echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17418$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17419 X"$_am_arg" : 'X\(//\)[^/]' \| \
17420 X"$_am_arg" : 'X\(//\)$' \| \
17421 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17422$as_echo X"$_am_arg" |
17423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17424 s//\1/
17425 q
17426 }
17427 /^X\(\/\/\)[^/].*/{
17428 s//\1/
17429 q
17430 }
17431 /^X\(\/\/\)$/{
17432 s//\1/
17433 q
17434 }
17435 /^X\(\/\).*/{
17436 s//\1/
17437 q
17438 }
17439 s/.*/./; q'`/stamp-h$_am_stamp_count
17440 ;;
17441
17442 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17443$as_echo "$as_me: executing $ac_file commands" >&6;}
17444 ;;
17445 esac
17446
17447
17448 case $ac_file$ac_mode in
17449 "default-1":C)
17450# Only add multilib support code if we just rebuilt the top-level
17451# Makefile.
17452case " $CONFIG_FILES " in
17453 *" Makefile "*)
17454 ac_file=Makefile . ${multi_basedir}/config-ml.in
17455 ;;
17456esac ;;
17457 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
ea2e69a4 17458 # Older Autoconf quotes --file arguments for eval, but not when files
e440a328 17459 # are listed without --file. Let's play safe and only enable the eval
17460 # if we detect the quoting.
17461 case $CONFIG_FILES in
17462 *\'*) eval set x "$CONFIG_FILES" ;;
17463 *) set x $CONFIG_FILES ;;
17464 esac
17465 shift
17466 for mf
17467 do
17468 # Strip MF so we end up with the name of the file.
17469 mf=`echo "$mf" | sed -e 's/:.*$//'`
17470 # Check whether this is an Automake generated Makefile or not.
ea2e69a4 17471 # We used to match only the files named 'Makefile.in', but
e440a328 17472 # some people rename them; so instead we look at the file content.
17473 # Grep'ing the first line is not enough: some people post-process
17474 # each Makefile.in and add a new line on top of each file to say so.
17475 # Grep'ing the whole file is not good either: AIX grep has a line
17476 # limit of 2048, but all sed's we know have understand at least 4000.
17477 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17478 dirpart=`$as_dirname -- "$mf" ||
17479$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17480 X"$mf" : 'X\(//\)[^/]' \| \
17481 X"$mf" : 'X\(//\)$' \| \
17482 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17483$as_echo X"$mf" |
17484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17485 s//\1/
17486 q
17487 }
17488 /^X\(\/\/\)[^/].*/{
17489 s//\1/
17490 q
17491 }
17492 /^X\(\/\/\)$/{
17493 s//\1/
17494 q
17495 }
17496 /^X\(\/\).*/{
17497 s//\1/
17498 q
17499 }
17500 s/.*/./; q'`
17501 else
17502 continue
17503 fi
17504 # Extract the definition of DEPDIR, am__include, and am__quote
ea2e69a4 17505 # from the Makefile without running 'make'.
e440a328 17506 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17507 test -z "$DEPDIR" && continue
17508 am__include=`sed -n 's/^am__include = //p' < "$mf"`
ea2e69a4 17509 test -z "$am__include" && continue
e440a328 17510 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
e440a328 17511 # Find all dependency output files, they are included files with
17512 # $(DEPDIR) in their names. We invoke sed twice because it is the
17513 # simplest approach to changing $(DEPDIR) to its actual value in the
17514 # expansion.
17515 for file in `sed -n "
17516 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
ea2e69a4 17517 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
e440a328 17518 # Make sure the directory exists.
17519 test -f "$dirpart/$file" && continue
17520 fdir=`$as_dirname -- "$file" ||
17521$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17522 X"$file" : 'X\(//\)[^/]' \| \
17523 X"$file" : 'X\(//\)$' \| \
17524 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17525$as_echo X"$file" |
17526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17527 s//\1/
17528 q
17529 }
17530 /^X\(\/\/\)[^/].*/{
17531 s//\1/
17532 q
17533 }
17534 /^X\(\/\/\)$/{
17535 s//\1/
17536 q
17537 }
17538 /^X\(\/\).*/{
17539 s//\1/
17540 q
17541 }
17542 s/.*/./; q'`
17543 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17544 # echo "creating $dirpart/$file"
17545 echo '# dummy' > "$dirpart/$file"
17546 done
17547 done
17548}
17549 ;;
17550 "libtool":C)
17551
17552 # See if we are running on zsh, and set the options which allow our
17553 # commands through without removal of \ escapes.
17554 if test -n "${ZSH_VERSION+set}" ; then
17555 setopt NO_GLOB_SUBST
17556 fi
17557
17558 cfgfile="${ofile}T"
17559 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17560 $RM "$cfgfile"
17561
17562 cat <<_LT_EOF >> "$cfgfile"
17563#! $SHELL
17564
17565# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17566# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17567# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17568# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17569#
17570# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17571# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17572# Written by Gordon Matzigkeit, 1996
17573#
17574# This file is part of GNU Libtool.
17575#
17576# GNU Libtool is free software; you can redistribute it and/or
17577# modify it under the terms of the GNU General Public License as
17578# published by the Free Software Foundation; either version 2 of
17579# the License, or (at your option) any later version.
17580#
17581# As a special exception to the GNU General Public License,
17582# if you distribute this file as part of a program or library that
17583# is built using GNU Libtool, you may include this file under the
17584# same distribution terms that you use for the rest of that program.
17585#
17586# GNU Libtool is distributed in the hope that it will be useful,
17587# but WITHOUT ANY WARRANTY; without even the implied warranty of
17588# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17589# GNU General Public License for more details.
17590#
17591# You should have received a copy of the GNU General Public License
17592# along with GNU Libtool; see the file COPYING. If not, a copy
17593# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17594# obtained by writing to the Free Software Foundation, Inc.,
17595# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17596
17597
17598# The names of the tagged configurations supported by this script.
17599available_tags="GO "
17600
17601# ### BEGIN LIBTOOL CONFIG
17602
17603# A sed program that does not truncate output.
17604SED=$lt_SED
17605
17606# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17607Xsed="\$SED -e 1s/^X//"
17608
17609# A grep program that handles long lines.
17610GREP=$lt_GREP
17611
17612# An ERE matcher.
17613EGREP=$lt_EGREP
17614
17615# A literal string matcher.
17616FGREP=$lt_FGREP
17617
17618# Shell to use when invoking shell scripts.
17619SHELL=$lt_SHELL
17620
17621# An echo program that protects backslashes.
17622ECHO=$lt_ECHO
17623
17624# Which release of libtool.m4 was used?
17625macro_version=$macro_version
17626macro_revision=$macro_revision
17627
17628# Whether or not to build shared libraries.
17629build_libtool_libs=$enable_shared
17630
17631# Whether or not to build static libraries.
17632build_old_libs=$enable_static
17633
17634# What type of objects to build.
17635pic_mode=$pic_mode
17636
17637# Whether or not to optimize for fast installation.
17638fast_install=$enable_fast_install
17639
17640# The host system.
17641host_alias=$host_alias
17642host=$host
17643host_os=$host_os
17644
17645# The build system.
17646build_alias=$build_alias
17647build=$build
17648build_os=$build_os
17649
17650# A BSD- or MS-compatible name lister.
17651NM=$lt_NM
17652
17653# Whether we need soft or hard links.
17654LN_S=$lt_LN_S
17655
17656# What is the maximum length of a command?
17657max_cmd_len=$max_cmd_len
17658
17659# Object file suffix (normally "o").
17660objext=$ac_objext
17661
17662# Executable file suffix (normally "").
17663exeext=$exeext
17664
17665# whether the shell understands "unset".
17666lt_unset=$lt_unset
17667
17668# turn spaces into newlines.
17669SP2NL=$lt_lt_SP2NL
17670
17671# turn newlines into spaces.
17672NL2SP=$lt_lt_NL2SP
17673
17674# An object symbol dumper.
17675OBJDUMP=$lt_OBJDUMP
17676
17677# Method to check whether dependent libraries are shared objects.
17678deplibs_check_method=$lt_deplibs_check_method
17679
17680# Command to use when deplibs_check_method == "file_magic".
17681file_magic_cmd=$lt_file_magic_cmd
17682
17683# The archiver.
17684AR=$lt_AR
17685AR_FLAGS=$lt_AR_FLAGS
17686
17687# A symbol stripping program.
17688STRIP=$lt_STRIP
17689
17690# Commands used to install an old-style archive.
17691RANLIB=$lt_RANLIB
17692old_postinstall_cmds=$lt_old_postinstall_cmds
17693old_postuninstall_cmds=$lt_old_postuninstall_cmds
17694
17695# Whether to use a lock for old archive extraction.
17696lock_old_archive_extraction=$lock_old_archive_extraction
17697
17698# A C compiler.
17699LTCC=$lt_CC
17700
17701# LTCC compiler flags.
17702LTCFLAGS=$lt_CFLAGS
17703
17704# Take the output of nm and produce a listing of raw symbols and C names.
17705global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17706
17707# Transform the output of nm in a proper C declaration.
17708global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17709
17710# Transform the output of nm in a C name address pair.
17711global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17712
17713# Transform the output of nm in a C name address pair when lib prefix is needed.
17714global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17715
17716# The name of the directory that contains temporary libtool files.
17717objdir=$objdir
17718
17719# Used to examine libraries when file_magic_cmd begins with "file".
17720MAGIC_CMD=$MAGIC_CMD
17721
17722# Must we lock files when doing compilation?
17723need_locks=$lt_need_locks
17724
17725# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17726DSYMUTIL=$lt_DSYMUTIL
17727
17728# Tool to change global to local symbols on Mac OS X.
17729NMEDIT=$lt_NMEDIT
17730
17731# Tool to manipulate fat objects and archives on Mac OS X.
17732LIPO=$lt_LIPO
17733
17734# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17735OTOOL=$lt_OTOOL
17736
17737# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17738OTOOL64=$lt_OTOOL64
17739
17740# Old archive suffix (normally "a").
17741libext=$libext
17742
17743# Shared library suffix (normally ".so").
17744shrext_cmds=$lt_shrext_cmds
17745
17746# The commands to extract the exported symbol list from a shared archive.
17747extract_expsyms_cmds=$lt_extract_expsyms_cmds
17748
17749# Variables whose values should be saved in libtool wrapper scripts and
17750# restored at link time.
17751variables_saved_for_relink=$lt_variables_saved_for_relink
17752
17753# Do we need the "lib" prefix for modules?
17754need_lib_prefix=$need_lib_prefix
17755
17756# Do we need a version for libraries?
17757need_version=$need_version
17758
17759# Library versioning type.
17760version_type=$version_type
17761
17762# Shared library runtime path variable.
17763runpath_var=$runpath_var
17764
17765# Shared library path variable.
17766shlibpath_var=$shlibpath_var
17767
17768# Is shlibpath searched before the hard-coded library search path?
17769shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17770
17771# Format of library name prefix.
17772libname_spec=$lt_libname_spec
17773
17774# List of archive names. First name is the real one, the rest are links.
17775# The last name is the one that the linker finds with -lNAME
17776library_names_spec=$lt_library_names_spec
17777
17778# The coded name of the library, if different from the real name.
17779soname_spec=$lt_soname_spec
17780
17781# Permission mode override for installation of shared libraries.
17782install_override_mode=$lt_install_override_mode
17783
17784# Command to use after installation of a shared archive.
17785postinstall_cmds=$lt_postinstall_cmds
17786
17787# Command to use after uninstallation of a shared archive.
17788postuninstall_cmds=$lt_postuninstall_cmds
17789
17790# Commands used to finish a libtool library installation in a directory.
17791finish_cmds=$lt_finish_cmds
17792
17793# As "finish_cmds", except a single script fragment to be evaled but
17794# not shown.
17795finish_eval=$lt_finish_eval
17796
17797# Whether we should hardcode library paths into libraries.
17798hardcode_into_libs=$hardcode_into_libs
17799
17800# Compile-time system search path for libraries.
17801sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17802
17803# Run-time system search path for libraries.
17804sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17805
17806# Whether dlopen is supported.
17807dlopen_support=$enable_dlopen
17808
17809# Whether dlopen of programs is supported.
17810dlopen_self=$enable_dlopen_self
17811
17812# Whether dlopen of statically linked programs is supported.
17813dlopen_self_static=$enable_dlopen_self_static
17814
17815# Commands to strip libraries.
17816old_striplib=$lt_old_striplib
17817striplib=$lt_striplib
17818
17819
17820# The linker used to build libraries.
17821LD=$lt_LD
17822
17823# How to create reloadable object files.
17824reload_flag=$lt_reload_flag
17825reload_cmds=$lt_reload_cmds
17826
17827# Commands used to build an old-style archive.
17828old_archive_cmds=$lt_old_archive_cmds
17829
17830# A language specific compiler.
17831CC=$lt_compiler
17832
17833# Is the compiler the GNU compiler?
17834with_gcc=$GCC
17835
17836# Compiler flag to turn off builtin functions.
17837no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17838
17839# How to pass a linker flag through the compiler.
17840wl=$lt_lt_prog_compiler_wl
17841
17842# Additional compiler flags for building library objects.
17843pic_flag=$lt_lt_prog_compiler_pic
17844
17845# Compiler flag to prevent dynamic linking.
17846link_static_flag=$lt_lt_prog_compiler_static
17847
17848# Does compiler simultaneously support -c and -o options?
17849compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17850
17851# Whether or not to add -lc for building shared libraries.
17852build_libtool_need_lc=$archive_cmds_need_lc
17853
17854# Whether or not to disallow shared libs when runtime libs are static.
17855allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17856
17857# Compiler flag to allow reflexive dlopens.
17858export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17859
17860# Compiler flag to generate shared objects directly from archives.
17861whole_archive_flag_spec=$lt_whole_archive_flag_spec
17862
17863# Whether the compiler copes with passing no objects directly.
17864compiler_needs_object=$lt_compiler_needs_object
17865
17866# Create an old-style archive from a shared archive.
17867old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17868
17869# Create a temporary old-style archive to link instead of a shared archive.
17870old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17871
17872# Commands used to build a shared archive.
17873archive_cmds=$lt_archive_cmds
17874archive_expsym_cmds=$lt_archive_expsym_cmds
17875
17876# Commands used to build a loadable module if different from building
17877# a shared archive.
17878module_cmds=$lt_module_cmds
17879module_expsym_cmds=$lt_module_expsym_cmds
17880
17881# Whether we are building with GNU ld or not.
17882with_gnu_ld=$lt_with_gnu_ld
17883
17884# Flag that allows shared libraries with undefined symbols to be built.
17885allow_undefined_flag=$lt_allow_undefined_flag
17886
17887# Flag that enforces no undefined symbols.
17888no_undefined_flag=$lt_no_undefined_flag
17889
17890# Flag to hardcode \$libdir into a binary during linking.
17891# This must work even if \$libdir does not exist
17892hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17893
17894# If ld is used when linking, flag to hardcode \$libdir into a binary
17895# during linking. This must work even if \$libdir does not exist.
17896hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17897
17898# Whether we need a single "-rpath" flag with a separated argument.
17899hardcode_libdir_separator=$lt_hardcode_libdir_separator
17900
17901# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17902# DIR into the resulting binary.
17903hardcode_direct=$hardcode_direct
17904
17905# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17906# DIR into the resulting binary and the resulting library dependency is
17907# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17908# library is relocated.
17909hardcode_direct_absolute=$hardcode_direct_absolute
17910
17911# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17912# into the resulting binary.
17913hardcode_minus_L=$hardcode_minus_L
17914
17915# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17916# into the resulting binary.
17917hardcode_shlibpath_var=$hardcode_shlibpath_var
17918
17919# Set to "yes" if building a shared library automatically hardcodes DIR
17920# into the library and all subsequent libraries and executables linked
17921# against it.
17922hardcode_automatic=$hardcode_automatic
17923
17924# Set to yes if linker adds runtime paths of dependent libraries
17925# to runtime path list.
17926inherit_rpath=$inherit_rpath
17927
17928# Whether libtool must link a program against all its dependency libraries.
17929link_all_deplibs=$link_all_deplibs
17930
17931# Fix the shell variable \$srcfile for the compiler.
17932fix_srcfile_path=$lt_fix_srcfile_path
17933
17934# Set to "yes" if exported symbols are required.
17935always_export_symbols=$always_export_symbols
17936
17937# The commands to list exported symbols.
17938export_symbols_cmds=$lt_export_symbols_cmds
17939
17940# Symbols that should not be listed in the preloaded symbols.
17941exclude_expsyms=$lt_exclude_expsyms
17942
17943# Symbols that must always be exported.
17944include_expsyms=$lt_include_expsyms
17945
17946# Commands necessary for linking programs (against libraries) with templates.
17947prelink_cmds=$lt_prelink_cmds
17948
17949# Specify filename containing input files.
17950file_list_spec=$lt_file_list_spec
17951
17952# How to hardcode a shared library path into an executable.
17953hardcode_action=$hardcode_action
17954
17955# ### END LIBTOOL CONFIG
17956
17957_LT_EOF
17958
17959 case $host_os in
17960 aix3*)
17961 cat <<\_LT_EOF >> "$cfgfile"
17962# AIX sometimes has problems with the GCC collect2 program. For some
17963# reason, if we set the COLLECT_NAMES environment variable, the problems
17964# vanish in a puff of smoke.
17965if test "X${COLLECT_NAMES+set}" != Xset; then
17966 COLLECT_NAMES=
17967 export COLLECT_NAMES
17968fi
17969_LT_EOF
17970 ;;
17971 esac
17972
17973
17974ltmain="$ac_aux_dir/ltmain.sh"
17975
17976
17977 # We use sed instead of cat because bash on DJGPP gets confused if
17978 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17979 # text mode, it properly converts lines to CR/LF. This bash problem
17980 # is reportedly fixed, but why not run on old versions too?
17981 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17982 || (rm -f "$cfgfile"; exit 1)
17983
17984 case $xsi_shell in
17985 yes)
17986 cat << \_LT_EOF >> "$cfgfile"
17987
17988# func_dirname file append nondir_replacement
17989# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17990# otherwise set result to NONDIR_REPLACEMENT.
17991func_dirname ()
17992{
17993 case ${1} in
17994 */*) func_dirname_result="${1%/*}${2}" ;;
17995 * ) func_dirname_result="${3}" ;;
17996 esac
17997}
17998
17999# func_basename file
18000func_basename ()
18001{
18002 func_basename_result="${1##*/}"
18003}
18004
18005# func_dirname_and_basename file append nondir_replacement
18006# perform func_basename and func_dirname in a single function
18007# call:
18008# dirname: Compute the dirname of FILE. If nonempty,
18009# add APPEND to the result, otherwise set result
18010# to NONDIR_REPLACEMENT.
18011# value returned in "$func_dirname_result"
18012# basename: Compute filename of FILE.
18013# value retuned in "$func_basename_result"
18014# Implementation must be kept synchronized with func_dirname
18015# and func_basename. For efficiency, we do not delegate to
18016# those functions but instead duplicate the functionality here.
18017func_dirname_and_basename ()
18018{
18019 case ${1} in
18020 */*) func_dirname_result="${1%/*}${2}" ;;
18021 * ) func_dirname_result="${3}" ;;
18022 esac
18023 func_basename_result="${1##*/}"
18024}
18025
18026# func_stripname prefix suffix name
18027# strip PREFIX and SUFFIX off of NAME.
18028# PREFIX and SUFFIX must not contain globbing or regex special
18029# characters, hashes, percent signs, but SUFFIX may contain a leading
18030# dot (in which case that matches only a dot).
18031func_stripname ()
18032{
18033 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18034 # positional parameters, so assign one to ordinary parameter first.
18035 func_stripname_result=${3}
18036 func_stripname_result=${func_stripname_result#"${1}"}
18037 func_stripname_result=${func_stripname_result%"${2}"}
18038}
18039
18040# func_opt_split
18041func_opt_split ()
18042{
18043 func_opt_split_opt=${1%%=*}
18044 func_opt_split_arg=${1#*=}
18045}
18046
18047# func_lo2o object
18048func_lo2o ()
18049{
18050 case ${1} in
18051 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18052 *) func_lo2o_result=${1} ;;
18053 esac
18054}
18055
18056# func_xform libobj-or-source
18057func_xform ()
18058{
18059 func_xform_result=${1%.*}.lo
18060}
18061
18062# func_arith arithmetic-term...
18063func_arith ()
18064{
18065 func_arith_result=$(( $* ))
18066}
18067
18068# func_len string
18069# STRING may not start with a hyphen.
18070func_len ()
18071{
18072 func_len_result=${#1}
18073}
18074
18075_LT_EOF
18076 ;;
18077 *) # Bourne compatible functions.
18078 cat << \_LT_EOF >> "$cfgfile"
18079
18080# func_dirname file append nondir_replacement
18081# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18082# otherwise set result to NONDIR_REPLACEMENT.
18083func_dirname ()
18084{
18085 # Extract subdirectory from the argument.
18086 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18087 if test "X$func_dirname_result" = "X${1}"; then
18088 func_dirname_result="${3}"
18089 else
18090 func_dirname_result="$func_dirname_result${2}"
18091 fi
18092}
18093
18094# func_basename file
18095func_basename ()
18096{
18097 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18098}
18099
18100
18101# func_stripname prefix suffix name
18102# strip PREFIX and SUFFIX off of NAME.
18103# PREFIX and SUFFIX must not contain globbing or regex special
18104# characters, hashes, percent signs, but SUFFIX may contain a leading
18105# dot (in which case that matches only a dot).
18106# func_strip_suffix prefix name
18107func_stripname ()
18108{
18109 case ${2} in
18110 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18111 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18112 esac
18113}
18114
18115# sed scripts:
18116my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18117my_sed_long_arg='1s/^-[^=]*=//'
18118
18119# func_opt_split
18120func_opt_split ()
18121{
18122 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18123 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18124}
18125
18126# func_lo2o object
18127func_lo2o ()
18128{
18129 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18130}
18131
18132# func_xform libobj-or-source
18133func_xform ()
18134{
18135 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18136}
18137
18138# func_arith arithmetic-term...
18139func_arith ()
18140{
18141 func_arith_result=`expr "$@"`
18142}
18143
18144# func_len string
18145# STRING may not start with a hyphen.
18146func_len ()
18147{
18148 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18149}
18150
18151_LT_EOF
18152esac
18153
18154case $lt_shell_append in
18155 yes)
18156 cat << \_LT_EOF >> "$cfgfile"
18157
18158# func_append var value
18159# Append VALUE to the end of shell variable VAR.
18160func_append ()
18161{
18162 eval "$1+=\$2"
18163}
18164_LT_EOF
18165 ;;
18166 *)
18167 cat << \_LT_EOF >> "$cfgfile"
18168
18169# func_append var value
18170# Append VALUE to the end of shell variable VAR.
18171func_append ()
18172{
18173 eval "$1=\$$1\$2"
18174}
18175
18176_LT_EOF
18177 ;;
18178 esac
18179
18180
18181 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18182 || (rm -f "$cfgfile"; exit 1)
18183
18184 mv -f "$cfgfile" "$ofile" ||
18185 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18186 chmod +x "$ofile"
18187
18188
18189 cat <<_LT_EOF >> "$ofile"
18190
18191# ### BEGIN LIBTOOL TAG CONFIG: GO
18192
18193# The linker used to build libraries.
18194LD=$lt_LD_GO
18195
18196# How to create reloadable object files.
18197reload_flag=$lt_reload_flag_GO
18198reload_cmds=$lt_reload_cmds_GO
18199
18200# Commands used to build an old-style archive.
18201old_archive_cmds=$lt_old_archive_cmds_GO
18202
18203# A language specific compiler.
18204CC=$lt_compiler_GO
18205
18206# Is the compiler the GNU compiler?
18207with_gcc=$GCC_GO
18208
18209# Compiler flag to turn off builtin functions.
18210no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
18211
18212# How to pass a linker flag through the compiler.
18213wl=$lt_lt_prog_compiler_wl_GO
18214
18215# Additional compiler flags for building library objects.
18216pic_flag=$lt_lt_prog_compiler_pic_GO
18217
18218# Compiler flag to prevent dynamic linking.
18219link_static_flag=$lt_lt_prog_compiler_static_GO
18220
18221# Does compiler simultaneously support -c and -o options?
18222compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
18223
18224# Whether or not to add -lc for building shared libraries.
18225build_libtool_need_lc=$archive_cmds_need_lc_GO
18226
18227# Whether or not to disallow shared libs when runtime libs are static.
18228allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
18229
18230# Compiler flag to allow reflexive dlopens.
18231export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
18232
18233# Compiler flag to generate shared objects directly from archives.
18234whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
18235
18236# Whether the compiler copes with passing no objects directly.
18237compiler_needs_object=$lt_compiler_needs_object_GO
18238
18239# Create an old-style archive from a shared archive.
18240old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
18241
18242# Create a temporary old-style archive to link instead of a shared archive.
18243old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
18244
18245# Commands used to build a shared archive.
18246archive_cmds=$lt_archive_cmds_GO
18247archive_expsym_cmds=$lt_archive_expsym_cmds_GO
18248
18249# Commands used to build a loadable module if different from building
18250# a shared archive.
18251module_cmds=$lt_module_cmds_GO
18252module_expsym_cmds=$lt_module_expsym_cmds_GO
18253
18254# Whether we are building with GNU ld or not.
18255with_gnu_ld=$lt_with_gnu_ld_GO
18256
18257# Flag that allows shared libraries with undefined symbols to be built.
18258allow_undefined_flag=$lt_allow_undefined_flag_GO
18259
18260# Flag that enforces no undefined symbols.
18261no_undefined_flag=$lt_no_undefined_flag_GO
18262
18263# Flag to hardcode \$libdir into a binary during linking.
18264# This must work even if \$libdir does not exist
18265hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
18266
18267# If ld is used when linking, flag to hardcode \$libdir into a binary
18268# during linking. This must work even if \$libdir does not exist.
18269hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
18270
18271# Whether we need a single "-rpath" flag with a separated argument.
18272hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
18273
18274# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18275# DIR into the resulting binary.
18276hardcode_direct=$hardcode_direct_GO
18277
18278# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18279# DIR into the resulting binary and the resulting library dependency is
18280# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18281# library is relocated.
18282hardcode_direct_absolute=$hardcode_direct_absolute_GO
18283
18284# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18285# into the resulting binary.
18286hardcode_minus_L=$hardcode_minus_L_GO
18287
18288# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18289# into the resulting binary.
18290hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
18291
18292# Set to "yes" if building a shared library automatically hardcodes DIR
18293# into the library and all subsequent libraries and executables linked
18294# against it.
18295hardcode_automatic=$hardcode_automatic_GO
18296
18297# Set to yes if linker adds runtime paths of dependent libraries
18298# to runtime path list.
18299inherit_rpath=$inherit_rpath_GO
18300
18301# Whether libtool must link a program against all its dependency libraries.
18302link_all_deplibs=$link_all_deplibs_GO
18303
18304# Fix the shell variable \$srcfile for the compiler.
18305fix_srcfile_path=$lt_fix_srcfile_path_GO
18306
18307# Set to "yes" if exported symbols are required.
18308always_export_symbols=$always_export_symbols_GO
18309
18310# The commands to list exported symbols.
18311export_symbols_cmds=$lt_export_symbols_cmds_GO
18312
18313# Symbols that should not be listed in the preloaded symbols.
18314exclude_expsyms=$lt_exclude_expsyms_GO
18315
18316# Symbols that must always be exported.
18317include_expsyms=$lt_include_expsyms_GO
18318
18319# Commands necessary for linking programs (against libraries) with templates.
18320prelink_cmds=$lt_prelink_cmds_GO
18321
18322# Specify filename containing input files.
18323file_list_spec=$lt_file_list_spec_GO
18324
18325# How to hardcode a shared library path into an executable.
18326hardcode_action=$hardcode_action_GO
18327
18328# ### END LIBTOOL TAG CONFIG: GO
18329_LT_EOF
18330
18331 ;;
18332 "default":C) if test -n "$CONFIG_FILES"; then
18333 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
18334 # that multilib installs will end up installed in the correct place.
18335 # The testsuite needs it for multilib-aware ABI baseline files.
18336 # To work around this not being passed down from config-ml.in ->
18337 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
18338 # append it here. Only modify Makefiles that have just been created.
18339 #
18340 # Also, get rid of this simulated-VPATH thing that automake does.
18341 cat > vpsed << \_EOF
18342s!`test -f '$<' || echo '$(srcdir)/'`!!
18343_EOF
18344 for i in $SUBDIRS; do
18345 case $CONFIG_FILES in
18346 *${i}/Makefile*)
18347 #echo "Adding MULTISUBDIR to $i/Makefile"
18348 sed -f vpsed $i/Makefile > tmp
18349 grep '^MULTISUBDIR =' Makefile >> tmp
18350 mv tmp $i/Makefile
18351 ;;
18352 esac
18353 done
18354 rm vpsed
18355 fi
18356 ;;
18357
18358 esac
18359done # for ac_tag
18360
18361
18362as_fn_exit 0
18363_ACEOF
18364ac_clean_files=$ac_clean_files_save
18365
18366test $ac_write_fail = 0 ||
ea2e69a4 18367 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
e440a328 18368
18369
18370# configure is writing to config.log, and then calls config.status.
18371# config.status does its own redirection, appending to config.log.
18372# Unfortunately, on DOS this fails, as config.log is still kept open
18373# by configure, so config.status won't be able to write to it; its
18374# output is simply discarded. So we exec the FD to /dev/null,
18375# effectively closing config.log, so it can be properly (re)opened and
18376# appended to by config.status. When coming back to configure, we
18377# need to make the FD available again.
18378if test "$no_create" != yes; then
18379 ac_cs_success=:
18380 ac_config_status_args=
18381 test "$silent" = yes &&
18382 ac_config_status_args="$ac_config_status_args --quiet"
18383 exec 5>/dev/null
18384 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18385 exec 5>>config.log
18386 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18387 # would make configure fail if this is the last instruction.
ea2e69a4 18388 $ac_cs_success || as_fn_exit 1
e440a328 18389fi
18390if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18392$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18393fi
18394