Remove m68k-aout and m68k-coff support
[deliverable/binutils-gdb.git] / bfd / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
769c7ea5 3# Generated by GNU Autoconf 2.64 for bfd 2.30.51.
81ecdfbb
RW
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
252b5132
RH
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
5464f5a1 14
81ecdfbb
RW
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 :
5464f5a1
NN
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5464f5a1
NN
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
5464f5a1 31fi
5464f5a1 32
81ecdfbb
RW
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 }
5464f5a1
NN
79fi
80
81
81ecdfbb
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
5464f5a1
NN
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
81ecdfbb
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
3725885a
RW
172test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
81ecdfbb
RW
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183else
184 as_have_required=no
185fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5464f5a1 192do
81ecdfbb
RW
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206fi
207fi
208 done;;
209 esac
210 as_found=false
211done
212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215fi; }
216IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
5464f5a1 236 else
81ecdfbb
RW
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238$0: including any error possibly output before this
239$0: message. Then install a modern shell, or manually run
240$0: the script under such a shell if you do have one."
5464f5a1 241 fi
81ecdfbb
RW
242 exit 1
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260 { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_fn_set_status ()
268{
269 return $1
270} # as_fn_set_status
271
272# as_fn_exit STATUS
273# -----------------
274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275as_fn_exit ()
276{
277 set +e
278 as_fn_set_status $1
279 exit $1
280} # as_fn_exit
281
282# as_fn_mkdir_p
283# -------------
284# Create "$as_dir" as a directory, including parents if necessary.
285as_fn_mkdir_p ()
286{
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304$as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328} # as_fn_mkdir_p
329# as_fn_append VAR VALUE
330# ----------------------
331# Append the text in VALUE to the end of the definition contained in VAR. Take
332# advantage of any shell optimizations that allow amortized linear growth over
333# repeated appends, instead of the typical quadratic growth present in naive
334# implementations.
335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345fi # as_fn_append
346
347# as_fn_arith ARG...
348# ------------------
349# Perform arithmetic evaluation on the ARGs, and store the result in the
350# global $as_val. Take advantage of shells that can avoid forks. The arguments
351# must be portable across $(()) and expr.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362fi # as_fn_arith
363
5464f5a1 364
81ecdfbb
RW
365# as_fn_error ERROR [LINENO LOG_FD]
366# ---------------------------------
367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369# script with status $?, using 1 if that was 0.
370as_fn_error ()
371{
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379} # as_fn_error
380
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5464f5a1
NN
383 as_expr=expr
384else
385 as_expr=false
386fi
387
81ecdfbb 388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5464f5a1
NN
389 as_basename=basename
390else
391 as_basename=false
392fi
393
81ecdfbb
RW
394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396else
397 as_dirname=false
398fi
5464f5a1 399
81ecdfbb 400as_me=`$as_basename -- "$0" ||
5464f5a1
NN
401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404$as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
5464f5a1 418
5464f5a1
NN
419# Avoid depending upon Character Ranges.
420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423as_cr_digits='0123456789'
424as_cr_alnum=$as_cr_Letters$as_cr_digits
425
5464f5a1 426
81ecdfbb
RW
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
5464f5a1 436 sed '
81ecdfbb
RW
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
5464f5a1 441 N
81ecdfbb
RW
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5464f5a1 444 t loop
81ecdfbb 445 s/-\n.*//
5464f5a1 446 ' >$as_me.lineno &&
81ecdfbb
RW
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
5464f5a1
NN
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
5464f5a1
NN
454 # Exit status is that of the last command.
455 exit
456}
457
81ecdfbb
RW
458ECHO_C= ECHO_N= ECHO_T=
459case `echo -n x` in #(((((
460-n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467*)
468 ECHO_N='-n';;
5464f5a1
NN
469esac
470
81ecdfbb
RW
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
5464f5a1 474else
81ecdfbb
RW
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
5464f5a1 477fi
81ecdfbb
RW
478if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
5464f5a1 480 as_ln_s='ln -s'
81ecdfbb
RW
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
5464f5a1 491 fi
5464f5a1
NN
492else
493 as_ln_s='cp -p'
494fi
81ecdfbb
RW
495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
5464f5a1
NN
497
498if mkdir -p . 2>/dev/null; then
81ecdfbb 499 as_mkdir_p='mkdir -p "$as_dir"'
5464f5a1
NN
500else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503fi
504
81ecdfbb
RW
505if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525fi
526as_executable_p=$as_test_x
5464f5a1
NN
527
528# Sed expression to map a string onto a valid CPP name.
529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531# Sed expression to map a string onto a valid variable name.
532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
d7040cdb
SE
534SHELL=${CONFIG_SHELL-/bin/sh}
535
d7040cdb 536
81ecdfbb
RW
537exec 7<&0 </dev/null 6>&1
538
5464f5a1
NN
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 543
5464f5a1
NN
544#
545# Initializations.
546#
252b5132 547ac_default_prefix=/usr/local
81ecdfbb 548ac_clean_files=
5464f5a1 549ac_config_libobj_dir=.
81ecdfbb 550LIBOBJS=
5464f5a1
NN
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
5464f5a1
NN
555
556# Identity of this package.
c4dd807e
MF
557PACKAGE_NAME='bfd'
558PACKAGE_TARNAME='bfd'
769c7ea5
NC
559PACKAGE_VERSION='2.30.51'
560PACKAGE_STRING='bfd 2.30.51'
c4dd807e
MF
561PACKAGE_BUGREPORT=''
562PACKAGE_URL=''
5464f5a1
NN
563
564ac_unique_file="libbfd.c"
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
81ecdfbb 568#ifdef HAVE_SYS_TYPES_H
5464f5a1
NN
569# include <sys/types.h>
570#endif
81ecdfbb 571#ifdef HAVE_SYS_STAT_H
5464f5a1
NN
572# include <sys/stat.h>
573#endif
81ecdfbb 574#ifdef STDC_HEADERS
5464f5a1
NN
575# include <stdlib.h>
576# include <stddef.h>
577#else
81ecdfbb 578# ifdef HAVE_STDLIB_H
5464f5a1
NN
579# include <stdlib.h>
580# endif
581#endif
81ecdfbb
RW
582#ifdef HAVE_STRING_H
583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
5464f5a1
NN
584# include <memory.h>
585# endif
586# include <string.h>
587#endif
81ecdfbb 588#ifdef HAVE_STRINGS_H
5464f5a1
NN
589# include <strings.h>
590#endif
81ecdfbb 591#ifdef HAVE_INTTYPES_H
5464f5a1 592# include <inttypes.h>
5464f5a1 593#endif
81ecdfbb
RW
594#ifdef HAVE_STDINT_H
595# include <stdint.h>
596#endif
597#ifdef HAVE_UNISTD_H
5464f5a1
NN
598# include <unistd.h>
599#endif"
600
81ecdfbb
RW
601ac_subst_vars='am__EXEEXT_FALSE
602am__EXEEXT_TRUE
603LTLIBOBJS
604LIBOBJS
81ecdfbb
RW
605bfd_ufile_ptr
606bfd_file_ptr
3cf9e6c4 607lt_cv_dlopen_libs
81ecdfbb 608supports_plugins
c603b11b
AM
609COREFLAG
610COREFILE
611havevecs
612tdefaults
81ecdfbb
RW
613bfd_default_target_size
614bfd_machines
615bfd_backends
616all_backends
617bfd64_libs
618wordsize
619TDEFINES
620SHARED_LIBADD
621SHARED_LDFLAGS
622LIBM
243340ad
L
623zlibinc
624zlibdir
81ecdfbb
RW
625EXEEXT_FOR_BUILD
626CC_FOR_BUILD
627BFD_HOSTPTR_T
628BFD_HOST_U_64_BIT
629BFD_HOST_64_BIT
630BFD_HOST_64_BIT_DEFINED
631BFD_HOST_64BIT_LONG_LONG
632BFD_HOST_64BIT_LONG
633HDEFINES
634MSGMERGE
635MSGFMT
636MKINSTALLDIRS
637CATOBJEXT
638GENCAT
639INSTOBJEXT
640DATADIRNAME
641CATALOGS
642POSUB
643GMSGFMT
644XGETTEXT
645INCINTL
646LIBINTL_DEP
647LIBINTL
648USE_NLS
649bfdincludedir
650bfdlibdir
651target_noncanonical
652host_noncanonical
653INSTALL_LIBBFD_FALSE
654INSTALL_LIBBFD_TRUE
655GENINSRC_NEVER_FALSE
656GENINSRC_NEVER_TRUE
657MAINT
658MAINTAINER_MODE_FALSE
659MAINTAINER_MODE_TRUE
6757cf57 660WARN_WRITE_STRINGS
81ecdfbb 661NO_WERROR
c5da1932 662WARN_CFLAGS_FOR_BUILD
81ecdfbb
RW
663WARN_CFLAGS
664REPORT_BUGS_TEXI
665REPORT_BUGS_TO
666PKGVERSION
667DEBUGDIR
668PLUGINS_FALSE
669PLUGINS_TRUE
670OTOOL64
671OTOOL
672LIPO
673NMEDIT
674DSYMUTIL
81ecdfbb
RW
675OBJDUMP
676LN_S
677NM
678ac_ct_DUMPBIN
679DUMPBIN
680LD
681FGREP
682SED
683LIBTOOL
684EGREP
685GREP
686CPP
687RANLIB
688AR
689am__fastdepCC_FALSE
690am__fastdepCC_TRUE
691CCDEPMODE
6eb7d830 692am__nodep
81ecdfbb
RW
693AMDEPBACKSLASH
694AMDEP_FALSE
695AMDEP_TRUE
696am__quote
697am__include
698DEPDIR
699am__untar
700am__tar
701AMTAR
702am__leading_dot
703SET_MAKE
704AWK
705mkdir_p
706MKDIR_P
707INSTALL_STRIP_PROGRAM
708STRIP
709install_sh
710MAKEINFO
711AUTOHEADER
712AUTOMAKE
713AUTOCONF
714ACLOCAL
715VERSION
716PACKAGE
717CYGPATH_W
718am__isrc
719INSTALL_DATA
720INSTALL_SCRIPT
721INSTALL_PROGRAM
722OBJEXT
723EXEEXT
724ac_ct_CC
725CPPFLAGS
726LDFLAGS
727CFLAGS
728CC
729target_os
730target_vendor
731target_cpu
732target
733host_os
734host_vendor
735host_cpu
736host
737build_os
738build_vendor
739build_cpu
740build
741target_alias
742host_alias
743build_alias
744LIBS
745ECHO_T
746ECHO_N
747ECHO_C
748DEFS
749mandir
750localedir
751libdir
752psdir
753pdfdir
754dvidir
755htmldir
756infodir
757docdir
758oldincludedir
759includedir
760localstatedir
761sharedstatedir
762sysconfdir
763datadir
764datarootdir
765libexecdir
766sbindir
767bindir
768program_transform_name
769prefix
770exec_prefix
771PACKAGE_URL
772PACKAGE_BUGREPORT
773PACKAGE_STRING
774PACKAGE_VERSION
775PACKAGE_TARNAME
776PACKAGE_NAME
777PATH_SEPARATOR
778SHELL'
5464f5a1 779ac_subst_files=''
81ecdfbb
RW
780ac_user_opts='
781enable_option_checking
782enable_dependency_tracking
783enable_shared
784enable_static
785with_pic
786enable_fast_install
787with_gnu_ld
788enable_libtool_lock
789enable_plugins
790enable_largefile
791enable_64_bit_bfd
792enable_targets
e6cc316a 793enable_64_bit_archive
81ecdfbb
RW
794with_mmap
795enable_secureplt
f6aec96d 796enable_separate_code
ef72a554 797enable_leading_mingw64_underscores
81ecdfbb 798with_separate_debug_dir
81ecdfbb
RW
799with_pkgversion
800with_bugurl
801enable_werror
802enable_build_warnings
803enable_maintainer_mode
804enable_install_libbfd
805enable_nls
243340ad 806with_system_zlib
81ecdfbb
RW
807'
808 ac_precious_vars='build_alias
809host_alias
810target_alias
811CC
812CFLAGS
813LDFLAGS
814LIBS
815CPPFLAGS
816CPP'
817
252b5132
RH
818
819# Initialize some variables set by options.
5464f5a1
NN
820ac_init_help=
821ac_init_version=false
81ecdfbb
RW
822ac_unrecognized_opts=
823ac_unrecognized_sep=
252b5132
RH
824# The variables have the same names as the options, with
825# dashes changed to underlines.
5464f5a1 826cache_file=/dev/null
252b5132 827exec_prefix=NONE
252b5132 828no_create=
252b5132
RH
829no_recursion=
830prefix=NONE
831program_prefix=NONE
832program_suffix=NONE
833program_transform_name=s,x,x,
834silent=
835site=
836srcdir=
252b5132
RH
837verbose=
838x_includes=NONE
839x_libraries=NONE
5464f5a1
NN
840
841# Installation directory options.
842# These are left unexpanded so users can "make install exec_prefix=/foo"
843# and all the variables that are supposed to be based on exec_prefix
844# by default will actually change.
845# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 846# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
847bindir='${exec_prefix}/bin'
848sbindir='${exec_prefix}/sbin'
849libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
850datarootdir='${prefix}/share'
851datadir='${datarootdir}'
252b5132
RH
852sysconfdir='${prefix}/etc'
853sharedstatedir='${prefix}/com'
854localstatedir='${prefix}/var'
252b5132
RH
855includedir='${prefix}/include'
856oldincludedir='/usr/include'
c4dd807e 857docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
81ecdfbb
RW
858infodir='${datarootdir}/info'
859htmldir='${docdir}'
860dvidir='${docdir}'
861pdfdir='${docdir}'
862psdir='${docdir}'
863libdir='${exec_prefix}/lib'
864localedir='${datarootdir}/locale'
865mandir='${datarootdir}/man'
252b5132 866
252b5132 867ac_prev=
81ecdfbb 868ac_dashdash=
252b5132
RH
869for ac_option
870do
252b5132
RH
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
81ecdfbb 873 eval $ac_prev=\$ac_option
252b5132
RH
874 ac_prev=
875 continue
876 fi
877
81ecdfbb
RW
878 case $ac_option in
879 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880 *) ac_optarg=yes ;;
881 esac
252b5132
RH
882
883 # Accept the important Cygnus configure options, so we can diagnose typos.
884
81ecdfbb
RW
885 case $ac_dashdash$ac_option in
886 --)
887 ac_dashdash=yes ;;
252b5132
RH
888
889 -bindir | --bindir | --bindi | --bind | --bin | --bi)
890 ac_prev=bindir ;;
891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
5464f5a1 892 bindir=$ac_optarg ;;
252b5132
RH
893
894 -build | --build | --buil | --bui | --bu)
5464f5a1 895 ac_prev=build_alias ;;
252b5132 896 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
5464f5a1 897 build_alias=$ac_optarg ;;
252b5132
RH
898
899 -cache-file | --cache-file | --cache-fil | --cache-fi \
900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901 ac_prev=cache_file ;;
902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
5464f5a1
NN
904 cache_file=$ac_optarg ;;
905
906 --config-cache | -C)
907 cache_file=config.cache ;;
252b5132 908
81ecdfbb 909 -datadir | --datadir | --datadi | --datad)
252b5132 910 ac_prev=datadir ;;
81ecdfbb 911 -datadir=* | --datadir=* | --datadi=* | --datad=*)
5464f5a1 912 datadir=$ac_optarg ;;
252b5132 913
81ecdfbb
RW
914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915 | --dataroo | --dataro | --datar)
916 ac_prev=datarootdir ;;
917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919 datarootdir=$ac_optarg ;;
920
252b5132 921 -disable-* | --disable-*)
81ecdfbb 922 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 923 # Reject names that are not valid shell variable names.
81ecdfbb
RW
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error "invalid feature name: $ac_useropt"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
929 *"
930"enable_$ac_useropt"
931"*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
934 esac
935 eval enable_$ac_useropt=no ;;
936
937 -docdir | --docdir | --docdi | --doc | --do)
938 ac_prev=docdir ;;
939 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
940 docdir=$ac_optarg ;;
941
942 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
943 ac_prev=dvidir ;;
944 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
945 dvidir=$ac_optarg ;;
252b5132
RH
946
947 -enable-* | --enable-*)
81ecdfbb 948 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 949 # Reject names that are not valid shell variable names.
81ecdfbb
RW
950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951 as_fn_error "invalid feature name: $ac_useropt"
952 ac_useropt_orig=$ac_useropt
953 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954 case $ac_user_opts in
955 *"
956"enable_$ac_useropt"
957"*) ;;
958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
959 ac_unrecognized_sep=', ';;
252b5132 960 esac
81ecdfbb 961 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
962
963 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
964 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
965 | --exec | --exe | --ex)
966 ac_prev=exec_prefix ;;
967 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
968 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
969 | --exec=* | --exe=* | --ex=*)
5464f5a1 970 exec_prefix=$ac_optarg ;;
252b5132
RH
971
972 -gas | --gas | --ga | --g)
973 # Obsolete; use --with-gas.
974 with_gas=yes ;;
975
5464f5a1
NN
976 -help | --help | --hel | --he | -h)
977 ac_init_help=long ;;
978 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
979 ac_init_help=recursive ;;
980 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
981 ac_init_help=short ;;
252b5132
RH
982
983 -host | --host | --hos | --ho)
5464f5a1 984 ac_prev=host_alias ;;
252b5132 985 -host=* | --host=* | --hos=* | --ho=*)
5464f5a1 986 host_alias=$ac_optarg ;;
252b5132 987
81ecdfbb
RW
988 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
989 ac_prev=htmldir ;;
990 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
991 | --ht=*)
992 htmldir=$ac_optarg ;;
993
252b5132
RH
994 -includedir | --includedir | --includedi | --included | --include \
995 | --includ | --inclu | --incl | --inc)
996 ac_prev=includedir ;;
997 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
998 | --includ=* | --inclu=* | --incl=* | --inc=*)
5464f5a1 999 includedir=$ac_optarg ;;
252b5132
RH
1000
1001 -infodir | --infodir | --infodi | --infod | --info | --inf)
1002 ac_prev=infodir ;;
1003 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
5464f5a1 1004 infodir=$ac_optarg ;;
252b5132
RH
1005
1006 -libdir | --libdir | --libdi | --libd)
1007 ac_prev=libdir ;;
1008 -libdir=* | --libdir=* | --libdi=* | --libd=*)
5464f5a1 1009 libdir=$ac_optarg ;;
252b5132
RH
1010
1011 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1012 | --libexe | --libex | --libe)
1013 ac_prev=libexecdir ;;
1014 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1015 | --libexe=* | --libex=* | --libe=*)
5464f5a1 1016 libexecdir=$ac_optarg ;;
252b5132 1017
81ecdfbb
RW
1018 -localedir | --localedir | --localedi | --localed | --locale)
1019 ac_prev=localedir ;;
1020 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1021 localedir=$ac_optarg ;;
1022
252b5132 1023 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1024 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
1025 ac_prev=localstatedir ;;
1026 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1027 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
5464f5a1 1028 localstatedir=$ac_optarg ;;
252b5132
RH
1029
1030 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1031 ac_prev=mandir ;;
1032 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
5464f5a1 1033 mandir=$ac_optarg ;;
252b5132
RH
1034
1035 -nfp | --nfp | --nf)
1036 # Obsolete; use --without-fp.
1037 with_fp=no ;;
1038
1039 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
5464f5a1 1040 | --no-cr | --no-c | -n)
252b5132
RH
1041 no_create=yes ;;
1042
1043 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1044 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1045 no_recursion=yes ;;
1046
1047 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1048 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1049 | --oldin | --oldi | --old | --ol | --o)
1050 ac_prev=oldincludedir ;;
1051 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1052 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1053 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
5464f5a1 1054 oldincludedir=$ac_optarg ;;
252b5132
RH
1055
1056 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1057 ac_prev=prefix ;;
1058 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
5464f5a1 1059 prefix=$ac_optarg ;;
252b5132
RH
1060
1061 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1062 | --program-pre | --program-pr | --program-p)
1063 ac_prev=program_prefix ;;
1064 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1065 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
5464f5a1 1066 program_prefix=$ac_optarg ;;
252b5132
RH
1067
1068 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1069 | --program-suf | --program-su | --program-s)
1070 ac_prev=program_suffix ;;
1071 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1072 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
5464f5a1 1073 program_suffix=$ac_optarg ;;
252b5132
RH
1074
1075 -program-transform-name | --program-transform-name \
1076 | --program-transform-nam | --program-transform-na \
1077 | --program-transform-n | --program-transform- \
1078 | --program-transform | --program-transfor \
1079 | --program-transfo | --program-transf \
1080 | --program-trans | --program-tran \
1081 | --progr-tra | --program-tr | --program-t)
1082 ac_prev=program_transform_name ;;
1083 -program-transform-name=* | --program-transform-name=* \
1084 | --program-transform-nam=* | --program-transform-na=* \
1085 | --program-transform-n=* | --program-transform-=* \
1086 | --program-transform=* | --program-transfor=* \
1087 | --program-transfo=* | --program-transf=* \
1088 | --program-trans=* | --program-tran=* \
1089 | --progr-tra=* | --program-tr=* | --program-t=*)
5464f5a1 1090 program_transform_name=$ac_optarg ;;
252b5132 1091
81ecdfbb
RW
1092 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1093 ac_prev=pdfdir ;;
1094 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1095 pdfdir=$ac_optarg ;;
1096
1097 -psdir | --psdir | --psdi | --psd | --ps)
1098 ac_prev=psdir ;;
1099 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1100 psdir=$ac_optarg ;;
1101
252b5132
RH
1102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1103 | -silent | --silent | --silen | --sile | --sil)
1104 silent=yes ;;
1105
1106 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1107 ac_prev=sbindir ;;
1108 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1109 | --sbi=* | --sb=*)
5464f5a1 1110 sbindir=$ac_optarg ;;
252b5132
RH
1111
1112 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1113 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1114 | --sharedst | --shareds | --shared | --share | --shar \
1115 | --sha | --sh)
1116 ac_prev=sharedstatedir ;;
1117 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1118 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1119 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1120 | --sha=* | --sh=*)
5464f5a1 1121 sharedstatedir=$ac_optarg ;;
252b5132
RH
1122
1123 -site | --site | --sit)
1124 ac_prev=site ;;
1125 -site=* | --site=* | --sit=*)
5464f5a1 1126 site=$ac_optarg ;;
6be7c12c 1127
252b5132
RH
1128 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1129 ac_prev=srcdir ;;
1130 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5464f5a1 1131 srcdir=$ac_optarg ;;
252b5132
RH
1132
1133 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1134 | --syscon | --sysco | --sysc | --sys | --sy)
1135 ac_prev=sysconfdir ;;
1136 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1137 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
5464f5a1 1138 sysconfdir=$ac_optarg ;;
252b5132
RH
1139
1140 -target | --target | --targe | --targ | --tar | --ta | --t)
5464f5a1 1141 ac_prev=target_alias ;;
252b5132 1142 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
5464f5a1 1143 target_alias=$ac_optarg ;;
252b5132
RH
1144
1145 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1146 verbose=yes ;;
1147
5464f5a1
NN
1148 -version | --version | --versio | --versi | --vers | -V)
1149 ac_init_version=: ;;
252b5132
RH
1150
1151 -with-* | --with-*)
81ecdfbb 1152 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1153 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155 as_fn_error "invalid package name: $ac_useropt"
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1159 *"
1160"with_$ac_useropt"
1161"*) ;;
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
252b5132 1164 esac
81ecdfbb 1165 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1166
1167 -without-* | --without-*)
81ecdfbb 1168 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1169 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 as_fn_error "invalid package name: $ac_useropt"
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1175 *"
1176"with_$ac_useropt"
1177"*) ;;
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1180 esac
1181 eval with_$ac_useropt=no ;;
252b5132
RH
1182
1183 --x)
1184 # Obsolete; use --with-x.
1185 with_x=yes ;;
1186
1187 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1188 | --x-incl | --x-inc | --x-in | --x-i)
1189 ac_prev=x_includes ;;
1190 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1191 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
5464f5a1 1192 x_includes=$ac_optarg ;;
252b5132
RH
1193
1194 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1195 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1196 ac_prev=x_libraries ;;
1197 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1198 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
5464f5a1 1199 x_libraries=$ac_optarg ;;
252b5132 1200
81ecdfbb
RW
1201 -*) as_fn_error "unrecognized option: \`$ac_option'
1202Try \`$0 --help' for more information."
252b5132
RH
1203 ;;
1204
5464f5a1
NN
1205 *=*)
1206 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1207 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1208 case $ac_envvar in #(
1209 '' | [0-9]* | *[!_$as_cr_alnum]* )
1210 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1211 esac
1212 eval $ac_envvar=\$ac_optarg
5464f5a1
NN
1213 export $ac_envvar ;;
1214
252b5132 1215 *)
5464f5a1 1216 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1217 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
5464f5a1 1218 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1219 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
5464f5a1 1220 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
1221 ;;
1222
1223 esac
1224done
1225
1226if test -n "$ac_prev"; then
5464f5a1 1227 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1228 as_fn_error "missing argument to $ac_option"
252b5132 1229fi
252b5132 1230
81ecdfbb
RW
1231if test -n "$ac_unrecognized_opts"; then
1232 case $enable_option_checking in
1233 no) ;;
1234 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1235 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
5464f5a1 1236 esac
81ecdfbb 1237fi
6be7c12c 1238
81ecdfbb
RW
1239# Check all directory arguments for consistency.
1240for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1241 datadir sysconfdir sharedstatedir localstatedir includedir \
1242 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1243 libdir localedir mandir
252b5132 1244do
81ecdfbb
RW
1245 eval ac_val=\$$ac_var
1246 # Remove trailing slashes.
5464f5a1 1247 case $ac_val in
81ecdfbb
RW
1248 */ )
1249 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1250 eval $ac_var=\$ac_val;;
252b5132 1251 esac
81ecdfbb
RW
1252 # Be sure to have absolute directory names.
1253 case $ac_val in
1254 [\\/$]* | ?:[\\/]* ) continue;;
1255 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1256 esac
1257 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1258done
1259
5464f5a1
NN
1260# There might be people who depend on the old broken behavior: `$host'
1261# used to hold the argument of --host etc.
1262# FIXME: To remove some day.
1263build=$build_alias
1264host=$host_alias
1265target=$target_alias
1266
1267# FIXME: To remove some day.
1268if test "x$host_alias" != x; then
1269 if test "x$build_alias" = x; then
1270 cross_compiling=maybe
81ecdfbb 1271 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
5464f5a1
NN
1272 If a cross compiler is detected then cross compile mode will be used." >&2
1273 elif test "x$build_alias" != "x$host_alias"; then
1274 cross_compiling=yes
1275 fi
1276fi
252b5132 1277
5464f5a1
NN
1278ac_tool_prefix=
1279test -n "$host_alias" && ac_tool_prefix=$host_alias-
1280
1281test "$silent" = yes && exec 6>/dev/null
252b5132 1282
252b5132 1283
81ecdfbb
RW
1284ac_pwd=`pwd` && test -n "$ac_pwd" &&
1285ac_ls_di=`ls -di .` &&
1286ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1287 as_fn_error "working directory cannot be determined"
1288test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1289 as_fn_error "pwd does not report name of working directory"
1290
1291
252b5132
RH
1292# Find the source files, if location was not specified.
1293if test -z "$srcdir"; then
1294 ac_srcdir_defaulted=yes
81ecdfbb
RW
1295 # Try the directory containing this script, then the parent directory.
1296 ac_confdir=`$as_dirname -- "$as_myself" ||
1297$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1298 X"$as_myself" : 'X\(//\)[^/]' \| \
1299 X"$as_myself" : 'X\(//\)$' \| \
1300 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1301$as_echo X"$as_myself" |
1302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1303 s//\1/
1304 q
1305 }
1306 /^X\(\/\/\)[^/].*/{
1307 s//\1/
1308 q
1309 }
1310 /^X\(\/\/\)$/{
1311 s//\1/
1312 q
1313 }
1314 /^X\(\/\).*/{
1315 s//\1/
1316 q
1317 }
1318 s/.*/./; q'`
252b5132 1319 srcdir=$ac_confdir
81ecdfbb 1320 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1321 srcdir=..
1322 fi
1323else
1324 ac_srcdir_defaulted=no
1325fi
81ecdfbb
RW
1326if test ! -r "$srcdir/$ac_unique_file"; then
1327 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1328 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1329fi
1330ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1331ac_abs_confdir=`(
1332 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1333 pwd)`
1334# When building in place, set srcdir=.
1335if test "$ac_abs_confdir" = "$ac_pwd"; then
1336 srcdir=.
1337fi
1338# Remove unnecessary trailing slashes from srcdir.
1339# Double slashes in file names in object file debugging info
1340# mess up M-x gdb in Emacs.
1341case $srcdir in
1342*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1343esac
1344for ac_var in $ac_precious_vars; do
1345 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1346 eval ac_env_${ac_var}_value=\$${ac_var}
1347 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1349done
b3baf5d0 1350
5464f5a1
NN
1351#
1352# Report the --help message.
1353#
1354if test "$ac_init_help" = "long"; then
1355 # Omit some internal or obsolete options to make the list less imposing.
1356 # This message is too long to be a string in the A/UX 3.1 sh.
1357 cat <<_ACEOF
769c7ea5 1358\`configure' configures bfd 2.30.51 to adapt to many kinds of systems.
252b5132 1359
5464f5a1 1360Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 1361
5464f5a1
NN
1362To assign environment variables (e.g., CC, CFLAGS...), specify them as
1363VAR=VALUE. See below for descriptions of some of the useful variables.
6be7c12c 1364
5464f5a1 1365Defaults for the options are specified in brackets.
6be7c12c 1366
5464f5a1
NN
1367Configuration:
1368 -h, --help display this help and exit
1369 --help=short display options specific to this package
1370 --help=recursive display the short help of all the included packages
1371 -V, --version display version information and exit
1372 -q, --quiet, --silent do not print \`checking...' messages
1373 --cache-file=FILE cache test results in FILE [disabled]
1374 -C, --config-cache alias for \`--cache-file=config.cache'
1375 -n, --no-create do not create output files
1376 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1377
5464f5a1
NN
1378Installation directories:
1379 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1380 [$ac_default_prefix]
5464f5a1 1381 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1382 [PREFIX]
6be7c12c 1383
5464f5a1
NN
1384By default, \`make install' will install all the files in
1385\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1386an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1387for instance \`--prefix=\$HOME'.
6be7c12c 1388
5464f5a1 1389For better control, use the options below.
6be7c12c 1390
5464f5a1 1391Fine tuning of the installation directories:
81ecdfbb
RW
1392 --bindir=DIR user executables [EPREFIX/bin]
1393 --sbindir=DIR system admin executables [EPREFIX/sbin]
1394 --libexecdir=DIR program executables [EPREFIX/libexec]
1395 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1396 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1397 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1398 --libdir=DIR object code libraries [EPREFIX/lib]
1399 --includedir=DIR C header files [PREFIX/include]
1400 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1401 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1402 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1403 --infodir=DIR info documentation [DATAROOTDIR/info]
1404 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1405 --mandir=DIR man documentation [DATAROOTDIR/man]
c4dd807e 1406 --docdir=DIR documentation root [DATAROOTDIR/doc/bfd]
81ecdfbb
RW
1407 --htmldir=DIR html documentation [DOCDIR]
1408 --dvidir=DIR dvi documentation [DOCDIR]
1409 --pdfdir=DIR pdf documentation [DOCDIR]
1410 --psdir=DIR ps documentation [DOCDIR]
5464f5a1 1411_ACEOF
6be7c12c 1412
5464f5a1 1413 cat <<\_ACEOF
6be7c12c 1414
5464f5a1
NN
1415Program names:
1416 --program-prefix=PREFIX prepend PREFIX to installed program names
1417 --program-suffix=SUFFIX append SUFFIX to installed program names
1418 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 1419
5464f5a1
NN
1420System types:
1421 --build=BUILD configure for building on BUILD [guessed]
1422 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1423 --target=TARGET configure for building compilers for TARGET [HOST]
1424_ACEOF
252b5132 1425fi
252b5132 1426
5464f5a1 1427if test -n "$ac_init_help"; then
c4dd807e 1428 case $ac_init_help in
769c7ea5 1429 short | recursive ) echo "Configuration of bfd 2.30.51:";;
c4dd807e 1430 esac
5464f5a1 1431 cat <<\_ACEOF
252b5132 1432
5464f5a1 1433Optional Features:
81ecdfbb 1434 --disable-option-checking ignore unrecognized --enable/--with options
5464f5a1
NN
1435 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1436 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
f5385ebf
AM
1437 --disable-dependency-tracking speeds up one-time build
1438 --enable-dependency-tracking do not reject slow dependency extractors
81ecdfbb
RW
1439 --enable-shared[=PKGS] build shared libraries [default=no]
1440 --enable-static[=PKGS] build static libraries [default=yes]
d7040cdb
SE
1441 --enable-fast-install[=PKGS]
1442 optimize for fast installation [default=yes]
5464f5a1 1443 --disable-libtool-lock avoid locking (might break parallel builds)
b879806f 1444 --enable-plugins Enable support for plugins
ce3c775b 1445 --disable-largefile omit support for large files
5464f5a1
NN
1446 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1447 --enable-targets alternative target configurations
e6cc316a 1448 --enable-64-bit-archive force 64-bit archives
6ec7057a 1449 --enable-secureplt Default to creating read-only plt entries
f6aec96d 1450 --enable-separate-code enable -z separate-code in ELF linker by default
ef72a554
KT
1451 --enable-leading-mingw64-underscores
1452 Enable leading underscores on 64 bit mingw targets
241a6c40
AM
1453 --enable-werror treat compile warnings as errors
1454 --enable-build-warnings enable build-time compiler warnings
f5385ebf
AM
1455 --enable-maintainer-mode enable make rules and dependencies not useful
1456 (and sometimes confusing) to the casual installer
5464f5a1
NN
1457 --enable-install-libbfd controls installation of libbfd and related headers
1458 --disable-nls do not use Native Language Support
1459
1460Optional Packages:
1461 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1462 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1463 --with-pic try to use only PIC/non-PIC objects [default=use
1464 both]
1465 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
5464f5a1 1466 --with-mmap try using mmap for BFD input files if available
0d4a1476
AS
1467 --with-separate-debug-dir=DIR
1468 Look for global separate debug info in DIR
1469 [default=LIBDIR/debug]
a1ac8190
JM
1470 --with-pkgversion=PKG Use PKG in the version string in place of "GNU
1471 Binutils"
c428fa83 1472 --with-bugurl=URL Direct users to URL to report a bug
243340ad 1473 --with-system-zlib use installed libz
5464f5a1
NN
1474
1475Some influential environment variables:
1476 CC C compiler command
1477 CFLAGS C compiler flags
1478 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1479 nonstandard directory <lib dir>
81ecdfbb
RW
1480 LIBS libraries to pass to the linker, e.g. -l<library>
1481 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1482 you have headers in a nonstandard directory <include dir>
5464f5a1
NN
1483 CPP C preprocessor
1484
1485Use these variables to override the choices made by `configure' or to help
1486it to find libraries and programs with nonstandard names/locations.
1487
81ecdfbb 1488Report bugs to the package provider.
5464f5a1 1489_ACEOF
81ecdfbb 1490ac_status=$?
5464f5a1
NN
1491fi
1492
1493if test "$ac_init_help" = "recursive"; then
1494 # If there are subdirs, report their specific --help.
5464f5a1 1495 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1496 test -d "$ac_dir" ||
1497 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1498 continue
5464f5a1
NN
1499 ac_builddir=.
1500
81ecdfbb
RW
1501case "$ac_dir" in
1502.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1503*)
1504 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1505 # A ".." for each directory in $ac_dir_suffix.
1506 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1507 case $ac_top_builddir_sub in
1508 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1510 esac ;;
1511esac
1512ac_abs_top_builddir=$ac_pwd
1513ac_abs_builddir=$ac_pwd$ac_dir_suffix
1514# for backward compatibility:
1515ac_top_builddir=$ac_top_build_prefix
5464f5a1
NN
1516
1517case $srcdir in
81ecdfbb 1518 .) # We are building in place.
5464f5a1 1519 ac_srcdir=.
81ecdfbb
RW
1520 ac_top_srcdir=$ac_top_builddir_sub
1521 ac_abs_top_srcdir=$ac_pwd ;;
1522 [\\/]* | ?:[\\/]* ) # Absolute name.
5464f5a1 1523 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1524 ac_top_srcdir=$srcdir
1525 ac_abs_top_srcdir=$srcdir ;;
1526 *) # Relative name.
1527 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1528 ac_top_srcdir=$ac_top_build_prefix$srcdir
1529 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5464f5a1 1530esac
81ecdfbb
RW
1531ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1532
1533 cd "$ac_dir" || { ac_status=$?; continue; }
1534 # Check for guested configure.
1535 if test -f "$ac_srcdir/configure.gnu"; then
1536 echo &&
1537 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1538 elif test -f "$ac_srcdir/configure"; then
1539 echo &&
1540 $SHELL "$ac_srcdir/configure" --help=recursive
5464f5a1 1541 else
81ecdfbb
RW
1542 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1543 fi || ac_status=$?
1544 cd "$ac_pwd" || { ac_status=$?; break; }
5464f5a1 1545 done
6be7c12c
AO
1546fi
1547
81ecdfbb 1548test -n "$ac_init_help" && exit $ac_status
5464f5a1
NN
1549if $ac_init_version; then
1550 cat <<\_ACEOF
769c7ea5 1551bfd configure 2.30.51
81ecdfbb 1552generated by GNU Autoconf 2.64
6be7c12c 1553
81ecdfbb 1554Copyright (C) 2009 Free Software Foundation, Inc.
5464f5a1
NN
1555This configure script is free software; the Free Software Foundation
1556gives unlimited permission to copy, distribute and modify it.
1557_ACEOF
81ecdfbb 1558 exit
5464f5a1 1559fi
6be7c12c 1560
81ecdfbb
RW
1561## ------------------------ ##
1562## Autoconf initialization. ##
1563## ------------------------ ##
6be7c12c 1564
81ecdfbb
RW
1565# ac_fn_c_try_compile LINENO
1566# --------------------------
1567# Try to compile conftest.$ac_ext, and return whether this succeeded.
1568ac_fn_c_try_compile ()
5464f5a1 1569{
81ecdfbb
RW
1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571 rm -f conftest.$ac_objext
1572 if { { ac_try="$ac_compile"
1573case "(($ac_try" in
1574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1575 *) ac_try_echo=$ac_try;;
1576esac
1577eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1578$as_echo "$ac_try_echo"; } >&5
1579 (eval "$ac_compile") 2>conftest.err
1580 ac_status=$?
1581 if test -s conftest.err; then
1582 grep -v '^ *+' conftest.err >conftest.er1
1583 cat conftest.er1 >&5
1584 mv -f conftest.er1 conftest.err
1585 fi
1586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587 test $ac_status = 0; } && {
1588 test -z "$ac_c_werror_flag" ||
1589 test ! -s conftest.err
1590 } && test -s conftest.$ac_objext; then :
1591 ac_retval=0
1592else
1593 $as_echo "$as_me: failed program was:" >&5
1594sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 1595
81ecdfbb
RW
1596 ac_retval=1
1597fi
1598 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1599 return $ac_retval
5464f5a1 1600
81ecdfbb 1601} # ac_fn_c_try_compile
5464f5a1 1602
81ecdfbb
RW
1603# ac_fn_c_try_link LINENO
1604# -----------------------
1605# Try to link conftest.$ac_ext, and return whether this succeeded.
1606ac_fn_c_try_link ()
1607{
1608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609 rm -f conftest.$ac_objext conftest$ac_exeext
1610 if { { ac_try="$ac_link"
1611case "(($ac_try" in
1612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1613 *) ac_try_echo=$ac_try;;
1614esac
1615eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1616$as_echo "$ac_try_echo"; } >&5
1617 (eval "$ac_link") 2>conftest.err
1618 ac_status=$?
1619 if test -s conftest.err; then
1620 grep -v '^ *+' conftest.err >conftest.er1
1621 cat conftest.er1 >&5
1622 mv -f conftest.er1 conftest.err
1623 fi
1624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1625 test $ac_status = 0; } && {
1626 test -z "$ac_c_werror_flag" ||
1627 test ! -s conftest.err
1628 } && test -s conftest$ac_exeext && {
1629 test "$cross_compiling" = yes ||
1630 $as_test_x conftest$ac_exeext
1631 }; then :
1632 ac_retval=0
1633else
1634 $as_echo "$as_me: failed program was:" >&5
1635sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 1636
81ecdfbb
RW
1637 ac_retval=1
1638fi
1639 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1640 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1641 # interfere with the next link command; also delete a directory that is
1642 # left behind by Apple's compiler. We do this before executing the actions.
1643 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1644 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1645 return $ac_retval
6be7c12c 1646
81ecdfbb 1647} # ac_fn_c_try_link
66e25bab 1648
81ecdfbb
RW
1649# ac_fn_c_try_cpp LINENO
1650# ----------------------
1651# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1652ac_fn_c_try_cpp ()
1653{
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 if { { ac_try="$ac_cpp conftest.$ac_ext"
1656case "(($ac_try" in
1657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658 *) ac_try_echo=$ac_try;;
1659esac
1660eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661$as_echo "$ac_try_echo"; } >&5
1662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1663 ac_status=$?
1664 if test -s conftest.err; then
1665 grep -v '^ *+' conftest.err >conftest.er1
1666 cat conftest.er1 >&5
1667 mv -f conftest.er1 conftest.err
1668 fi
1669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670 test $ac_status = 0; } >/dev/null && {
1671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1672 test ! -s conftest.err
1673 }; then :
1674 ac_retval=0
1675else
1676 $as_echo "$as_me: failed program was:" >&5
1677sed 's/^/| /' conftest.$ac_ext >&5
b3baf5d0 1678
81ecdfbb
RW
1679 ac_retval=1
1680fi
1681 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1682 return $ac_retval
6be7c12c 1683
81ecdfbb 1684} # ac_fn_c_try_cpp
252b5132 1685
81ecdfbb
RW
1686# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1687# -------------------------------------------------------
1688# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1689# the include files in INCLUDES and setting the cache variable VAR
1690# accordingly.
1691ac_fn_c_check_header_mongrel ()
1692{
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1696$as_echo_n "checking for $2... " >&6; }
1697if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1698 $as_echo_n "(cached) " >&6
1699fi
1700eval ac_res=\$$3
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1702$as_echo "$ac_res" >&6; }
1703else
1704 # Is the header compilable?
1705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1706$as_echo_n "checking $2 usability... " >&6; }
1707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1708/* end confdefs.h. */
1709$4
1710#include <$2>
5464f5a1 1711_ACEOF
81ecdfbb
RW
1712if ac_fn_c_try_compile "$LINENO"; then :
1713 ac_header_compiler=yes
1714else
1715 ac_header_compiler=no
1716fi
1717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1719$as_echo "$ac_header_compiler" >&6; }
c5d1701e 1720
81ecdfbb
RW
1721# Is the header present?
1722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1723$as_echo_n "checking $2 presence... " >&6; }
1724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1725/* end confdefs.h. */
1726#include <$2>
1727_ACEOF
1728if ac_fn_c_try_cpp "$LINENO"; then :
1729 ac_header_preproc=yes
1730else
1731 ac_header_preproc=no
1732fi
1733rm -f conftest.err conftest.$ac_ext
1734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1735$as_echo "$ac_header_preproc" >&6; }
6be7c12c 1736
81ecdfbb
RW
1737# So? What about this header?
1738case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1739 yes:no: )
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1741$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1743$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1744 ;;
1745 no:yes:* )
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1747$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1749$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1751$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1753$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1755$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1756 ;;
1757esac
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1759$as_echo_n "checking for $2... " >&6; }
1760if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1761 $as_echo_n "(cached) " >&6
1762else
1763 eval "$3=\$ac_header_compiler"
1764fi
1765eval ac_res=\$$3
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1767$as_echo "$ac_res" >&6; }
1768fi
1769 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
5464f5a1 1770
81ecdfbb 1771} # ac_fn_c_check_header_mongrel
5464f5a1 1772
81ecdfbb
RW
1773# ac_fn_c_try_run LINENO
1774# ----------------------
1775# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1776# that executables *can* be run.
1777ac_fn_c_try_run ()
5464f5a1 1778{
81ecdfbb
RW
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 if { { ac_try="$ac_link"
1781case "(($ac_try" in
1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1784esac
1785eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786$as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_link") 2>&5
1788 ac_status=$?
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1791 { { case "(($ac_try" in
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1794esac
1795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796$as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_try") 2>&5
1798 ac_status=$?
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; }; }; then :
1801 ac_retval=0
1802else
1803 $as_echo "$as_me: program exited with status $ac_status" >&5
1804 $as_echo "$as_me: failed program was:" >&5
1805sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 1806
81ecdfbb
RW
1807 ac_retval=$ac_status
1808fi
1809 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1810 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1811 return $ac_retval
5464f5a1 1812
81ecdfbb 1813} # ac_fn_c_try_run
5464f5a1 1814
81ecdfbb
RW
1815# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1816# -------------------------------------------------------
1817# Tests whether HEADER exists and can be compiled using the include files in
1818# INCLUDES, setting the cache variable VAR accordingly.
1819ac_fn_c_check_header_compile ()
1820{
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823$as_echo_n "checking for $2... " >&6; }
1824if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1825 $as_echo_n "(cached) " >&6
1826else
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828/* end confdefs.h. */
1829$4
1830#include <$2>
1831_ACEOF
1832if ac_fn_c_try_compile "$LINENO"; then :
1833 eval "$3=yes"
1834else
1835 eval "$3=no"
1836fi
1837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1838fi
1839eval ac_res=\$$3
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841$as_echo "$ac_res" >&6; }
1842 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
5464f5a1 1843
81ecdfbb 1844} # ac_fn_c_check_header_compile
5464f5a1 1845
81ecdfbb
RW
1846# ac_fn_c_check_func LINENO FUNC VAR
1847# ----------------------------------
1848# Tests whether FUNC exists, setting the cache variable VAR accordingly
1849ac_fn_c_check_func ()
1850{
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1853$as_echo_n "checking for $2... " >&6; }
1854if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1855 $as_echo_n "(cached) " >&6
1856else
1857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1858/* end confdefs.h. */
1859/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1861#define $2 innocuous_$2
5464f5a1 1862
81ecdfbb
RW
1863/* System header to define __stub macros and hopefully few prototypes,
1864 which can conflict with char $2 (); below.
1865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1866 <limits.h> exists even on freestanding compilers. */
5464f5a1 1867
81ecdfbb
RW
1868#ifdef __STDC__
1869# include <limits.h>
1870#else
1871# include <assert.h>
1872#endif
5464f5a1 1873
81ecdfbb 1874#undef $2
5464f5a1 1875
81ecdfbb
RW
1876/* Override any GCC internal prototype to avoid an error.
1877 Use char because int might match the return type of a GCC
1878 builtin and then its argument prototype would still apply. */
1879#ifdef __cplusplus
1880extern "C"
1881#endif
1882char $2 ();
1883/* The GNU C library defines this for functions which it implements
1884 to always fail with ENOSYS. Some functions are actually named
1885 something starting with __ and the normal name is an alias. */
1886#if defined __stub_$2 || defined __stub___$2
1887choke me
1888#endif
5464f5a1 1889
81ecdfbb
RW
1890int
1891main ()
1892{
1893return $2 ();
1894 ;
1895 return 0;
1896}
5464f5a1 1897_ACEOF
81ecdfbb
RW
1898if ac_fn_c_try_link "$LINENO"; then :
1899 eval "$3=yes"
1900else
1901 eval "$3=no"
1902fi
1903rm -f core conftest.err conftest.$ac_objext \
1904 conftest$ac_exeext conftest.$ac_ext
1905fi
1906eval ac_res=\$$3
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1908$as_echo "$ac_res" >&6; }
1909 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
5464f5a1 1910
81ecdfbb 1911} # ac_fn_c_check_func
5464f5a1 1912
33c734b2
AM
1913# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1914# -------------------------------------------
1915# Tests whether TYPE exists after having included INCLUDES, setting cache
1916# variable VAR accordingly.
1917ac_fn_c_check_type ()
1918{
1919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1921$as_echo_n "checking for $2... " >&6; }
1922if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1923 $as_echo_n "(cached) " >&6
1924else
1925 eval "$3=no"
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927/* end confdefs.h. */
1928$4
1929int
1930main ()
1931{
1932if (sizeof ($2))
1933 return 0;
1934 ;
1935 return 0;
1936}
1937_ACEOF
1938if ac_fn_c_try_compile "$LINENO"; then :
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940/* end confdefs.h. */
1941$4
1942int
1943main ()
1944{
1945if (sizeof (($2)))
1946 return 0;
1947 ;
1948 return 0;
1949}
1950_ACEOF
1951if ac_fn_c_try_compile "$LINENO"; then :
1952
1953else
1954 eval "$3=yes"
1955fi
1956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1957fi
1958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1959fi
1960eval ac_res=\$$3
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1962$as_echo "$ac_res" >&6; }
1963 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1964
1965} # ac_fn_c_check_type
1966
81ecdfbb
RW
1967# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1968# --------------------------------------------
1969# Tries to find the compile-time value of EXPR in a program that includes
1970# INCLUDES, setting VAR accordingly. Returns whether the value could be
1971# computed
1972ac_fn_c_compute_int ()
1973{
1974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975 if test "$cross_compiling" = yes; then
1976 # Depending upon the size, compute the lo and hi bounds.
1977cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1978/* end confdefs.h. */
1979$4
1980int
1981main ()
1982{
1983static int test_array [1 - 2 * !(($2) >= 0)];
1984test_array [0] = 0
5464f5a1 1985
81ecdfbb
RW
1986 ;
1987 return 0;
1988}
5464f5a1 1989_ACEOF
81ecdfbb
RW
1990if ac_fn_c_try_compile "$LINENO"; then :
1991 ac_lo=0 ac_mid=0
1992 while :; do
1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994/* end confdefs.h. */
1995$4
1996int
1997main ()
1998{
1999static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2000test_array [0] = 0
5464f5a1 2001
81ecdfbb
RW
2002 ;
2003 return 0;
2004}
2005_ACEOF
2006if ac_fn_c_try_compile "$LINENO"; then :
2007 ac_hi=$ac_mid; break
5464f5a1 2008else
81ecdfbb
RW
2009 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2010 if test $ac_lo -le $ac_mid; then
2011 ac_lo= ac_hi=
2012 break
2013 fi
2014 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
5464f5a1 2015fi
81ecdfbb
RW
2016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017 done
2018else
2019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020/* end confdefs.h. */
2021$4
2022int
2023main ()
2024{
2025static int test_array [1 - 2 * !(($2) < 0)];
2026test_array [0] = 0
5464f5a1 2027
81ecdfbb
RW
2028 ;
2029 return 0;
2030}
2031_ACEOF
2032if ac_fn_c_try_compile "$LINENO"; then :
2033 ac_hi=-1 ac_mid=-1
2034 while :; do
2035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036/* end confdefs.h. */
2037$4
2038int
2039main ()
2040{
2041static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2042test_array [0] = 0
5464f5a1 2043
81ecdfbb
RW
2044 ;
2045 return 0;
2046}
2047_ACEOF
2048if ac_fn_c_try_compile "$LINENO"; then :
2049 ac_lo=$ac_mid; break
2050else
2051 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2052 if test $ac_mid -le $ac_hi; then
2053 ac_lo= ac_hi=
2054 break
2055 fi
2056 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2057fi
2058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2059 done
2060else
2061 ac_lo= ac_hi=
2062fi
2063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2064fi
2065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2066# Binary search between lo and hi bounds.
2067while test "x$ac_lo" != "x$ac_hi"; do
2068 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070/* end confdefs.h. */
2071$4
2072int
2073main ()
2074{
2075static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2076test_array [0] = 0
5464f5a1 2077
81ecdfbb
RW
2078 ;
2079 return 0;
2080}
2081_ACEOF
2082if ac_fn_c_try_compile "$LINENO"; then :
2083 ac_hi=$ac_mid
2084else
2085 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2086fi
2087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2088done
2089case $ac_lo in #((
2090?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2091'') ac_retval=1 ;;
2092esac
2093 else
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095/* end confdefs.h. */
2096$4
2097static long int longval () { return $2; }
2098static unsigned long int ulongval () { return $2; }
2099#include <stdio.h>
2100#include <stdlib.h>
2101int
2102main ()
2103{
5464f5a1 2104
81ecdfbb
RW
2105 FILE *f = fopen ("conftest.val", "w");
2106 if (! f)
2107 return 1;
2108 if (($2) < 0)
2109 {
2110 long int i = longval ();
2111 if (i != ($2))
2112 return 1;
2113 fprintf (f, "%ld", i);
2114 }
2115 else
2116 {
2117 unsigned long int i = ulongval ();
2118 if (i != ($2))
2119 return 1;
2120 fprintf (f, "%lu", i);
2121 }
2122 /* Do not output a trailing newline, as this causes \r\n confusion
2123 on some platforms. */
2124 return ferror (f) || fclose (f) != 0;
5464f5a1 2125
81ecdfbb
RW
2126 ;
2127 return 0;
2128}
2129_ACEOF
2130if ac_fn_c_try_run "$LINENO"; then :
2131 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2132else
2133 ac_retval=1
2134fi
2135rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2136 conftest.$ac_objext conftest.beam conftest.$ac_ext
2137rm -f conftest.val
7357c5b6 2138
81ecdfbb
RW
2139 fi
2140 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2141 return $ac_retval
7357c5b6 2142
81ecdfbb 2143} # ac_fn_c_compute_int
7357c5b6 2144
81ecdfbb
RW
2145# ac_fn_c_check_decl LINENO SYMBOL VAR
2146# ------------------------------------
2147# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2148ac_fn_c_check_decl ()
2149{
2150 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
360cfc9c
AM
2151 as_decl_name=`echo $2|sed 's/ *(.*//'`
2152 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2154$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
81ecdfbb
RW
2155if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2156 $as_echo_n "(cached) " >&6
2157else
2158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159/* end confdefs.h. */
2160$4
2161int
2162main ()
2163{
360cfc9c
AM
2164#ifndef $as_decl_name
2165#ifdef __cplusplus
2166 (void) $as_decl_use;
2167#else
2168 (void) $as_decl_name;
2169#endif
81ecdfbb 2170#endif
5464f5a1 2171
81ecdfbb
RW
2172 ;
2173 return 0;
2174}
2175_ACEOF
2176if ac_fn_c_try_compile "$LINENO"; then :
2177 eval "$3=yes"
2178else
2179 eval "$3=no"
5464f5a1 2180fi
81ecdfbb
RW
2181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182fi
2183eval ac_res=\$$3
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2185$as_echo "$ac_res" >&6; }
2186 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
5464f5a1 2187
81ecdfbb
RW
2188} # ac_fn_c_check_decl
2189cat >config.log <<_ACEOF
2190This file contains any messages produced by compilers while
2191running configure, to aid debugging if configure makes a mistake.
5464f5a1 2192
769c7ea5 2193It was created by bfd $as_me 2.30.51, which was
81ecdfbb 2194generated by GNU Autoconf 2.64. Invocation command line was
5464f5a1 2195
81ecdfbb 2196 $ $0 $@
5464f5a1 2197
81ecdfbb
RW
2198_ACEOF
2199exec 5>>config.log
2200{
2201cat <<_ASUNAME
2202## --------- ##
2203## Platform. ##
2204## --------- ##
5464f5a1 2205
81ecdfbb
RW
2206hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2207uname -m = `(uname -m) 2>/dev/null || echo unknown`
2208uname -r = `(uname -r) 2>/dev/null || echo unknown`
2209uname -s = `(uname -s) 2>/dev/null || echo unknown`
2210uname -v = `(uname -v) 2>/dev/null || echo unknown`
5464f5a1 2211
81ecdfbb
RW
2212/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2213/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
5464f5a1 2214
81ecdfbb
RW
2215/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2216/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2217/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2218/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2219/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2220/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2221/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
5464f5a1 2222
81ecdfbb 2223_ASUNAME
5464f5a1 2224
5464f5a1
NN
2225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226for as_dir in $PATH
2227do
2228 IFS=$as_save_IFS
2229 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2230 $as_echo "PATH: $as_dir"
2231 done
2232IFS=$as_save_IFS
5464f5a1 2233
81ecdfbb 2234} >&5
5464f5a1 2235
81ecdfbb 2236cat >&5 <<_ACEOF
5464f5a1 2237
5464f5a1 2238
81ecdfbb
RW
2239## ----------- ##
2240## Core tests. ##
2241## ----------- ##
5464f5a1 2242
81ecdfbb
RW
2243_ACEOF
2244
2245
2246# Keep a trace of the command line.
2247# Strip out --no-create and --no-recursion so they do not pile up.
2248# Strip out --silent because we don't want to record it for future runs.
2249# Also quote any args containing shell meta-characters.
2250# Make two passes to allow for proper duplicate-argument suppression.
2251ac_configure_args=
2252ac_configure_args0=
2253ac_configure_args1=
2254ac_must_keep_next=false
2255for ac_pass in 1 2
2256do
2257 for ac_arg
2258 do
2259 case $ac_arg in
2260 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2261 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2262 | -silent | --silent | --silen | --sile | --sil)
2263 continue ;;
2264 *\'*)
2265 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2266 esac
2267 case $ac_pass in
2268 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2269 2)
2270 as_fn_append ac_configure_args1 " '$ac_arg'"
2271 if test $ac_must_keep_next = true; then
2272 ac_must_keep_next=false # Got value, back to normal.
2273 else
2274 case $ac_arg in
2275 *=* | --config-cache | -C | -disable-* | --disable-* \
2276 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2277 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2278 | -with-* | --with-* | -without-* | --without-* | --x)
2279 case "$ac_configure_args0 " in
2280 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2281 esac
2282 ;;
2283 -* ) ac_must_keep_next=true ;;
2284 esac
2285 fi
2286 as_fn_append ac_configure_args " '$ac_arg'"
2287 ;;
2288 esac
2289 done
2290done
2291{ ac_configure_args0=; unset ac_configure_args0;}
2292{ ac_configure_args1=; unset ac_configure_args1;}
2293
2294# When interrupted or exit'd, cleanup temporary files, and complete
2295# config.log. We remove comments because anyway the quotes in there
2296# would cause problems or look ugly.
2297# WARNING: Use '\'' to represent an apostrophe within the trap.
2298# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2299trap 'exit_status=$?
2300 # Save into config.log some information that might help in debugging.
2301 {
2302 echo
2303
2304 cat <<\_ASBOX
2305## ---------------- ##
2306## Cache variables. ##
2307## ---------------- ##
2308_ASBOX
2309 echo
2310 # The following way of writing the cache mishandles newlines in values,
2311(
2312 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2313 eval ac_val=\$$ac_var
2314 case $ac_val in #(
2315 *${as_nl}*)
2316 case $ac_var in #(
2317 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2318$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2319 esac
2320 case $ac_var in #(
2321 _ | IFS | as_nl) ;; #(
2322 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2323 *) { eval $ac_var=; unset $ac_var;} ;;
2324 esac ;;
2325 esac
2326 done
2327 (set) 2>&1 |
2328 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2329 *${as_nl}ac_space=\ *)
2330 sed -n \
2331 "s/'\''/'\''\\\\'\'''\''/g;
2332 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2333 ;; #(
2334 *)
2335 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2336 ;;
2337 esac |
2338 sort
2339)
2340 echo
2341
2342 cat <<\_ASBOX
2343## ----------------- ##
2344## Output variables. ##
2345## ----------------- ##
2346_ASBOX
2347 echo
2348 for ac_var in $ac_subst_vars
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
2358 if test -n "$ac_subst_files"; then
2359 cat <<\_ASBOX
2360## ------------------- ##
2361## File substitutions. ##
2362## ------------------- ##
2363_ASBOX
2364 echo
2365 for ac_var in $ac_subst_files
2366 do
2367 eval ac_val=\$$ac_var
2368 case $ac_val in
2369 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2370 esac
2371 $as_echo "$ac_var='\''$ac_val'\''"
2372 done | sort
2373 echo
2374 fi
2375
2376 if test -s confdefs.h; then
2377 cat <<\_ASBOX
2378## ----------- ##
2379## confdefs.h. ##
2380## ----------- ##
2381_ASBOX
2382 echo
2383 cat confdefs.h
2384 echo
2385 fi
2386 test "$ac_signal" != 0 &&
2387 $as_echo "$as_me: caught signal $ac_signal"
2388 $as_echo "$as_me: exit $exit_status"
2389 } >&5
2390 rm -f core *.core core.conftest.* &&
2391 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2392 exit $exit_status
2393' 0
2394for ac_signal in 1 2 13 15; do
2395 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2396done
2397ac_signal=0
2398
2399# confdefs.h avoids OS command line length limits that DEFS can exceed.
2400rm -f -r conftest* confdefs.h
2401
2402$as_echo "/* confdefs.h */" > confdefs.h
2403
2404# Predefined preprocessor variables.
2405
2406cat >>confdefs.h <<_ACEOF
2407#define PACKAGE_NAME "$PACKAGE_NAME"
2408_ACEOF
2409
2410cat >>confdefs.h <<_ACEOF
2411#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2412_ACEOF
2413
2414cat >>confdefs.h <<_ACEOF
2415#define PACKAGE_VERSION "$PACKAGE_VERSION"
2416_ACEOF
2417
2418cat >>confdefs.h <<_ACEOF
2419#define PACKAGE_STRING "$PACKAGE_STRING"
2420_ACEOF
2421
2422cat >>confdefs.h <<_ACEOF
2423#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2424_ACEOF
2425
2426cat >>confdefs.h <<_ACEOF
2427#define PACKAGE_URL "$PACKAGE_URL"
2428_ACEOF
2429
2430
2431# Let the site file select an alternate cache file if it wants to.
2432# Prefer an explicitly selected file to automatically selected ones.
2433ac_site_file1=NONE
2434ac_site_file2=NONE
2435if test -n "$CONFIG_SITE"; then
2436 ac_site_file1=$CONFIG_SITE
2437elif test "x$prefix" != xNONE; then
2438 ac_site_file1=$prefix/share/config.site
2439 ac_site_file2=$prefix/etc/config.site
2440else
2441 ac_site_file1=$ac_default_prefix/share/config.site
2442 ac_site_file2=$ac_default_prefix/etc/config.site
2443fi
2444for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2445do
2446 test "x$ac_site_file" = xNONE && continue
2447 if test -r "$ac_site_file"; then
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2449$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2450 sed 's/^/| /' "$ac_site_file" >&5
2451 . "$ac_site_file"
2452 fi
2453done
2454
2455if test -r "$cache_file"; then
2456 # Some versions of bash will fail to source /dev/null (special
2457 # files actually), so we avoid doing that.
2458 if test -f "$cache_file"; then
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2460$as_echo "$as_me: loading cache $cache_file" >&6;}
2461 case $cache_file in
2462 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2463 *) . "./$cache_file";;
2464 esac
2465 fi
2466else
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2468$as_echo "$as_me: creating cache $cache_file" >&6;}
2469 >$cache_file
2470fi
2471
2472# Check that the precious variables saved in the cache have kept the same
2473# value.
2474ac_cache_corrupted=false
2475for ac_var in $ac_precious_vars; do
2476 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2477 eval ac_new_set=\$ac_env_${ac_var}_set
2478 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2479 eval ac_new_val=\$ac_env_${ac_var}_value
2480 case $ac_old_set,$ac_new_set in
2481 set,)
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2483$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2484 ac_cache_corrupted=: ;;
2485 ,set)
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2487$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2488 ac_cache_corrupted=: ;;
2489 ,);;
2490 *)
2491 if test "x$ac_old_val" != "x$ac_new_val"; then
2492 # differences in whitespace do not lead to failure.
2493 ac_old_val_w=`echo x $ac_old_val`
2494 ac_new_val_w=`echo x $ac_new_val`
2495 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2497$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2498 ac_cache_corrupted=:
2499 else
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2501$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2502 eval $ac_var=\$ac_old_val
2503 fi
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2505$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2507$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2508 fi;;
2509 esac
2510 # Pass precious variables to config.status.
2511 if test "$ac_new_set" = set; then
2512 case $ac_new_val in
2513 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2514 *) ac_arg=$ac_var=$ac_new_val ;;
2515 esac
2516 case " $ac_configure_args " in
2517 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2518 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2519 esac
5464f5a1
NN
2520 fi
2521done
81ecdfbb
RW
2522if $ac_cache_corrupted; then
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2524$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2526$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2527 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2528fi
2529## -------------------- ##
2530## Main body of script. ##
2531## -------------------- ##
2532
2533ac_ext=c
2534ac_cpp='$CPP $CPPFLAGS'
2535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2537ac_compiler_gnu=$ac_cv_c_compiler_gnu
2538
2539
2540
2541
2542
2543
2544
2545ac_aux_dir=
2546for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2547 for ac_t in install-sh install.sh shtool; do
2548 if test -f "$ac_dir/$ac_t"; then
2549 ac_aux_dir=$ac_dir
2550 ac_install_sh="$ac_aux_dir/$ac_t -c"
2551 break 2
2552 fi
2553 done
5464f5a1 2554done
81ecdfbb
RW
2555if test -z "$ac_aux_dir"; then
2556 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2557fi
2558
2559# These three variables are undocumented and unsupported,
2560# and are intended to be withdrawn in a future Autoconf release.
2561# They can cause serious problems if a builder's source tree is in a directory
2562# whose full name contains unusual characters.
2563ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2564ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2565ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2566
2567
2568# Make sure we can run config.sub.
2569$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2570 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2571
2572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2573$as_echo_n "checking build system type... " >&6; }
2574if test "${ac_cv_build+set}" = set; then :
2575 $as_echo_n "(cached) " >&6
2576else
2577 ac_build_alias=$build_alias
2578test "x$ac_build_alias" = x &&
2579 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2580test "x$ac_build_alias" = x &&
2581 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2582ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2583 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2584
2585fi
2586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2587$as_echo "$ac_cv_build" >&6; }
2588case $ac_cv_build in
2589*-*-*) ;;
2590*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2591esac
2592build=$ac_cv_build
2593ac_save_IFS=$IFS; IFS='-'
2594set x $ac_cv_build
2595shift
2596build_cpu=$1
2597build_vendor=$2
2598shift; shift
2599# Remember, the first character of IFS is used to create $*,
2600# except with old shells:
2601build_os=$*
2602IFS=$ac_save_IFS
2603case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5464f5a1 2604
81ecdfbb
RW
2605
2606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2607$as_echo_n "checking host system type... " >&6; }
2608if test "${ac_cv_host+set}" = set; then :
2609 $as_echo_n "(cached) " >&6
2610else
2611 if test "x$host_alias" = x; then
2612 ac_cv_host=$ac_cv_build
2613else
2614 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2615 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5464f5a1 2616fi
81ecdfbb 2617
5464f5a1 2618fi
81ecdfbb
RW
2619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2620$as_echo "$ac_cv_host" >&6; }
2621case $ac_cv_host in
2622*-*-*) ;;
2623*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2624esac
2625host=$ac_cv_host
2626ac_save_IFS=$IFS; IFS='-'
2627set x $ac_cv_host
2628shift
2629host_cpu=$1
2630host_vendor=$2
2631shift; shift
2632# Remember, the first character of IFS is used to create $*,
2633# except with old shells:
2634host_os=$*
2635IFS=$ac_save_IFS
2636case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2637
2638
2639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2640$as_echo_n "checking target system type... " >&6; }
2641if test "${ac_cv_target+set}" = set; then :
2642 $as_echo_n "(cached) " >&6
5464f5a1 2643else
81ecdfbb
RW
2644 if test "x$target_alias" = x; then
2645 ac_cv_target=$ac_cv_host
2646else
2647 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2648 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5464f5a1
NN
2649fi
2650
2651fi
81ecdfbb
RW
2652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2653$as_echo "$ac_cv_target" >&6; }
2654case $ac_cv_target in
2655*-*-*) ;;
2656*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2657esac
2658target=$ac_cv_target
2659ac_save_IFS=$IFS; IFS='-'
2660set x $ac_cv_target
2661shift
2662target_cpu=$1
2663target_vendor=$2
2664shift; shift
2665# Remember, the first character of IFS is used to create $*,
2666# except with old shells:
2667target_os=$*
2668IFS=$ac_save_IFS
2669case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2670
2671
2672# The aliases save the names the user supplied, while $host etc.
2673# will get canonicalized.
2674test -n "$target_alias" &&
2675 test "$program_prefix$program_suffix$program_transform_name" = \
2676 NONENONEs,x,x, &&
2677 program_prefix=${target_alias}-
2678ac_ext=c
2679ac_cpp='$CPP $CPPFLAGS'
2680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2682ac_compiler_gnu=$ac_cv_c_compiler_gnu
2683if test -n "$ac_tool_prefix"; then
2684 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2685set dummy ${ac_tool_prefix}gcc; ac_word=$2
2686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2687$as_echo_n "checking for $ac_word... " >&6; }
2688if test "${ac_cv_prog_CC+set}" = set; then :
2689 $as_echo_n "(cached) " >&6
5464f5a1 2690else
81ecdfbb
RW
2691 if test -n "$CC"; then
2692 ac_cv_prog_CC="$CC" # Let the user override the test.
5464f5a1
NN
2693else
2694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695for as_dir in $PATH
2696do
2697 IFS=$as_save_IFS
2698 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2699 for ac_exec_ext in '' $ac_executable_extensions; do
2700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2701 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
2703 break 2
2704 fi
2705done
81ecdfbb
RW
2706 done
2707IFS=$as_save_IFS
5464f5a1
NN
2708
2709fi
2710fi
81ecdfbb
RW
2711CC=$ac_cv_prog_CC
2712if test -n "$CC"; then
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2714$as_echo "$CC" >&6; }
5464f5a1 2715else
81ecdfbb
RW
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2717$as_echo "no" >&6; }
5464f5a1
NN
2718fi
2719
81ecdfbb
RW
2720
2721fi
2722if test -z "$ac_cv_prog_CC"; then
2723 ac_ct_CC=$CC
2724 # Extract the first word of "gcc", so it can be a program name with args.
2725set dummy gcc; ac_word=$2
2726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2727$as_echo_n "checking for $ac_word... " >&6; }
2728if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2729 $as_echo_n "(cached) " >&6
2730else
2731 if test -n "$ac_ct_CC"; then
2732 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2733else
2734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735for as_dir in $PATH
2736do
2737 IFS=$as_save_IFS
2738 test -z "$as_dir" && as_dir=.
2739 for ac_exec_ext in '' $ac_executable_extensions; do
2740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2741 ac_cv_prog_ac_ct_CC="gcc"
2742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2743 break 2
2744 fi
2745done
2746 done
2747IFS=$as_save_IFS
2748
2749fi
2750fi
2751ac_ct_CC=$ac_cv_prog_ac_ct_CC
2752if test -n "$ac_ct_CC"; then
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2754$as_echo "$ac_ct_CC" >&6; }
2755else
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2757$as_echo "no" >&6; }
2758fi
2759
2760 if test "x$ac_ct_CC" = x; then
2761 CC=""
2762 else
2763 case $cross_compiling:$ac_tool_warned in
2764yes:)
2765{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2766$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2767ac_tool_warned=yes ;;
2768esac
2769 CC=$ac_ct_CC
2770 fi
2771else
2772 CC="$ac_cv_prog_CC"
2773fi
2774
2775if test -z "$CC"; then
2776 if test -n "$ac_tool_prefix"; then
2777 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2778set dummy ${ac_tool_prefix}cc; ac_word=$2
2779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2780$as_echo_n "checking for $ac_word... " >&6; }
2781if test "${ac_cv_prog_CC+set}" = set; then :
2782 $as_echo_n "(cached) " >&6
2783else
2784 if test -n "$CC"; then
2785 ac_cv_prog_CC="$CC" # Let the user override the test.
2786else
2787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788for as_dir in $PATH
2789do
2790 IFS=$as_save_IFS
2791 test -z "$as_dir" && as_dir=.
2792 for ac_exec_ext in '' $ac_executable_extensions; do
2793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2794 ac_cv_prog_CC="${ac_tool_prefix}cc"
2795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 break 2
2797 fi
2798done
2799 done
2800IFS=$as_save_IFS
2801
5464f5a1 2802fi
81ecdfbb
RW
2803fi
2804CC=$ac_cv_prog_CC
2805if test -n "$CC"; then
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2807$as_echo "$CC" >&6; }
2808else
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2810$as_echo "no" >&6; }
2811fi
2812
5464f5a1 2813
81ecdfbb 2814 fi
5464f5a1
NN
2815fi
2816if test -z "$CC"; then
2817 # Extract the first word of "cc", so it can be a program name with args.
2818set dummy cc; ac_word=$2
81ecdfbb
RW
2819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2820$as_echo_n "checking for $ac_word... " >&6; }
2821if test "${ac_cv_prog_CC+set}" = set; then :
2822 $as_echo_n "(cached) " >&6
5464f5a1
NN
2823else
2824 if test -n "$CC"; then
2825 ac_cv_prog_CC="$CC" # Let the user override the test.
2826else
2827 ac_prog_rejected=no
2828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829for as_dir in $PATH
2830do
2831 IFS=$as_save_IFS
2832 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464f5a1
NN
2835 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2836 ac_prog_rejected=yes
2837 continue
2838 fi
2839 ac_cv_prog_CC="cc"
81ecdfbb 2840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
2841 break 2
2842 fi
2843done
81ecdfbb
RW
2844 done
2845IFS=$as_save_IFS
5464f5a1
NN
2846
2847if test $ac_prog_rejected = yes; then
2848 # We found a bogon in the path, so make sure we never use it.
2849 set dummy $ac_cv_prog_CC
2850 shift
2851 if test $# != 0; then
2852 # We chose a different compiler from the bogus one.
2853 # However, it has the same basename, so the bogon will be chosen
2854 # first if we set CC to just the basename; use the full file name.
2855 shift
2856 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2857 fi
2858fi
2859fi
2860fi
2861CC=$ac_cv_prog_CC
2862if test -n "$CC"; then
81ecdfbb
RW
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2864$as_echo "$CC" >&6; }
5464f5a1 2865else
81ecdfbb
RW
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2867$as_echo "no" >&6; }
5464f5a1
NN
2868fi
2869
81ecdfbb 2870
5464f5a1
NN
2871fi
2872if test -z "$CC"; then
2873 if test -n "$ac_tool_prefix"; then
81ecdfbb 2874 for ac_prog in cl.exe
5464f5a1
NN
2875 do
2876 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2877set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2879$as_echo_n "checking for $ac_word... " >&6; }
2880if test "${ac_cv_prog_CC+set}" = set; then :
2881 $as_echo_n "(cached) " >&6
5464f5a1
NN
2882else
2883 if test -n "$CC"; then
2884 ac_cv_prog_CC="$CC" # Let the user override the test.
2885else
2886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887for as_dir in $PATH
2888do
2889 IFS=$as_save_IFS
2890 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2891 for ac_exec_ext in '' $ac_executable_extensions; do
2892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464f5a1 2893 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
2895 break 2
2896 fi
2897done
81ecdfbb
RW
2898 done
2899IFS=$as_save_IFS
5464f5a1
NN
2900
2901fi
2902fi
2903CC=$ac_cv_prog_CC
2904if test -n "$CC"; then
81ecdfbb
RW
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2906$as_echo "$CC" >&6; }
5464f5a1 2907else
81ecdfbb
RW
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2909$as_echo "no" >&6; }
5464f5a1
NN
2910fi
2911
81ecdfbb 2912
5464f5a1
NN
2913 test -n "$CC" && break
2914 done
2915fi
2916if test -z "$CC"; then
2917 ac_ct_CC=$CC
81ecdfbb 2918 for ac_prog in cl.exe
5464f5a1
NN
2919do
2920 # Extract the first word of "$ac_prog", so it can be a program name with args.
2921set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923$as_echo_n "checking for $ac_word... " >&6; }
2924if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2925 $as_echo_n "(cached) " >&6
5464f5a1
NN
2926else
2927 if test -n "$ac_ct_CC"; then
2928 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2929else
2930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931for as_dir in $PATH
2932do
2933 IFS=$as_save_IFS
2934 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2935 for ac_exec_ext in '' $ac_executable_extensions; do
2936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464f5a1 2937 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
2939 break 2
2940 fi
2941done
81ecdfbb
RW
2942 done
2943IFS=$as_save_IFS
5464f5a1
NN
2944
2945fi
2946fi
2947ac_ct_CC=$ac_cv_prog_ac_ct_CC
2948if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2950$as_echo "$ac_ct_CC" >&6; }
5464f5a1 2951else
81ecdfbb
RW
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953$as_echo "no" >&6; }
5464f5a1
NN
2954fi
2955
81ecdfbb 2956
5464f5a1
NN
2957 test -n "$ac_ct_CC" && break
2958done
2959
81ecdfbb
RW
2960 if test "x$ac_ct_CC" = x; then
2961 CC=""
2962 else
2963 case $cross_compiling:$ac_tool_warned in
2964yes:)
2965{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2966$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2967ac_tool_warned=yes ;;
2968esac
2969 CC=$ac_ct_CC
2970 fi
5464f5a1
NN
2971fi
2972
2973fi
2974
2975
81ecdfbb
RW
2976test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2977$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2978as_fn_error "no acceptable C compiler found in \$PATH
2979See \`config.log' for more details." "$LINENO" 5; }
5464f5a1
NN
2980
2981# Provide some information about the compiler.
81ecdfbb
RW
2982$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2983set X $ac_compile
2984ac_compiler=$2
2985for ac_option in --version -v -V -qversion; do
2986 { { ac_try="$ac_compiler $ac_option >&5"
2987case "(($ac_try" in
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2990esac
2991eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2992$as_echo "$ac_try_echo"; } >&5
2993 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5464f5a1 2994 ac_status=$?
81ecdfbb
RW
2995 if test -s conftest.err; then
2996 sed '10a\
2997... rest of stderr output deleted ...
2998 10q' conftest.err >conftest.er1
2999 cat conftest.er1 >&5
3000 rm -f conftest.er1 conftest.err
3001 fi
3002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3003 test $ac_status = 0; }
3004done
5464f5a1 3005
81ecdfbb 3006cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464f5a1
NN
3007/* end confdefs.h. */
3008
3009int
3010main ()
3011{
3012
3013 ;
3014 return 0;
3015}
3016_ACEOF
3017ac_clean_files_save=$ac_clean_files
81ecdfbb 3018ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
5464f5a1
NN
3019# Try to create an executable without -o first, disregard a.out.
3020# It will help us diagnose broken compilers, and finding out an intuition
3021# of exeext.
81ecdfbb
RW
3022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3023$as_echo_n "checking for C compiler default output file name... " >&6; }
3024ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3025
3026# The possible output files:
3027ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3028
3029ac_rmfiles=
3030for ac_file in $ac_files
3031do
3032 case $ac_file in
3033 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3034 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3035 esac
3036done
3037rm -f $ac_rmfiles
3038
3039if { { ac_try="$ac_link_default"
3040case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3043esac
3044eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3045$as_echo "$ac_try_echo"; } >&5
3046 (eval "$ac_link_default") 2>&5
3047 ac_status=$?
3048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3049 test $ac_status = 0; }; then :
3050 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3051# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3052# in a Makefile. We should not override ac_cv_exeext if it was cached,
3053# so that the user can short-circuit this test for compilers unknown to
3054# Autoconf.
3055for ac_file in $ac_files ''
5464f5a1
NN
3056do
3057 test -f "$ac_file" || continue
3058 case $ac_file in
81ecdfbb 3059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5464f5a1
NN
3060 ;;
3061 [ab].out )
3062 # We found the default executable, but exeext='' is most
3063 # certainly right.
3064 break;;
3065 *.* )
81ecdfbb
RW
3066 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3067 then :; else
3068 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3069 fi
3070 # We set ac_cv_exeext here because the later test for it is not
3071 # safe: cross compilers may not add the suffix if given an `-o'
3072 # argument, so we may need to know it at that point already.
3073 # Even if this section looks crufty: it has the advantage of
3074 # actually working.
5464f5a1
NN
3075 break;;
3076 * )
3077 break;;
3078 esac
3079done
81ecdfbb
RW
3080test "$ac_cv_exeext" = no && ac_cv_exeext=
3081
5464f5a1 3082else
81ecdfbb
RW
3083 ac_file=''
3084fi
3085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3086$as_echo "$ac_file" >&6; }
3087if test -z "$ac_file"; then :
3088 $as_echo "$as_me: failed program was:" >&5
5464f5a1
NN
3089sed 's/^/| /' conftest.$ac_ext >&5
3090
81ecdfbb
RW
3091{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3092$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3093{ as_fn_set_status 77
3094as_fn_error "C compiler cannot create executables
3095See \`config.log' for more details." "$LINENO" 5; }; }
5464f5a1 3096fi
5464f5a1 3097ac_exeext=$ac_cv_exeext
5464f5a1 3098
81ecdfbb 3099# Check that the compiler produces executables we can run. If not, either
5464f5a1 3100# the compiler is broken, or we cross compile.
81ecdfbb
RW
3101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3102$as_echo_n "checking whether the C compiler works... " >&6; }
5464f5a1
NN
3103# If not cross compiling, check that we can run a simple program.
3104if test "$cross_compiling" != yes; then
3105 if { ac_try='./$ac_file'
81ecdfbb
RW
3106 { { case "(($ac_try" in
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3109esac
3110eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3111$as_echo "$ac_try_echo"; } >&5
3112 (eval "$ac_try") 2>&5
5464f5a1 3113 ac_status=$?
81ecdfbb
RW
3114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3115 test $ac_status = 0; }; }; then
5464f5a1
NN
3116 cross_compiling=no
3117 else
3118 if test "$cross_compiling" = maybe; then
3119 cross_compiling=yes
3120 else
81ecdfbb
RW
3121 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3122$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3123as_fn_error "cannot run C compiled programs.
5464f5a1 3124If you meant to cross compile, use \`--host'.
81ecdfbb 3125See \`config.log' for more details." "$LINENO" 5; }
5464f5a1
NN
3126 fi
3127 fi
3128fi
81ecdfbb
RW
3129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3130$as_echo "yes" >&6; }
5464f5a1 3131
81ecdfbb 3132rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
5464f5a1 3133ac_clean_files=$ac_clean_files_save
81ecdfbb 3134# Check that the compiler produces executables we can run. If not, either
5464f5a1 3135# the compiler is broken, or we cross compile.
81ecdfbb
RW
3136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3137$as_echo_n "checking whether we are cross compiling... " >&6; }
3138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3139$as_echo "$cross_compiling" >&6; }
3140
3141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3142$as_echo_n "checking for suffix of executables... " >&6; }
3143if { { ac_try="$ac_link"
3144case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3147esac
3148eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3149$as_echo "$ac_try_echo"; } >&5
3150 (eval "$ac_link") 2>&5
5464f5a1 3151 ac_status=$?
81ecdfbb
RW
3152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3153 test $ac_status = 0; }; then :
5464f5a1
NN
3154 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3155# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3156# work properly (i.e., refer to `conftest.exe'), while it won't with
3157# `rm'.
3158for ac_file in conftest.exe conftest conftest.*; do
3159 test -f "$ac_file" || continue
3160 case $ac_file in
81ecdfbb 3161 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5464f5a1 3162 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5464f5a1
NN
3163 break;;
3164 * ) break;;
3165 esac
3166done
3167else
81ecdfbb
RW
3168 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3169$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3170as_fn_error "cannot compute suffix of executables: cannot compile and link
3171See \`config.log' for more details." "$LINENO" 5; }
5464f5a1 3172fi
5464f5a1 3173rm -f conftest$ac_cv_exeext
81ecdfbb
RW
3174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3175$as_echo "$ac_cv_exeext" >&6; }
5464f5a1
NN
3176
3177rm -f conftest.$ac_ext
3178EXEEXT=$ac_cv_exeext
3179ac_exeext=$EXEEXT
81ecdfbb
RW
3180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3181$as_echo_n "checking for suffix of object files... " >&6; }
3182if test "${ac_cv_objext+set}" = set; then :
3183 $as_echo_n "(cached) " >&6
5464f5a1 3184else
81ecdfbb 3185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464f5a1
NN
3186/* end confdefs.h. */
3187
3188int
3189main ()
3190{
3191
3192 ;
3193 return 0;
3194}
3195_ACEOF
3196rm -f conftest.o conftest.obj
81ecdfbb
RW
3197if { { ac_try="$ac_compile"
3198case "(($ac_try" in
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3201esac
3202eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3203$as_echo "$ac_try_echo"; } >&5
3204 (eval "$ac_compile") 2>&5
3205 ac_status=$?
3206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3207 test $ac_status = 0; }; then :
3208 for ac_file in conftest.o conftest.obj conftest.*; do
3209 test -f "$ac_file" || continue;
5464f5a1 3210 case $ac_file in
81ecdfbb 3211 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5464f5a1
NN
3212 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3213 break;;
3214 esac
3215done
3216else
81ecdfbb 3217 $as_echo "$as_me: failed program was:" >&5
5464f5a1
NN
3218sed 's/^/| /' conftest.$ac_ext >&5
3219
81ecdfbb
RW
3220{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3221$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3222as_fn_error "cannot compute suffix of object files: cannot compile
3223See \`config.log' for more details." "$LINENO" 5; }
5464f5a1 3224fi
5464f5a1
NN
3225rm -f conftest.$ac_cv_objext conftest.$ac_ext
3226fi
81ecdfbb
RW
3227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3228$as_echo "$ac_cv_objext" >&6; }
5464f5a1
NN
3229OBJEXT=$ac_cv_objext
3230ac_objext=$OBJEXT
81ecdfbb
RW
3231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3232$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3233if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3234 $as_echo_n "(cached) " >&6
5464f5a1 3235else
81ecdfbb 3236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464f5a1
NN
3237/* end confdefs.h. */
3238
3239int
3240main ()
3241{
3242#ifndef __GNUC__
3243 choke me
3244#endif
3245
3246 ;
3247 return 0;
3248}
3249_ACEOF
81ecdfbb 3250if ac_fn_c_try_compile "$LINENO"; then :
5464f5a1
NN
3251 ac_compiler_gnu=yes
3252else
81ecdfbb 3253 ac_compiler_gnu=no
5464f5a1 3254fi
81ecdfbb 3255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5464f5a1
NN
3256ac_cv_c_compiler_gnu=$ac_compiler_gnu
3257
3258fi
81ecdfbb
RW
3259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3260$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3261if test $ac_compiler_gnu = yes; then
3262 GCC=yes
3263else
3264 GCC=
3265fi
5464f5a1
NN
3266ac_test_CFLAGS=${CFLAGS+set}
3267ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3269$as_echo_n "checking whether $CC accepts -g... " >&6; }
3270if test "${ac_cv_prog_cc_g+set}" = set; then :
3271 $as_echo_n "(cached) " >&6
3272else
3273 ac_save_c_werror_flag=$ac_c_werror_flag
3274 ac_c_werror_flag=yes
3275 ac_cv_prog_cc_g=no
3276 CFLAGS="-g"
3277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464f5a1
NN
3278/* end confdefs.h. */
3279
3280int
3281main ()
3282{
3283
3284 ;
3285 return 0;
3286}
3287_ACEOF
81ecdfbb 3288if ac_fn_c_try_compile "$LINENO"; then :
5464f5a1
NN
3289 ac_cv_prog_cc_g=yes
3290else
81ecdfbb
RW
3291 CFLAGS=""
3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293/* end confdefs.h. */
5464f5a1 3294
81ecdfbb
RW
3295int
3296main ()
3297{
3298
3299 ;
3300 return 0;
3301}
3302_ACEOF
3303if ac_fn_c_try_compile "$LINENO"; then :
3304
3305else
3306 ac_c_werror_flag=$ac_save_c_werror_flag
3307 CFLAGS="-g"
3308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3309/* end confdefs.h. */
3310
3311int
3312main ()
3313{
3314
3315 ;
3316 return 0;
3317}
3318_ACEOF
3319if ac_fn_c_try_compile "$LINENO"; then :
3320 ac_cv_prog_cc_g=yes
3321fi
3322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5464f5a1 3323fi
81ecdfbb 3324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5464f5a1 3325fi
81ecdfbb
RW
3326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3327 ac_c_werror_flag=$ac_save_c_werror_flag
3328fi
3329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3330$as_echo "$ac_cv_prog_cc_g" >&6; }
5464f5a1
NN
3331if test "$ac_test_CFLAGS" = set; then
3332 CFLAGS=$ac_save_CFLAGS
3333elif test $ac_cv_prog_cc_g = yes; then
3334 if test "$GCC" = yes; then
3335 CFLAGS="-g -O2"
3336 else
3337 CFLAGS="-g"
3338 fi
3339else
3340 if test "$GCC" = yes; then
3341 CFLAGS="-O2"
3342 else
3343 CFLAGS=
3344 fi
3345fi
81ecdfbb
RW
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3347$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3348if test "${ac_cv_prog_cc_c89+set}" = set; then :
3349 $as_echo_n "(cached) " >&6
5464f5a1 3350else
81ecdfbb 3351 ac_cv_prog_cc_c89=no
5464f5a1 3352ac_save_CC=$CC
81ecdfbb 3353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464f5a1
NN
3354/* end confdefs.h. */
3355#include <stdarg.h>
3356#include <stdio.h>
3357#include <sys/types.h>
3358#include <sys/stat.h>
3359/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3360struct buf { int x; };
3361FILE * (*rcsopen) (struct buf *, struct stat *, int);
3362static char *e (p, i)
3363 char **p;
3364 int i;
3365{
3366 return p[i];
3367}
3368static char *f (char * (*g) (char **, int), char **p, ...)
3369{
3370 char *s;
3371 va_list v;
3372 va_start (v,p);
3373 s = g (p, va_arg (v,int));
3374 va_end (v);
3375 return s;
3376}
3377
3378/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3379 function prototypes and stuff, but not '\xHH' hex character constants.
3380 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3381 as 'x'. The following induces an error, until -std is added to get
5464f5a1
NN
3382 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3383 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3384 that's true only with -std. */
5464f5a1
NN
3385int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3386
81ecdfbb
RW
3387/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3388 inside strings and character constants. */
3389#define FOO(x) 'x'
3390int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3391
5464f5a1
NN
3392int test (int i, double x);
3393struct s1 {int (*f) (int a);};
3394struct s2 {int (*f) (double a);};
3395int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3396int argc;
3397char **argv;
3398int
3399main ()
3400{
3401return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3402 ;
3403 return 0;
3404}
3405_ACEOF
81ecdfbb
RW
3406for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3407 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5464f5a1
NN
3408do
3409 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3410 if ac_fn_c_try_compile "$LINENO"; then :
3411 ac_cv_prog_cc_c89=$ac_arg
5464f5a1 3412fi
81ecdfbb
RW
3413rm -f core conftest.err conftest.$ac_objext
3414 test "x$ac_cv_prog_cc_c89" != "xno" && break
5464f5a1 3415done
81ecdfbb 3416rm -f conftest.$ac_ext
5464f5a1
NN
3417CC=$ac_save_CC
3418
3419fi
81ecdfbb
RW
3420# AC_CACHE_VAL
3421case "x$ac_cv_prog_cc_c89" in
3422 x)
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3424$as_echo "none needed" >&6; } ;;
3425 xno)
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3427$as_echo "unsupported" >&6; } ;;
5464f5a1 3428 *)
81ecdfbb
RW
3429 CC="$CC $ac_cv_prog_cc_c89"
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3431$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5464f5a1 3432esac
81ecdfbb 3433if test "x$ac_cv_prog_cc_c89" != xno; then :
5464f5a1
NN
3434
3435fi
5464f5a1 3436
5464f5a1
NN
3437ac_ext=c
3438ac_cpp='$CPP $CPPFLAGS'
3439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3441ac_compiler_gnu=$ac_cv_c_compiler_gnu
3442
3443
81ecdfbb
RW
3444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3445$as_echo_n "checking for library containing strerror... " >&6; }
3446if test "${ac_cv_search_strerror+set}" = set; then :
3447 $as_echo_n "(cached) " >&6
5464f5a1 3448else
f5385ebf 3449 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464f5a1
NN
3451/* end confdefs.h. */
3452
81ecdfbb
RW
3453/* Override any GCC internal prototype to avoid an error.
3454 Use char because int might match the return type of a GCC
3455 builtin and then its argument prototype would still apply. */
5464f5a1
NN
3456#ifdef __cplusplus
3457extern "C"
3458#endif
5464f5a1
NN
3459char strerror ();
3460int
3461main ()
3462{
81ecdfbb 3463return strerror ();
5464f5a1
NN
3464 ;
3465 return 0;
3466}
3467_ACEOF
81ecdfbb
RW
3468for ac_lib in '' cposix; do
3469 if test -z "$ac_lib"; then
3470 ac_res="none required"
3471 else
3472 ac_res=-l$ac_lib
f5385ebf 3473 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3474 fi
3475 if ac_fn_c_try_link "$LINENO"; then :
3476 ac_cv_search_strerror=$ac_res
3477fi
3478rm -f core conftest.err conftest.$ac_objext \
3479 conftest$ac_exeext
3480 if test "${ac_cv_search_strerror+set}" = set; then :
3481 break
3482fi
3483done
3484if test "${ac_cv_search_strerror+set}" = set; then :
f5385ebf 3485
f5385ebf 3486else
81ecdfbb 3487 ac_cv_search_strerror=no
5464f5a1 3488fi
81ecdfbb 3489rm conftest.$ac_ext
f5385ebf
AM
3490LIBS=$ac_func_search_save_LIBS
3491fi
81ecdfbb
RW
3492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3493$as_echo "$ac_cv_search_strerror" >&6; }
3494ac_res=$ac_cv_search_strerror
3495if test "$ac_res" != no; then :
3496 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5464f5a1 3497
f5385ebf 3498fi
5464f5a1
NN
3499
3500
81ecdfbb
RW
3501am__api_version='1.11'
3502
5464f5a1
NN
3503# Find a good install program. We prefer a C program (faster),
3504# so one script is as good as another. But avoid the broken or
3505# incompatible versions:
3506# SysV /etc/install, /usr/sbin/install
3507# SunOS /usr/etc/install
3508# IRIX /sbin/install
3509# AIX /bin/install
3510# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
3511# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3512# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3513# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5464f5a1 3514# OS/2's system install, which has a completely different semantic
252b5132 3515# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3516# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3518$as_echo_n "checking for a BSD-compatible install... " >&6; }
252b5132 3519if test -z "$INSTALL"; then
81ecdfbb
RW
3520if test "${ac_cv_path_install+set}" = set; then :
3521 $as_echo_n "(cached) " >&6
252b5132 3522else
5464f5a1
NN
3523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524for as_dir in $PATH
3525do
3526 IFS=$as_save_IFS
3527 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3528 # Account for people who put trailing slashes in PATH elements.
3529case $as_dir/ in #((
3530 ./ | .// | /[cC]/* | \
5464f5a1 3531 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3532 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5464f5a1
NN
3533 /usr/ucb/* ) ;;
3534 *)
3535 # OSF1 and SCO ODT 3.0 have their own names for install.
3536 # Don't use installbsd from OSF since it installs stuff as root
3537 # by default.
3538 for ac_prog in ginstall scoinst install; do
3539 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3540 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
252b5132 3541 if test $ac_prog = install &&
5464f5a1 3542 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
3543 # AIX install. It has an incompatible calling convention.
3544 :
5464f5a1
NN
3545 elif test $ac_prog = install &&
3546 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3547 # program-specific install script used by HP pwplus--don't use.
3548 :
252b5132 3549 else
58c85be7
RW
3550 rm -rf conftest.one conftest.two conftest.dir
3551 echo one > conftest.one
3552 echo two > conftest.two
3553 mkdir conftest.dir
3554 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3555 test -s conftest.one && test -s conftest.two &&
3556 test -s conftest.dir/conftest.one &&
3557 test -s conftest.dir/conftest.two
3558 then
3559 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3560 break 3
3561 fi
252b5132
RH
3562 fi
3563 fi
3564 done
5464f5a1
NN
3565 done
3566 ;;
3567esac
81ecdfbb
RW
3568
3569 done
3570IFS=$as_save_IFS
5464f5a1 3571
58c85be7 3572rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3573
3574fi
3575 if test "${ac_cv_path_install+set}" = set; then
5464f5a1 3576 INSTALL=$ac_cv_path_install
252b5132 3577 else
58c85be7
RW
3578 # As a last resort, use the slow shell script. Don't cache a
3579 # value for INSTALL within a source directory, because that will
252b5132 3580 # break other packages using the cache if that directory is
58c85be7 3581 # removed, or if the value is a relative name.
5464f5a1 3582 INSTALL=$ac_install_sh
252b5132
RH
3583 fi
3584fi
81ecdfbb
RW
3585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3586$as_echo "$INSTALL" >&6; }
252b5132
RH
3587
3588# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3589# It thinks the first close brace ends the variable substitution.
3590test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3591
5464f5a1 3592test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3593
3594test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3595
81ecdfbb
RW
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3597$as_echo_n "checking whether build environment is sane... " >&6; }
252b5132
RH
3598# Just in case
3599sleep 1
f5385ebf 3600echo timestamp > conftest.file
81ecdfbb
RW
3601# Reject unsafe characters in $srcdir or the absolute working directory
3602# name. Accept space and tab only in the latter.
3603am_lf='
3604'
3605case `pwd` in
3606 *[\\\"\#\$\&\'\`$am_lf]*)
3607 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3608esac
3609case $srcdir in
3610 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3611 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3612esac
3613
252b5132
RH
3614# Do `set' in a subshell so we don't clobber the current shell's
3615# arguments. Must try -L first in case configure is actually a
3616# symlink; some systems play weird games with the mod time of symlinks
3617# (eg FreeBSD returns the mod time of the symlink's containing
3618# directory).
3619if (
81ecdfbb 3620 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
252b5132
RH
3621 if test "$*" = "X"; then
3622 # -L didn't work.
81ecdfbb 3623 set X `ls -t "$srcdir/configure" conftest.file`
252b5132 3624 fi
f5385ebf
AM
3625 rm -f conftest.file
3626 if test "$*" != "X $srcdir/configure conftest.file" \
3627 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
3628
3629 # If neither matched, then we have a broken ls. This can happen
3630 # if, for instance, CONFIG_SHELL is bash and it inherits a
3631 # broken ls alias from the environment. This has actually
3632 # happened. Such a system could not be considered "sane".
81ecdfbb
RW
3633 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3634alias in your environment" "$LINENO" 5
252b5132
RH
3635 fi
3636
f5385ebf 3637 test "$2" = conftest.file
252b5132
RH
3638 )
3639then
3640 # Ok.
3641 :
3642else
81ecdfbb
RW
3643 as_fn_error "newly created file is older than distributed files!
3644Check your system clock" "$LINENO" 5
252b5132 3645fi
81ecdfbb
RW
3646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3647$as_echo "yes" >&6; }
252b5132 3648test "$program_prefix" != NONE &&
81ecdfbb 3649 program_transform_name="s&^&$program_prefix&;$program_transform_name"
252b5132
RH
3650# Use a double $ so make ignores it.
3651test "$program_suffix" != NONE &&
81ecdfbb
RW
3652 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3653# Double any \ or $.
5464f5a1 3654# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3655ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3656program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5464f5a1 3657
f5385ebf
AM
3658# expand $ac_aux_dir to an absolute path
3659am_aux_dir=`cd $ac_aux_dir && pwd`
3660
81ecdfbb
RW
3661if test x"${MISSING+set}" != xset; then
3662 case $am_aux_dir in
3663 *\ * | *\ *)
3664 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3665 *)
3666 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3667 esac
3668fi
f5385ebf
AM
3669# Use eval to expand $SHELL
3670if eval "$MISSING --run true"; then
3671 am_missing_run="$MISSING --run "
3672else
3673 am_missing_run=
81ecdfbb
RW
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3675$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3676fi
3677
3678if test x"${install_sh}" != xset; then
3679 case $am_aux_dir in
3680 *\ * | *\ *)
3681 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3682 *)
3683 install_sh="\${SHELL} $am_aux_dir/install-sh"
3684 esac
3685fi
3686
3687# Installed binaries are usually stripped using `strip' when the user
3688# run `make install-strip'. However `strip' might not be the right
3689# tool to use in cross-compilation environments, therefore Automake
3690# will honor the `STRIP' environment variable to overrule this program.
3691if test "$cross_compiling" != no; then
3692 if test -n "$ac_tool_prefix"; then
3693 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3694set dummy ${ac_tool_prefix}strip; ac_word=$2
3695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3696$as_echo_n "checking for $ac_word... " >&6; }
3697if test "${ac_cv_prog_STRIP+set}" = set; then :
3698 $as_echo_n "(cached) " >&6
3699else
3700 if test -n "$STRIP"; then
3701 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3702else
3703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704for as_dir in $PATH
3705do
3706 IFS=$as_save_IFS
3707 test -z "$as_dir" && as_dir=.
3708 for ac_exec_ext in '' $ac_executable_extensions; do
3709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3710 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3712 break 2
3713 fi
3714done
3715 done
3716IFS=$as_save_IFS
3717
3718fi
3719fi
3720STRIP=$ac_cv_prog_STRIP
3721if test -n "$STRIP"; then
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3723$as_echo "$STRIP" >&6; }
3724else
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3726$as_echo "no" >&6; }
3727fi
3728
3729
3730fi
3731if test -z "$ac_cv_prog_STRIP"; then
3732 ac_ct_STRIP=$STRIP
3733 # Extract the first word of "strip", so it can be a program name with args.
3734set dummy strip; ac_word=$2
3735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3736$as_echo_n "checking for $ac_word... " >&6; }
3737if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3738 $as_echo_n "(cached) " >&6
3739else
3740 if test -n "$ac_ct_STRIP"; then
3741 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3742else
3743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744for as_dir in $PATH
3745do
3746 IFS=$as_save_IFS
3747 test -z "$as_dir" && as_dir=.
3748 for ac_exec_ext in '' $ac_executable_extensions; do
3749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3750 ac_cv_prog_ac_ct_STRIP="strip"
3751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3752 break 2
3753 fi
3754done
3755 done
3756IFS=$as_save_IFS
3757
3758fi
3759fi
3760ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3761if test -n "$ac_ct_STRIP"; then
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3763$as_echo "$ac_ct_STRIP" >&6; }
3764else
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3766$as_echo "no" >&6; }
3767fi
3768
3769 if test "x$ac_ct_STRIP" = x; then
3770 STRIP=":"
3771 else
3772 case $cross_compiling:$ac_tool_warned in
3773yes:)
3774{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3775$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3776ac_tool_warned=yes ;;
3777esac
3778 STRIP=$ac_ct_STRIP
3779 fi
3780else
3781 STRIP="$ac_cv_prog_STRIP"
3782fi
3783
3784fi
3785INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3786
3787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3788$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3789if test -z "$MKDIR_P"; then
3790 if test "${ac_cv_path_mkdir+set}" = set; then :
3791 $as_echo_n "(cached) " >&6
3792else
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3795do
3796 IFS=$as_save_IFS
3797 test -z "$as_dir" && as_dir=.
3798 for ac_prog in mkdir gmkdir; do
3799 for ac_exec_ext in '' $ac_executable_extensions; do
3800 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3801 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3802 'mkdir (GNU coreutils) '* | \
3803 'mkdir (coreutils) '* | \
3804 'mkdir (fileutils) '4.1*)
3805 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3806 break 3;;
3807 esac
3808 done
3809 done
f5385ebf 3810 done
81ecdfbb
RW
3811IFS=$as_save_IFS
3812
3813fi
3814
3815 if test "${ac_cv_path_mkdir+set}" = set; then
3816 MKDIR_P="$ac_cv_path_mkdir -p"
f5385ebf 3817 else
81ecdfbb
RW
3818 # As a last resort, use the slow shell script. Don't cache a
3819 # value for MKDIR_P within a source directory, because that will
3820 # break other packages using the cache if that directory is
3821 # removed, or if the value is a relative name.
3822 test -d ./--version && rmdir ./--version
3823 MKDIR_P="$ac_install_sh -d"
f5385ebf
AM
3824 fi
3825fi
81ecdfbb
RW
3826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3827$as_echo "$MKDIR_P" >&6; }
3828
3829mkdir_p="$MKDIR_P"
3830case $mkdir_p in
3831 [\\/$]* | ?:[\\/]*) ;;
3832 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3833esac
f5385ebf
AM
3834
3835for ac_prog in gawk mawk nawk awk
3836do
3837 # Extract the first word of "$ac_prog", so it can be a program name with args.
3838set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3840$as_echo_n "checking for $ac_word... " >&6; }
3841if test "${ac_cv_prog_AWK+set}" = set; then :
3842 $as_echo_n "(cached) " >&6
f5385ebf
AM
3843else
3844 if test -n "$AWK"; then
3845 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3846else
3847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3848for as_dir in $PATH
3849do
3850 IFS=$as_save_IFS
3851 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3852 for ac_exec_ext in '' $ac_executable_extensions; do
3853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f5385ebf 3854 ac_cv_prog_AWK="$ac_prog"
81ecdfbb 3855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f5385ebf
AM
3856 break 2
3857 fi
3858done
81ecdfbb
RW
3859 done
3860IFS=$as_save_IFS
f5385ebf
AM
3861
3862fi
3863fi
3864AWK=$ac_cv_prog_AWK
3865if test -n "$AWK"; then
81ecdfbb
RW
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3867$as_echo "$AWK" >&6; }
f5385ebf 3868else
81ecdfbb
RW
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3870$as_echo "no" >&6; }
f5385ebf
AM
3871fi
3872
81ecdfbb 3873
f5385ebf
AM
3874 test -n "$AWK" && break
3875done
3876
81ecdfbb
RW
3877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3878$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3879set x ${MAKE-make}
3880ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3881if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3882 $as_echo_n "(cached) " >&6
5464f5a1
NN
3883else
3884 cat >conftest.make <<\_ACEOF
81ecdfbb 3885SHELL = /bin/sh
252b5132 3886all:
81ecdfbb 3887 @echo '@@@%%%=$(MAKE)=@@@%%%'
5464f5a1 3888_ACEOF
252b5132 3889# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
81ecdfbb
RW
3890case `${MAKE-make} -f conftest.make 2>/dev/null` in
3891 *@@@%%%=?*=@@@%%%*)
3892 eval ac_cv_prog_make_${ac_make}_set=yes;;
3893 *)
3894 eval ac_cv_prog_make_${ac_make}_set=no;;
3895esac
5464f5a1 3896rm -f conftest.make
252b5132 3897fi
81ecdfbb
RW
3898if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3900$as_echo "yes" >&6; }
252b5132
RH
3901 SET_MAKE=
3902else
81ecdfbb
RW
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3904$as_echo "no" >&6; }
252b5132
RH
3905 SET_MAKE="MAKE=${MAKE-make}"
3906fi
3907
f5385ebf
AM
3908rm -rf .tst 2>/dev/null
3909mkdir .tst 2>/dev/null
3910if test -d .tst; then
3911 am__leading_dot=.
3912else
3913 am__leading_dot=_
3914fi
3915rmdir .tst 2>/dev/null
3916
3917DEPDIR="${am__leading_dot}deps"
3918
81ecdfbb 3919ac_config_commands="$ac_config_commands depfiles"
f5385ebf
AM
3920
3921
3922am_make=${MAKE-make}
3923cat > confinc << 'END'
3924am__doit:
81ecdfbb 3925 @echo this is the am__doit target
f5385ebf
AM
3926.PHONY: am__doit
3927END
3928# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
3929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3930$as_echo_n "checking for style of include used by $am_make... " >&6; }
f5385ebf
AM
3931am__include="#"
3932am__quote=
3933_am_result=none
3934# First try GNU make style include.
3935echo "include confinc" > confmf
81ecdfbb
RW
3936# Ignore all kinds of additional output from `make'.
3937case `$am_make -s -f confmf 2> /dev/null` in #(
3938*the\ am__doit\ target*)
3939 am__include=include
3940 am__quote=
3941 _am_result=GNU
3942 ;;
3943esac
f5385ebf
AM
3944# Now try BSD make style include.
3945if test "$am__include" = "#"; then
3946 echo '.include "confinc"' > confmf
81ecdfbb
RW
3947 case `$am_make -s -f confmf 2> /dev/null` in #(
3948 *the\ am__doit\ target*)
3949 am__include=.include
3950 am__quote="\""
3951 _am_result=BSD
3952 ;;
3953 esac
f5385ebf
AM
3954fi
3955
3956
81ecdfbb
RW
3957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3958$as_echo "$_am_result" >&6; }
f5385ebf
AM
3959rm -f confinc confmf
3960
81ecdfbb
RW
3961# Check whether --enable-dependency-tracking was given.
3962if test "${enable_dependency_tracking+set}" = set; then :
3963 enableval=$enable_dependency_tracking;
3964fi
f5385ebf 3965
f5385ebf
AM
3966if test "x$enable_dependency_tracking" != xno; then
3967 am_depcomp="$ac_aux_dir/depcomp"
3968 AMDEPBACKSLASH='\'
6eb7d830 3969 am__nodep='_no'
f5385ebf 3970fi
81ecdfbb 3971 if test "x$enable_dependency_tracking" != xno; then
f5385ebf
AM
3972 AMDEP_TRUE=
3973 AMDEP_FALSE='#'
3974else
3975 AMDEP_TRUE='#'
3976 AMDEP_FALSE=
3977fi
6be7c12c 3978
252b5132 3979
81ecdfbb
RW
3980if test "`cd $srcdir && pwd`" != "`pwd`"; then
3981 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3982 # is not polluted with repeated "-I."
3983 am__isrc=' -I$(srcdir)'
3984 # test to see if srcdir already configured
3985 if test -f $srcdir/config.status; then
3986 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3987 fi
252b5132 3988fi
5464f5a1 3989
f5385ebf
AM
3990# test whether we have cygpath
3991if test -z "$CYGPATH_W"; then
3992 if (cygpath --version) >/dev/null 2>/dev/null; then
3993 CYGPATH_W='cygpath -w'
3994 else
3995 CYGPATH_W=echo
3996 fi
3997fi
3998
3999
4000# Define the identity of the package.
c4dd807e 4001 PACKAGE='bfd'
769c7ea5 4002 VERSION='2.30.51'
f5385ebf
AM
4003
4004
5464f5a1 4005cat >>confdefs.h <<_ACEOF
252b5132 4006#define PACKAGE "$PACKAGE"
5464f5a1 4007_ACEOF
252b5132 4008
5464f5a1
NN
4009
4010cat >>confdefs.h <<_ACEOF
252b5132 4011#define VERSION "$VERSION"
5464f5a1 4012_ACEOF
252b5132 4013
f5385ebf
AM
4014# Some tools Automake needs.
4015
4016ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4017
4018
4019AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4020
4021
4022AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4023
4024
4025AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4026
4027
4028MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6be7c12c 4029
f5385ebf
AM
4030# We need awk for the "check" target. The system "awk" is bad on
4031# some platforms.
6eb7d830
AM
4032# Always define AMTAR for backward compatibility. Yes, it's still used
4033# in the wild :-( We should find a proper way to deprecate it ...
4034AMTAR='$${TAR-tar}'
f5385ebf 4035
6eb7d830 4036am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
f5385ebf 4037
252b5132 4038
f5385ebf
AM
4039
4040
4041depcc="$CC" am_compiler_list=
4042
81ecdfbb
RW
4043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4044$as_echo_n "checking dependency style of $depcc... " >&6; }
4045if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4046 $as_echo_n "(cached) " >&6
252b5132 4047else
f5385ebf
AM
4048 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4049 # We make a subdir and do the tests there. Otherwise we can end up
4050 # making bogus files that we don't know about and never remove. For
4051 # instance it was reported that on HP-UX the gcc test will end up
4052 # making a dummy file named `D' -- because `-MD' means `put the output
4053 # in D'.
6eb7d830 4054 rm -rf conftest.dir
f5385ebf
AM
4055 mkdir conftest.dir
4056 # Copy depcomp to subdir because otherwise we won't find it if we're
4057 # using a relative directory.
4058 cp "$am_depcomp" conftest.dir
4059 cd conftest.dir
4060 # We will build objects and dependencies in a subdirectory because
4061 # it helps to detect inapplicable dependency modes. For instance
4062 # both Tru64's cc and ICC support -MD to output dependencies as a
4063 # side effect of compilation, but ICC will put the dependencies in
4064 # the current directory while Tru64 will put them in the object
4065 # directory.
4066 mkdir sub
4067
4068 am_cv_CC_dependencies_compiler_type=none
4069 if test "$am_compiler_list" = ""; then
4070 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4071 fi
81ecdfbb
RW
4072 am__universal=false
4073 case " $depcc " in #(
4074 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4075 esac
4076
f5385ebf
AM
4077 for depmode in $am_compiler_list; do
4078 # Setup a source with many dependencies, because some compilers
4079 # like to wrap large dependency lists on column 80 (with \), and
4080 # we should not choose a depcomp mode which is confused by this.
4081 #
4082 # We need to recreate these files for each test, as the compiler may
4083 # overwrite some of them when testing with obscure command lines.
4084 # This happens at least with the AIX C compiler.
4085 : > sub/conftest.c
4086 for i in 1 2 3 4 5 6; do
4087 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4088 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4089 # Solaris 8's {/usr,}/bin/sh.
4090 touch sub/conftst$i.h
4091 done
4092 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4093
81ecdfbb
RW
4094 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4095 # mode. It turns out that the SunPro C++ compiler does not properly
4096 # handle `-M -o', and we need to detect this. Also, some Intel
4097 # versions had trouble with output in subdirs
4098 am__obj=sub/conftest.${OBJEXT-o}
4099 am__minus_obj="-o $am__obj"
f5385ebf 4100 case $depmode in
81ecdfbb
RW
4101 gcc)
4102 # This depmode causes a compiler race in universal mode.
4103 test "$am__universal" = false || continue
4104 ;;
f5385ebf
AM
4105 nosideeffect)
4106 # after this tag, mechanisms are not by side-effect, so they'll
4107 # only be used when explicitly requested
4108 if test "x$enable_dependency_tracking" = xyes; then
4109 continue
4110 else
4111 break
4112 fi
4113 ;;
6eb7d830 4114 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
81ecdfbb
RW
4115 # This compiler won't grok `-c -o', but also, the minuso test has
4116 # not run yet. These depmodes are late enough in the game, and
4117 # so weak that their functioning should not be impacted.
4118 am__obj=conftest.${OBJEXT-o}
4119 am__minus_obj=
4120 ;;
f5385ebf
AM
4121 none) break ;;
4122 esac
f5385ebf 4123 if depmode=$depmode \
81ecdfbb 4124 source=sub/conftest.c object=$am__obj \
f5385ebf 4125 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 4126 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
f5385ebf 4127 >/dev/null 2>conftest.err &&
81ecdfbb 4128 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
f5385ebf 4129 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 4130 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
f5385ebf
AM
4131 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4132 # icc doesn't choke on unknown options, it will just issue warnings
4133 # or remarks (even with -Werror). So we grep stderr for any message
4134 # that says an option was ignored or not supported.
4135 # When given -MP, icc 7.0 and 7.1 complain thusly:
4136 # icc: Command line warning: ignoring option '-M'; no argument required
4137 # The diagnosis changed in icc 8.0:
4138 # icc: Command line remark: option '-MP' not supported
4139 if (grep 'ignoring option' conftest.err ||
4140 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4141 am_cv_CC_dependencies_compiler_type=$depmode
4142 break
4143 fi
4144 fi
4145 done
4146
4147 cd ..
4148 rm -rf conftest.dir
4149else
4150 am_cv_CC_dependencies_compiler_type=none
4151fi
4152
252b5132 4153fi
81ecdfbb
RW
4154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4155$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
f5385ebf 4156CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 4157
81ecdfbb 4158 if
f5385ebf
AM
4159 test "x$enable_dependency_tracking" != xno \
4160 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4161 am__fastdepCC_TRUE=
4162 am__fastdepCC_FALSE='#'
252b5132 4163else
f5385ebf
AM
4164 am__fastdepCC_TRUE='#'
4165 am__fastdepCC_FALSE=
252b5132
RH
4166fi
4167
6be7c12c 4168
e43d48cc 4169
f5385ebf 4170
5464f5a1
NN
4171if test -n "$ac_tool_prefix"; then
4172 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
252b5132 4173set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
4174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4175$as_echo_n "checking for $ac_word... " >&6; }
4176if test "${ac_cv_prog_AR+set}" = set; then :
4177 $as_echo_n "(cached) " >&6
252b5132
RH
4178else
4179 if test -n "$AR"; then
4180 ac_cv_prog_AR="$AR" # Let the user override the test.
4181else
5464f5a1
NN
4182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183for as_dir in $PATH
4184do
4185 IFS=$as_save_IFS
4186 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4187 for ac_exec_ext in '' $ac_executable_extensions; do
4188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464f5a1 4189 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 4190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
4191 break 2
4192 fi
4193done
81ecdfbb
RW
4194 done
4195IFS=$as_save_IFS
5464f5a1 4196
252b5132
RH
4197fi
4198fi
5464f5a1 4199AR=$ac_cv_prog_AR
252b5132 4200if test -n "$AR"; then
81ecdfbb
RW
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4202$as_echo "$AR" >&6; }
252b5132 4203else
81ecdfbb
RW
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4205$as_echo "no" >&6; }
5464f5a1
NN
4206fi
4207
81ecdfbb 4208
252b5132 4209fi
5464f5a1
NN
4210if test -z "$ac_cv_prog_AR"; then
4211 ac_ct_AR=$AR
4212 # Extract the first word of "ar", so it can be a program name with args.
4213set dummy ar; ac_word=$2
81ecdfbb
RW
4214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4215$as_echo_n "checking for $ac_word... " >&6; }
4216if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4217 $as_echo_n "(cached) " >&6
5464f5a1
NN
4218else
4219 if test -n "$ac_ct_AR"; then
4220 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4221else
4222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223for as_dir in $PATH
4224do
4225 IFS=$as_save_IFS
4226 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4227 for ac_exec_ext in '' $ac_executable_extensions; do
4228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464f5a1 4229 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 4230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
4231 break 2
4232 fi
4233done
81ecdfbb
RW
4234 done
4235IFS=$as_save_IFS
252b5132 4236
5464f5a1
NN
4237fi
4238fi
4239ac_ct_AR=$ac_cv_prog_ac_ct_AR
4240if test -n "$ac_ct_AR"; then
81ecdfbb
RW
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4242$as_echo "$ac_ct_AR" >&6; }
5464f5a1 4243else
81ecdfbb
RW
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4245$as_echo "no" >&6; }
5464f5a1 4246fi
252b5132 4247
81ecdfbb
RW
4248 if test "x$ac_ct_AR" = x; then
4249 AR=""
4250 else
4251 case $cross_compiling:$ac_tool_warned in
4252yes:)
4253{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4254$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4255ac_tool_warned=yes ;;
4256esac
4257 AR=$ac_ct_AR
4258 fi
5464f5a1
NN
4259else
4260 AR="$ac_cv_prog_AR"
4261fi
6be7c12c 4262
5464f5a1
NN
4263if test -n "$ac_tool_prefix"; then
4264 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
252b5132 4265set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
4266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4267$as_echo_n "checking for $ac_word... " >&6; }
4268if test "${ac_cv_prog_RANLIB+set}" = set; then :
4269 $as_echo_n "(cached) " >&6
252b5132
RH
4270else
4271 if test -n "$RANLIB"; then
4272 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4273else
5464f5a1
NN
4274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275for as_dir in $PATH
4276do
4277 IFS=$as_save_IFS
4278 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4279 for ac_exec_ext in '' $ac_executable_extensions; do
4280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464f5a1 4281 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 4282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
4283 break 2
4284 fi
4285done
81ecdfbb
RW
4286 done
4287IFS=$as_save_IFS
5464f5a1 4288
252b5132
RH
4289fi
4290fi
5464f5a1 4291RANLIB=$ac_cv_prog_RANLIB
252b5132 4292if test -n "$RANLIB"; then
81ecdfbb
RW
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4294$as_echo "$RANLIB" >&6; }
252b5132 4295else
81ecdfbb
RW
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4297$as_echo "no" >&6; }
252b5132
RH
4298fi
4299
81ecdfbb 4300
5464f5a1 4301fi
252b5132 4302if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 4303 ac_ct_RANLIB=$RANLIB
252b5132
RH
4304 # Extract the first word of "ranlib", so it can be a program name with args.
4305set dummy ranlib; ac_word=$2
81ecdfbb
RW
4306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4307$as_echo_n "checking for $ac_word... " >&6; }
4308if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4309 $as_echo_n "(cached) " >&6
6be7c12c 4310else
5464f5a1
NN
4311 if test -n "$ac_ct_RANLIB"; then
4312 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 4313else
5464f5a1
NN
4314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315for as_dir in $PATH
4316do
4317 IFS=$as_save_IFS
4318 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4319 for ac_exec_ext in '' $ac_executable_extensions; do
4320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464f5a1 4321 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 4322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
4323 break 2
4324 fi
4325done
81ecdfbb
RW
4326 done
4327IFS=$as_save_IFS
5464f5a1 4328
252b5132
RH
4329fi
4330fi
5464f5a1
NN
4331ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4332if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4334$as_echo "$ac_ct_RANLIB" >&6; }
252b5132 4335else
81ecdfbb
RW
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4337$as_echo "no" >&6; }
252b5132
RH
4338fi
4339
81ecdfbb
RW
4340 if test "x$ac_ct_RANLIB" = x; then
4341 RANLIB=":"
4342 else
4343 case $cross_compiling:$ac_tool_warned in
4344yes:)
4345{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4346$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4347ac_tool_warned=yes ;;
4348esac
4349 RANLIB=$ac_ct_RANLIB
4350 fi
252b5132 4351else
5464f5a1 4352 RANLIB="$ac_cv_prog_RANLIB"
6be7c12c
AO
4353fi
4354
252b5132 4355
81ecdfbb
RW
4356# Check whether --enable-shared was given.
4357if test "${enable_shared+set}" = set; then :
4358 enableval=$enable_shared; p=${PACKAGE-default}
d7040cdb
SE
4359 case $enableval in
4360 yes) enable_shared=yes ;;
4361 no) enable_shared=no ;;
4362 *)
4363 enable_shared=no
4364 # Look at the argument we got. We use all the common list separators.
4365 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4366 for pkg in $enableval; do
4367 IFS="$lt_save_ifs"
4368 if test "X$pkg" = "X$p"; then
4369 enable_shared=yes
4370 fi
4371 done
4372 IFS="$lt_save_ifs"
4373 ;;
4374 esac
252b5132
RH
4375else
4376 enable_shared=no
81ecdfbb
RW
4377fi
4378
252b5132 4379
d7040cdb
SE
4380
4381
4382
4383
4384
4385
4386
4387
cfbc9945
SE
4388ac_ext=c
4389ac_cpp='$CPP $CPPFLAGS'
4390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4392ac_compiler_gnu=$ac_cv_c_compiler_gnu
4393if test -n "$ac_tool_prefix"; then
4394 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4395set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
4396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397$as_echo_n "checking for $ac_word... " >&6; }
4398if test "${ac_cv_prog_CC+set}" = set; then :
4399 $as_echo_n "(cached) " >&6
252b5132 4400else
cfbc9945
SE
4401 if test -n "$CC"; then
4402 ac_cv_prog_CC="$CC" # Let the user override the test.
b2ef150d 4403else
cfbc9945
SE
4404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405for as_dir in $PATH
4406do
4407 IFS=$as_save_IFS
4408 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4409 for ac_exec_ext in '' $ac_executable_extensions; do
4410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945 4411 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 4412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cfbc9945
SE
4413 break 2
4414 fi
4415done
81ecdfbb
RW
4416 done
4417IFS=$as_save_IFS
c5d1701e 4418
cfbc9945
SE
4419fi
4420fi
4421CC=$ac_cv_prog_CC
4422if test -n "$CC"; then
81ecdfbb
RW
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4424$as_echo "$CC" >&6; }
252b5132 4425else
81ecdfbb
RW
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427$as_echo "no" >&6; }
252b5132 4428fi
cfbc9945 4429
81ecdfbb 4430
cfbc9945
SE
4431fi
4432if test -z "$ac_cv_prog_CC"; then
4433 ac_ct_CC=$CC
4434 # Extract the first word of "gcc", so it can be a program name with args.
4435set dummy gcc; ac_word=$2
81ecdfbb
RW
4436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4437$as_echo_n "checking for $ac_word... " >&6; }
4438if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4439 $as_echo_n "(cached) " >&6
252b5132 4440else
cfbc9945
SE
4441 if test -n "$ac_ct_CC"; then
4442 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 4443else
cfbc9945
SE
4444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445for as_dir in $PATH
4446do
4447 IFS=$as_save_IFS
4448 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4449 for ac_exec_ext in '' $ac_executable_extensions; do
4450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945 4451 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cfbc9945
SE
4453 break 2
4454 fi
4455done
81ecdfbb
RW
4456 done
4457IFS=$as_save_IFS
cfbc9945 4458
252b5132
RH
4459fi
4460fi
cfbc9945
SE
4461ac_ct_CC=$ac_cv_prog_ac_ct_CC
4462if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4464$as_echo "$ac_ct_CC" >&6; }
252b5132 4465else
81ecdfbb
RW
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4467$as_echo "no" >&6; }
252b5132 4468fi
cfbc9945 4469
81ecdfbb
RW
4470 if test "x$ac_ct_CC" = x; then
4471 CC=""
4472 else
4473 case $cross_compiling:$ac_tool_warned in
4474yes:)
4475{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4476$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4477ac_tool_warned=yes ;;
4478esac
4479 CC=$ac_ct_CC
4480 fi
cfbc9945
SE
4481else
4482 CC="$ac_cv_prog_CC"
4483fi
4484
4485if test -z "$CC"; then
81ecdfbb
RW
4486 if test -n "$ac_tool_prefix"; then
4487 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
cfbc9945 4488set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4490$as_echo_n "checking for $ac_word... " >&6; }
4491if test "${ac_cv_prog_CC+set}" = set; then :
4492 $as_echo_n "(cached) " >&6
252b5132 4493else
cfbc9945
SE
4494 if test -n "$CC"; then
4495 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4496else
cfbc9945
SE
4497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498for as_dir in $PATH
4499do
4500 IFS=$as_save_IFS
4501 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4502 for ac_exec_ext in '' $ac_executable_extensions; do
4503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945 4504 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cfbc9945
SE
4506 break 2
4507 fi
4508done
81ecdfbb
RW
4509 done
4510IFS=$as_save_IFS
cfbc9945 4511
252b5132
RH
4512fi
4513fi
cfbc9945
SE
4514CC=$ac_cv_prog_CC
4515if test -n "$CC"; then
81ecdfbb
RW
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4517$as_echo "$CC" >&6; }
ac48eca1 4518else
81ecdfbb
RW
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4520$as_echo "no" >&6; }
ac48eca1 4521fi
ac48eca1 4522
81ecdfbb
RW
4523
4524 fi
cfbc9945 4525fi
81ecdfbb 4526if test -z "$CC"; then
cfbc9945
SE
4527 # Extract the first word of "cc", so it can be a program name with args.
4528set dummy cc; ac_word=$2
81ecdfbb
RW
4529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4530$as_echo_n "checking for $ac_word... " >&6; }
4531if test "${ac_cv_prog_CC+set}" = set; then :
4532 $as_echo_n "(cached) " >&6
252b5132 4533else
81ecdfbb
RW
4534 if test -n "$CC"; then
4535 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4536else
81ecdfbb 4537 ac_prog_rejected=no
cfbc9945
SE
4538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539for as_dir in $PATH
4540do
4541 IFS=$as_save_IFS
4542 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4543 for ac_exec_ext in '' $ac_executable_extensions; do
4544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945
SE
4545 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4546 ac_prog_rejected=yes
4547 continue
4548 fi
4549 ac_cv_prog_CC="cc"
81ecdfbb 4550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cfbc9945
SE
4551 break 2
4552 fi
4553done
81ecdfbb
RW
4554 done
4555IFS=$as_save_IFS
cfbc9945
SE
4556
4557if test $ac_prog_rejected = yes; then
4558 # We found a bogon in the path, so make sure we never use it.
4559 set dummy $ac_cv_prog_CC
4560 shift
4561 if test $# != 0; then
4562 # We chose a different compiler from the bogus one.
4563 # However, it has the same basename, so the bogon will be chosen
4564 # first if we set CC to just the basename; use the full file name.
4565 shift
4566 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4567 fi
4568fi
4569fi
4570fi
4571CC=$ac_cv_prog_CC
4572if test -n "$CC"; then
81ecdfbb
RW
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4574$as_echo "$CC" >&6; }
cfbc9945 4575else
81ecdfbb
RW
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577$as_echo "no" >&6; }
252b5132
RH
4578fi
4579
81ecdfbb 4580
cfbc9945
SE
4581fi
4582if test -z "$CC"; then
4583 if test -n "$ac_tool_prefix"; then
81ecdfbb 4584 for ac_prog in cl.exe
cfbc9945
SE
4585 do
4586 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4587set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4589$as_echo_n "checking for $ac_word... " >&6; }
4590if test "${ac_cv_prog_CC+set}" = set; then :
4591 $as_echo_n "(cached) " >&6
ac48eca1 4592else
cfbc9945
SE
4593 if test -n "$CC"; then
4594 ac_cv_prog_CC="$CC" # Let the user override the test.
4595else
4596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597for as_dir in $PATH
4598do
4599 IFS=$as_save_IFS
4600 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4601 for ac_exec_ext in '' $ac_executable_extensions; do
4602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945 4603 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cfbc9945
SE
4605 break 2
4606 fi
4607done
81ecdfbb
RW
4608 done
4609IFS=$as_save_IFS
ac48eca1 4610
cfbc9945
SE
4611fi
4612fi
4613CC=$ac_cv_prog_CC
4614if test -n "$CC"; then
81ecdfbb
RW
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4616$as_echo "$CC" >&6; }
cfbc9945 4617else
81ecdfbb
RW
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4619$as_echo "no" >&6; }
cfbc9945 4620fi
ac48eca1 4621
81ecdfbb 4622
cfbc9945
SE
4623 test -n "$CC" && break
4624 done
4625fi
4626if test -z "$CC"; then
4627 ac_ct_CC=$CC
81ecdfbb 4628 for ac_prog in cl.exe
cfbc9945
SE
4629do
4630 # Extract the first word of "$ac_prog", so it can be a program name with args.
4631set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4633$as_echo_n "checking for $ac_word... " >&6; }
4634if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4635 $as_echo_n "(cached) " >&6
cfbc9945
SE
4636else
4637 if test -n "$ac_ct_CC"; then
4638 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4639else
4640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641for as_dir in $PATH
4642do
4643 IFS=$as_save_IFS
4644 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4645 for ac_exec_ext in '' $ac_executable_extensions; do
4646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945 4647 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cfbc9945
SE
4649 break 2
4650 fi
4651done
81ecdfbb
RW
4652 done
4653IFS=$as_save_IFS
ac48eca1 4654
cfbc9945
SE
4655fi
4656fi
4657ac_ct_CC=$ac_cv_prog_ac_ct_CC
4658if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4660$as_echo "$ac_ct_CC" >&6; }
cfbc9945 4661else
81ecdfbb
RW
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4663$as_echo "no" >&6; }
cfbc9945 4664fi
ac48eca1 4665
81ecdfbb 4666
cfbc9945
SE
4667 test -n "$ac_ct_CC" && break
4668done
ac48eca1 4669
81ecdfbb
RW
4670 if test "x$ac_ct_CC" = x; then
4671 CC=""
4672 else
4673 case $cross_compiling:$ac_tool_warned in
4674yes:)
4675{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4676$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4677ac_tool_warned=yes ;;
4678esac
4679 CC=$ac_ct_CC
4680 fi
cfbc9945 4681fi
55c80943 4682
cfbc9945 4683fi
ac48eca1 4684
ac48eca1 4685
81ecdfbb
RW
4686test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4687$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4688as_fn_error "no acceptable C compiler found in \$PATH
4689See \`config.log' for more details." "$LINENO" 5; }
ac48eca1 4690
cfbc9945 4691# Provide some information about the compiler.
81ecdfbb
RW
4692$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4693set X $ac_compile
4694ac_compiler=$2
4695for ac_option in --version -v -V -qversion; do
4696 { { ac_try="$ac_compiler $ac_option >&5"
4697case "(($ac_try" in
4698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4699 *) ac_try_echo=$ac_try;;
4700esac
4701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4702$as_echo "$ac_try_echo"; } >&5
4703 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cfbc9945 4704 ac_status=$?
81ecdfbb
RW
4705 if test -s conftest.err; then
4706 sed '10a\
4707... rest of stderr output deleted ...
4708 10q' conftest.err >conftest.er1
4709 cat conftest.er1 >&5
4710 rm -f conftest.er1 conftest.err
4711 fi
4712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4713 test $ac_status = 0; }
4714done
ac48eca1 4715
81ecdfbb
RW
4716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4717$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4718if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4719 $as_echo_n "(cached) " >&6
ac48eca1 4720else
81ecdfbb 4721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cfbc9945 4722/* end confdefs.h. */
ac48eca1 4723
cfbc9945
SE
4724int
4725main ()
4726{
4727#ifndef __GNUC__
4728 choke me
4729#endif
5464f5a1 4730
cfbc9945
SE
4731 ;
4732 return 0;
4733}
4734_ACEOF
81ecdfbb 4735if ac_fn_c_try_compile "$LINENO"; then :
cfbc9945 4736 ac_compiler_gnu=yes
ac48eca1 4737else
81ecdfbb 4738 ac_compiler_gnu=no
ac48eca1 4739fi
81ecdfbb 4740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cfbc9945 4741ac_cv_c_compiler_gnu=$ac_compiler_gnu
ac48eca1 4742
5464f5a1 4743fi
81ecdfbb
RW
4744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4745$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4746if test $ac_compiler_gnu = yes; then
4747 GCC=yes
4748else
4749 GCC=
4750fi
cfbc9945
SE
4751ac_test_CFLAGS=${CFLAGS+set}
4752ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4754$as_echo_n "checking whether $CC accepts -g... " >&6; }
4755if test "${ac_cv_prog_cc_g+set}" = set; then :
4756 $as_echo_n "(cached) " >&6
4757else
4758 ac_save_c_werror_flag=$ac_c_werror_flag
4759 ac_c_werror_flag=yes
4760 ac_cv_prog_cc_g=no
4761 CFLAGS="-g"
4762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cfbc9945
SE
4763/* end confdefs.h. */
4764
4765int
4766main ()
4767{
4768
4769 ;
4770 return 0;
4771}
4772_ACEOF
81ecdfbb 4773if ac_fn_c_try_compile "$LINENO"; then :
cfbc9945 4774 ac_cv_prog_cc_g=yes
6be7c12c 4775else
81ecdfbb
RW
4776 CFLAGS=""
4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778/* end confdefs.h. */
4779
4780int
4781main ()
4782{
4783
4784 ;
4785 return 0;
4786}
4787_ACEOF
4788if ac_fn_c_try_compile "$LINENO"; then :
4789
4790else
4791 ac_c_werror_flag=$ac_save_c_werror_flag
4792 CFLAGS="-g"
4793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794/* end confdefs.h. */
4795
4796int
4797main ()
4798{
5464f5a1 4799
81ecdfbb
RW
4800 ;
4801 return 0;
4802}
4803_ACEOF
4804if ac_fn_c_try_compile "$LINENO"; then :
4805 ac_cv_prog_cc_g=yes
4806fi
4807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 4808fi
81ecdfbb 4809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 4810fi
81ecdfbb
RW
4811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4812 ac_c_werror_flag=$ac_save_c_werror_flag
4813fi
4814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4815$as_echo "$ac_cv_prog_cc_g" >&6; }
cfbc9945
SE
4816if test "$ac_test_CFLAGS" = set; then
4817 CFLAGS=$ac_save_CFLAGS
4818elif test $ac_cv_prog_cc_g = yes; then
4819 if test "$GCC" = yes; then
4820 CFLAGS="-g -O2"
4821 else
4822 CFLAGS="-g"
4823 fi
ac48eca1 4824else
cfbc9945
SE
4825 if test "$GCC" = yes; then
4826 CFLAGS="-O2"
4827 else
4828 CFLAGS=
4829 fi
ac48eca1 4830fi
81ecdfbb
RW
4831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4832$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4833if test "${ac_cv_prog_cc_c89+set}" = set; then :
4834 $as_echo_n "(cached) " >&6
ac48eca1 4835else
81ecdfbb 4836 ac_cv_prog_cc_c89=no
cfbc9945 4837ac_save_CC=$CC
81ecdfbb 4838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cfbc9945
SE
4839/* end confdefs.h. */
4840#include <stdarg.h>
4841#include <stdio.h>
4842#include <sys/types.h>
4843#include <sys/stat.h>
4844/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4845struct buf { int x; };
4846FILE * (*rcsopen) (struct buf *, struct stat *, int);
4847static char *e (p, i)
4848 char **p;
4849 int i;
4850{
4851 return p[i];
4852}
4853static char *f (char * (*g) (char **, int), char **p, ...)
4854{
4855 char *s;
4856 va_list v;
4857 va_start (v,p);
4858 s = g (p, va_arg (v,int));
4859 va_end (v);
4860 return s;
4861}
5464f5a1 4862
cfbc9945
SE
4863/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4864 function prototypes and stuff, but not '\xHH' hex character constants.
4865 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4866 as 'x'. The following induces an error, until -std is added to get
cfbc9945
SE
4867 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4868 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4869 that's true only with -std. */
cfbc9945
SE
4870int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4871
81ecdfbb
RW
4872/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4873 inside strings and character constants. */
4874#define FOO(x) 'x'
4875int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4876
cfbc9945
SE
4877int test (int i, double x);
4878struct s1 {int (*f) (int a);};
4879struct s2 {int (*f) (double a);};
4880int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4881int argc;
4882char **argv;
4883int
4884main ()
4885{
4886return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4887 ;
4888 return 0;
4889}
4890_ACEOF
81ecdfbb
RW
4891for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4892 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
cfbc9945
SE
4893do
4894 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4895 if ac_fn_c_try_compile "$LINENO"; then :
4896 ac_cv_prog_cc_c89=$ac_arg
5464f5a1 4897fi
81ecdfbb
RW
4898rm -f core conftest.err conftest.$ac_objext
4899 test "x$ac_cv_prog_cc_c89" != "xno" && break
5464f5a1 4900done
81ecdfbb 4901rm -f conftest.$ac_ext
cfbc9945 4902CC=$ac_save_CC
5464f5a1 4903
ac48eca1 4904fi
81ecdfbb
RW
4905# AC_CACHE_VAL
4906case "x$ac_cv_prog_cc_c89" in
4907 x)
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4909$as_echo "none needed" >&6; } ;;
4910 xno)
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4912$as_echo "unsupported" >&6; } ;;
cfbc9945 4913 *)
81ecdfbb
RW
4914 CC="$CC $ac_cv_prog_cc_c89"
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4916$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
cfbc9945 4917esac
81ecdfbb 4918if test "x$ac_cv_prog_cc_c89" != xno; then :
6be7c12c 4919
6ec7057a 4920fi
cfbc9945 4921
cfbc9945
SE
4922ac_ext=c
4923ac_cpp='$CPP $CPPFLAGS'
4924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4926ac_compiler_gnu=$ac_cv_c_compiler_gnu
92f01d61 4927
7357c5b6
AM
4928ac_ext=c
4929ac_cpp='$CPP $CPPFLAGS'
4930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4932ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
4933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4934$as_echo_n "checking how to run the C preprocessor... " >&6; }
7357c5b6
AM
4935# On Suns, sometimes $CPP names a directory.
4936if test -n "$CPP" && test -d "$CPP"; then
4937 CPP=
4938fi
4939if test -z "$CPP"; then
81ecdfbb
RW
4940 if test "${ac_cv_prog_CPP+set}" = set; then :
4941 $as_echo_n "(cached) " >&6
7357c5b6
AM
4942else
4943 # Double quotes because CPP needs to be expanded
4944 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4945 do
4946 ac_preproc_ok=false
4947for ac_c_preproc_warn_flag in '' yes
4948do
4949 # Use a header file that comes with gcc, so configuring glibc
4950 # with a fresh cross-compiler works.
4951 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4952 # <limits.h> exists even on freestanding compilers.
4953 # On the NeXT, cc -E runs the code through the compiler's parser,
4954 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4956/* end confdefs.h. */
4957#ifdef __STDC__
4958# include <limits.h>
4959#else
4960# include <assert.h>
4961#endif
4962 Syntax error
4963_ACEOF
81ecdfbb 4964if ac_fn_c_try_cpp "$LINENO"; then :
cfbc9945 4965
81ecdfbb 4966else
7357c5b6
AM
4967 # Broken: fails on valid input.
4968continue
4969fi
4970rm -f conftest.err conftest.$ac_ext
d7040cdb 4971
81ecdfbb 4972 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4973 # can be detected and how.
81ecdfbb 4974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4975/* end confdefs.h. */
4976#include <ac_nonexistent.h>
4977_ACEOF
81ecdfbb 4978if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4979 # Broken: success on invalid input.
4980continue
4981else
7357c5b6
AM
4982 # Passes both tests.
4983ac_preproc_ok=:
4984break
4985fi
4986rm -f conftest.err conftest.$ac_ext
d7040cdb 4987
7357c5b6
AM
4988done
4989# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4990rm -f conftest.err conftest.$ac_ext
81ecdfbb 4991if $ac_preproc_ok; then :
7357c5b6
AM
4992 break
4993fi
d7040cdb 4994
7357c5b6
AM
4995 done
4996 ac_cv_prog_CPP=$CPP
d7040cdb 4997
7357c5b6
AM
4998fi
4999 CPP=$ac_cv_prog_CPP
5000else
5001 ac_cv_prog_CPP=$CPP
5002fi
81ecdfbb
RW
5003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5004$as_echo "$CPP" >&6; }
7357c5b6
AM
5005ac_preproc_ok=false
5006for ac_c_preproc_warn_flag in '' yes
5007do
5008 # Use a header file that comes with gcc, so configuring glibc
5009 # with a fresh cross-compiler works.
5010 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5011 # <limits.h> exists even on freestanding compilers.
5012 # On the NeXT, cc -E runs the code through the compiler's parser,
5013 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 5014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5015/* end confdefs.h. */
5016#ifdef __STDC__
5017# include <limits.h>
5018#else
5019# include <assert.h>
5020#endif
5021 Syntax error
5022_ACEOF
81ecdfbb 5023if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 5024
81ecdfbb 5025else
7357c5b6
AM
5026 # Broken: fails on valid input.
5027continue
5028fi
5029rm -f conftest.err conftest.$ac_ext
d7040cdb 5030
81ecdfbb 5031 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 5032 # can be detected and how.
81ecdfbb 5033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5034/* end confdefs.h. */
5035#include <ac_nonexistent.h>
5036_ACEOF
81ecdfbb 5037if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
5038 # Broken: success on invalid input.
5039continue
5040else
7357c5b6
AM
5041 # Passes both tests.
5042ac_preproc_ok=:
5043break
5044fi
5045rm -f conftest.err conftest.$ac_ext
d7040cdb 5046
7357c5b6
AM
5047done
5048# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5049rm -f conftest.err conftest.$ac_ext
81ecdfbb
RW
5050if $ac_preproc_ok; then :
5051
7357c5b6 5052else
81ecdfbb
RW
5053 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5054$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5055as_fn_error "C preprocessor \"$CPP\" fails sanity check
5056See \`config.log' for more details." "$LINENO" 5; }
7357c5b6 5057fi
d7040cdb 5058
7357c5b6
AM
5059ac_ext=c
5060ac_cpp='$CPP $CPPFLAGS'
5061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5063ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 5064
d7040cdb 5065
81ecdfbb
RW
5066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5067$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5068if test "${ac_cv_path_GREP+set}" = set; then :
5069 $as_echo_n "(cached) " >&6
5070else
5071 if test -z "$GREP"; then
5072 ac_path_GREP_found=false
5073 # Loop through the user's path and test for each of PROGNAME-LIST
5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5076do
5077 IFS=$as_save_IFS
5078 test -z "$as_dir" && as_dir=.
5079 for ac_prog in grep ggrep; do
5080 for ac_exec_ext in '' $ac_executable_extensions; do
5081 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5082 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5083# Check for GNU ac_path_GREP and select it if it is found.
5084 # Check for GNU $ac_path_GREP
5085case `"$ac_path_GREP" --version 2>&1` in
5086*GNU*)
5087 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5088*)
5089 ac_count=0
5090 $as_echo_n 0123456789 >"conftest.in"
5091 while :
5092 do
5093 cat "conftest.in" "conftest.in" >"conftest.tmp"
5094 mv "conftest.tmp" "conftest.in"
5095 cp "conftest.in" "conftest.nl"
5096 $as_echo 'GREP' >> "conftest.nl"
5097 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5098 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5099 as_fn_arith $ac_count + 1 && ac_count=$as_val
5100 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5101 # Best one so far, save it but keep looking for a better one
5102 ac_cv_path_GREP="$ac_path_GREP"
5103 ac_path_GREP_max=$ac_count
5104 fi
5105 # 10*(2^10) chars as input seems more than enough
5106 test $ac_count -gt 10 && break
5107 done
5108 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5109esac
5110
5111 $ac_path_GREP_found && break 3
5112 done
5113 done
5114 done
5115IFS=$as_save_IFS
5116 if test -z "$ac_cv_path_GREP"; then
5117 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5118 fi
5119else
5120 ac_cv_path_GREP=$GREP
5121fi
5122
5123fi
5124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5125$as_echo "$ac_cv_path_GREP" >&6; }
5126 GREP="$ac_cv_path_GREP"
5127
5128
5129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5130$as_echo_n "checking for egrep... " >&6; }
5131if test "${ac_cv_path_EGREP+set}" = set; then :
5132 $as_echo_n "(cached) " >&6
7357c5b6 5133else
81ecdfbb
RW
5134 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5135 then ac_cv_path_EGREP="$GREP -E"
5136 else
5137 if test -z "$EGREP"; then
5138 ac_path_EGREP_found=false
5139 # Loop through the user's path and test for each of PROGNAME-LIST
5140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5142do
5143 IFS=$as_save_IFS
5144 test -z "$as_dir" && as_dir=.
5145 for ac_prog in egrep; do
5146 for ac_exec_ext in '' $ac_executable_extensions; do
5147 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5148 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5149# Check for GNU ac_path_EGREP and select it if it is found.
5150 # Check for GNU $ac_path_EGREP
5151case `"$ac_path_EGREP" --version 2>&1` in
5152*GNU*)
5153 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5154*)
5155 ac_count=0
5156 $as_echo_n 0123456789 >"conftest.in"
5157 while :
5158 do
5159 cat "conftest.in" "conftest.in" >"conftest.tmp"
5160 mv "conftest.tmp" "conftest.in"
5161 cp "conftest.in" "conftest.nl"
5162 $as_echo 'EGREP' >> "conftest.nl"
5163 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5164 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5165 as_fn_arith $ac_count + 1 && ac_count=$as_val
5166 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5167 # Best one so far, save it but keep looking for a better one
5168 ac_cv_path_EGREP="$ac_path_EGREP"
5169 ac_path_EGREP_max=$ac_count
7357c5b6 5170 fi
81ecdfbb
RW
5171 # 10*(2^10) chars as input seems more than enough
5172 test $ac_count -gt 10 && break
5173 done
5174 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5175esac
5176
5177 $ac_path_EGREP_found && break 3
5178 done
5179 done
5180 done
5181IFS=$as_save_IFS
5182 if test -z "$ac_cv_path_EGREP"; then
5183 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5184 fi
5185else
5186 ac_cv_path_EGREP=$EGREP
5187fi
5188
5189 fi
7357c5b6 5190fi
81ecdfbb
RW
5191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5192$as_echo "$ac_cv_path_EGREP" >&6; }
5193 EGREP="$ac_cv_path_EGREP"
d7040cdb
SE
5194
5195
81ecdfbb
RW
5196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5197$as_echo_n "checking for ANSI C header files... " >&6; }
5198if test "${ac_cv_header_stdc+set}" = set; then :
5199 $as_echo_n "(cached) " >&6
7357c5b6 5200else
81ecdfbb 5201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5202/* end confdefs.h. */
5203#include <stdlib.h>
5204#include <stdarg.h>
5205#include <string.h>
5206#include <float.h>
d7040cdb 5207
7357c5b6
AM
5208int
5209main ()
5210{
d7040cdb 5211
7357c5b6
AM
5212 ;
5213 return 0;
5214}
5215_ACEOF
81ecdfbb 5216if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6 5217 ac_cv_header_stdc=yes
c428fa83 5218else
81ecdfbb 5219 ac_cv_header_stdc=no
7357c5b6 5220fi
81ecdfbb 5221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 5222
7357c5b6
AM
5223if test $ac_cv_header_stdc = yes; then
5224 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 5225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5226/* end confdefs.h. */
5227#include <string.h>
d7040cdb 5228
7357c5b6
AM
5229_ACEOF
5230if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
5231 $EGREP "memchr" >/dev/null 2>&1; then :
5232
7357c5b6
AM
5233else
5234 ac_cv_header_stdc=no
5235fi
5236rm -f conftest*
d7040cdb 5237
7357c5b6 5238fi
d7040cdb 5239
7357c5b6
AM
5240if test $ac_cv_header_stdc = yes; then
5241 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 5242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5243/* end confdefs.h. */
5244#include <stdlib.h>
d7040cdb 5245
7357c5b6
AM
5246_ACEOF
5247if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
5248 $EGREP "free" >/dev/null 2>&1; then :
5249
7357c5b6
AM
5250else
5251 ac_cv_header_stdc=no
5252fi
5253rm -f conftest*
d7040cdb 5254
7357c5b6 5255fi
d7040cdb 5256
7357c5b6
AM
5257if test $ac_cv_header_stdc = yes; then
5258 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 5259 if test "$cross_compiling" = yes; then :
7357c5b6
AM
5260 :
5261else
81ecdfbb 5262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5263/* end confdefs.h. */
5264#include <ctype.h>
81ecdfbb 5265#include <stdlib.h>
7357c5b6
AM
5266#if ((' ' & 0x0FF) == 0x020)
5267# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5268# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5269#else
5270# define ISLOWER(c) \
5271 (('a' <= (c) && (c) <= 'i') \
5272 || ('j' <= (c) && (c) <= 'r') \
5273 || ('s' <= (c) && (c) <= 'z'))
5274# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5275#endif
d7040cdb 5276
7357c5b6
AM
5277#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5278int
5279main ()
5280{
5281 int i;
5282 for (i = 0; i < 256; i++)
5283 if (XOR (islower (i), ISLOWER (i))
5284 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
5285 return 2;
5286 return 0;
7357c5b6
AM
5287}
5288_ACEOF
81ecdfbb 5289if ac_fn_c_try_run "$LINENO"; then :
d7040cdb 5290
81ecdfbb
RW
5291else
5292 ac_cv_header_stdc=no
7357c5b6 5293fi
81ecdfbb
RW
5294rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5295 conftest.$ac_objext conftest.beam conftest.$ac_ext
7357c5b6 5296fi
81ecdfbb 5297
7357c5b6
AM
5298fi
5299fi
81ecdfbb
RW
5300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5301$as_echo "$ac_cv_header_stdc" >&6; }
7357c5b6 5302if test $ac_cv_header_stdc = yes; then
d7040cdb 5303
81ecdfbb 5304$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d7040cdb 5305
7357c5b6 5306fi
d7040cdb 5307
7357c5b6 5308# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7357c5b6
AM
5309for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5310 inttypes.h stdint.h unistd.h
81ecdfbb
RW
5311do :
5312 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5313ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5314"
5315eval as_val=\$$as_ac_Header
5316 if test "x$as_val" = x""yes; then :
7357c5b6 5317 cat >>confdefs.h <<_ACEOF
81ecdfbb 5318#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7357c5b6 5319_ACEOF
d7040cdb 5320
7357c5b6
AM
5321fi
5322
5323done
5324
5325
5326
81ecdfbb
RW
5327 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5328if test "x$ac_cv_header_minix_config_h" = x""yes; then :
7357c5b6
AM
5329 MINIX=yes
5330else
5331 MINIX=
5332fi
d7040cdb
SE
5333
5334
7357c5b6 5335 if test "$MINIX" = yes; then
d7040cdb 5336
81ecdfbb 5337$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
d7040cdb
SE
5338
5339
81ecdfbb 5340$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
d7040cdb
SE
5341
5342
81ecdfbb 5343$as_echo "#define _MINIX 1" >>confdefs.h
d7040cdb 5344
7357c5b6 5345 fi
d7040cdb
SE
5346
5347
81ecdfbb
RW
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5349$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5350if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5351 $as_echo_n "(cached) " >&6
d053aef8 5352else
81ecdfbb 5353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8 5354/* end confdefs.h. */
ce3c775b
NC
5355
5356# define __EXTENSIONS__ 1
5357 $ac_includes_default
d053aef8
JK
5358int
5359main ()
5360{
5361
5362 ;
5363 return 0;
5364}
5365_ACEOF
81ecdfbb 5366if ac_fn_c_try_compile "$LINENO"; then :
ce3c775b 5367 ac_cv_safe_to_define___extensions__=yes
d053aef8 5368else
81ecdfbb 5369 ac_cv_safe_to_define___extensions__=no
d053aef8 5370fi
81ecdfbb 5371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce3c775b 5372fi
81ecdfbb
RW
5373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5374$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
ce3c775b 5375 test $ac_cv_safe_to_define___extensions__ = yes &&
81ecdfbb 5376 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
d053aef8 5377
81ecdfbb 5378 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
d053aef8 5379
81ecdfbb
RW
5380 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5381
5382 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5383
5384 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
d053aef8 5385
ce3c775b 5386
d053aef8 5387
d053aef8 5388
d7040cdb 5389
718a6fd8
SE
5390case `pwd` in
5391 *\ * | *\ *)
81ecdfbb
RW
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5393$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
718a6fd8 5394esac
d7040cdb
SE
5395
5396
7357c5b6 5397
3725885a
RW
5398macro_version='2.2.7a'
5399macro_revision='1.3134'
7357c5b6
AM
5400
5401
5402
5403
5404
5405
7357c5b6
AM
5406
5407
5408
5409
5410
5411
5412
718a6fd8 5413ltmain="$ac_aux_dir/ltmain.sh"
7357c5b6 5414
3725885a
RW
5415# Backslashify metacharacters that are still active within
5416# double-quoted strings.
5417sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5418
5419# Same as above, but do not quote variable references.
5420double_quote_subst='s/\(["`\\]\)/\\\1/g'
5421
5422# Sed substitution to delay expansion of an escaped shell variable in a
5423# double_quote_subst'ed string.
5424delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5425
5426# Sed substitution to delay expansion of an escaped single quote.
5427delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5428
5429# Sed substitution to avoid accidental globbing in evaled expressions
5430no_glob_subst='s/\*/\\\*/g'
5431
5432ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5433ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5434ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5435
5436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5437$as_echo_n "checking how to print strings... " >&6; }
5438# Test print first, because it will be a builtin if present.
5439if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5440 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5441 ECHO='print -r --'
5442elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5443 ECHO='printf %s\n'
5444else
5445 # Use this function as a fallback that always works.
5446 func_fallback_echo ()
5447 {
5448 eval 'cat <<_LTECHO_EOF
5449$1
5450_LTECHO_EOF'
5451 }
5452 ECHO='func_fallback_echo'
5453fi
5454
5455# func_echo_all arg...
5456# Invoke $ECHO with all args, space-separated.
5457func_echo_all ()
5458{
5459 $ECHO ""
5460}
5461
5462case "$ECHO" in
5463 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5464$as_echo "printf" >&6; } ;;
5465 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5466$as_echo "print -r" >&6; } ;;
5467 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5468$as_echo "cat" >&6; } ;;
5469esac
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
81ecdfbb
RW
5484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5485$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5486if test "${ac_cv_path_SED+set}" = set; then :
5487 $as_echo_n "(cached) " >&6
7357c5b6 5488else
81ecdfbb
RW
5489 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5490 for ac_i in 1 2 3 4 5 6 7; do
5491 ac_script="$ac_script$as_nl$ac_script"
5492 done
5493 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5494 { ac_script=; unset ac_script;}
5495 if test -z "$SED"; then
5496 ac_path_SED_found=false
5497 # Loop through the user's path and test for each of PROGNAME-LIST
5498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
5499for as_dir in $PATH
5500do
5501 IFS=$as_save_IFS
5502 test -z "$as_dir" && as_dir=.
81ecdfbb 5503 for ac_prog in sed gsed; do
7357c5b6 5504 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb
RW
5505 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5506 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5507# Check for GNU ac_path_SED and select it if it is found.
5508 # Check for GNU $ac_path_SED
5509case `"$ac_path_SED" --version 2>&1` in
5510*GNU*)
5511 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5512*)
5513 ac_count=0
5514 $as_echo_n 0123456789 >"conftest.in"
5515 while :
5516 do
5517 cat "conftest.in" "conftest.in" >"conftest.tmp"
5518 mv "conftest.tmp" "conftest.in"
5519 cp "conftest.in" "conftest.nl"
5520 $as_echo '' >> "conftest.nl"
5521 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5522 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5523 as_fn_arith $ac_count + 1 && ac_count=$as_val
5524 if test $ac_count -gt ${ac_path_SED_max-0}; then
5525 # Best one so far, save it but keep looking for a better one
5526 ac_cv_path_SED="$ac_path_SED"
5527 ac_path_SED_max=$ac_count
5528 fi
5529 # 10*(2^10) chars as input seems more than enough
5530 test $ac_count -gt 10 && break
5531 done
5532 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5533esac
5534
5535 $ac_path_SED_found && break 3
7357c5b6
AM
5536 done
5537 done
81ecdfbb 5538 done
7357c5b6 5539IFS=$as_save_IFS
81ecdfbb
RW
5540 if test -z "$ac_cv_path_SED"; then
5541 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7357c5b6 5542 fi
81ecdfbb
RW
5543else
5544 ac_cv_path_SED=$SED
7357c5b6
AM
5545fi
5546
81ecdfbb
RW
5547fi
5548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5549$as_echo "$ac_cv_path_SED" >&6; }
5550 SED="$ac_cv_path_SED"
5551 rm -f conftest.sed
7357c5b6
AM
5552
5553test -z "$SED" && SED=sed
5554Xsed="$SED -e 1s/^X//"
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
81ecdfbb
RW
5566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5567$as_echo_n "checking for fgrep... " >&6; }
5568if test "${ac_cv_path_FGREP+set}" = set; then :
5569 $as_echo_n "(cached) " >&6
7357c5b6 5570else
81ecdfbb
RW
5571 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5572 then ac_cv_path_FGREP="$GREP -F"
5573 else
5574 if test -z "$FGREP"; then
5575 ac_path_FGREP_found=false
5576 # Loop through the user's path and test for each of PROGNAME-LIST
5577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5579do
5580 IFS=$as_save_IFS
5581 test -z "$as_dir" && as_dir=.
5582 for ac_prog in fgrep; do
5583 for ac_exec_ext in '' $ac_executable_extensions; do
5584 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5585 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5586# Check for GNU ac_path_FGREP and select it if it is found.
5587 # Check for GNU $ac_path_FGREP
5588case `"$ac_path_FGREP" --version 2>&1` in
5589*GNU*)
5590 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5591*)
5592 ac_count=0
5593 $as_echo_n 0123456789 >"conftest.in"
5594 while :
5595 do
5596 cat "conftest.in" "conftest.in" >"conftest.tmp"
5597 mv "conftest.tmp" "conftest.in"
5598 cp "conftest.in" "conftest.nl"
5599 $as_echo 'FGREP' >> "conftest.nl"
5600 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5601 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5602 as_fn_arith $ac_count + 1 && ac_count=$as_val
5603 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5604 # Best one so far, save it but keep looking for a better one
5605 ac_cv_path_FGREP="$ac_path_FGREP"
5606 ac_path_FGREP_max=$ac_count
7357c5b6 5607 fi
81ecdfbb
RW
5608 # 10*(2^10) chars as input seems more than enough
5609 test $ac_count -gt 10 && break
5610 done
5611 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5612esac
5613
5614 $ac_path_FGREP_found && break 3
5615 done
5616 done
5617 done
5618IFS=$as_save_IFS
5619 if test -z "$ac_cv_path_FGREP"; then
5620 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5621 fi
5622else
5623 ac_cv_path_FGREP=$FGREP
7357c5b6 5624fi
81ecdfbb
RW
5625
5626 fi
5627fi
5628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5629$as_echo "$ac_cv_path_FGREP" >&6; }
5630 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
5631
5632
5633test -z "$GREP" && GREP=grep
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
81ecdfbb
RW
5653# Check whether --with-gnu-ld was given.
5654if test "${with_gnu_ld+set}" = set; then :
5655 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
5656else
5657 with_gnu_ld=no
81ecdfbb
RW
5658fi
5659
7357c5b6
AM
5660ac_prog=ld
5661if test "$GCC" = yes; then
5662 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5664$as_echo_n "checking for ld used by $CC... " >&6; }
7357c5b6
AM
5665 case $host in
5666 *-*-mingw*)
5667 # gcc leaves a trailing carriage return which upsets mingw
5668 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5669 *)
5670 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5671 esac
5672 case $ac_prog in
5673 # Accept absolute paths.
5674 [\\/]* | ?:[\\/]*)
5675 re_direlt='/[^/][^/]*/\.\./'
5676 # Canonicalize the pathname of ld
5677 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5678 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
d7040cdb 5679 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
cfbc9945
SE
5680 done
5681 test -z "$LD" && LD="$ac_prog"
5682 ;;
5bd8253d 5683 "")
cfbc9945
SE
5684 # If it fails, then pretend we aren't using GCC.
5685 ac_prog=ld
5bd8253d
L
5686 ;;
5687 *)
cfbc9945
SE
5688 # If it is relative, then search for the first ld in PATH.
5689 with_gnu_ld=unknown
5bd8253d 5690 ;;
cfbc9945
SE
5691 esac
5692elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5694$as_echo_n "checking for GNU ld... " >&6; }
cfbc9945 5695else
81ecdfbb
RW
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5697$as_echo_n "checking for non-GNU ld... " >&6; }
cfbc9945 5698fi
81ecdfbb
RW
5699if test "${lt_cv_path_LD+set}" = set; then :
5700 $as_echo_n "(cached) " >&6
cfbc9945
SE
5701else
5702 if test -z "$LD"; then
d7040cdb 5703 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cfbc9945 5704 for ac_dir in $PATH; do
d7040cdb 5705 IFS="$lt_save_ifs"
cfbc9945
SE
5706 test -z "$ac_dir" && ac_dir=.
5707 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5708 lt_cv_path_LD="$ac_dir/$ac_prog"
5709 # Check to see if the program is GNU ld. I'd rather use --version,
d7040cdb 5710 # but apparently some variants of GNU ld only accept -v.
cfbc9945 5711 # Break only if it was the GNU/non-GNU ld that we prefer.
d7040cdb
SE
5712 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5713 *GNU* | *'with BFD'*)
cfbc9945 5714 test "$with_gnu_ld" != no && break
d7040cdb
SE
5715 ;;
5716 *)
cfbc9945 5717 test "$with_gnu_ld" != yes && break
d7040cdb
SE
5718 ;;
5719 esac
cfbc9945
SE
5720 fi
5721 done
d7040cdb 5722 IFS="$lt_save_ifs"
cfbc9945
SE
5723else
5724 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9e9b66a9 5725fi
1ad12f97
NC
5726fi
5727
cfbc9945
SE
5728LD="$lt_cv_path_LD"
5729if test -n "$LD"; then
81ecdfbb
RW
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5731$as_echo "$LD" >&6; }
cfbc9945 5732else
81ecdfbb
RW
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5734$as_echo "no" >&6; }
cfbc9945 5735fi
81ecdfbb
RW
5736test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5738$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5739if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5740 $as_echo_n "(cached) " >&6
cfbc9945 5741else
d7040cdb
SE
5742 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5743case `$LD -v 2>&1 </dev/null` in
5744*GNU* | *'with BFD'*)
cfbc9945 5745 lt_cv_prog_gnu_ld=yes
d7040cdb
SE
5746 ;;
5747*)
cfbc9945 5748 lt_cv_prog_gnu_ld=no
d7040cdb
SE
5749 ;;
5750esac
49c96104 5751fi
81ecdfbb
RW
5752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5753$as_echo "$lt_cv_prog_gnu_ld" >&6; }
cfbc9945 5754with_gnu_ld=$lt_cv_prog_gnu_ld
49c96104 5755
9e9b66a9 5756
cfbc9945 5757
d7040cdb
SE
5758
5759
5760
5761
5762
5763
81ecdfbb
RW
5764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5765$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5766if test "${lt_cv_path_NM+set}" = set; then :
5767 $as_echo_n "(cached) " >&6
cfbc9945
SE
5768else
5769 if test -n "$NM"; then
5770 # Let the user override the test.
5771 lt_cv_path_NM="$NM"
5772else
d7040cdb
SE
5773 lt_nm_to_check="${ac_tool_prefix}nm"
5774 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5775 lt_nm_to_check="$lt_nm_to_check nm"
5776 fi
5777 for lt_tmp_nm in $lt_nm_to_check; do
5778 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5779 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5780 IFS="$lt_save_ifs"
5781 test -z "$ac_dir" && ac_dir=.
5782 tmp_nm="$ac_dir/$lt_tmp_nm"
5783 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5784 # Check to see if the nm accepts a BSD-compat flag.
5785 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5786 # nm: unknown option "B" ignored
5787 # Tru64's nm complains that /dev/null is an invalid object file
5788 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5789 */dev/null* | *'Invalid file or object type'*)
5790 lt_cv_path_NM="$tmp_nm -B"
5791 break
5792 ;;
5793 *)
5794 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5795 */dev/null*)
5796 lt_cv_path_NM="$tmp_nm -p"
5797 break
5798 ;;
5799 *)
5800 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5801 continue # so that we can try to find one that supports BSD flags
5802 ;;
5803 esac
5804 ;;
5805 esac
cfbc9945 5806 fi
d7040cdb
SE
5807 done
5808 IFS="$lt_save_ifs"
cfbc9945 5809 done
d7040cdb 5810 : ${lt_cv_path_NM=no}
cfbc9945 5811fi
a2d91340 5812fi
81ecdfbb
RW
5813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5814$as_echo "$lt_cv_path_NM" >&6; }
d7040cdb
SE
5815if test "$lt_cv_path_NM" != "no"; then
5816 NM="$lt_cv_path_NM"
cfbc9945 5817else
d7040cdb 5818 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
5819 if test -n "$DUMPBIN"; then :
5820 # Let the user override the test.
5821 else
5822 if test -n "$ac_tool_prefix"; then
5823 for ac_prog in dumpbin "link -dump"
d7040cdb
SE
5824 do
5825 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5826set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5828$as_echo_n "checking for $ac_word... " >&6; }
5829if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5830 $as_echo_n "(cached) " >&6
252b5132 5831else
d7040cdb
SE
5832 if test -n "$DUMPBIN"; then
5833 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5834else
5835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836for as_dir in $PATH
5837do
5838 IFS=$as_save_IFS
5839 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5840 for ac_exec_ext in '' $ac_executable_extensions; do
5841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 5842 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 5843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
5844 break 2
5845 fi
5846done
81ecdfbb
RW
5847 done
5848IFS=$as_save_IFS
5464f5a1 5849
d7040cdb
SE
5850fi
5851fi
5852DUMPBIN=$ac_cv_prog_DUMPBIN
5853if test -n "$DUMPBIN"; then
81ecdfbb
RW
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5855$as_echo "$DUMPBIN" >&6; }
d7040cdb 5856else
81ecdfbb
RW
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5858$as_echo "no" >&6; }
d7040cdb 5859fi
d5fbea21 5860
81ecdfbb 5861
d7040cdb
SE
5862 test -n "$DUMPBIN" && break
5863 done
5864fi
5865if test -z "$DUMPBIN"; then
5866 ac_ct_DUMPBIN=$DUMPBIN
3725885a 5867 for ac_prog in dumpbin "link -dump"
d7040cdb
SE
5868do
5869 # Extract the first word of "$ac_prog", so it can be a program name with args.
5870set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5872$as_echo_n "checking for $ac_word... " >&6; }
5873if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5874 $as_echo_n "(cached) " >&6
d7040cdb
SE
5875else
5876 if test -n "$ac_ct_DUMPBIN"; then
5877 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5878else
5879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880for as_dir in $PATH
5881do
5882 IFS=$as_save_IFS
5883 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5884 for ac_exec_ext in '' $ac_executable_extensions; do
5885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 5886 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 5887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 5888 break 2
cfbc9945 5889 fi
d7040cdb 5890done
81ecdfbb
RW
5891 done
5892IFS=$as_save_IFS
d5fbea21 5893
d7040cdb
SE
5894fi
5895fi
5896ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5897if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5899$as_echo "$ac_ct_DUMPBIN" >&6; }
d7040cdb 5900else
81ecdfbb
RW
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5902$as_echo "no" >&6; }
d7040cdb 5903fi
d5fbea21 5904
81ecdfbb 5905
d7040cdb
SE
5906 test -n "$ac_ct_DUMPBIN" && break
5907done
24443139 5908
81ecdfbb
RW
5909 if test "x$ac_ct_DUMPBIN" = x; then
5910 DUMPBIN=":"
5911 else
5912 case $cross_compiling:$ac_tool_warned in
5913yes:)
5914{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5915$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5916ac_tool_warned=yes ;;
5917esac
5918 DUMPBIN=$ac_ct_DUMPBIN
5919 fi
d7040cdb 5920fi
24443139 5921
3725885a
RW
5922 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5923 *COFF*)
5924 DUMPBIN="$DUMPBIN -symbols"
5925 ;;
5926 *)
5927 DUMPBIN=:
5928 ;;
5929 esac
5930 fi
24443139 5931
d7040cdb
SE
5932 if test "$DUMPBIN" != ":"; then
5933 NM="$DUMPBIN"
cfbc9945 5934 fi
d7040cdb
SE
5935fi
5936test -z "$NM" && NM=nm
a703a6ea 5937
f5385ebf 5938
cfbc9945 5939
24443139
AS
5940
5941
5942
81ecdfbb
RW
5943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5944$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5945if test "${lt_cv_nm_interface+set}" = set; then :
5946 $as_echo_n "(cached) " >&6
d7040cdb
SE
5947else
5948 lt_cv_nm_interface="BSD nm"
5949 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 5950 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
d7040cdb
SE
5951 (eval "$ac_compile" 2>conftest.err)
5952 cat conftest.err >&5
3725885a 5953 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
d7040cdb
SE
5954 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5955 cat conftest.err >&5
3725885a 5956 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
d7040cdb
SE
5957 cat conftest.out >&5
5958 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5959 lt_cv_nm_interface="MS dumpbin"
5960 fi
5961 rm -f conftest*
cfbc9945 5962fi
81ecdfbb
RW
5963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5964$as_echo "$lt_cv_nm_interface" >&6; }
a703a6ea 5965
81ecdfbb
RW
5966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5967$as_echo_n "checking whether ln -s works... " >&6; }
d7040cdb
SE
5968LN_S=$as_ln_s
5969if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5971$as_echo "yes" >&6; }
d7040cdb 5972else
81ecdfbb
RW
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5974$as_echo "no, using $LN_S" >&6; }
d7040cdb 5975fi
252b5132 5976
cfbc9945 5977# find the maximum length of command line arguments
81ecdfbb
RW
5978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5979$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5980if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5981 $as_echo_n "(cached) " >&6
cfbc9945
SE
5982else
5983 i=0
5984 teststring="ABCD"
5464f5a1 5985
cfbc9945
SE
5986 case $build_os in
5987 msdosdjgpp*)
5988 # On DJGPP, this test can blow up pretty badly due to problems in libc
5989 # (any single argument exceeding 2000 bytes causes a buffer overrun
5990 # during glob expansion). Even if it were fixed, the result of this
5991 # check would be larger than it should be.
5992 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5993 ;;
5464f5a1 5994
d7040cdb
SE
5995 gnu*)
5996 # Under GNU Hurd, this test is not required because there is
5997 # no limit to the length of command line arguments.
5998 # Libtool will interpret -1 as no limit whatsoever
5999 lt_cv_sys_max_cmd_len=-1;
6000 ;;
6001
718a6fd8 6002 cygwin* | mingw* | cegcc*)
cfbc9945
SE
6003 # On Win9x/ME, this test blows up -- it succeeds, but takes
6004 # about 5 minutes as the teststring grows exponentially.
6005 # Worse, since 9x/ME are not pre-emptively multitasking,
6006 # you end up with a "frozen" computer, even though with patience
6007 # the test eventually succeeds (with a max line length of 256k).
6008 # Instead, let's just punt: use the minimum linelength reported by
6009 # all of the supported platforms: 8192 (on NT/2K/XP).
6010 lt_cv_sys_max_cmd_len=8192;
6011 ;;
5464f5a1 6012
3725885a
RW
6013 mint*)
6014 # On MiNT this can take a long time and run out of memory.
6015 lt_cv_sys_max_cmd_len=8192;
6016 ;;
6017
cfbc9945
SE
6018 amigaos*)
6019 # On AmigaOS with pdksh, this test takes hours, literally.
6020 # So we just punt and use a minimum line length of 8192.
6021 lt_cv_sys_max_cmd_len=8192;
6022 ;;
5464f5a1 6023
cfbc9945
SE
6024 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6025 # This has been around since 386BSD, at least. Likely further.
6026 if test -x /sbin/sysctl; then
6027 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6028 elif test -x /usr/sbin/sysctl; then
6029 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6030 else
d7040cdb 6031 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
cfbc9945
SE
6032 fi
6033 # And add a safety zone
6034 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6035 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6036 ;;
d7040cdb
SE
6037
6038 interix*)
6039 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6040 lt_cv_sys_max_cmd_len=196608
6041 ;;
6042
6043 osf*)
6044 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6045 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6046 # nice to cause kernel panics so lets avoid the loop below.
6047 # First set a reasonable default.
6048 lt_cv_sys_max_cmd_len=16384
6049 #
6050 if test -x /sbin/sysconfig; then
6051 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6052 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6053 esac
6054 fi
6055 ;;
6056 sco3.2v5*)
6057 lt_cv_sys_max_cmd_len=102400
6058 ;;
6059 sysv5* | sco5v6* | sysv4.2uw2*)
6060 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6061 if test -n "$kargmax"; then
6062 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6063 else
6064 lt_cv_sys_max_cmd_len=32768
6065 fi
6066 ;;
6067 *)
718a6fd8
SE
6068 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6069 if test -n "$lt_cv_sys_max_cmd_len"; then
79887925
L
6070 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6071 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6072 else
6073 # Make teststring a little bigger before we do anything with it.
6074 # a 1K string should be a reasonable start.
6075 for i in 1 2 3 4 5 6 7 8 ; do
6076 teststring=$teststring$teststring
6077 done
6078 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6079 # If test is not a shell built-in, we'll probably end up computing a
6080 # maximum length that is only half of the actual maximum length, but
6081 # we can't tell.
3725885a
RW
6082 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6083 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
79887925
L
6084 test $i != 17 # 1/2 MB should be enough
6085 do
6086 i=`expr $i + 1`
6087 teststring=$teststring$teststring
6088 done
6089 # Only check the string length outside the loop.
6090 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6091 teststring=
6092 # Add a significant safety factor because C++ compilers can tack on
6093 # massive amounts of additional arguments before passing them to the
6094 # linker. It appears as though 1/2 is a usable value.
6095 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6096 fi
d7040cdb 6097 ;;
cfbc9945 6098 esac
5464f5a1 6099
252b5132 6100fi
cfbc9945 6101
d7040cdb 6102if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6104$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5464f5a1 6105else
81ecdfbb
RW
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6107$as_echo "none" >&6; }
5464f5a1 6108fi
d7040cdb 6109max_cmd_len=$lt_cv_sys_max_cmd_len
252b5132 6110
cfbc9945 6111
252b5132 6112
cfbc9945 6113
cfbc9945 6114
d7040cdb 6115
d7040cdb
SE
6116: ${CP="cp -f"}
6117: ${MV="mv -f"}
6118: ${RM="rm -f"}
6119
81ecdfbb
RW
6120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6121$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
d7040cdb
SE
6122# Try some XSI features
6123xsi_shell=no
6124( _lt_dummy="a/b/c"
6125 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
718a6fd8
SE
6126 = c,a/b,, \
6127 && eval 'test $(( 1 + 1 )) -eq 2 \
6128 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
d7040cdb 6129 && xsi_shell=yes
81ecdfbb
RW
6130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6131$as_echo "$xsi_shell" >&6; }
d7040cdb
SE
6132
6133
81ecdfbb
RW
6134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6135$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
d7040cdb
SE
6136lt_shell_append=no
6137( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6138 >/dev/null 2>&1 \
6139 && lt_shell_append=yes
81ecdfbb
RW
6140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6141$as_echo "$lt_shell_append" >&6; }
d7040cdb
SE
6142
6143
6144if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6145 lt_unset=unset
5464f5a1 6146else
d7040cdb 6147 lt_unset=false
5464f5a1 6148fi
252b5132 6149
d7040cdb
SE
6150
6151
6152
6153
6154# test EBCDIC or ASCII
6155case `echo X|tr X '\101'` in
6156 A) # ASCII based system
6157 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6158 lt_SP2NL='tr \040 \012'
6159 lt_NL2SP='tr \015\012 \040\040'
6160 ;;
6161 *) # EBCDIC based system
6162 lt_SP2NL='tr \100 \n'
6163 lt_NL2SP='tr \r\n \100\100'
6164 ;;
6165esac
6166
6167
6168
6169
6170
6171
6172
6173
6174
81ecdfbb
RW
6175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6176$as_echo_n "checking for $LD option to reload object files... " >&6; }
6177if test "${lt_cv_ld_reload_flag+set}" = set; then :
6178 $as_echo_n "(cached) " >&6
5464f5a1 6179else
d7040cdb
SE
6180 lt_cv_ld_reload_flag='-r'
6181fi
81ecdfbb
RW
6182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6183$as_echo "$lt_cv_ld_reload_flag" >&6; }
d7040cdb
SE
6184reload_flag=$lt_cv_ld_reload_flag
6185case $reload_flag in
6186"" | " "*) ;;
6187*) reload_flag=" $reload_flag" ;;
6188esac
6189reload_cmds='$LD$reload_flag -o $output$reload_objs'
6190case $host_os in
6191 darwin*)
6192 if test "$GCC" = yes; then
6193 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6194 else
6195 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6196 fi
6197 ;;
6198esac
6199
6200
6201
6202
6203
6204
6205
6206
6207
718a6fd8
SE
6208if test -n "$ac_tool_prefix"; then
6209 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6210set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
6211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6212$as_echo_n "checking for $ac_word... " >&6; }
6213if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6214 $as_echo_n "(cached) " >&6
718a6fd8
SE
6215else
6216 if test -n "$OBJDUMP"; then
6217 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6218else
6219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220for as_dir in $PATH
6221do
6222 IFS=$as_save_IFS
6223 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6224 for ac_exec_ext in '' $ac_executable_extensions; do
6225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 6226 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 6227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6228 break 2
6229 fi
6230done
81ecdfbb
RW
6231 done
6232IFS=$as_save_IFS
718a6fd8
SE
6233
6234fi
6235fi
6236OBJDUMP=$ac_cv_prog_OBJDUMP
6237if test -n "$OBJDUMP"; then
81ecdfbb
RW
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6239$as_echo "$OBJDUMP" >&6; }
718a6fd8 6240else
81ecdfbb
RW
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6242$as_echo "no" >&6; }
718a6fd8
SE
6243fi
6244
81ecdfbb 6245
718a6fd8
SE
6246fi
6247if test -z "$ac_cv_prog_OBJDUMP"; then
6248 ac_ct_OBJDUMP=$OBJDUMP
6249 # Extract the first word of "objdump", so it can be a program name with args.
6250set dummy objdump; ac_word=$2
81ecdfbb
RW
6251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6252$as_echo_n "checking for $ac_word... " >&6; }
6253if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6254 $as_echo_n "(cached) " >&6
718a6fd8
SE
6255else
6256 if test -n "$ac_ct_OBJDUMP"; then
6257 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6258else
6259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260for as_dir in $PATH
6261do
6262 IFS=$as_save_IFS
6263 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6264 for ac_exec_ext in '' $ac_executable_extensions; do
6265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 6266 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 6267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6268 break 2
6269 fi
6270done
81ecdfbb
RW
6271 done
6272IFS=$as_save_IFS
718a6fd8 6273
718a6fd8
SE
6274fi
6275fi
6276ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6277if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6279$as_echo "$ac_ct_OBJDUMP" >&6; }
718a6fd8 6280else
81ecdfbb
RW
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6282$as_echo "no" >&6; }
718a6fd8
SE
6283fi
6284
81ecdfbb
RW
6285 if test "x$ac_ct_OBJDUMP" = x; then
6286 OBJDUMP="false"
6287 else
6288 case $cross_compiling:$ac_tool_warned in
6289yes:)
6290{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6291$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6292ac_tool_warned=yes ;;
6293esac
6294 OBJDUMP=$ac_ct_OBJDUMP
6295 fi
718a6fd8
SE
6296else
6297 OBJDUMP="$ac_cv_prog_OBJDUMP"
6298fi
6299
6300test -z "$OBJDUMP" && OBJDUMP=objdump
6301
6302
6303
6304
6305
6306
6307
6308
d7040cdb 6309
81ecdfbb
RW
6310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6311$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6312if test "${lt_cv_deplibs_check_method+set}" = set; then :
6313 $as_echo_n "(cached) " >&6
d7040cdb
SE
6314else
6315 lt_cv_file_magic_cmd='$MAGIC_CMD'
6316lt_cv_file_magic_test_file=
6317lt_cv_deplibs_check_method='unknown'
6318# Need to set the preceding variable on all platforms that support
6319# interlibrary dependencies.
6320# 'none' -- dependencies not supported.
6321# `unknown' -- same as none, but documents that we really don't know.
6322# 'pass_all' -- all dependencies passed with no checks.
6323# 'test_compile' -- check by making test program.
6324# 'file_magic [[regex]]' -- check by looking for files in library path
6325# which responds to the $file_magic_cmd with a given extended regex.
6326# If you have `file' or equivalent on your system and you're not sure
6327# whether `pass_all' will *always* work, you probably want this one.
6328
6329case $host_os in
e81819a5 6330aix[4-9]*)
d7040cdb
SE
6331 lt_cv_deplibs_check_method=pass_all
6332 ;;
6333
6334beos*)
6335 lt_cv_deplibs_check_method=pass_all
6336 ;;
6337
6338bsdi[45]*)
6339 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6340 lt_cv_file_magic_cmd='/usr/bin/file -L'
6341 lt_cv_file_magic_test_file=/shlib/libc.so
6342 ;;
6343
6344cygwin*)
6345 # func_win32_libid is a shell function defined in ltmain.sh
6346 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6347 lt_cv_file_magic_cmd='func_win32_libid'
6348 ;;
6349
6350mingw* | pw32*)
6351 # Base MSYS/MinGW do not provide the 'file' command needed by
6352 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6353 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
6354 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6355 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
d7040cdb
SE
6356 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6357 lt_cv_file_magic_cmd='func_win32_libid'
6358 else
6359 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6360 lt_cv_file_magic_cmd='$OBJDUMP -f'
6361 fi
6362 ;;
6363
3725885a 6364cegcc*)
718a6fd8
SE
6365 # use the weaker test based on 'objdump'. See mingw*.
6366 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6367 lt_cv_file_magic_cmd='$OBJDUMP -f'
6368 ;;
6369
d7040cdb
SE
6370darwin* | rhapsody*)
6371 lt_cv_deplibs_check_method=pass_all
cfbc9945 6372 ;;
d7040cdb
SE
6373
6374freebsd* | dragonfly*)
6375 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6376 case $host_cpu in
6377 i*86 )
6378 # Not sure whether the presence of OpenBSD here was a mistake.
6379 # Let's accept both of them until this is cleared up.
6380 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6381 lt_cv_file_magic_cmd=/usr/bin/file
6382 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6383 ;;
6384 esac
6385 else
6386 lt_cv_deplibs_check_method=pass_all
6387 fi
6388 ;;
6389
6390gnu*)
6391 lt_cv_deplibs_check_method=pass_all
cfbc9945 6392 ;;
d7040cdb 6393
3725885a
RW
6394haiku*)
6395 lt_cv_deplibs_check_method=pass_all
6396 ;;
6397
d7040cdb
SE
6398hpux10.20* | hpux11*)
6399 lt_cv_file_magic_cmd=/usr/bin/file
6400 case $host_cpu in
6401 ia64*)
6402 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6403 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6404 ;;
6405 hppa*64*)
3725885a 6406 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]'
d7040cdb
SE
6407 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6408 ;;
cfbc9945 6409 *)
3725885a 6410 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
d7040cdb
SE
6411 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6412 ;;
6413 esac
6414 ;;
6be7c12c 6415
d7040cdb
SE
6416interix[3-9]*)
6417 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6418 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6419 ;;
cfbc9945 6420
d7040cdb
SE
6421irix5* | irix6* | nonstopux*)
6422 case $LD in
6423 *-32|*"-32 ") libmagic=32-bit;;
6424 *-n32|*"-n32 ") libmagic=N32;;
6425 *-64|*"-64 ") libmagic=64-bit;;
6426 *) libmagic=never-match;;
6427 esac
6428 lt_cv_deplibs_check_method=pass_all
cfbc9945 6429 ;;
cfbc9945 6430
d7040cdb 6431# This must be Linux ELF.
58e24671 6432linux* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb
SE
6433 lt_cv_deplibs_check_method=pass_all
6434 ;;
5464f5a1 6435
d7040cdb
SE
6436netbsd*)
6437 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6438 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cfbc9945 6439 else
d7040cdb 6440 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
cfbc9945 6441 fi
d7040cdb
SE
6442 ;;
6443
6444newos6*)
6445 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6446 lt_cv_file_magic_cmd=/usr/bin/file
6447 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6448 ;;
6449
6450*nto* | *qnx*)
6451 lt_cv_deplibs_check_method=pass_all
6452 ;;
cfbc9945 6453
d7040cdb
SE
6454openbsd*)
6455 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6456 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6457 else
6458 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cfbc9945
SE
6459 fi
6460 ;;
d7040cdb
SE
6461
6462osf3* | osf4* | osf5*)
6463 lt_cv_deplibs_check_method=pass_all
6464 ;;
6465
6466rdos*)
6467 lt_cv_deplibs_check_method=pass_all
6468 ;;
6469
6470solaris*)
6471 lt_cv_deplibs_check_method=pass_all
6472 ;;
6473
6474sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6475 lt_cv_deplibs_check_method=pass_all
6476 ;;
6477
6478sysv4 | sysv4.3*)
6479 case $host_vendor in
6480 motorola)
6481 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]'
6482 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6483 ;;
6484 ncr)
6485 lt_cv_deplibs_check_method=pass_all
6486 ;;
6487 sequent)
6488 lt_cv_file_magic_cmd='/bin/file'
6489 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6490 ;;
6491 sni)
6492 lt_cv_file_magic_cmd='/bin/file'
6493 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6494 lt_cv_file_magic_test_file=/lib/libc.so
6495 ;;
6496 siemens)
6497 lt_cv_deplibs_check_method=pass_all
6498 ;;
6499 pc)
6500 lt_cv_deplibs_check_method=pass_all
6501 ;;
6502 esac
6503 ;;
6504
6505tpf*)
6506 lt_cv_deplibs_check_method=pass_all
6507 ;;
cfbc9945
SE
6508esac
6509
d7040cdb 6510fi
81ecdfbb
RW
6511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6512$as_echo "$lt_cv_deplibs_check_method" >&6; }
d7040cdb
SE
6513file_magic_cmd=$lt_cv_file_magic_cmd
6514deplibs_check_method=$lt_cv_deplibs_check_method
6515test -z "$deplibs_check_method" && deplibs_check_method=unknown
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
cfbc9945 6528if test -n "$ac_tool_prefix"; then
d7040cdb
SE
6529 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6530set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
6531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6532$as_echo_n "checking for $ac_word... " >&6; }
6533if test "${ac_cv_prog_AR+set}" = set; then :
6534 $as_echo_n "(cached) " >&6
5464f5a1 6535else
d7040cdb
SE
6536 if test -n "$AR"; then
6537 ac_cv_prog_AR="$AR" # Let the user override the test.
5464f5a1
NN
6538else
6539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540for as_dir in $PATH
6541do
6542 IFS=$as_save_IFS
6543 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6544 for ac_exec_ext in '' $ac_executable_extensions; do
6545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 6546 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 6547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
6548 break 2
6549 fi
6550done
81ecdfbb
RW
6551 done
6552IFS=$as_save_IFS
5464f5a1
NN
6553
6554fi
6555fi
d7040cdb
SE
6556AR=$ac_cv_prog_AR
6557if test -n "$AR"; then
81ecdfbb
RW
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6559$as_echo "$AR" >&6; }
5464f5a1 6560else
81ecdfbb
RW
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6562$as_echo "no" >&6; }
5464f5a1
NN
6563fi
6564
81ecdfbb 6565
5464f5a1 6566fi
d7040cdb
SE
6567if test -z "$ac_cv_prog_AR"; then
6568 ac_ct_AR=$AR
6569 # Extract the first word of "ar", so it can be a program name with args.
6570set dummy ar; ac_word=$2
81ecdfbb
RW
6571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6572$as_echo_n "checking for $ac_word... " >&6; }
6573if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6574 $as_echo_n "(cached) " >&6
252b5132 6575else
d7040cdb
SE
6576 if test -n "$ac_ct_AR"; then
6577 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
252b5132 6578else
5464f5a1
NN
6579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580for as_dir in $PATH
6581do
6582 IFS=$as_save_IFS
6583 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6584 for ac_exec_ext in '' $ac_executable_extensions; do
6585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 6586 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 6587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
6588 break 2
6589 fi
6590done
81ecdfbb
RW
6591 done
6592IFS=$as_save_IFS
5464f5a1 6593
5464f5a1
NN
6594fi
6595fi
d7040cdb
SE
6596ac_ct_AR=$ac_cv_prog_ac_ct_AR
6597if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6599$as_echo "$ac_ct_AR" >&6; }
d7040cdb 6600else
81ecdfbb
RW
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6602$as_echo "no" >&6; }
5464f5a1
NN
6603fi
6604
81ecdfbb
RW
6605 if test "x$ac_ct_AR" = x; then
6606 AR="false"
6607 else
6608 case $cross_compiling:$ac_tool_warned in
6609yes:)
6610{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6611$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6612ac_tool_warned=yes ;;
6613esac
6614 AR=$ac_ct_AR
6615 fi
cfbc9945 6616else
d7040cdb 6617 AR="$ac_cv_prog_AR"
5464f5a1 6618fi
cfbc9945 6619
d7040cdb
SE
6620test -z "$AR" && AR=ar
6621test -z "$AR_FLAGS" && AR_FLAGS=cru
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
cfbc9945
SE
6633if test -n "$ac_tool_prefix"; then
6634 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6635set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6637$as_echo_n "checking for $ac_word... " >&6; }
6638if test "${ac_cv_prog_STRIP+set}" = set; then :
6639 $as_echo_n "(cached) " >&6
5464f5a1 6640else
cfbc9945
SE
6641 if test -n "$STRIP"; then
6642 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5464f5a1
NN
6643else
6644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645for as_dir in $PATH
6646do
6647 IFS=$as_save_IFS
6648 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6649 for ac_exec_ext in '' $ac_executable_extensions; do
6650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945 6651 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
6653 break 2
6654 fi
6655done
81ecdfbb
RW
6656 done
6657IFS=$as_save_IFS
5464f5a1
NN
6658
6659fi
6660fi
cfbc9945
SE
6661STRIP=$ac_cv_prog_STRIP
6662if test -n "$STRIP"; then
81ecdfbb
RW
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6664$as_echo "$STRIP" >&6; }
5464f5a1 6665else
81ecdfbb
RW
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6667$as_echo "no" >&6; }
5464f5a1
NN
6668fi
6669
81ecdfbb 6670
252b5132 6671fi
cfbc9945
SE
6672if test -z "$ac_cv_prog_STRIP"; then
6673 ac_ct_STRIP=$STRIP
6674 # Extract the first word of "strip", so it can be a program name with args.
6675set dummy strip; ac_word=$2
81ecdfbb
RW
6676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6677$as_echo_n "checking for $ac_word... " >&6; }
6678if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6679 $as_echo_n "(cached) " >&6
5464f5a1 6680else
cfbc9945
SE
6681 if test -n "$ac_ct_STRIP"; then
6682 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5464f5a1
NN
6683else
6684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685for as_dir in $PATH
6686do
6687 IFS=$as_save_IFS
6688 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6689 for ac_exec_ext in '' $ac_executable_extensions; do
6690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945 6691 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
6693 break 2
6694 fi
6695done
81ecdfbb
RW
6696 done
6697IFS=$as_save_IFS
5464f5a1
NN
6698
6699fi
6700fi
cfbc9945
SE
6701ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6702if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6704$as_echo "$ac_ct_STRIP" >&6; }
5464f5a1 6705else
81ecdfbb
RW
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6707$as_echo "no" >&6; }
5464f5a1
NN
6708fi
6709
81ecdfbb
RW
6710 if test "x$ac_ct_STRIP" = x; then
6711 STRIP=":"
6712 else
6713 case $cross_compiling:$ac_tool_warned in
6714yes:)
6715{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6716$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6717ac_tool_warned=yes ;;
6718esac
6719 STRIP=$ac_ct_STRIP
6720 fi
cfbc9945
SE
6721else
6722 STRIP="$ac_cv_prog_STRIP"
5464f5a1
NN
6723fi
6724
d7040cdb 6725test -z "$STRIP" && STRIP=:
5464f5a1 6726
cfbc9945
SE
6727
6728
cfbc9945 6729
cfbc9945
SE
6730
6731
d7040cdb
SE
6732if test -n "$ac_tool_prefix"; then
6733 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6734set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6736$as_echo_n "checking for $ac_word... " >&6; }
6737if test "${ac_cv_prog_RANLIB+set}" = set; then :
6738 $as_echo_n "(cached) " >&6
cfbc9945 6739else
d7040cdb
SE
6740 if test -n "$RANLIB"; then
6741 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6742else
6743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744for as_dir in $PATH
6745do
6746 IFS=$as_save_IFS
6747 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6748 for ac_exec_ext in '' $ac_executable_extensions; do
6749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 6750 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 6751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 6752 break 2
cfbc9945 6753 fi
d7040cdb 6754done
81ecdfbb
RW
6755 done
6756IFS=$as_save_IFS
cfbc9945 6757
d7040cdb
SE
6758fi
6759fi
6760RANLIB=$ac_cv_prog_RANLIB
6761if test -n "$RANLIB"; then
81ecdfbb
RW
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6763$as_echo "$RANLIB" >&6; }
d7040cdb 6764else
81ecdfbb
RW
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6766$as_echo "no" >&6; }
d7040cdb 6767fi
cfbc9945 6768
81ecdfbb 6769
d7040cdb
SE
6770fi
6771if test -z "$ac_cv_prog_RANLIB"; then
6772 ac_ct_RANLIB=$RANLIB
6773 # Extract the first word of "ranlib", so it can be a program name with args.
6774set dummy ranlib; ac_word=$2
81ecdfbb
RW
6775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6776$as_echo_n "checking for $ac_word... " >&6; }
6777if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6778 $as_echo_n "(cached) " >&6
d7040cdb
SE
6779else
6780 if test -n "$ac_ct_RANLIB"; then
6781 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6782else
6783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784for as_dir in $PATH
6785do
6786 IFS=$as_save_IFS
6787 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6788 for ac_exec_ext in '' $ac_executable_extensions; do
6789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 6790 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 6791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 6792 break 2
cfbc9945 6793 fi
d7040cdb 6794done
81ecdfbb
RW
6795 done
6796IFS=$as_save_IFS
cfbc9945 6797
d7040cdb
SE
6798fi
6799fi
6800ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6801if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6803$as_echo "$ac_ct_RANLIB" >&6; }
cfbc9945 6804else
81ecdfbb
RW
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6806$as_echo "no" >&6; }
d7040cdb 6807fi
5464f5a1 6808
81ecdfbb
RW
6809 if test "x$ac_ct_RANLIB" = x; then
6810 RANLIB=":"
6811 else
6812 case $cross_compiling:$ac_tool_warned in
6813yes:)
6814{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6815$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6816ac_tool_warned=yes ;;
6817esac
6818 RANLIB=$ac_ct_RANLIB
6819 fi
d7040cdb
SE
6820else
6821 RANLIB="$ac_cv_prog_RANLIB"
6822fi
5464f5a1 6823
d7040cdb 6824test -z "$RANLIB" && RANLIB=:
5464f5a1 6825
5464f5a1 6826
5464f5a1 6827
cfbc9945 6828
cfbc9945 6829
d7040cdb
SE
6830
6831# Determine commands to create old-style static archives.
718a6fd8 6832old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
d7040cdb
SE
6833old_postinstall_cmds='chmod 644 $oldlib'
6834old_postuninstall_cmds=
6835
6836if test -n "$RANLIB"; then
6837 case $host_os in
6838 openbsd*)
6839 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6840 ;;
6841 *)
6842 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6843 ;;
6844 esac
6845 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
cfbc9945 6846fi
cfbc9945 6847
3725885a
RW
6848case $host_os in
6849 darwin*)
6850 lock_old_archive_extraction=yes ;;
6851 *)
6852 lock_old_archive_extraction=no ;;
6853esac
6854
6855
6856
6857
6858
6859
cfbc9945 6860
cfbc9945
SE
6861
6862
cfbc9945 6863
cfbc9945 6864
cfbc9945 6865
cfbc9945 6866
cfbc9945
SE
6867
6868
cfbc9945 6869
cfbc9945 6870
cfbc9945
SE
6871
6872
6873
6874
6875
6876
6877
5464f5a1 6878
5464f5a1 6879
cfbc9945
SE
6880
6881
6882
5464f5a1 6883
5464f5a1 6884
cfbc9945
SE
6885
6886
6887
5464f5a1 6888
cfbc9945
SE
6889
6890
6891
6892
d7040cdb
SE
6893# If no C compiler was specified, use CC.
6894LTCC=${LTCC-"$CC"}
cfbc9945 6895
d7040cdb
SE
6896# If no C compiler flags were specified, use CFLAGS.
6897LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
cfbc9945 6898
d7040cdb
SE
6899# Allow CC to be a program name with arguments.
6900compiler=$CC
cfbc9945 6901
cfbc9945 6902
d7040cdb 6903# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
6904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6905$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6906if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6907 $as_echo_n "(cached) " >&6
d7040cdb 6908else
5464f5a1 6909
d7040cdb
SE
6910# These are sane defaults that work on at least a few old systems.
6911# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5464f5a1 6912
d7040cdb
SE
6913# Character class describing NM global symbol codes.
6914symcode='[BCDEGRST]'
6915
6916# Regexp to match symbols that can be accessed directly from C.
6917sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6918
6919# Define system-specific variables.
6920case $host_os in
6921aix*)
6922 symcode='[BCDT]'
6923 ;;
718a6fd8 6924cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
6925 symcode='[ABCDGISTW]'
6926 ;;
6927hpux*)
6928 if test "$host_cpu" = ia64; then
6929 symcode='[ABCDEGRST]'
6930 fi
6931 ;;
6932irix* | nonstopux*)
6933 symcode='[BCDEGRST]'
6934 ;;
6935osf*)
6936 symcode='[BCDEGQRST]'
6937 ;;
6938solaris*)
6939 symcode='[BDRT]'
6940 ;;
6941sco3.2v5*)
6942 symcode='[DT]'
6943 ;;
6944sysv4.2uw2*)
6945 symcode='[DT]'
6946 ;;
6947sysv5* | sco5v6* | unixware* | OpenUNIX*)
6948 symcode='[ABDT]'
6949 ;;
6950sysv4)
6951 symcode='[DFNSTU]'
6952 ;;
cfbc9945 6953esac
5464f5a1 6954
d7040cdb
SE
6955# If we're using GNU nm, then use its standard symbol codes.
6956case `$NM -V 2>&1` in
6957*GNU* | *'with BFD'*)
6958 symcode='[ABCDGIRSTW]' ;;
6959esac
5464f5a1 6960
d7040cdb
SE
6961# Transform an extracted symbol line into a proper C declaration.
6962# Some systems (esp. on ia64) link data and code symbols differently,
6963# so use this general approach.
6964lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5464f5a1 6965
d7040cdb
SE
6966# Transform an extracted symbol line into symbol name and symbol address
6967lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
718a6fd8 6968lt_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'"
5464f5a1 6969
d7040cdb
SE
6970# Handle CRLF in mingw tool chain
6971opt_cr=
6972case $build_os in
6973mingw*)
6974 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6975 ;;
6976esac
5464f5a1 6977
d7040cdb
SE
6978# Try without a prefix underscore, then with it.
6979for ac_symprfx in "" "_"; do
6980
6981 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6982 symxfrm="\\1 $ac_symprfx\\2 \\2"
6983
6984 # Write the raw and C identifiers.
6985 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6986 # Fake it for dumpbin and say T for any non-static function
6987 # and D for any global variable.
6988 # Also find C++ and __fastcall symbols from MSVC++,
6989 # which start with @ or ?.
6990 lt_cv_sys_global_symbol_pipe="$AWK '"\
6991" {last_section=section; section=\$ 3};"\
6992" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6993" \$ 0!~/External *\|/{next};"\
6994" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6995" {if(hide[section]) next};"\
6996" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6997" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6998" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6999" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7000" ' prfx=^$ac_symprfx"
7001 else
7002 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7003 fi
cfbc9945 7004
d7040cdb
SE
7005 # Check to see that the pipe works correctly.
7006 pipe_works=no
cfbc9945 7007
d7040cdb
SE
7008 rm -f conftest*
7009 cat > conftest.$ac_ext <<_LT_EOF
7010#ifdef __cplusplus
7011extern "C" {
7012#endif
7013char nm_test_var;
7014void nm_test_func(void);
7015void nm_test_func(void){}
7016#ifdef __cplusplus
7017}
7018#endif
7019int main(){nm_test_var='a';nm_test_func();return(0);}
7020_LT_EOF
cfbc9945 7021
81ecdfbb 7022 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d7040cdb
SE
7023 (eval $ac_compile) 2>&5
7024 ac_status=$?
81ecdfbb
RW
7025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7026 test $ac_status = 0; }; then
d7040cdb
SE
7027 # Now try to grab the symbols.
7028 nlist=conftest.nm
3725885a
RW
7029 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7030 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
d7040cdb 7031 ac_status=$?
81ecdfbb
RW
7032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7033 test $ac_status = 0; } && test -s "$nlist"; then
d7040cdb
SE
7034 # Try sorting and uniquifying the output.
7035 if sort "$nlist" | uniq > "$nlist"T; then
7036 mv -f "$nlist"T "$nlist"
7037 else
7038 rm -f "$nlist"T
7039 fi
cfbc9945 7040
d7040cdb
SE
7041 # Make sure that we snagged all the symbols we need.
7042 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7043 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7044 cat <<_LT_EOF > conftest.$ac_ext
7045#ifdef __cplusplus
7046extern "C" {
7047#endif
cfbc9945 7048
d7040cdb
SE
7049_LT_EOF
7050 # Now generate the symbol file.
7051 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5464f5a1 7052
d7040cdb 7053 cat <<_LT_EOF >> conftest.$ac_ext
cfbc9945 7054
d7040cdb
SE
7055/* The mapping between symbol names and symbols. */
7056const struct {
7057 const char *name;
7058 void *address;
7059}
7060lt__PROGRAM__LTX_preloaded_symbols[] =
7061{
7062 { "@PROGRAM@", (void *) 0 },
7063_LT_EOF
7064 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7065 cat <<\_LT_EOF >> conftest.$ac_ext
7066 {0, (void *) 0}
7067};
7068
7069/* This works around a problem in FreeBSD linker */
7070#ifdef FREEBSD_WORKAROUND
7071static const void *lt_preloaded_setup() {
7072 return lt__PROGRAM__LTX_preloaded_symbols;
7073}
7074#endif
cfbc9945 7075
d7040cdb
SE
7076#ifdef __cplusplus
7077}
7078#endif
7079_LT_EOF
7080 # Now try linking the two files.
7081 mv conftest.$ac_objext conftstm.$ac_objext
7082 lt_save_LIBS="$LIBS"
7083 lt_save_CFLAGS="$CFLAGS"
7084 LIBS="conftstm.$ac_objext"
7085 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 7086 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
7087 (eval $ac_link) 2>&5
7088 ac_status=$?
81ecdfbb
RW
7089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7090 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
d7040cdb
SE
7091 pipe_works=yes
7092 fi
7093 LIBS="$lt_save_LIBS"
7094 CFLAGS="$lt_save_CFLAGS"
7095 else
7096 echo "cannot find nm_test_func in $nlist" >&5
7097 fi
7098 else
7099 echo "cannot find nm_test_var in $nlist" >&5
7100 fi
7101 else
7102 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7103 fi
7104 else
7105 echo "$progname: failed program was:" >&5
7106 cat conftest.$ac_ext >&5
7107 fi
718a6fd8 7108 rm -rf conftest* conftst*
cfbc9945 7109
d7040cdb
SE
7110 # Do not use the global_symbol_pipe unless it works.
7111 if test "$pipe_works" = yes; then
7112 break
7113 else
7114 lt_cv_sys_global_symbol_pipe=
7115 fi
7116done
cfbc9945 7117
252b5132 7118fi
5464f5a1 7119
d7040cdb
SE
7120if test -z "$lt_cv_sys_global_symbol_pipe"; then
7121 lt_cv_sys_global_symbol_to_cdecl=
7122fi
7123if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7125$as_echo "failed" >&6; }
b3baf5d0 7126else
81ecdfbb
RW
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7128$as_echo "ok" >&6; }
d7040cdb 7129fi
5464f5a1 7130
cfbc9945 7131
b3baf5d0 7132
cfbc9945
SE
7133
7134
7135
7136
5464f5a1 7137
4a2a2686
HPN
7138
7139
7140
cfbc9945
SE
7141
7142
cfbc9945 7143
cfbc9945 7144
718a6fd8
SE
7145
7146
7147
7148
7149
9d7cbccd 7150
20e95c23 7151
81ecdfbb
RW
7152# Check whether --enable-libtool-lock was given.
7153if test "${enable_libtool_lock+set}" = set; then :
7154 enableval=$enable_libtool_lock;
7155fi
20e95c23 7156
d7040cdb 7157test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
20e95c23 7158
d7040cdb
SE
7159# Some flags need to be propagated to the compiler or linker for good
7160# libtool support.
7161case $host in
7162ia64-*-hpux*)
7163 # Find out which ABI we are using.
7164 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d7040cdb
SE
7166 (eval $ac_compile) 2>&5
7167 ac_status=$?
81ecdfbb
RW
7168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7169 test $ac_status = 0; }; then
d7040cdb
SE
7170 case `/usr/bin/file conftest.$ac_objext` in
7171 *ELF-32*)
7172 HPUX_IA64_MODE="32"
7173 ;;
7174 *ELF-64*)
7175 HPUX_IA64_MODE="64"
7176 ;;
20e95c23 7177 esac
d7040cdb
SE
7178 fi
7179 rm -rf conftest*
7180 ;;
7181*-*-irix6*)
7182 # Find out which ABI we are using.
3725885a 7183 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
81ecdfbb 7184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d7040cdb
SE
7185 (eval $ac_compile) 2>&5
7186 ac_status=$?
81ecdfbb
RW
7187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7188 test $ac_status = 0; }; then
d7040cdb
SE
7189 if test "$lt_cv_prog_gnu_ld" = yes; then
7190 case `/usr/bin/file conftest.$ac_objext` in
7191 *32-bit*)
7192 LD="${LD-ld} -melf32bsmip"
7193 ;;
7194 *N32*)
7195 LD="${LD-ld} -melf32bmipn32"
7196 ;;
7197 *64-bit*)
7198 LD="${LD-ld} -melf64bmip"
7199 ;;
7200 esac
20e95c23 7201 else
d7040cdb
SE
7202 case `/usr/bin/file conftest.$ac_objext` in
7203 *32-bit*)
7204 LD="${LD-ld} -32"
7205 ;;
7206 *N32*)
7207 LD="${LD-ld} -n32"
7208 ;;
7209 *64-bit*)
7210 LD="${LD-ld} -64"
7211 ;;
20e95c23
DJ
7212 esac
7213 fi
d7040cdb
SE
7214 fi
7215 rm -rf conftest*
7216 ;;
20e95c23 7217
cc9afea3 7218x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
d7040cdb
SE
7219s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7220 # Find out which ABI we are using.
7221 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d7040cdb
SE
7223 (eval $ac_compile) 2>&5
7224 ac_status=$?
81ecdfbb
RW
7225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7226 test $ac_status = 0; }; then
d7040cdb
SE
7227 case `/usr/bin/file conftest.o` in
7228 *32-bit*)
7229 case $host in
7230 x86_64-*kfreebsd*-gnu)
7231 LD="${LD-ld} -m elf_i386_fbsd"
7232 ;;
7233 x86_64-*linux*)
6d2920c8
L
7234 case `/usr/bin/file conftest.o` in
7235 *x86-64*)
7236 LD="${LD-ld} -m elf32_x86_64"
7237 ;;
7238 *)
7239 LD="${LD-ld} -m elf_i386"
7240 ;;
7241 esac
d7040cdb 7242 ;;
cc9afea3
AM
7243 powerpc64le-*linux*)
7244 LD="${LD-ld} -m elf32lppclinux"
7245 ;;
7246 powerpc64-*linux*)
d7040cdb
SE
7247 LD="${LD-ld} -m elf32ppclinux"
7248 ;;
7249 s390x-*linux*)
7250 LD="${LD-ld} -m elf_s390"
7251 ;;
7252 sparc64-*linux*)
7253 LD="${LD-ld} -m elf32_sparc"
7254 ;;
7255 esac
7256 ;;
7257 *64-bit*)
7258 case $host in
7259 x86_64-*kfreebsd*-gnu)
7260 LD="${LD-ld} -m elf_x86_64_fbsd"
7261 ;;
7262 x86_64-*linux*)
7263 LD="${LD-ld} -m elf_x86_64"
7264 ;;
cc9afea3
AM
7265 powerpcle-*linux*)
7266 LD="${LD-ld} -m elf64lppc"
7267 ;;
7268 powerpc-*linux*)
d7040cdb
SE
7269 LD="${LD-ld} -m elf64ppc"
7270 ;;
7271 s390*-*linux*|s390*-*tpf*)
7272 LD="${LD-ld} -m elf64_s390"
7273 ;;
7274 sparc*-*linux*)
7275 LD="${LD-ld} -m elf64_sparc"
7276 ;;
7277 esac
7278 ;;
20e95c23
DJ
7279 esac
7280 fi
d7040cdb 7281 rm -rf conftest*
7357c5b6 7282 ;;
d7040cdb 7283
7357c5b6
AM
7284*-*-sco3.2v5*)
7285 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7286 SAVE_CFLAGS="$CFLAGS"
7287 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7289$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7290if test "${lt_cv_cc_needs_belf+set}" = set; then :
7291 $as_echo_n "(cached) " >&6
d7040cdb 7292else
7357c5b6
AM
7293 ac_ext=c
7294ac_cpp='$CPP $CPPFLAGS'
7295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7297ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 7298
81ecdfbb 7299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 7300/* end confdefs.h. */
d7040cdb 7301
d7040cdb
SE
7302int
7303main ()
7304{
7357c5b6
AM
7305
7306 ;
7307 return 0;
d7040cdb
SE
7308}
7309_ACEOF
81ecdfbb 7310if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 7311 lt_cv_cc_needs_belf=yes
d7040cdb 7312else
81ecdfbb 7313 lt_cv_cc_needs_belf=no
d7040cdb 7314fi
81ecdfbb
RW
7315rm -f core conftest.err conftest.$ac_objext \
7316 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
7317 ac_ext=c
7318ac_cpp='$CPP $CPPFLAGS'
7319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7321ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
7322
7323fi
81ecdfbb
RW
7324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7325$as_echo "$lt_cv_cc_needs_belf" >&6; }
7357c5b6
AM
7326 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7327 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7328 CFLAGS="$SAVE_CFLAGS"
7329 fi
7330 ;;
7331sparc*-*solaris*)
7332 # Find out which ABI we are using.
7333 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7335 (eval $ac_compile) 2>&5
7336 ac_status=$?
81ecdfbb
RW
7337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7338 test $ac_status = 0; }; then
7357c5b6
AM
7339 case `/usr/bin/file conftest.o` in
7340 *64-bit*)
7341 case $lt_cv_prog_gnu_ld in
7342 yes*) LD="${LD-ld} -m elf64_sparc" ;;
718a6fd8
SE
7343 *)
7344 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7345 LD="${LD-ld} -64"
7346 fi
7347 ;;
7357c5b6
AM
7348 esac
7349 ;;
7350 esac
7351 fi
7352 rm -rf conftest*
7353 ;;
7354esac
d7040cdb 7355
7357c5b6 7356need_locks="$enable_libtool_lock"
d7040cdb
SE
7357
7358
718a6fd8
SE
7359 case $host_os in
7360 rhapsody* | darwin*)
7361 if test -n "$ac_tool_prefix"; then
7362 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7363set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
7364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7365$as_echo_n "checking for $ac_word... " >&6; }
7366if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7367 $as_echo_n "(cached) " >&6
718a6fd8
SE
7368else
7369 if test -n "$DSYMUTIL"; then
7370 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7371else
7372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7373for as_dir in $PATH
7374do
7375 IFS=$as_save_IFS
7376 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7377 for ac_exec_ext in '' $ac_executable_extensions; do
7378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7379 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 7380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7381 break 2
7382 fi
7383done
81ecdfbb
RW
7384 done
7385IFS=$as_save_IFS
718a6fd8
SE
7386
7387fi
7388fi
7389DSYMUTIL=$ac_cv_prog_DSYMUTIL
7390if test -n "$DSYMUTIL"; then
81ecdfbb
RW
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7392$as_echo "$DSYMUTIL" >&6; }
718a6fd8 7393else
81ecdfbb
RW
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7395$as_echo "no" >&6; }
718a6fd8
SE
7396fi
7397
81ecdfbb 7398
718a6fd8
SE
7399fi
7400if test -z "$ac_cv_prog_DSYMUTIL"; then
7401 ac_ct_DSYMUTIL=$DSYMUTIL
7402 # Extract the first word of "dsymutil", so it can be a program name with args.
7403set dummy dsymutil; ac_word=$2
81ecdfbb
RW
7404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7405$as_echo_n "checking for $ac_word... " >&6; }
7406if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7407 $as_echo_n "(cached) " >&6
718a6fd8
SE
7408else
7409 if test -n "$ac_ct_DSYMUTIL"; then
7410 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7411else
7412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413for as_dir in $PATH
7414do
7415 IFS=$as_save_IFS
7416 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7417 for ac_exec_ext in '' $ac_executable_extensions; do
7418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7419 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 7420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7421 break 2
7422 fi
7423done
81ecdfbb
RW
7424 done
7425IFS=$as_save_IFS
718a6fd8 7426
718a6fd8
SE
7427fi
7428fi
7429ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7430if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7432$as_echo "$ac_ct_DSYMUTIL" >&6; }
718a6fd8 7433else
81ecdfbb
RW
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7435$as_echo "no" >&6; }
718a6fd8
SE
7436fi
7437
81ecdfbb
RW
7438 if test "x$ac_ct_DSYMUTIL" = x; then
7439 DSYMUTIL=":"
7440 else
7441 case $cross_compiling:$ac_tool_warned in
7442yes:)
7443{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7444$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7445ac_tool_warned=yes ;;
7446esac
7447 DSYMUTIL=$ac_ct_DSYMUTIL
7448 fi
718a6fd8
SE
7449else
7450 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7451fi
7452
7453 if test -n "$ac_tool_prefix"; then
7454 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7455set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
7456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7457$as_echo_n "checking for $ac_word... " >&6; }
7458if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7459 $as_echo_n "(cached) " >&6
718a6fd8
SE
7460else
7461 if test -n "$NMEDIT"; then
7462 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7463else
7464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465for as_dir in $PATH
7466do
7467 IFS=$as_save_IFS
7468 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7469 for ac_exec_ext in '' $ac_executable_extensions; do
7470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7471 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 7472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7473 break 2
7474 fi
7475done
81ecdfbb
RW
7476 done
7477IFS=$as_save_IFS
718a6fd8
SE
7478
7479fi
7480fi
7481NMEDIT=$ac_cv_prog_NMEDIT
7482if test -n "$NMEDIT"; then
81ecdfbb
RW
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7484$as_echo "$NMEDIT" >&6; }
718a6fd8 7485else
81ecdfbb
RW
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7487$as_echo "no" >&6; }
718a6fd8
SE
7488fi
7489
81ecdfbb 7490
718a6fd8
SE
7491fi
7492if test -z "$ac_cv_prog_NMEDIT"; then
7493 ac_ct_NMEDIT=$NMEDIT
7494 # Extract the first word of "nmedit", so it can be a program name with args.
7495set dummy nmedit; ac_word=$2
81ecdfbb
RW
7496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7497$as_echo_n "checking for $ac_word... " >&6; }
7498if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7499 $as_echo_n "(cached) " >&6
718a6fd8
SE
7500else
7501 if test -n "$ac_ct_NMEDIT"; then
7502 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7503else
7504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505for as_dir in $PATH
7506do
7507 IFS=$as_save_IFS
7508 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7509 for ac_exec_ext in '' $ac_executable_extensions; do
7510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7511 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 7512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7513 break 2
7514 fi
7515done
81ecdfbb
RW
7516 done
7517IFS=$as_save_IFS
718a6fd8 7518
718a6fd8
SE
7519fi
7520fi
7521ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7522if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7524$as_echo "$ac_ct_NMEDIT" >&6; }
718a6fd8 7525else
81ecdfbb
RW
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7527$as_echo "no" >&6; }
718a6fd8
SE
7528fi
7529
81ecdfbb
RW
7530 if test "x$ac_ct_NMEDIT" = x; then
7531 NMEDIT=":"
7532 else
7533 case $cross_compiling:$ac_tool_warned in
7534yes:)
7535{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7536$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7537ac_tool_warned=yes ;;
7538esac
7539 NMEDIT=$ac_ct_NMEDIT
7540 fi
718a6fd8
SE
7541else
7542 NMEDIT="$ac_cv_prog_NMEDIT"
7543fi
7544
7545 if test -n "$ac_tool_prefix"; then
7546 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7547set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
7548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7549$as_echo_n "checking for $ac_word... " >&6; }
7550if test "${ac_cv_prog_LIPO+set}" = set; then :
7551 $as_echo_n "(cached) " >&6
718a6fd8
SE
7552else
7553 if test -n "$LIPO"; then
7554 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7555else
7556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557for as_dir in $PATH
7558do
7559 IFS=$as_save_IFS
7560 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7561 for ac_exec_ext in '' $ac_executable_extensions; do
7562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7563 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 7564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7565 break 2
7566 fi
7567done
81ecdfbb
RW
7568 done
7569IFS=$as_save_IFS
718a6fd8
SE
7570
7571fi
7572fi
7573LIPO=$ac_cv_prog_LIPO
7574if test -n "$LIPO"; then
81ecdfbb
RW
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7576$as_echo "$LIPO" >&6; }
718a6fd8 7577else
81ecdfbb
RW
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7579$as_echo "no" >&6; }
718a6fd8
SE
7580fi
7581
81ecdfbb 7582
718a6fd8
SE
7583fi
7584if test -z "$ac_cv_prog_LIPO"; then
7585 ac_ct_LIPO=$LIPO
7586 # Extract the first word of "lipo", so it can be a program name with args.
7587set dummy lipo; ac_word=$2
81ecdfbb
RW
7588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7589$as_echo_n "checking for $ac_word... " >&6; }
7590if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7591 $as_echo_n "(cached) " >&6
718a6fd8
SE
7592else
7593 if test -n "$ac_ct_LIPO"; then
7594 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7595else
7596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597for as_dir in $PATH
7598do
7599 IFS=$as_save_IFS
7600 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7601 for ac_exec_ext in '' $ac_executable_extensions; do
7602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7603 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7605 break 2
7606 fi
7607done
81ecdfbb
RW
7608 done
7609IFS=$as_save_IFS
718a6fd8 7610
718a6fd8
SE
7611fi
7612fi
7613ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7614if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7616$as_echo "$ac_ct_LIPO" >&6; }
718a6fd8 7617else
81ecdfbb
RW
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7619$as_echo "no" >&6; }
718a6fd8
SE
7620fi
7621
81ecdfbb
RW
7622 if test "x$ac_ct_LIPO" = x; then
7623 LIPO=":"
7624 else
7625 case $cross_compiling:$ac_tool_warned in
7626yes:)
7627{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7628$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7629ac_tool_warned=yes ;;
7630esac
7631 LIPO=$ac_ct_LIPO
7632 fi
7633else
718a6fd8
SE
7634 LIPO="$ac_cv_prog_LIPO"
7635fi
7636
7637 if test -n "$ac_tool_prefix"; then
7638 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7639set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7641$as_echo_n "checking for $ac_word... " >&6; }
7642if test "${ac_cv_prog_OTOOL+set}" = set; then :
7643 $as_echo_n "(cached) " >&6
718a6fd8
SE
7644else
7645 if test -n "$OTOOL"; then
7646 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7647else
7648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7649for as_dir in $PATH
7650do
7651 IFS=$as_save_IFS
7652 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7653 for ac_exec_ext in '' $ac_executable_extensions; do
7654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7655 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7657 break 2
7658 fi
7659done
81ecdfbb
RW
7660 done
7661IFS=$as_save_IFS
718a6fd8
SE
7662
7663fi
7664fi
7665OTOOL=$ac_cv_prog_OTOOL
7666if test -n "$OTOOL"; then
81ecdfbb
RW
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7668$as_echo "$OTOOL" >&6; }
718a6fd8 7669else
81ecdfbb
RW
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7671$as_echo "no" >&6; }
718a6fd8
SE
7672fi
7673
81ecdfbb 7674
718a6fd8
SE
7675fi
7676if test -z "$ac_cv_prog_OTOOL"; then
7677 ac_ct_OTOOL=$OTOOL
7678 # Extract the first word of "otool", so it can be a program name with args.
7679set dummy otool; ac_word=$2
81ecdfbb
RW
7680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7681$as_echo_n "checking for $ac_word... " >&6; }
7682if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7683 $as_echo_n "(cached) " >&6
718a6fd8
SE
7684else
7685 if test -n "$ac_ct_OTOOL"; then
7686 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7687else
7688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689for as_dir in $PATH
7690do
7691 IFS=$as_save_IFS
7692 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7693 for ac_exec_ext in '' $ac_executable_extensions; do
7694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7695 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7697 break 2
7698 fi
7699done
81ecdfbb
RW
7700 done
7701IFS=$as_save_IFS
718a6fd8 7702
718a6fd8
SE
7703fi
7704fi
7705ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7706if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7708$as_echo "$ac_ct_OTOOL" >&6; }
718a6fd8 7709else
81ecdfbb
RW
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7711$as_echo "no" >&6; }
718a6fd8
SE
7712fi
7713
81ecdfbb
RW
7714 if test "x$ac_ct_OTOOL" = x; then
7715 OTOOL=":"
7716 else
7717 case $cross_compiling:$ac_tool_warned in
7718yes:)
7719{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7720$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7721ac_tool_warned=yes ;;
7722esac
7723 OTOOL=$ac_ct_OTOOL
7724 fi
718a6fd8
SE
7725else
7726 OTOOL="$ac_cv_prog_OTOOL"
7727fi
7728
7729 if test -n "$ac_tool_prefix"; then
7730 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7731set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7733$as_echo_n "checking for $ac_word... " >&6; }
7734if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7735 $as_echo_n "(cached) " >&6
718a6fd8
SE
7736else
7737 if test -n "$OTOOL64"; then
7738 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7739else
7740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741for as_dir in $PATH
7742do
7743 IFS=$as_save_IFS
7744 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7745 for ac_exec_ext in '' $ac_executable_extensions; do
7746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7747 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 7748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7749 break 2
7750 fi
7751done
81ecdfbb
RW
7752 done
7753IFS=$as_save_IFS
718a6fd8
SE
7754
7755fi
7756fi
7757OTOOL64=$ac_cv_prog_OTOOL64
7758if test -n "$OTOOL64"; then
81ecdfbb
RW
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7760$as_echo "$OTOOL64" >&6; }
718a6fd8 7761else
81ecdfbb
RW
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7763$as_echo "no" >&6; }
718a6fd8
SE
7764fi
7765
81ecdfbb 7766
718a6fd8
SE
7767fi
7768if test -z "$ac_cv_prog_OTOOL64"; then
7769 ac_ct_OTOOL64=$OTOOL64
7770 # Extract the first word of "otool64", so it can be a program name with args.
7771set dummy otool64; ac_word=$2
81ecdfbb
RW
7772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7773$as_echo_n "checking for $ac_word... " >&6; }
7774if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7775 $as_echo_n "(cached) " >&6
718a6fd8
SE
7776else
7777 if test -n "$ac_ct_OTOOL64"; then
7778 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7779else
7780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781for as_dir in $PATH
7782do
7783 IFS=$as_save_IFS
7784 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7785 for ac_exec_ext in '' $ac_executable_extensions; do
7786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7787 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 7788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7789 break 2
7790 fi
7791done
81ecdfbb
RW
7792 done
7793IFS=$as_save_IFS
718a6fd8 7794
718a6fd8
SE
7795fi
7796fi
7797ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7798if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7800$as_echo "$ac_ct_OTOOL64" >&6; }
718a6fd8 7801else
81ecdfbb
RW
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7803$as_echo "no" >&6; }
718a6fd8
SE
7804fi
7805
81ecdfbb
RW
7806 if test "x$ac_ct_OTOOL64" = x; then
7807 OTOOL64=":"
7808 else
7809 case $cross_compiling:$ac_tool_warned in
7810yes:)
7811{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7812$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7813ac_tool_warned=yes ;;
7814esac
7815 OTOOL64=$ac_ct_OTOOL64
7816 fi
718a6fd8
SE
7817else
7818 OTOOL64="$ac_cv_prog_OTOOL64"
7819fi
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
81ecdfbb
RW
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7848$as_echo_n "checking for -single_module linker flag... " >&6; }
7849if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7850 $as_echo_n "(cached) " >&6
718a6fd8
SE
7851else
7852 lt_cv_apple_cc_single_mod=no
7853 if test -z "${LT_MULTI_MODULE}"; then
7854 # By default we will add the -single_module flag. You can override
7855 # by either setting the environment variable LT_MULTI_MODULE
7856 # non-empty at configure time, or by adding -multi_module to the
7857 # link flags.
7858 rm -rf libconftest.dylib*
7859 echo "int foo(void){return 1;}" > conftest.c
7860 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7861-dynamiclib -Wl,-single_module conftest.c" >&5
7862 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7863 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7864 _lt_result=$?
7865 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7866 lt_cv_apple_cc_single_mod=yes
7867 else
7868 cat conftest.err >&5
7869 fi
7870 rm -rf libconftest.dylib*
7871 rm -f conftest.*
7872 fi
7873fi
81ecdfbb
RW
7874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7875$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7877$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7878if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7879 $as_echo_n "(cached) " >&6
718a6fd8
SE
7880else
7881 lt_cv_ld_exported_symbols_list=no
7882 save_LDFLAGS=$LDFLAGS
7883 echo "_main" > conftest.sym
7884 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 7885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
718a6fd8
SE
7886/* end confdefs.h. */
7887
7888int
7889main ()
7890{
7891
7892 ;
7893 return 0;
7894}
7895_ACEOF
81ecdfbb 7896if ac_fn_c_try_link "$LINENO"; then :
718a6fd8
SE
7897 lt_cv_ld_exported_symbols_list=yes
7898else
81ecdfbb 7899 lt_cv_ld_exported_symbols_list=no
718a6fd8 7900fi
81ecdfbb
RW
7901rm -f core conftest.err conftest.$ac_objext \
7902 conftest$ac_exeext conftest.$ac_ext
718a6fd8
SE
7903 LDFLAGS="$save_LDFLAGS"
7904
7905fi
81ecdfbb
RW
7906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7907$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7909$as_echo_n "checking for -force_load linker flag... " >&6; }
7910if test "${lt_cv_ld_force_load+set}" = set; then :
7911 $as_echo_n "(cached) " >&6
7912else
7913 lt_cv_ld_force_load=no
7914 cat > conftest.c << _LT_EOF
7915int forced_loaded() { return 2;}
7916_LT_EOF
7917 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7918 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7919 echo "$AR cru libconftest.a conftest.o" >&5
7920 $AR cru libconftest.a conftest.o 2>&5
7921 cat > conftest.c << _LT_EOF
7922int main() { return 0;}
7923_LT_EOF
7924 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7925 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7926 _lt_result=$?
7927 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7928 lt_cv_ld_force_load=yes
7929 else
7930 cat conftest.err >&5
7931 fi
7932 rm -f conftest.err libconftest.a conftest conftest.c
7933 rm -rf conftest.dSYM
7934
7935fi
7936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7937$as_echo "$lt_cv_ld_force_load" >&6; }
718a6fd8
SE
7938 case $host_os in
7939 rhapsody* | darwin1.[012])
7940 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7941 darwin1.*)
7942 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7943 darwin*) # darwin 5.x on
7944 # if running on 10.5 or later, the deployment target defaults
7945 # to the OS version, if on x86, and 10.4, the deployment
7946 # target defaults to 10.4. Don't you love it?
7947 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7948 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7949 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6e733cce 7950 10.[012][,.]*)
718a6fd8
SE
7951 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7952 10.*)
7953 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7954 esac
7955 ;;
7956 esac
7957 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7958 _lt_dar_single_mod='$single_module'
7959 fi
7960 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7961 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7962 else
7963 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7964 fi
3725885a 7965 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
718a6fd8
SE
7966 _lt_dsymutil='~$DSYMUTIL $lib || :'
7967 else
7968 _lt_dsymutil=
7969 fi
7970 ;;
7971 esac
7972
d7040cdb 7973for ac_header in dlfcn.h
81ecdfbb
RW
7974do :
7975 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7976"
7977if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
d7040cdb 7978 cat >>confdefs.h <<_ACEOF
81ecdfbb 7979#define HAVE_DLFCN_H 1
d7040cdb
SE
7980_ACEOF
7981
7982fi
7983
7984done
7985
7986
7987
3725885a
RW
7988
7989
718a6fd8 7990# Set options
ce3c775b 7991enable_dlopen=yes
718a6fd8
SE
7992
7993
7994
718a6fd8
SE
7995
7996 enable_win32_dll=no
7997
7998
7999
81ecdfbb
RW
8000 # Check whether --enable-static was given.
8001if test "${enable_static+set}" = set; then :
8002 enableval=$enable_static; p=${PACKAGE-default}
718a6fd8
SE
8003 case $enableval in
8004 yes) enable_static=yes ;;
8005 no) enable_static=no ;;
8006 *)
8007 enable_static=no
8008 # Look at the argument we got. We use all the common list separators.
8009 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8010 for pkg in $enableval; do
8011 IFS="$lt_save_ifs"
8012 if test "X$pkg" = "X$p"; then
8013 enable_static=yes
8014 fi
8015 done
8016 IFS="$lt_save_ifs"
8017 ;;
8018 esac
8019else
8020 enable_static=yes
81ecdfbb 8021fi
718a6fd8
SE
8022
8023
8024
8025
8026
8027
8028
8029
8030
81ecdfbb
RW
8031
8032# Check whether --with-pic was given.
8033if test "${with_pic+set}" = set; then :
8034 withval=$with_pic; pic_mode="$withval"
718a6fd8
SE
8035else
8036 pic_mode=default
81ecdfbb
RW
8037fi
8038
718a6fd8
SE
8039
8040test -z "$pic_mode" && pic_mode=default
8041
8042
8043
8044
8045
8046
8047
81ecdfbb
RW
8048 # Check whether --enable-fast-install was given.
8049if test "${enable_fast_install+set}" = set; then :
8050 enableval=$enable_fast_install; p=${PACKAGE-default}
718a6fd8
SE
8051 case $enableval in
8052 yes) enable_fast_install=yes ;;
8053 no) enable_fast_install=no ;;
8054 *)
8055 enable_fast_install=no
8056 # Look at the argument we got. We use all the common list separators.
8057 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8058 for pkg in $enableval; do
8059 IFS="$lt_save_ifs"
8060 if test "X$pkg" = "X$p"; then
8061 enable_fast_install=yes
8062 fi
8063 done
8064 IFS="$lt_save_ifs"
8065 ;;
8066 esac
8067else
8068 enable_fast_install=yes
81ecdfbb
RW
8069fi
8070
718a6fd8
SE
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
d7040cdb
SE
8081# This can be used to rebuild libtool when needed
8082LIBTOOL_DEPS="$ltmain"
8083
8084# Always use our own libtool.
8085LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
3725885a 8109
d7040cdb
SE
8110
8111
8112test -z "$LN_S" && LN_S="ln -s"
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127if test -n "${ZSH_VERSION+set}" ; then
8128 setopt NO_GLOB_SUBST
8129fi
8130
81ecdfbb
RW
8131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8132$as_echo_n "checking for objdir... " >&6; }
8133if test "${lt_cv_objdir+set}" = set; then :
8134 $as_echo_n "(cached) " >&6
d7040cdb
SE
8135else
8136 rm -f .libs 2>/dev/null
8137mkdir .libs 2>/dev/null
8138if test -d .libs; then
8139 lt_cv_objdir=.libs
8140else
8141 # MS-DOS does not allow filenames that begin with a dot.
8142 lt_cv_objdir=_libs
8143fi
8144rmdir .libs 2>/dev/null
8145fi
81ecdfbb
RW
8146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8147$as_echo "$lt_cv_objdir" >&6; }
d7040cdb
SE
8148objdir=$lt_cv_objdir
8149
8150
8151
8152
8153
8154cat >>confdefs.h <<_ACEOF
8155#define LT_OBJDIR "$lt_cv_objdir/"
8156_ACEOF
8157
8158
8159
8160
d7040cdb
SE
8161case $host_os in
8162aix3*)
8163 # AIX sometimes has problems with the GCC collect2 program. For some
8164 # reason, if we set the COLLECT_NAMES environment variable, the problems
8165 # vanish in a puff of smoke.
8166 if test "X${COLLECT_NAMES+set}" != Xset; then
8167 COLLECT_NAMES=
8168 export COLLECT_NAMES
8169 fi
8170 ;;
8171esac
8172
d7040cdb
SE
8173# Global variables:
8174ofile=libtool
8175can_build_shared=yes
8176
8177# All known linkers require a `.a' archive for static linking (except MSVC,
8178# which needs '.lib').
8179libext=a
8180
8181with_gnu_ld="$lt_cv_prog_gnu_ld"
8182
8183old_CC="$CC"
8184old_CFLAGS="$CFLAGS"
8185
8186# Set sane defaults for various variables
8187test -z "$CC" && CC=cc
8188test -z "$LTCC" && LTCC=$CC
8189test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8190test -z "$LD" && LD=ld
8191test -z "$ac_objext" && ac_objext=o
8192
8193for cc_temp in $compiler""; do
8194 case $cc_temp in
8195 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8196 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8197 \-*) ;;
8198 *) break;;
8199 esac
8200done
3725885a 8201cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d7040cdb
SE
8202
8203
8204# Only perform the check for file, if the check method requires it
8205test -z "$MAGIC_CMD" && MAGIC_CMD=file
8206case $deplibs_check_method in
8207file_magic*)
8208 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8210$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8211if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8212 $as_echo_n "(cached) " >&6
d7040cdb
SE
8213else
8214 case $MAGIC_CMD in
8215[\\/*] | ?:[\\/]*)
8216 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8217 ;;
8218*)
8219 lt_save_MAGIC_CMD="$MAGIC_CMD"
8220 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8221 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8222 for ac_dir in $ac_dummy; do
8223 IFS="$lt_save_ifs"
8224 test -z "$ac_dir" && ac_dir=.
8225 if test -f $ac_dir/${ac_tool_prefix}file; then
8226 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8227 if test -n "$file_magic_test_file"; then
8228 case $deplibs_check_method in
8229 "file_magic "*)
8230 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8231 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8232 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8233 $EGREP "$file_magic_regex" > /dev/null; then
8234 :
8235 else
8236 cat <<_LT_EOF 1>&2
8237
8238*** Warning: the command libtool uses to detect shared libraries,
8239*** $file_magic_cmd, produces output that libtool cannot recognize.
8240*** The result is that libtool may fail to recognize shared libraries
8241*** as such. This will affect the creation of libtool libraries that
8242*** depend on shared libraries, but programs linked with such libtool
8243*** libraries will work regardless of this problem. Nevertheless, you
8244*** may want to report the problem to your system manager and/or to
8245*** bug-libtool@gnu.org
8246
8247_LT_EOF
8248 fi ;;
8249 esac
8250 fi
8251 break
8252 fi
8253 done
8254 IFS="$lt_save_ifs"
8255 MAGIC_CMD="$lt_save_MAGIC_CMD"
8256 ;;
8257esac
8258fi
8259
8260MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8261if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8263$as_echo "$MAGIC_CMD" >&6; }
d7040cdb 8264else
81ecdfbb
RW
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8266$as_echo "no" >&6; }
d7040cdb
SE
8267fi
8268
8269
8270
8271
8272
8273if test -z "$lt_cv_path_MAGIC_CMD"; then
8274 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8276$as_echo_n "checking for file... " >&6; }
8277if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8278 $as_echo_n "(cached) " >&6
d7040cdb
SE
8279else
8280 case $MAGIC_CMD in
8281[\\/*] | ?:[\\/]*)
8282 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8283 ;;
8284*)
8285 lt_save_MAGIC_CMD="$MAGIC_CMD"
8286 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8287 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8288 for ac_dir in $ac_dummy; do
8289 IFS="$lt_save_ifs"
8290 test -z "$ac_dir" && ac_dir=.
8291 if test -f $ac_dir/file; then
8292 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8293 if test -n "$file_magic_test_file"; then
8294 case $deplibs_check_method in
8295 "file_magic "*)
8296 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8297 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8298 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8299 $EGREP "$file_magic_regex" > /dev/null; then
8300 :
8301 else
8302 cat <<_LT_EOF 1>&2
8303
8304*** Warning: the command libtool uses to detect shared libraries,
8305*** $file_magic_cmd, produces output that libtool cannot recognize.
8306*** The result is that libtool may fail to recognize shared libraries
8307*** as such. This will affect the creation of libtool libraries that
8308*** depend on shared libraries, but programs linked with such libtool
8309*** libraries will work regardless of this problem. Nevertheless, you
8310*** may want to report the problem to your system manager and/or to
8311*** bug-libtool@gnu.org
8312
8313_LT_EOF
8314 fi ;;
8315 esac
8316 fi
8317 break
8318 fi
8319 done
8320 IFS="$lt_save_ifs"
8321 MAGIC_CMD="$lt_save_MAGIC_CMD"
8322 ;;
8323esac
8324fi
8325
8326MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8327if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8329$as_echo "$MAGIC_CMD" >&6; }
d7040cdb 8330else
81ecdfbb
RW
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8332$as_echo "no" >&6; }
d7040cdb
SE
8333fi
8334
8335
8336 else
8337 MAGIC_CMD=:
8338 fi
8339fi
8340
8341 fi
8342 ;;
8343esac
8344
8345# Use C for the default configuration in the libtool script
8346
8347lt_save_CC="$CC"
8348ac_ext=c
8349ac_cpp='$CPP $CPPFLAGS'
8350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8352ac_compiler_gnu=$ac_cv_c_compiler_gnu
8353
8354
8355# Source file extension for C test sources.
8356ac_ext=c
8357
8358# Object file extension for compiled C test sources.
8359objext=o
8360objext=$objext
8361
8362# Code to be used in simple compile tests
8363lt_simple_compile_test_code="int some_variable = 0;"
8364
8365# Code to be used in simple link tests
8366lt_simple_link_test_code='int main(){return(0);}'
8367
8368
8369
8370
8371
8372
8373
8374# If no C compiler was specified, use CC.
8375LTCC=${LTCC-"$CC"}
8376
8377# If no C compiler flags were specified, use CFLAGS.
8378LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8379
8380# Allow CC to be a program name with arguments.
8381compiler=$CC
8382
8383# Save the default compiler, since it gets overwritten when the other
8384# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8385compiler_DEFAULT=$CC
8386
8387# save warnings/boilerplate of simple test code
8388ac_outfile=conftest.$ac_objext
8389echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8390eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8391_lt_compiler_boilerplate=`cat conftest.err`
8392$RM conftest*
8393
8394ac_outfile=conftest.$ac_objext
8395echo "$lt_simple_link_test_code" >conftest.$ac_ext
8396eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8397_lt_linker_boilerplate=`cat conftest.err`
718a6fd8 8398$RM -r conftest*
d7040cdb
SE
8399
8400
8401## CAVEAT EMPTOR:
8402## There is no encapsulation within the following macros, do not change
8403## the running order or otherwise move them around unless you know exactly
8404## what you are doing...
8405if test -n "$compiler"; then
8406
8407lt_prog_compiler_no_builtin_flag=
8408
8409if test "$GCC" = yes; then
3725885a
RW
8410 case $cc_basename in
8411 nvcc*)
8412 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8413 *)
8414 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8415 esac
d7040cdb 8416
81ecdfbb
RW
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8418$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8419if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8420 $as_echo_n "(cached) " >&6
d7040cdb
SE
8421else
8422 lt_cv_prog_compiler_rtti_exceptions=no
8423 ac_outfile=conftest.$ac_objext
8424 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8425 lt_compiler_flag="-fno-rtti -fno-exceptions"
8426 # Insert the option either (1) after the last *FLAGS variable, or
8427 # (2) before a word containing "conftest.", or (3) at the end.
8428 # Note that $ac_compile itself does not contain backslashes and begins
8429 # with a dollar sign (not a hyphen), so the echo should work correctly.
8430 # The option is referenced via a variable to avoid confusing sed.
8431 lt_compile=`echo "$ac_compile" | $SED \
8432 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8433 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8434 -e 's:$: $lt_compiler_flag:'`
3725885a 8435 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7040cdb
SE
8436 (eval "$lt_compile" 2>conftest.err)
8437 ac_status=$?
8438 cat conftest.err >&5
3725885a 8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8440 if (exit $ac_status) && test -s "$ac_outfile"; then
8441 # The compiler can only warn and ignore the option if not recognized
8442 # So say no if there are warnings other than the usual output.
3725885a 8443 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
d7040cdb
SE
8444 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8445 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8446 lt_cv_prog_compiler_rtti_exceptions=yes
8447 fi
8448 fi
8449 $RM conftest*
8450
8451fi
81ecdfbb
RW
8452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8453$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d7040cdb
SE
8454
8455if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8456 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8457else
8458 :
8459fi
8460
8461fi
8462
8463
8464
8465
8466
8467
8468 lt_prog_compiler_wl=
8469lt_prog_compiler_pic=
8470lt_prog_compiler_static=
8471
81ecdfbb
RW
8472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8473$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d7040cdb
SE
8474
8475 if test "$GCC" = yes; then
8476 lt_prog_compiler_wl='-Wl,'
8477 lt_prog_compiler_static='-static'
8478
8479 case $host_os in
8480 aix*)
8481 # All AIX code is PIC.
8482 if test "$host_cpu" = ia64; then
8483 # AIX 5 now supports IA64 processor
8484 lt_prog_compiler_static='-Bstatic'
8485 fi
6c9c0a50 8486 lt_prog_compiler_pic='-fPIC'
d7040cdb
SE
8487 ;;
8488
8489 amigaos*)
718a6fd8
SE
8490 case $host_cpu in
8491 powerpc)
8492 # see comment about AmigaOS4 .so support
8493 lt_prog_compiler_pic='-fPIC'
8494 ;;
8495 m68k)
8496 # FIXME: we need at least 68020 code to build shared libraries, but
8497 # adding the `-m68020' flag to GCC prevents building anything better,
8498 # like `-m68040'.
8499 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8500 ;;
8501 esac
d7040cdb
SE
8502 ;;
8503
8504 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8505 # PIC is the default for these OSes.
8506 ;;
8507
718a6fd8 8508 mingw* | cygwin* | pw32* | os2* | cegcc*)
d7040cdb
SE
8509 # This hack is so that the source file can tell whether it is being
8510 # built for inclusion in a dll (and should export symbols for example).
8511 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8512 # (--disable-auto-import) libraries
8513 lt_prog_compiler_pic='-DDLL_EXPORT'
8514 ;;
8515
8516 darwin* | rhapsody*)
8517 # PIC is the default on this platform
8518 # Common symbols not allowed in MH_DYLIB files
8519 lt_prog_compiler_pic='-fno-common'
8520 ;;
8521
3725885a
RW
8522 haiku*)
8523 # PIC is the default for Haiku.
8524 # The "-static" flag exists, but is broken.
8525 lt_prog_compiler_static=
8526 ;;
8527
d7040cdb 8528 hpux*)
718a6fd8
SE
8529 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8530 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8531 # sets the default TLS model and affects inlining.
d7040cdb 8532 case $host_cpu in
718a6fd8 8533 hppa*64*)
d7040cdb
SE
8534 # +Z the default
8535 ;;
8536 *)
8537 lt_prog_compiler_pic='-fPIC'
8538 ;;
8539 esac
8540 ;;
8541
8542 interix[3-9]*)
8543 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8544 # Instead, we relocate shared libraries at runtime.
8545 ;;
8546
8547 msdosdjgpp*)
8548 # Just because we use GCC doesn't mean we suddenly get shared libraries
8549 # on systems that don't support them.
8550 lt_prog_compiler_can_build_shared=no
8551 enable_shared=no
8552 ;;
8553
8554 *nto* | *qnx*)
8555 # QNX uses GNU C++, but need to define -shared option too, otherwise
8556 # it will coredump.
8557 lt_prog_compiler_pic='-fPIC -shared'
8558 ;;
8559
8560 sysv4*MP*)
8561 if test -d /usr/nec; then
8562 lt_prog_compiler_pic=-Kconform_pic
8563 fi
8564 ;;
8565
8566 *)
8567 lt_prog_compiler_pic='-fPIC'
8568 ;;
8569 esac
3725885a
RW
8570
8571 case $cc_basename in
8572 nvcc*) # Cuda Compiler Driver 2.2
8573 lt_prog_compiler_wl='-Xlinker '
8574 lt_prog_compiler_pic='-Xcompiler -fPIC'
8575 ;;
8576 esac
d7040cdb
SE
8577 else
8578 # PORTME Check for flag to pass linker flags through the system compiler.
8579 case $host_os in
8580 aix*)
8581 lt_prog_compiler_wl='-Wl,'
8582 if test "$host_cpu" = ia64; then
8583 # AIX 5 now supports IA64 processor
8584 lt_prog_compiler_static='-Bstatic'
8585 else
8586 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8587 fi
8588 ;;
d7040cdb 8589
718a6fd8 8590 mingw* | cygwin* | pw32* | os2* | cegcc*)
d7040cdb
SE
8591 # This hack is so that the source file can tell whether it is being
8592 # built for inclusion in a dll (and should export symbols for example).
8593 lt_prog_compiler_pic='-DDLL_EXPORT'
8594 ;;
8595
8596 hpux9* | hpux10* | hpux11*)
8597 lt_prog_compiler_wl='-Wl,'
8598 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8599 # not for PA HP-UX.
8600 case $host_cpu in
8601 hppa*64*|ia64*)
8602 # +Z the default
8603 ;;
8604 *)
8605 lt_prog_compiler_pic='+Z'
8606 ;;
8607 esac
8608 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8609 lt_prog_compiler_static='${wl}-a ${wl}archive'
8610 ;;
8611
8612 irix5* | irix6* | nonstopux*)
8613 lt_prog_compiler_wl='-Wl,'
8614 # PIC (with -KPIC) is the default.
8615 lt_prog_compiler_static='-non_shared'
8616 ;;
8617
58e24671 8618 linux* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb 8619 case $cc_basename in
718a6fd8
SE
8620 # old Intel for x86_64 which still supported -KPIC.
8621 ecc*)
d7040cdb
SE
8622 lt_prog_compiler_wl='-Wl,'
8623 lt_prog_compiler_pic='-KPIC'
8624 lt_prog_compiler_static='-static'
8625 ;;
718a6fd8
SE
8626 # icc used to be incompatible with GCC.
8627 # ICC 10 doesn't accept -KPIC any more.
8628 icc* | ifort*)
8629 lt_prog_compiler_wl='-Wl,'
8630 lt_prog_compiler_pic='-fPIC'
8631 lt_prog_compiler_static='-static'
8632 ;;
8633 # Lahey Fortran 8.1.
8634 lf95*)
8635 lt_prog_compiler_wl='-Wl,'
8636 lt_prog_compiler_pic='--shared'
8637 lt_prog_compiler_static='--static'
8638 ;;
3725885a 8639 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
d7040cdb
SE
8640 # Portland Group compilers (*not* the Pentium gcc compiler,
8641 # which looks to be a dead project)
8642 lt_prog_compiler_wl='-Wl,'
8643 lt_prog_compiler_pic='-fpic'
8644 lt_prog_compiler_static='-Bstatic'
8645 ;;
8646 ccc*)
8647 lt_prog_compiler_wl='-Wl,'
8648 # All Alpha code is PIC.
8649 lt_prog_compiler_static='-non_shared'
8650 ;;
3725885a
RW
8651 xl* | bgxl* | bgf* | mpixl*)
8652 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
718a6fd8
SE
8653 lt_prog_compiler_wl='-Wl,'
8654 lt_prog_compiler_pic='-qpic'
8655 lt_prog_compiler_static='-qstaticlink'
8656 ;;
d7040cdb
SE
8657 *)
8658 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
8659 *Sun\ F* | *Sun*Fortran*)
8660 # Sun Fortran 8.3 passes all unrecognized flags to the linker
d7040cdb
SE
8661 lt_prog_compiler_pic='-KPIC'
8662 lt_prog_compiler_static='-Bstatic'
3725885a 8663 lt_prog_compiler_wl=''
d7040cdb 8664 ;;
3725885a
RW
8665 *Sun\ C*)
8666 # Sun C 5.9
d7040cdb
SE
8667 lt_prog_compiler_pic='-KPIC'
8668 lt_prog_compiler_static='-Bstatic'
3725885a 8669 lt_prog_compiler_wl='-Wl,'
d7040cdb
SE
8670 ;;
8671 esac
8672 ;;
8673 esac
8674 ;;
8675
8676 newsos6)
8677 lt_prog_compiler_pic='-KPIC'
8678 lt_prog_compiler_static='-Bstatic'
8679 ;;
8680
8681 *nto* | *qnx*)
8682 # QNX uses GNU C++, but need to define -shared option too, otherwise
8683 # it will coredump.
8684 lt_prog_compiler_pic='-fPIC -shared'
8685 ;;
8686
8687 osf3* | osf4* | osf5*)
8688 lt_prog_compiler_wl='-Wl,'
8689 # All OSF/1 code is PIC.
8690 lt_prog_compiler_static='-non_shared'
8691 ;;
8692
8693 rdos*)
8694 lt_prog_compiler_static='-non_shared'
8695 ;;
8696
8697 solaris*)
8698 lt_prog_compiler_pic='-KPIC'
8699 lt_prog_compiler_static='-Bstatic'
8700 case $cc_basename in
8701 f77* | f90* | f95*)
8702 lt_prog_compiler_wl='-Qoption ld ';;
8703 *)
8704 lt_prog_compiler_wl='-Wl,';;
8705 esac
8706 ;;
8707
8708 sunos4*)
8709 lt_prog_compiler_wl='-Qoption ld '
8710 lt_prog_compiler_pic='-PIC'
8711 lt_prog_compiler_static='-Bstatic'
8712 ;;
8713
8714 sysv4 | sysv4.2uw2* | sysv4.3*)
8715 lt_prog_compiler_wl='-Wl,'
8716 lt_prog_compiler_pic='-KPIC'
8717 lt_prog_compiler_static='-Bstatic'
8718 ;;
8719
8720 sysv4*MP*)
8721 if test -d /usr/nec ;then
8722 lt_prog_compiler_pic='-Kconform_pic'
8723 lt_prog_compiler_static='-Bstatic'
8724 fi
8725 ;;
8726
8727 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8728 lt_prog_compiler_wl='-Wl,'
8729 lt_prog_compiler_pic='-KPIC'
8730 lt_prog_compiler_static='-Bstatic'
8731 ;;
8732
8733 unicos*)
8734 lt_prog_compiler_wl='-Wl,'
8735 lt_prog_compiler_can_build_shared=no
8736 ;;
8737
8738 uts4*)
8739 lt_prog_compiler_pic='-pic'
8740 lt_prog_compiler_static='-Bstatic'
8741 ;;
8742
8743 *)
8744 lt_prog_compiler_can_build_shared=no
8745 ;;
8746 esac
8747 fi
8748
8749case $host_os in
8750 # For platforms which do not support PIC, -DPIC is meaningless:
8751 *djgpp*)
8752 lt_prog_compiler_pic=
8753 ;;
8754 *)
8755 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8756 ;;
8757esac
81ecdfbb
RW
8758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8759$as_echo "$lt_prog_compiler_pic" >&6; }
d7040cdb
SE
8760
8761
8762
8763
8764
8765
8766#
8767# Check to make sure the PIC flag actually works.
8768#
8769if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8771$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8772if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8773 $as_echo_n "(cached) " >&6
d7040cdb 8774else
718a6fd8 8775 lt_cv_prog_compiler_pic_works=no
d7040cdb
SE
8776 ac_outfile=conftest.$ac_objext
8777 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8778 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8779 # Insert the option either (1) after the last *FLAGS variable, or
8780 # (2) before a word containing "conftest.", or (3) at the end.
8781 # Note that $ac_compile itself does not contain backslashes and begins
8782 # with a dollar sign (not a hyphen), so the echo should work correctly.
8783 # The option is referenced via a variable to avoid confusing sed.
8784 lt_compile=`echo "$ac_compile" | $SED \
8785 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8786 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8787 -e 's:$: $lt_compiler_flag:'`
3725885a 8788 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7040cdb
SE
8789 (eval "$lt_compile" 2>conftest.err)
8790 ac_status=$?
8791 cat conftest.err >&5
3725885a 8792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8793 if (exit $ac_status) && test -s "$ac_outfile"; then
8794 # The compiler can only warn and ignore the option if not recognized
8795 # So say no if there are warnings other than the usual output.
3725885a 8796 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
d7040cdb
SE
8797 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8798 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8799 lt_cv_prog_compiler_pic_works=yes
d7040cdb
SE
8800 fi
8801 fi
8802 $RM conftest*
8803
8804fi
81ecdfbb
RW
8805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8806$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d7040cdb 8807
718a6fd8 8808if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
d7040cdb
SE
8809 case $lt_prog_compiler_pic in
8810 "" | " "*) ;;
8811 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8812 esac
8813else
8814 lt_prog_compiler_pic=
8815 lt_prog_compiler_can_build_shared=no
8816fi
8817
8818fi
8819
8820
8821
8822
8823
8824
8825#
8826# Check to make sure the static flag actually works.
8827#
8828wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
8829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8830$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8831if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8832 $as_echo_n "(cached) " >&6
d7040cdb 8833else
718a6fd8 8834 lt_cv_prog_compiler_static_works=no
d7040cdb
SE
8835 save_LDFLAGS="$LDFLAGS"
8836 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8837 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8838 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8839 # The linker can only warn and ignore the option if not recognized
8840 # So say no if there are warnings
8841 if test -s conftest.err; then
8842 # Append any errors to the config.log.
8843 cat conftest.err 1>&5
3725885a 8844 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
d7040cdb
SE
8845 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8846 if diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8847 lt_cv_prog_compiler_static_works=yes
d7040cdb
SE
8848 fi
8849 else
718a6fd8 8850 lt_cv_prog_compiler_static_works=yes
d7040cdb
SE
8851 fi
8852 fi
718a6fd8 8853 $RM -r conftest*
d7040cdb
SE
8854 LDFLAGS="$save_LDFLAGS"
8855
8856fi
81ecdfbb
RW
8857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8858$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 8859
718a6fd8 8860if test x"$lt_cv_prog_compiler_static_works" = xyes; then
d7040cdb
SE
8861 :
8862else
8863 lt_prog_compiler_static=
8864fi
8865
8866
8867
8868
8869
8870
8871
81ecdfbb
RW
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8873$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8874if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8875 $as_echo_n "(cached) " >&6
d7040cdb
SE
8876else
8877 lt_cv_prog_compiler_c_o=no
8878 $RM -r conftest 2>/dev/null
8879 mkdir conftest
8880 cd conftest
8881 mkdir out
8882 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8883
8884 lt_compiler_flag="-o out/conftest2.$ac_objext"
8885 # Insert the option either (1) after the last *FLAGS variable, or
8886 # (2) before a word containing "conftest.", or (3) at the end.
8887 # Note that $ac_compile itself does not contain backslashes and begins
8888 # with a dollar sign (not a hyphen), so the echo should work correctly.
8889 lt_compile=`echo "$ac_compile" | $SED \
8890 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8891 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8892 -e 's:$: $lt_compiler_flag:'`
3725885a 8893 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7040cdb
SE
8894 (eval "$lt_compile" 2>out/conftest.err)
8895 ac_status=$?
8896 cat out/conftest.err >&5
3725885a 8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8898 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8899 then
8900 # The compiler can only warn and ignore the option if not recognized
8901 # So say no if there are warnings
3725885a 8902 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
d7040cdb
SE
8903 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8904 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8905 lt_cv_prog_compiler_c_o=yes
8906 fi
8907 fi
8908 chmod u+w . 2>&5
8909 $RM conftest*
8910 # SGI C++ compiler will create directory out/ii_files/ for
8911 # template instantiation
8912 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8913 $RM out/* && rmdir out
8914 cd ..
8915 $RM -r conftest
8916 $RM conftest*
8917
8918fi
81ecdfbb
RW
8919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8920$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8921
8922
8923
8924
8925
8926
81ecdfbb
RW
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8928$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8929if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8930 $as_echo_n "(cached) " >&6
d7040cdb
SE
8931else
8932 lt_cv_prog_compiler_c_o=no
8933 $RM -r conftest 2>/dev/null
8934 mkdir conftest
8935 cd conftest
8936 mkdir out
8937 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8938
8939 lt_compiler_flag="-o out/conftest2.$ac_objext"
8940 # Insert the option either (1) after the last *FLAGS variable, or
8941 # (2) before a word containing "conftest.", or (3) at the end.
8942 # Note that $ac_compile itself does not contain backslashes and begins
8943 # with a dollar sign (not a hyphen), so the echo should work correctly.
8944 lt_compile=`echo "$ac_compile" | $SED \
8945 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8946 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8947 -e 's:$: $lt_compiler_flag:'`
3725885a 8948 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7040cdb
SE
8949 (eval "$lt_compile" 2>out/conftest.err)
8950 ac_status=$?
8951 cat out/conftest.err >&5
3725885a 8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8953 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8954 then
8955 # The compiler can only warn and ignore the option if not recognized
8956 # So say no if there are warnings
3725885a 8957 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
d7040cdb
SE
8958 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8959 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8960 lt_cv_prog_compiler_c_o=yes
8961 fi
8962 fi
8963 chmod u+w . 2>&5
8964 $RM conftest*
8965 # SGI C++ compiler will create directory out/ii_files/ for
8966 # template instantiation
8967 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8968 $RM out/* && rmdir out
8969 cd ..
8970 $RM -r conftest
8971 $RM conftest*
8972
8973fi
81ecdfbb
RW
8974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8975$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8976
8977
8978
8979
8980hard_links="nottested"
8981if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8982 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8984$as_echo_n "checking if we can lock with hard links... " >&6; }
d7040cdb
SE
8985 hard_links=yes
8986 $RM conftest*
8987 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8988 touch conftest.a
8989 ln conftest.a conftest.b 2>&5 || hard_links=no
8990 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8992$as_echo "$hard_links" >&6; }
d7040cdb 8993 if test "$hard_links" = no; then
81ecdfbb
RW
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8995$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
d7040cdb
SE
8996 need_locks=warn
8997 fi
8998else
8999 need_locks=no
9000fi
9001
9002
9003
9004
9005
9006
81ecdfbb
RW
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9008$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb
SE
9009
9010 runpath_var=
9011 allow_undefined_flag=
9012 always_export_symbols=no
9013 archive_cmds=
9014 archive_expsym_cmds=
9015 compiler_needs_object=no
9016 enable_shared_with_static_runtimes=no
9017 export_dynamic_flag_spec=
9018 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9019 hardcode_automatic=no
9020 hardcode_direct=no
9021 hardcode_direct_absolute=no
9022 hardcode_libdir_flag_spec=
9023 hardcode_libdir_flag_spec_ld=
9024 hardcode_libdir_separator=
9025 hardcode_minus_L=no
9026 hardcode_shlibpath_var=unsupported
9027 inherit_rpath=no
9028 link_all_deplibs=unknown
9029 module_cmds=
9030 module_expsym_cmds=
9031 old_archive_from_new_cmds=
9032 old_archive_from_expsyms_cmds=
9033 thread_safe_flag_spec=
9034 whole_archive_flag_spec=
9035 # include_expsyms should be a list of space-separated symbols to be *always*
9036 # included in the symbol list
9037 include_expsyms=
9038 # exclude_expsyms can be an extended regexp of symbols to exclude
9039 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9040 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9041 # as well as any symbol that contains `d'.
718a6fd8 9042 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
d7040cdb
SE
9043 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9044 # platforms (ab)use it in PIC code, but their linkers get confused if
9045 # the symbol is explicitly referenced. Since portable code cannot
9046 # rely on this symbol name, it's probably fine to never include it in
9047 # preloaded symbol tables.
718a6fd8 9048 # Exclude shared library initialization/finalization symbols.
d7040cdb
SE
9049 extract_expsyms_cmds=
9050
9051 case $host_os in
718a6fd8 9052 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
9053 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9054 # When not using gcc, we currently assume that we are using
9055 # Microsoft Visual C++.
9056 if test "$GCC" != yes; then
9057 with_gnu_ld=no
9058 fi
9059 ;;
9060 interix*)
9061 # we just hope/assume this is gcc and not c89 (= MSVC++)
9062 with_gnu_ld=yes
9063 ;;
9064 openbsd*)
9065 with_gnu_ld=no
9066 ;;
9067 esac
9068
9069 ld_shlibs=yes
3725885a
RW
9070
9071 # On some targets, GNU ld is compatible enough with the native linker
9072 # that we're better off using the native interface for both.
9073 lt_use_gnu_ld_interface=no
d7040cdb 9074 if test "$with_gnu_ld" = yes; then
3725885a
RW
9075 case $host_os in
9076 aix*)
9077 # The AIX port of GNU ld has always aspired to compatibility
9078 # with the native linker. However, as the warning in the GNU ld
9079 # block says, versions before 2.19.5* couldn't really create working
9080 # shared libraries, regardless of the interface used.
9081 case `$LD -v 2>&1` in
9082 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9083 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9084 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9085 *)
9086 lt_use_gnu_ld_interface=yes
9087 ;;
9088 esac
9089 ;;
9090 *)
9091 lt_use_gnu_ld_interface=yes
9092 ;;
9093 esac
9094 fi
9095
9096 if test "$lt_use_gnu_ld_interface" = yes; then
d7040cdb
SE
9097 # If archive_cmds runs LD, not CC, wlarc should be empty
9098 wlarc='${wl}'
9099
9100 # Set some defaults for GNU ld with shared library support. These
9101 # are reset later if shared libraries are not supported. Putting them
9102 # here allows them to be overridden if necessary.
9103 runpath_var=LD_RUN_PATH
9104 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9105 export_dynamic_flag_spec='${wl}--export-dynamic'
9106 # ancient GNU ld didn't support --whole-archive et. al.
9107 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9108 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9109 else
9110 whole_archive_flag_spec=
9111 fi
9112 supports_anon_versioning=no
9113 case `$LD -v 2>&1` in
3725885a 9114 *GNU\ gold*) supports_anon_versioning=yes ;;
d7040cdb
SE
9115 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9116 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9117 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9118 *\ 2.11.*) ;; # other 2.11 versions
9119 *) supports_anon_versioning=yes ;;
9120 esac
9121
9122 # See if GNU ld supports shared libraries.
9123 case $host_os in
e81819a5 9124 aix[3-9]*)
d7040cdb
SE
9125 # On AIX/PPC, the GNU linker is very broken
9126 if test "$host_cpu" != ia64; then
9127 ld_shlibs=no
9128 cat <<_LT_EOF 1>&2
9129
3725885a 9130*** Warning: the GNU linker, at least up to release 2.19, is reported
d7040cdb
SE
9131*** to be unable to reliably create shared libraries on AIX.
9132*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
9133*** really care for shared libraries, you may want to install binutils
9134*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9135*** You will then need to restart the configuration process.
d7040cdb
SE
9136
9137_LT_EOF
9138 fi
9139 ;;
9140
9141 amigaos*)
718a6fd8
SE
9142 case $host_cpu in
9143 powerpc)
9144 # see comment about AmigaOS4 .so support
9145 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9146 archive_expsym_cmds=''
9147 ;;
9148 m68k)
9149 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)'
9150 hardcode_libdir_flag_spec='-L$libdir'
9151 hardcode_minus_L=yes
9152 ;;
9153 esac
d7040cdb
SE
9154 ;;
9155
9156 beos*)
9157 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9158 allow_undefined_flag=unsupported
9159 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9160 # support --undefined. This deserves some investigation. FIXME
9161 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9162 else
9163 ld_shlibs=no
9164 fi
9165 ;;
9166
718a6fd8 9167 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
9168 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9169 # as there is no search path for DLLs.
9170 hardcode_libdir_flag_spec='-L$libdir'
3725885a 9171 export_dynamic_flag_spec='${wl}--export-all-symbols'
d7040cdb
SE
9172 allow_undefined_flag=unsupported
9173 always_export_symbols=no
9174 enable_shared_with_static_runtimes=yes
9175 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9176
9177 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9178 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9179 # If the export-symbols file already is a .def file (1st line
9180 # is EXPORTS), use it as is; otherwise, prepend...
9181 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9182 cp $export_symbols $output_objdir/$soname.def;
9183 else
9184 echo EXPORTS > $output_objdir/$soname.def;
9185 cat $export_symbols >> $output_objdir/$soname.def;
9186 fi~
9187 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9188 else
9189 ld_shlibs=no
9190 fi
9191 ;;
9192
3725885a
RW
9193 haiku*)
9194 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9195 link_all_deplibs=yes
9196 ;;
9197
d7040cdb
SE
9198 interix[3-9]*)
9199 hardcode_direct=no
9200 hardcode_shlibpath_var=no
9201 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9202 export_dynamic_flag_spec='${wl}-E'
9203 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9204 # Instead, shared libraries are loaded at an image base (0x10000000 by
9205 # default) and relocated if they conflict, which is a slow very memory
9206 # consuming and fragmenting process. To avoid this, we pick a random,
9207 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9208 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9209 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9210 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'
9211 ;;
9212
58e24671 9213 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb
SE
9214 tmp_diet=no
9215 if test "$host_os" = linux-dietlibc; then
9216 case $cc_basename in
9217 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9218 esac
9219 fi
9220 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9221 && test "$tmp_diet" = no
9222 then
6e733cce 9223 tmp_addflag=' $pic_flag'
718a6fd8 9224 tmp_sharedflag='-shared'
d7040cdb
SE
9225 case $cc_basename,$host_cpu in
9226 pgcc*) # Portland Group C compiler
3725885a 9227 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'
d7040cdb
SE
9228 tmp_addflag=' $pic_flag'
9229 ;;
3725885a
RW
9230 pgf77* | pgf90* | pgf95* | pgfortran*)
9231 # Portland Group f77 and f90 compilers
9232 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'
d7040cdb
SE
9233 tmp_addflag=' $pic_flag -Mnomain' ;;
9234 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9235 tmp_addflag=' -i_dynamic' ;;
9236 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9237 tmp_addflag=' -i_dynamic -nofor_main' ;;
9238 ifc* | ifort*) # Intel Fortran compiler
9239 tmp_addflag=' -nofor_main' ;;
718a6fd8
SE
9240 lf95*) # Lahey Fortran 8.1
9241 whole_archive_flag_spec=
9242 tmp_sharedflag='--shared' ;;
3725885a 9243 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
718a6fd8
SE
9244 tmp_sharedflag='-qmkshrobj'
9245 tmp_addflag= ;;
3725885a
RW
9246 nvcc*) # Cuda Compiler Driver 2.2
9247 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'
9248 compiler_needs_object=yes
9249 ;;
d7040cdb
SE
9250 esac
9251 case `$CC -V 2>&1 | sed 5q` in
9252 *Sun\ C*) # Sun C 5.9
3725885a 9253 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'
d7040cdb
SE
9254 compiler_needs_object=yes
9255 tmp_sharedflag='-G' ;;
9256 *Sun\ F*) # Sun Fortran 8.3
9257 tmp_sharedflag='-G' ;;
d7040cdb
SE
9258 esac
9259 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9260
9261 if test "x$supports_anon_versioning" = xyes; then
9262 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9263 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9264 echo "local: *; };" >> $output_objdir/$libname.ver~
9265 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9266 fi
718a6fd8
SE
9267
9268 case $cc_basename in
3725885a 9269 xlf* | bgf* | bgxlf* | mpixlf*)
718a6fd8
SE
9270 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9271 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9272 hardcode_libdir_flag_spec=
9273 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9274 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9275 if test "x$supports_anon_versioning" = xyes; then
9276 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9277 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9278 echo "local: *; };" >> $output_objdir/$libname.ver~
9279 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9280 fi
9281 ;;
9282 esac
d7040cdb
SE
9283 else
9284 ld_shlibs=no
9285 fi
9286 ;;
9287
9288 netbsd*)
9289 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9290 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9291 wlarc=
9292 else
9293 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9294 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9295 fi
9296 ;;
9297
9298 solaris*)
9299 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9300 ld_shlibs=no
9301 cat <<_LT_EOF 1>&2
9302
9303*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9304*** create shared libraries on Solaris systems. Therefore, libtool
9305*** is disabling shared libraries support. We urge you to upgrade GNU
9306*** binutils to release 2.9.1 or newer. Another option is to modify
9307*** your PATH or compiler configuration so that the native linker is
9308*** used, and then restart.
9309
9310_LT_EOF
9311 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9312 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9313 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9314 else
9315 ld_shlibs=no
9316 fi
9317 ;;
9318
9319 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9320 case `$LD -v 2>&1` in
9321 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9322 ld_shlibs=no
9323 cat <<_LT_EOF 1>&2
9324
9325*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9326*** reliably create shared libraries on SCO systems. Therefore, libtool
9327*** is disabling shared libraries support. We urge you to upgrade GNU
9328*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9329*** your PATH or compiler configuration so that the native linker is
9330*** used, and then restart.
9331
9332_LT_EOF
9333 ;;
9334 *)
9335 # For security reasons, it is highly recommended that you always
9336 # use absolute paths for naming shared libraries, and exclude the
9337 # DT_RUNPATH tag from executables and libraries. But doing so
9338 # requires that you compile everything twice, which is a pain.
9339 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9340 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9341 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9342 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9343 else
9344 ld_shlibs=no
9345 fi
9346 ;;
9347 esac
9348 ;;
9349
9350 sunos4*)
9351 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9352 wlarc=
9353 hardcode_direct=yes
9354 hardcode_shlibpath_var=no
9355 ;;
9356
9357 *)
9358 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9359 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9360 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9361 else
9362 ld_shlibs=no
9363 fi
9364 ;;
9365 esac
9366
9367 if test "$ld_shlibs" = no; then
9368 runpath_var=
9369 hardcode_libdir_flag_spec=
9370 export_dynamic_flag_spec=
9371 whole_archive_flag_spec=
9372 fi
9373 else
9374 # PORTME fill in a description of your system's linker (not GNU ld)
9375 case $host_os in
9376 aix3*)
9377 allow_undefined_flag=unsupported
9378 always_export_symbols=yes
9379 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'
9380 # Note: this linker hardcodes the directories in LIBPATH if there
9381 # are no directories specified by -L.
9382 hardcode_minus_L=yes
9383 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9384 # Neither direct hardcoding nor static linking is supported with a
9385 # broken collect2.
9386 hardcode_direct=unsupported
9387 fi
9388 ;;
9389
e81819a5 9390 aix[4-9]*)
d7040cdb
SE
9391 if test "$host_cpu" = ia64; then
9392 # On IA64, the linker does run time linking by default, so we don't
9393 # have to do anything special.
9394 aix_use_runtimelinking=no
9395 exp_sym_flag='-Bexport'
9396 no_entry_flag=""
9397 else
9398 # If we're using GNU nm, then we don't want the "-C" option.
9399 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
9400 # Also, AIX nm treats weak defined symbols like other global
9401 # defined symbols, whereas GNU nm marks them as "W".
d7040cdb 9402 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 9403 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'
d7040cdb 9404 else
5c14705f 9405 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
d7040cdb
SE
9406 fi
9407 aix_use_runtimelinking=no
9408
9409 # Test if we are trying to use run time linking or normal
9410 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9411 # need to do runtime linking.
e81819a5 9412 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
d7040cdb
SE
9413 for ld_flag in $LDFLAGS; do
9414 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9415 aix_use_runtimelinking=yes
9416 break
9417 fi
9418 done
9419 ;;
9420 esac
9421
9422 exp_sym_flag='-bexport'
9423 no_entry_flag='-bnoentry'
9424 fi
9425
9426 # When large executables or shared objects are built, AIX ld can
9427 # have problems creating the table of contents. If linking a library
9428 # or program results in "error TOC overflow" add -mminimal-toc to
9429 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9430 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9431
9432 archive_cmds=''
9433 hardcode_direct=yes
9434 hardcode_direct_absolute=yes
9435 hardcode_libdir_separator=':'
9436 link_all_deplibs=yes
9437 file_list_spec='${wl}-f,'
9438
9439 if test "$GCC" = yes; then
9440 case $host_os in aix4.[012]|aix4.[012].*)
9441 # We only want to do this on AIX 4.2 and lower, the check
9442 # below for broken collect2 doesn't work under 4.3+
9443 collect2name=`${CC} -print-prog-name=collect2`
9444 if test -f "$collect2name" &&
9445 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9446 then
9447 # We have reworked collect2
9448 :
9449 else
9450 # We have old collect2
9451 hardcode_direct=unsupported
9452 # It fails to find uninstalled libraries when the uninstalled
9453 # path is not listed in the libpath. Setting hardcode_minus_L
9454 # to unsupported forces relinking
9455 hardcode_minus_L=yes
9456 hardcode_libdir_flag_spec='-L$libdir'
9457 hardcode_libdir_separator=
9458 fi
9459 ;;
9460 esac
9461 shared_flag='-shared'
9462 if test "$aix_use_runtimelinking" = yes; then
9463 shared_flag="$shared_flag "'${wl}-G'
9464 fi
9465 else
9466 # not using gcc
9467 if test "$host_cpu" = ia64; then
9468 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9469 # chokes on -Wl,-G. The following line is correct:
9470 shared_flag='-G'
9471 else
9472 if test "$aix_use_runtimelinking" = yes; then
9473 shared_flag='${wl}-G'
9474 else
9475 shared_flag='${wl}-bM:SRE'
9476 fi
9477 fi
9478 fi
9479
718a6fd8 9480 export_dynamic_flag_spec='${wl}-bexpall'
d7040cdb
SE
9481 # It seems that -bexpall does not export symbols beginning with
9482 # underscore (_), so it is better to generate a list of symbols to export.
9483 always_export_symbols=yes
9484 if test "$aix_use_runtimelinking" = yes; then
9485 # Warning - without using the other runtime loading flags (-brtl),
9486 # -berok will link without error, but may produce a broken library.
9487 allow_undefined_flag='-berok'
9488 # Determine the default libpath from the value encoded in an
9489 # empty executable.
81ecdfbb 9490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
9491/* end confdefs.h. */
9492
9493int
9494main ()
9495{
9496
9497 ;
9498 return 0;
9499}
9500_ACEOF
81ecdfbb 9501if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
9502
9503lt_aix_libpath_sed='
9504 /Import File Strings/,/^$/ {
9505 /^0/ {
9506 s/^0 *\(.*\)$/\1/
9507 p
9508 }
9509 }'
9510aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9511# Check for a 64-bit object if we didn't find anything.
9512if test -z "$aix_libpath"; then
9513 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9514fi
d7040cdb 9515fi
81ecdfbb
RW
9516rm -f core conftest.err conftest.$ac_objext \
9517 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
9518if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9519
9520 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 9521 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"
d7040cdb
SE
9522 else
9523 if test "$host_cpu" = ia64; then
9524 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9525 allow_undefined_flag="-z nodefs"
9526 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"
9527 else
9528 # Determine the default libpath from the value encoded in an
9529 # empty executable.
81ecdfbb 9530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
9531/* end confdefs.h. */
9532
9533int
9534main ()
9535{
9536
9537 ;
9538 return 0;
9539}
9540_ACEOF
81ecdfbb 9541if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
9542
9543lt_aix_libpath_sed='
9544 /Import File Strings/,/^$/ {
9545 /^0/ {
9546 s/^0 *\(.*\)$/\1/
9547 p
9548 }
9549 }'
9550aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9551# Check for a 64-bit object if we didn't find anything.
9552if test -z "$aix_libpath"; then
9553 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9554fi
d7040cdb 9555fi
81ecdfbb
RW
9556rm -f core conftest.err conftest.$ac_objext \
9557 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
9558if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9559
9560 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9561 # Warning - without using the other run time loading flags,
9562 # -berok will link without error, but may produce a broken library.
9563 no_undefined_flag=' ${wl}-bernotok'
9564 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
9565 if test "$with_gnu_ld" = yes; then
9566 # We only use this code for GNU lds that support --whole-archive.
9567 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9568 else
9569 # Exported symbols can be pulled into shared objects from archives
9570 whole_archive_flag_spec='$convenience'
9571 fi
d7040cdb
SE
9572 archive_cmds_need_lc=yes
9573 # This is similar to how AIX traditionally builds its shared libraries.
9574 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'
9575 fi
9576 fi
9577 ;;
9578
9579 amigaos*)
718a6fd8
SE
9580 case $host_cpu in
9581 powerpc)
9582 # see comment about AmigaOS4 .so support
9583 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9584 archive_expsym_cmds=''
9585 ;;
9586 m68k)
9587 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)'
9588 hardcode_libdir_flag_spec='-L$libdir'
9589 hardcode_minus_L=yes
9590 ;;
9591 esac
d7040cdb
SE
9592 ;;
9593
9594 bsdi[45]*)
9595 export_dynamic_flag_spec=-rdynamic
9596 ;;
9597
718a6fd8 9598 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
9599 # When not using gcc, we currently assume that we are using
9600 # Microsoft Visual C++.
9601 # hardcode_libdir_flag_spec is actually meaningless, as there is
9602 # no search path for DLLs.
9603 hardcode_libdir_flag_spec=' '
9604 allow_undefined_flag=unsupported
9605 # Tell ltmain to make .lib files, not .a files.
9606 libext=lib
9607 # Tell ltmain to make .dll files, not .so files.
9608 shrext_cmds=".dll"
9609 # FIXME: Setting linknames here is a bad hack.
3725885a 9610 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
d7040cdb
SE
9611 # The linker will automatically build a .lib file if we build a DLL.
9612 old_archive_from_new_cmds='true'
9613 # FIXME: Should let the user specify the lib program.
9614 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9615 fix_srcfile_path='`cygpath -w "$srcfile"`'
9616 enable_shared_with_static_runtimes=yes
9617 ;;
9618
9619 darwin* | rhapsody*)
d7040cdb 9620
718a6fd8
SE
9621
9622 archive_cmds_need_lc=no
9623 hardcode_direct=no
9624 hardcode_automatic=yes
9625 hardcode_shlibpath_var=unsupported
3725885a
RW
9626 if test "$lt_cv_ld_force_load" = "yes"; then
9627 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\"`'
9628 else
9629 whole_archive_flag_spec=''
9630 fi
718a6fd8
SE
9631 link_all_deplibs=yes
9632 allow_undefined_flag="$_lt_dar_allow_undefined"
9633 case $cc_basename in
9634 ifort*) _lt_dar_can_shared=yes ;;
9635 *) _lt_dar_can_shared=$GCC ;;
9636 esac
9637 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 9638 output_verbose_link_cmd=func_echo_all
718a6fd8
SE
9639 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9640 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9641 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}"
9642 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}"
9643
9644 else
9645 ld_shlibs=no
9646 fi
9647
d7040cdb
SE
9648 ;;
9649
9650 dgux*)
9651 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9652 hardcode_libdir_flag_spec='-L$libdir'
9653 hardcode_shlibpath_var=no
9654 ;;
9655
d7040cdb
SE
9656 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9657 # support. Future versions do this automatically, but an explicit c++rt0.o
9658 # does not break anything, and helps significantly (at the cost of a little
9659 # extra space).
9660 freebsd2.2*)
9661 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9662 hardcode_libdir_flag_spec='-R$libdir'
9663 hardcode_direct=yes
9664 hardcode_shlibpath_var=no
9665 ;;
9666
9667 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6d2920c8 9668 freebsd2.*)
d7040cdb
SE
9669 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9670 hardcode_direct=yes
9671 hardcode_minus_L=yes
9672 hardcode_shlibpath_var=no
9673 ;;
9674
9675 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9676 freebsd* | dragonfly*)
9677 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9678 hardcode_libdir_flag_spec='-R$libdir'
9679 hardcode_direct=yes
9680 hardcode_shlibpath_var=no
9681 ;;
9682
9683 hpux9*)
9684 if test "$GCC" = yes; then
9685 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'
9686 else
9687 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'
9688 fi
9689 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9690 hardcode_libdir_separator=:
9691 hardcode_direct=yes
9692
9693 # hardcode_minus_L: Not really in the search PATH,
9694 # but as the default location of the library.
9695 hardcode_minus_L=yes
9696 export_dynamic_flag_spec='${wl}-E'
9697 ;;
9698
9699 hpux10*)
3725885a 9700 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
d7040cdb
SE
9701 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9702 else
9703 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9704 fi
9705 if test "$with_gnu_ld" = no; then
9706 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9707 hardcode_libdir_flag_spec_ld='+b $libdir'
9708 hardcode_libdir_separator=:
9709 hardcode_direct=yes
9710 hardcode_direct_absolute=yes
9711 export_dynamic_flag_spec='${wl}-E'
9712 # hardcode_minus_L: Not really in the search PATH,
9713 # but as the default location of the library.
9714 hardcode_minus_L=yes
9715 fi
9716 ;;
9717
9718 hpux11*)
3725885a 9719 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
d7040cdb
SE
9720 case $host_cpu in
9721 hppa*64*)
9722 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9723 ;;
9724 ia64*)
718a6fd8 9725 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb
SE
9726 ;;
9727 *)
9728 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9729 ;;
9730 esac
9731 else
9732 case $host_cpu in
9733 hppa*64*)
9734 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9735 ;;
9736 ia64*)
9737 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9738 ;;
9739 *)
3725885a
RW
9740
9741 # Older versions of the 11.00 compiler do not understand -b yet
9742 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9744$as_echo_n "checking if $CC understands -b... " >&6; }
9745if test "${lt_cv_prog_compiler__b+set}" = set; then :
9746 $as_echo_n "(cached) " >&6
9747else
9748 lt_cv_prog_compiler__b=no
9749 save_LDFLAGS="$LDFLAGS"
9750 LDFLAGS="$LDFLAGS -b"
9751 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9752 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9753 # The linker can only warn and ignore the option if not recognized
9754 # So say no if there are warnings
9755 if test -s conftest.err; then
9756 # Append any errors to the config.log.
9757 cat conftest.err 1>&5
9758 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9759 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9760 if diff conftest.exp conftest.er2 >/dev/null; then
9761 lt_cv_prog_compiler__b=yes
9762 fi
9763 else
9764 lt_cv_prog_compiler__b=yes
9765 fi
9766 fi
9767 $RM -r conftest*
9768 LDFLAGS="$save_LDFLAGS"
9769
9770fi
9771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9772$as_echo "$lt_cv_prog_compiler__b" >&6; }
9773
9774if test x"$lt_cv_prog_compiler__b" = xyes; then
9775 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9776else
9777 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9778fi
9779
d7040cdb
SE
9780 ;;
9781 esac
9782 fi
9783 if test "$with_gnu_ld" = no; then
9784 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9785 hardcode_libdir_separator=:
9786
9787 case $host_cpu in
9788 hppa*64*|ia64*)
9789 hardcode_direct=no
9790 hardcode_shlibpath_var=no
9791 ;;
9792 *)
9793 hardcode_direct=yes
9794 hardcode_direct_absolute=yes
9795 export_dynamic_flag_spec='${wl}-E'
9796
9797 # hardcode_minus_L: Not really in the search PATH,
9798 # but as the default location of the library.
9799 hardcode_minus_L=yes
9800 ;;
9801 esac
9802 fi
9803 ;;
9804
9805 irix5* | irix6* | nonstopux*)
9806 if test "$GCC" = yes; then
3725885a 9807 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'
d7040cdb
SE
9808 # Try to use the -exported_symbol ld option, if it does not
9809 # work, assume that -exports_file does not work either and
9810 # implicitly export all symbols.
9811 save_LDFLAGS="$LDFLAGS"
9812 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
81ecdfbb
RW
9813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9814/* end confdefs.h. */
d7040cdb
SE
9815int foo(void) {}
9816_ACEOF
81ecdfbb 9817if ac_fn_c_try_link "$LINENO"; then :
3725885a 9818 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'
d7040cdb 9819
d7040cdb 9820fi
81ecdfbb
RW
9821rm -f core conftest.err conftest.$ac_objext \
9822 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
9823 LDFLAGS="$save_LDFLAGS"
9824 else
3725885a
RW
9825 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'
9826 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'
d7040cdb
SE
9827 fi
9828 archive_cmds_need_lc='no'
9829 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9830 hardcode_libdir_separator=:
9831 inherit_rpath=yes
9832 link_all_deplibs=yes
9833 ;;
9834
9835 netbsd*)
9836 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9837 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9838 else
9839 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9840 fi
9841 hardcode_libdir_flag_spec='-R$libdir'
9842 hardcode_direct=yes
9843 hardcode_shlibpath_var=no
9844 ;;
9845
9846 newsos6)
9847 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9848 hardcode_direct=yes
9849 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9850 hardcode_libdir_separator=:
9851 hardcode_shlibpath_var=no
9852 ;;
9853
9854 *nto* | *qnx*)
9855 ;;
9856
9857 openbsd*)
718a6fd8
SE
9858 if test -f /usr/libexec/ld.so; then
9859 hardcode_direct=yes
9860 hardcode_shlibpath_var=no
9861 hardcode_direct_absolute=yes
9862 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
d7040cdb 9863 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
718a6fd8 9864 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
d7040cdb 9865 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
718a6fd8
SE
9866 export_dynamic_flag_spec='${wl}-E'
9867 else
9868 case $host_os in
9869 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9870 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9871 hardcode_libdir_flag_spec='-R$libdir'
9872 ;;
9873 *)
9874 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9875 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9876 ;;
9877 esac
9878 fi
9879 else
9880 ld_shlibs=no
d7040cdb
SE
9881 fi
9882 ;;
9883
9884 os2*)
9885 hardcode_libdir_flag_spec='-L$libdir'
9886 hardcode_minus_L=yes
9887 allow_undefined_flag=unsupported
3725885a 9888 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'
d7040cdb
SE
9889 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9890 ;;
9891
9892 osf3*)
9893 if test "$GCC" = yes; then
9894 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 9895 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'
d7040cdb
SE
9896 else
9897 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9898 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'
d7040cdb
SE
9899 fi
9900 archive_cmds_need_lc='no'
9901 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9902 hardcode_libdir_separator=:
9903 ;;
9904
9905 osf4* | osf5*) # as osf3* with the addition of -msym flag
9906 if test "$GCC" = yes; then
9907 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 9908 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'
d7040cdb
SE
9909 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9910 else
9911 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9912 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'
d7040cdb 9913 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~
3725885a 9914 $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'
d7040cdb
SE
9915
9916 # Both c and cxx compiler support -rpath directly
9917 hardcode_libdir_flag_spec='-rpath $libdir'
9918 fi
9919 archive_cmds_need_lc='no'
9920 hardcode_libdir_separator=:
9921 ;;
9922
9923 solaris*)
9924 no_undefined_flag=' -z defs'
9925 if test "$GCC" = yes; then
9926 wlarc='${wl}'
9927 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9928 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9929 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9930 else
9931 case `$CC -V 2>&1` in
9932 *"Compilers 5.0"*)
9933 wlarc=''
9934 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9935 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9936 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9937 ;;
9938 *)
9939 wlarc='${wl}'
9940 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9941 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9942 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9943 ;;
9944 esac
9945 fi
9946 hardcode_libdir_flag_spec='-R$libdir'
9947 hardcode_shlibpath_var=no
9948 case $host_os in
9949 solaris2.[0-5] | solaris2.[0-5].*) ;;
9950 *)
9951 # The compiler driver will combine and reorder linker options,
9952 # but understands `-z linker_flag'. GCC discards it without `$wl',
9953 # but is careful enough not to reorder.
9954 # Supported since Solaris 2.6 (maybe 2.5.1?)
9955 if test "$GCC" = yes; then
9956 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9957 else
9958 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9959 fi
9960 ;;
9961 esac
9962 link_all_deplibs=yes
9963 ;;
9964
9965 sunos4*)
9966 if test "x$host_vendor" = xsequent; then
9967 # Use $CC to link under sequent, because it throws in some extra .o
9968 # files that make .init and .fini sections work.
9969 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9970 else
9971 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9972 fi
9973 hardcode_libdir_flag_spec='-L$libdir'
9974 hardcode_direct=yes
9975 hardcode_minus_L=yes
9976 hardcode_shlibpath_var=no
9977 ;;
9978
9979 sysv4)
9980 case $host_vendor in
9981 sni)
9982 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9983 hardcode_direct=yes # is this really true???
9984 ;;
9985 siemens)
9986 ## LD is ld it makes a PLAMLIB
9987 ## CC just makes a GrossModule.
9988 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9989 reload_cmds='$CC -r -o $output$reload_objs'
9990 hardcode_direct=no
9991 ;;
9992 motorola)
9993 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9994 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9995 ;;
9996 esac
9997 runpath_var='LD_RUN_PATH'
9998 hardcode_shlibpath_var=no
9999 ;;
10000
10001 sysv4.3*)
10002 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10003 hardcode_shlibpath_var=no
10004 export_dynamic_flag_spec='-Bexport'
10005 ;;
10006
10007 sysv4*MP*)
10008 if test -d /usr/nec; then
10009 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10010 hardcode_shlibpath_var=no
10011 runpath_var=LD_RUN_PATH
10012 hardcode_runpath_var=yes
10013 ld_shlibs=yes
10014 fi
10015 ;;
10016
10017 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10018 no_undefined_flag='${wl}-z,text'
10019 archive_cmds_need_lc=no
10020 hardcode_shlibpath_var=no
10021 runpath_var='LD_RUN_PATH'
10022
10023 if test "$GCC" = yes; then
10024 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10025 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10026 else
10027 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10028 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10029 fi
10030 ;;
10031
10032 sysv5* | sco3.2v5* | sco5v6*)
10033 # Note: We can NOT use -z defs as we might desire, because we do not
10034 # link with -lc, and that would cause any symbols used from libc to
10035 # always be unresolved, which means just about no library would
10036 # ever link correctly. If we're not using GNU ld we use -z text
10037 # though, which does catch some bad symbols but isn't as heavy-handed
10038 # as -z defs.
10039 no_undefined_flag='${wl}-z,text'
10040 allow_undefined_flag='${wl}-z,nodefs'
10041 archive_cmds_need_lc=no
10042 hardcode_shlibpath_var=no
10043 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10044 hardcode_libdir_separator=':'
10045 link_all_deplibs=yes
10046 export_dynamic_flag_spec='${wl}-Bexport'
10047 runpath_var='LD_RUN_PATH'
10048
10049 if test "$GCC" = yes; then
10050 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10051 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10052 else
10053 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10054 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10055 fi
10056 ;;
10057
10058 uts4*)
10059 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10060 hardcode_libdir_flag_spec='-L$libdir'
10061 hardcode_shlibpath_var=no
10062 ;;
10063
10064 *)
10065 ld_shlibs=no
10066 ;;
10067 esac
10068
10069 if test x$host_vendor = xsni; then
10070 case $host in
10071 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10072 export_dynamic_flag_spec='${wl}-Blargedynsym'
10073 ;;
10074 esac
10075 fi
10076 fi
10077
81ecdfbb
RW
10078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10079$as_echo "$ld_shlibs" >&6; }
d7040cdb
SE
10080test "$ld_shlibs" = no && can_build_shared=no
10081
10082with_gnu_ld=$with_gnu_ld
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098#
10099# Do we need to explicitly link libc?
10100#
10101case "x$archive_cmds_need_lc" in
10102x|xyes)
10103 # Assume -lc should be added
10104 archive_cmds_need_lc=yes
10105
10106 if test "$enable_shared" = yes && test "$GCC" = yes; then
10107 case $archive_cmds in
10108 *'~'*)
10109 # FIXME: we may have to deal with multi-command sequences.
10110 ;;
10111 '$CC '*)
10112 # Test whether the compiler implicitly links with -lc since on some
10113 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10114 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10116$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10117if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10118 $as_echo_n "(cached) " >&6
39144654
RW
10119else
10120 $RM conftest*
10121 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 10122
81ecdfbb 10123 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d7040cdb
SE
10124 (eval $ac_compile) 2>&5
10125 ac_status=$?
81ecdfbb
RW
10126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10127 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
10128 soname=conftest
10129 lib=conftest
10130 libobjs=conftest.$ac_objext
10131 deplibs=
10132 wl=$lt_prog_compiler_wl
10133 pic_flag=$lt_prog_compiler_pic
10134 compiler_flags=-v
10135 linker_flags=-v
10136 verstring=
10137 output_objdir=.
10138 libname=conftest
10139 lt_save_allow_undefined_flag=$allow_undefined_flag
10140 allow_undefined_flag=
81ecdfbb 10141 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
d7040cdb
SE
10142 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10143 ac_status=$?
81ecdfbb
RW
10144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10145 test $ac_status = 0; }
39144654
RW
10146 then
10147 lt_cv_archive_cmds_need_lc=no
10148 else
10149 lt_cv_archive_cmds_need_lc=yes
10150 fi
10151 allow_undefined_flag=$lt_save_allow_undefined_flag
10152 else
10153 cat conftest.err 1>&5
10154 fi
10155 $RM conftest*
10156
10157fi
81ecdfbb
RW
10158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10159$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 10160 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
d7040cdb
SE
10161 ;;
10162 esac
10163 fi
10164 ;;
10165esac
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
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
81ecdfbb
RW
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10324$as_echo_n "checking dynamic linker characteristics... " >&6; }
718a6fd8
SE
10325
10326if test "$GCC" = yes; then
d7040cdb
SE
10327 case $host_os in
10328 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10329 *) lt_awk_arg="/^libraries:/" ;;
10330 esac
3725885a
RW
10331 case $host_os in
10332 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10333 *) lt_sed_strip_eq="s,=/,/,g" ;;
10334 esac
10335 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10336 case $lt_search_path_spec in
10337 *\;*)
d7040cdb
SE
10338 # if the path contains ";" then we assume it to be the separator
10339 # otherwise default to the standard path separator (i.e. ":") - it is
10340 # assumed that no part of a normal pathname contains ";" but that should
10341 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
10342 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10343 ;;
10344 *)
10345 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10346 ;;
10347 esac
d7040cdb
SE
10348 # Ok, now we have the path, separated by spaces, we can step through it
10349 # and add multilib dir if necessary.
10350 lt_tmp_lt_search_path_spec=
10351 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10352 for lt_sys_path in $lt_search_path_spec; do
10353 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10354 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10355 else
10356 test -d "$lt_sys_path" && \
10357 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10358 fi
10359 done
3725885a 10360 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
d7040cdb
SE
10361BEGIN {RS=" "; FS="/|\n";} {
10362 lt_foo="";
10363 lt_count=0;
10364 for (lt_i = NF; lt_i > 0; lt_i--) {
10365 if ($lt_i != "" && $lt_i != ".") {
10366 if ($lt_i == "..") {
10367 lt_count++;
10368 } else {
10369 if (lt_count == 0) {
10370 lt_foo="/" $lt_i lt_foo;
10371 } else {
10372 lt_count--;
10373 }
10374 }
10375 }
10376 }
10377 if (lt_foo != "") { lt_freq[lt_foo]++; }
10378 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10379}'`
3725885a
RW
10380 # AWK program above erroneously prepends '/' to C:/dos/paths
10381 # for these hosts.
10382 case $host_os in
10383 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10384 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10385 esac
10386 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7040cdb
SE
10387else
10388 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10389fi
10390library_names_spec=
10391libname_spec='lib$name'
10392soname_spec=
10393shrext_cmds=".so"
10394postinstall_cmds=
10395postuninstall_cmds=
10396finish_cmds=
10397finish_eval=
10398shlibpath_var=
10399shlibpath_overrides_runpath=unknown
10400version_type=none
10401dynamic_linker="$host_os ld.so"
10402sys_lib_dlsearch_path_spec="/lib /usr/lib"
10403need_lib_prefix=unknown
10404hardcode_into_libs=no
10405
10406# when you set need_version to no, make sure it does not cause -set_version
10407# flags to be left without arguments
10408need_version=unknown
10409
10410case $host_os in
10411aix3*)
10412 version_type=linux
10413 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10414 shlibpath_var=LIBPATH
10415
10416 # AIX 3 has no versioning support, so we append a major version to the name.
10417 soname_spec='${libname}${release}${shared_ext}$major'
10418 ;;
10419
e81819a5 10420aix[4-9]*)
d7040cdb
SE
10421 version_type=linux
10422 need_lib_prefix=no
10423 need_version=no
10424 hardcode_into_libs=yes
10425 if test "$host_cpu" = ia64; then
10426 # AIX 5 supports IA64
10427 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10428 shlibpath_var=LD_LIBRARY_PATH
10429 else
10430 # With GCC up to 2.95.x, collect2 would create an import file
10431 # for dependence libraries. The import file would start with
10432 # the line `#! .'. This would cause the generated library to
10433 # depend on `.', always an invalid library. This was fixed in
10434 # development snapshots of GCC prior to 3.0.
10435 case $host_os in
10436 aix4 | aix4.[01] | aix4.[01].*)
10437 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10438 echo ' yes '
10439 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10440 :
10441 else
10442 can_build_shared=no
10443 fi
10444 ;;
10445 esac
10446 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10447 # soname into executable. Probably we can add versioning support to
10448 # collect2, so additional links can be useful in future.
10449 if test "$aix_use_runtimelinking" = yes; then
10450 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10451 # instead of lib<name>.a to let people know that these are not
10452 # typical AIX shared libraries.
10453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10454 else
10455 # We preserve .a as extension for shared libraries through AIX4.2
10456 # and later when we are not doing run time linking.
10457 library_names_spec='${libname}${release}.a $libname.a'
10458 soname_spec='${libname}${release}${shared_ext}$major'
10459 fi
10460 shlibpath_var=LIBPATH
10461 fi
10462 ;;
10463
10464amigaos*)
718a6fd8
SE
10465 case $host_cpu in
10466 powerpc)
10467 # Since July 2007 AmigaOS4 officially supports .so libraries.
10468 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10470 ;;
10471 m68k)
d7040cdb
SE
10472 library_names_spec='$libname.ixlibrary $libname.a'
10473 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 10474 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'
718a6fd8
SE
10475 ;;
10476 esac
d7040cdb
SE
10477 ;;
10478
10479beos*)
10480 library_names_spec='${libname}${shared_ext}'
10481 dynamic_linker="$host_os ld.so"
10482 shlibpath_var=LIBRARY_PATH
10483 ;;
10484
10485bsdi[45]*)
10486 version_type=linux
10487 need_version=no
10488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10489 soname_spec='${libname}${release}${shared_ext}$major'
10490 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10491 shlibpath_var=LD_LIBRARY_PATH
10492 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10493 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10494 # the default ld.so.conf also contains /usr/contrib/lib and
10495 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10496 # libtool to hard-code these into programs
10497 ;;
10498
718a6fd8 10499cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
10500 version_type=windows
10501 shrext_cmds=".dll"
10502 need_version=no
10503 need_lib_prefix=no
10504
718a6fd8
SE
10505 case $GCC,$host_os in
10506 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
d7040cdb
SE
10507 library_names_spec='$libname.dll.a'
10508 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10509 postinstall_cmds='base_file=`basename \${file}`~
10510 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10511 dldir=$destdir/`dirname \$dlpath`~
10512 test -d \$dldir || mkdir -p \$dldir~
10513 $install_prog $dir/$dlname \$dldir/$dlname~
10514 chmod a+x \$dldir/$dlname~
10515 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10516 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10517 fi'
10518 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10519 dlpath=$dir/\$dldll~
10520 $RM \$dlpath'
10521 shlibpath_overrides_runpath=yes
10522
10523 case $host_os in
10524 cygwin*)
10525 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10526 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
10527
10528 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
d7040cdb 10529 ;;
718a6fd8 10530 mingw* | cegcc*)
d7040cdb
SE
10531 # MinGW DLLs use traditional 'lib' prefix
10532 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
d7040cdb
SE
10533 ;;
10534 pw32*)
10535 # pw32 DLLs use 'pw' prefix rather than 'lib'
10536 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10537 ;;
10538 esac
10539 ;;
10540
10541 *)
10542 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10543 ;;
10544 esac
10545 dynamic_linker='Win32 ld.exe'
10546 # FIXME: first we should search . and the directory the executable is in
10547 shlibpath_var=PATH
10548 ;;
10549
10550darwin* | rhapsody*)
10551 dynamic_linker="$host_os dyld"
10552 version_type=darwin
10553 need_lib_prefix=no
10554 need_version=no
10555 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10556 soname_spec='${libname}${release}${major}$shared_ext'
10557 shlibpath_overrides_runpath=yes
10558 shlibpath_var=DYLD_LIBRARY_PATH
10559 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10560
10561 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10562 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10563 ;;
10564
10565dgux*)
10566 version_type=linux
10567 need_lib_prefix=no
10568 need_version=no
10569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10570 soname_spec='${libname}${release}${shared_ext}$major'
10571 shlibpath_var=LD_LIBRARY_PATH
10572 ;;
10573
d7040cdb
SE
10574freebsd* | dragonfly*)
10575 # DragonFly does not have aout. When/if they implement a new
10576 # versioning mechanism, adjust this.
10577 if test -x /usr/bin/objformat; then
10578 objformat=`/usr/bin/objformat`
10579 else
10580 case $host_os in
6d2920c8 10581 freebsd[23].*) objformat=aout ;;
d7040cdb
SE
10582 *) objformat=elf ;;
10583 esac
10584 fi
10585 version_type=freebsd-$objformat
10586 case $version_type in
10587 freebsd-elf*)
10588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10589 need_version=no
10590 need_lib_prefix=no
10591 ;;
10592 freebsd-*)
10593 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10594 need_version=yes
10595 ;;
10596 esac
10597 shlibpath_var=LD_LIBRARY_PATH
10598 case $host_os in
6d2920c8 10599 freebsd2.*)
d7040cdb
SE
10600 shlibpath_overrides_runpath=yes
10601 ;;
10602 freebsd3.[01]* | freebsdelf3.[01]*)
10603 shlibpath_overrides_runpath=yes
10604 hardcode_into_libs=yes
10605 ;;
10606 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10607 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10608 shlibpath_overrides_runpath=no
10609 hardcode_into_libs=yes
10610 ;;
10611 *) # from 4.6 on, and DragonFly
10612 shlibpath_overrides_runpath=yes
10613 hardcode_into_libs=yes
10614 ;;
10615 esac
10616 ;;
10617
10618gnu*)
10619 version_type=linux
10620 need_lib_prefix=no
10621 need_version=no
10622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10623 soname_spec='${libname}${release}${shared_ext}$major'
10624 shlibpath_var=LD_LIBRARY_PATH
10625 hardcode_into_libs=yes
10626 ;;
10627
3725885a
RW
10628haiku*)
10629 version_type=linux
10630 need_lib_prefix=no
10631 need_version=no
10632 dynamic_linker="$host_os runtime_loader"
10633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10634 soname_spec='${libname}${release}${shared_ext}$major'
10635 shlibpath_var=LIBRARY_PATH
10636 shlibpath_overrides_runpath=yes
10637 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10638 hardcode_into_libs=yes
10639 ;;
10640
d7040cdb
SE
10641hpux9* | hpux10* | hpux11*)
10642 # Give a soname corresponding to the major version so that dld.sl refuses to
10643 # link against other versions.
10644 version_type=sunos
10645 need_lib_prefix=no
10646 need_version=no
10647 case $host_cpu in
10648 ia64*)
10649 shrext_cmds='.so'
10650 hardcode_into_libs=yes
10651 dynamic_linker="$host_os dld.so"
10652 shlibpath_var=LD_LIBRARY_PATH
10653 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10655 soname_spec='${libname}${release}${shared_ext}$major'
10656 if test "X$HPUX_IA64_MODE" = X32; then
10657 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10658 else
10659 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10660 fi
10661 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10662 ;;
10663 hppa*64*)
10664 shrext_cmds='.sl'
10665 hardcode_into_libs=yes
10666 dynamic_linker="$host_os dld.sl"
10667 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10668 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10670 soname_spec='${libname}${release}${shared_ext}$major'
10671 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10672 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10673 ;;
10674 *)
10675 shrext_cmds='.sl'
10676 dynamic_linker="$host_os dld.sl"
10677 shlibpath_var=SHLIB_PATH
10678 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10680 soname_spec='${libname}${release}${shared_ext}$major'
10681 ;;
10682 esac
3725885a 10683 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
d7040cdb 10684 postinstall_cmds='chmod 555 $lib'
3725885a
RW
10685 # or fails outright, so override atomically:
10686 install_override_mode=555
d7040cdb
SE
10687 ;;
10688
10689interix[3-9]*)
10690 version_type=linux
10691 need_lib_prefix=no
10692 need_version=no
10693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10694 soname_spec='${libname}${release}${shared_ext}$major'
10695 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10696 shlibpath_var=LD_LIBRARY_PATH
10697 shlibpath_overrides_runpath=no
10698 hardcode_into_libs=yes
10699 ;;
10700
10701irix5* | irix6* | nonstopux*)
10702 case $host_os in
10703 nonstopux*) version_type=nonstopux ;;
10704 *)
10705 if test "$lt_cv_prog_gnu_ld" = yes; then
10706 version_type=linux
10707 else
10708 version_type=irix
10709 fi ;;
10710 esac
10711 need_lib_prefix=no
10712 need_version=no
10713 soname_spec='${libname}${release}${shared_ext}$major'
10714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10715 case $host_os in
10716 irix5* | nonstopux*)
10717 libsuff= shlibsuff=
10718 ;;
10719 *)
10720 case $LD in # libtool.m4 will add one of these switches to LD
10721 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10722 libsuff= shlibsuff= libmagic=32-bit;;
10723 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10724 libsuff=32 shlibsuff=N32 libmagic=N32;;
10725 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10726 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10727 *) libsuff= shlibsuff= libmagic=never-match;;
10728 esac
10729 ;;
10730 esac
10731 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10732 shlibpath_overrides_runpath=no
10733 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10734 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10735 hardcode_into_libs=yes
10736 ;;
10737
10738# No shared lib support for Linux oldld, aout, or coff.
10739linux*oldld* | linux*aout* | linux*coff*)
10740 dynamic_linker=no
10741 ;;
10742
10743# This must be Linux ELF.
58e24671 10744linux* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb
SE
10745 version_type=linux
10746 need_lib_prefix=no
10747 need_version=no
10748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10749 soname_spec='${libname}${release}${shared_ext}$major'
10750 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10751 shlibpath_var=LD_LIBRARY_PATH
10752 shlibpath_overrides_runpath=no
39144654 10753
d7040cdb 10754 # Some binutils ld are patched to set DT_RUNPATH
81ecdfbb
RW
10755 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10756 $as_echo_n "(cached) " >&6
39144654
RW
10757else
10758 lt_cv_shlibpath_overrides_runpath=no
10759 save_LDFLAGS=$LDFLAGS
10760 save_libdir=$libdir
10761 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10762 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 10763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10764/* end confdefs.h. */
10765
10766int
10767main ()
10768{
10769
10770 ;
10771 return 0;
10772}
10773_ACEOF
81ecdfbb
RW
10774if ac_fn_c_try_link "$LINENO"; then :
10775 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 10776 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb 10777fi
d7040cdb 10778fi
81ecdfbb
RW
10779rm -f core conftest.err conftest.$ac_objext \
10780 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10781 LDFLAGS=$save_LDFLAGS
10782 libdir=$save_libdir
10783
10784fi
10785
10786 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb
SE
10787
10788 # This implies no fast_install, which is unacceptable.
10789 # Some rework will be needed to allow for fast_install
10790 # before this can be enabled.
10791 hardcode_into_libs=yes
10792
10793 # Append ld.so.conf contents to the search path
10794 if test -f /etc/ld.so.conf; then
3725885a 10795 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' ' '`
d7040cdb
SE
10796 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10797 fi
10798
10799 # We used to test for /lib/ld.so.1 and disable shared libraries on
10800 # powerpc, because MkLinux only supported shared libraries with the
10801 # GNU dynamic linker. Since this was broken with cross compilers,
10802 # most powerpc-linux boxes support dynamic linking these days and
10803 # people can always --disable-shared, the test was removed, and we
10804 # assume the GNU/Linux dynamic linker is in use.
10805 dynamic_linker='GNU/Linux ld.so'
10806 ;;
10807
10808netbsd*)
10809 version_type=sunos
10810 need_lib_prefix=no
10811 need_version=no
10812 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10814 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10815 dynamic_linker='NetBSD (a.out) ld.so'
10816 else
10817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10818 soname_spec='${libname}${release}${shared_ext}$major'
10819 dynamic_linker='NetBSD ld.elf_so'
10820 fi
10821 shlibpath_var=LD_LIBRARY_PATH
10822 shlibpath_overrides_runpath=yes
10823 hardcode_into_libs=yes
10824 ;;
10825
10826newsos6)
10827 version_type=linux
10828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10829 shlibpath_var=LD_LIBRARY_PATH
10830 shlibpath_overrides_runpath=yes
10831 ;;
10832
10833*nto* | *qnx*)
10834 version_type=qnx
10835 need_lib_prefix=no
10836 need_version=no
10837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10838 soname_spec='${libname}${release}${shared_ext}$major'
10839 shlibpath_var=LD_LIBRARY_PATH
10840 shlibpath_overrides_runpath=no
10841 hardcode_into_libs=yes
10842 dynamic_linker='ldqnx.so'
10843 ;;
10844
10845openbsd*)
10846 version_type=sunos
10847 sys_lib_dlsearch_path_spec="/usr/lib"
10848 need_lib_prefix=no
10849 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10850 case $host_os in
10851 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10852 *) need_version=no ;;
10853 esac
10854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10855 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10856 shlibpath_var=LD_LIBRARY_PATH
10857 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10858 case $host_os in
10859 openbsd2.[89] | openbsd2.[89].*)
10860 shlibpath_overrides_runpath=no
10861 ;;
10862 *)
10863 shlibpath_overrides_runpath=yes
10864 ;;
10865 esac
10866 else
10867 shlibpath_overrides_runpath=yes
10868 fi
10869 ;;
10870
10871os2*)
10872 libname_spec='$name'
10873 shrext_cmds=".dll"
10874 need_lib_prefix=no
10875 library_names_spec='$libname${shared_ext} $libname.a'
10876 dynamic_linker='OS/2 ld.exe'
10877 shlibpath_var=LIBPATH
10878 ;;
10879
10880osf3* | osf4* | osf5*)
10881 version_type=osf
10882 need_lib_prefix=no
10883 need_version=no
10884 soname_spec='${libname}${release}${shared_ext}$major'
10885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10886 shlibpath_var=LD_LIBRARY_PATH
10887 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10888 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10889 ;;
10890
10891rdos*)
10892 dynamic_linker=no
10893 ;;
10894
10895solaris*)
10896 version_type=linux
10897 need_lib_prefix=no
10898 need_version=no
10899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10900 soname_spec='${libname}${release}${shared_ext}$major'
10901 shlibpath_var=LD_LIBRARY_PATH
10902 shlibpath_overrides_runpath=yes
10903 hardcode_into_libs=yes
10904 # ldd complains unless libraries are executable
10905 postinstall_cmds='chmod +x $lib'
10906 ;;
10907
10908sunos4*)
10909 version_type=sunos
10910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10911 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10912 shlibpath_var=LD_LIBRARY_PATH
10913 shlibpath_overrides_runpath=yes
10914 if test "$with_gnu_ld" = yes; then
10915 need_lib_prefix=no
10916 fi
10917 need_version=yes
10918 ;;
10919
10920sysv4 | sysv4.3*)
10921 version_type=linux
10922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10923 soname_spec='${libname}${release}${shared_ext}$major'
10924 shlibpath_var=LD_LIBRARY_PATH
10925 case $host_vendor in
10926 sni)
10927 shlibpath_overrides_runpath=no
10928 need_lib_prefix=no
10929 runpath_var=LD_RUN_PATH
10930 ;;
10931 siemens)
10932 need_lib_prefix=no
10933 ;;
10934 motorola)
10935 need_lib_prefix=no
10936 need_version=no
10937 shlibpath_overrides_runpath=no
10938 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10939 ;;
10940 esac
10941 ;;
10942
10943sysv4*MP*)
10944 if test -d /usr/nec ;then
10945 version_type=linux
10946 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10947 soname_spec='$libname${shared_ext}.$major'
10948 shlibpath_var=LD_LIBRARY_PATH
10949 fi
10950 ;;
10951
10952sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10953 version_type=freebsd-elf
10954 need_lib_prefix=no
10955 need_version=no
10956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10957 soname_spec='${libname}${release}${shared_ext}$major'
10958 shlibpath_var=LD_LIBRARY_PATH
10959 shlibpath_overrides_runpath=yes
10960 hardcode_into_libs=yes
10961 if test "$with_gnu_ld" = yes; then
10962 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10963 else
10964 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10965 case $host_os in
10966 sco3.2v5*)
10967 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10968 ;;
10969 esac
10970 fi
10971 sys_lib_dlsearch_path_spec='/usr/lib'
10972 ;;
10973
10974tpf*)
10975 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10976 version_type=linux
10977 need_lib_prefix=no
10978 need_version=no
718a6fd8 10979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
d7040cdb
SE
10980 shlibpath_var=LD_LIBRARY_PATH
10981 shlibpath_overrides_runpath=no
10982 hardcode_into_libs=yes
10983 ;;
10984
10985uts4*)
10986 version_type=linux
10987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10988 soname_spec='${libname}${release}${shared_ext}$major'
10989 shlibpath_var=LD_LIBRARY_PATH
10990 ;;
10991
10992*)
10993 dynamic_linker=no
10994 ;;
10995esac
81ecdfbb
RW
10996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10997$as_echo "$dynamic_linker" >&6; }
d7040cdb
SE
10998test "$dynamic_linker" = no && can_build_shared=no
10999
11000variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11001if test "$GCC" = yes; then
11002 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11003fi
11004
718a6fd8
SE
11005if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11006 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11007fi
11008if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11009 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11010fi
11011
d7040cdb
SE
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
3725885a
RW
11092
11093
11094
11095
11096
d7040cdb
SE
11097
11098
11099
11100
11101
11102
81ecdfbb
RW
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11104$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
d7040cdb
SE
11105hardcode_action=
11106if test -n "$hardcode_libdir_flag_spec" ||
11107 test -n "$runpath_var" ||
11108 test "X$hardcode_automatic" = "Xyes" ; then
11109
11110 # We can hardcode non-existent directories.
11111 if test "$hardcode_direct" != no &&
11112 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11113 # have to relink, otherwise we might link with an installed library
11114 # when we should be linking with a yet-to-be-installed one
11115 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11116 test "$hardcode_minus_L" != no; then
11117 # Linking always hardcodes the temporary library directory.
11118 hardcode_action=relink
11119 else
11120 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11121 hardcode_action=immediate
11122 fi
11123else
11124 # We cannot hardcode anything, or else we can only hardcode existing
11125 # directories.
11126 hardcode_action=unsupported
11127fi
81ecdfbb
RW
11128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11129$as_echo "$hardcode_action" >&6; }
d7040cdb
SE
11130
11131if test "$hardcode_action" = relink ||
11132 test "$inherit_rpath" = yes; then
11133 # Fast installation is not supported
11134 enable_fast_install=no
11135elif test "$shlibpath_overrides_runpath" = yes ||
11136 test "$enable_shared" = no; then
11137 # Fast installation is not necessary
11138 enable_fast_install=needless
11139fi
11140
11141
11142
11143
11144
11145
11146 if test "x$enable_dlopen" != xyes; then
11147 enable_dlopen=unknown
11148 enable_dlopen_self=unknown
11149 enable_dlopen_self_static=unknown
11150else
11151 lt_cv_dlopen=no
11152 lt_cv_dlopen_libs=
11153
11154 case $host_os in
11155 beos*)
11156 lt_cv_dlopen="load_add_on"
11157 lt_cv_dlopen_libs=
11158 lt_cv_dlopen_self=yes
11159 ;;
11160
718a6fd8 11161 mingw* | pw32* | cegcc*)
d7040cdb
SE
11162 lt_cv_dlopen="LoadLibrary"
11163 lt_cv_dlopen_libs=
11164 ;;
11165
11166 cygwin*)
11167 lt_cv_dlopen="dlopen"
11168 lt_cv_dlopen_libs=
11169 ;;
11170
11171 darwin*)
11172 # if libdl is installed we need to link against it
81ecdfbb
RW
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11174$as_echo_n "checking for dlopen in -ldl... " >&6; }
11175if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11176 $as_echo_n "(cached) " >&6
d7040cdb
SE
11177else
11178 ac_check_lib_save_LIBS=$LIBS
11179LIBS="-ldl $LIBS"
81ecdfbb 11180cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11181/* end confdefs.h. */
11182
81ecdfbb
RW
11183/* Override any GCC internal prototype to avoid an error.
11184 Use char because int might match the return type of a GCC
11185 builtin and then its argument prototype would still apply. */
d7040cdb
SE
11186#ifdef __cplusplus
11187extern "C"
11188#endif
d7040cdb
SE
11189char dlopen ();
11190int
11191main ()
11192{
81ecdfbb 11193return dlopen ();
d7040cdb
SE
11194 ;
11195 return 0;
11196}
11197_ACEOF
81ecdfbb 11198if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
11199 ac_cv_lib_dl_dlopen=yes
11200else
81ecdfbb 11201 ac_cv_lib_dl_dlopen=no
d7040cdb 11202fi
81ecdfbb
RW
11203rm -f core conftest.err conftest.$ac_objext \
11204 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
11205LIBS=$ac_check_lib_save_LIBS
11206fi
81ecdfbb
RW
11207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11208$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11209if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
d7040cdb
SE
11210 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11211else
11212
11213 lt_cv_dlopen="dyld"
11214 lt_cv_dlopen_libs=
11215 lt_cv_dlopen_self=yes
11216
11217fi
11218
11219 ;;
11220
11221 *)
81ecdfbb
RW
11222 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11223if test "x$ac_cv_func_shl_load" = x""yes; then :
d7040cdb
SE
11224 lt_cv_dlopen="shl_load"
11225else
81ecdfbb
RW
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11227$as_echo_n "checking for shl_load in -ldld... " >&6; }
11228if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11229 $as_echo_n "(cached) " >&6
d7040cdb
SE
11230else
11231 ac_check_lib_save_LIBS=$LIBS
11232LIBS="-ldld $LIBS"
81ecdfbb 11233cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11234/* end confdefs.h. */
11235
81ecdfbb
RW
11236/* Override any GCC internal prototype to avoid an error.
11237 Use char because int might match the return type of a GCC
11238 builtin and then its argument prototype would still apply. */
d7040cdb
SE
11239#ifdef __cplusplus
11240extern "C"
11241#endif
d7040cdb
SE
11242char shl_load ();
11243int
11244main ()
11245{
81ecdfbb 11246return shl_load ();
d7040cdb
SE
11247 ;
11248 return 0;
11249}
11250_ACEOF
81ecdfbb 11251if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
11252 ac_cv_lib_dld_shl_load=yes
11253else
81ecdfbb 11254 ac_cv_lib_dld_shl_load=no
d7040cdb 11255fi
81ecdfbb
RW
11256rm -f core conftest.err conftest.$ac_objext \
11257 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
11258LIBS=$ac_check_lib_save_LIBS
11259fi
81ecdfbb
RW
11260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11261$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11262if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
718a6fd8 11263 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
d7040cdb 11264else
81ecdfbb
RW
11265 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11266if test "x$ac_cv_func_dlopen" = x""yes; then :
d7040cdb
SE
11267 lt_cv_dlopen="dlopen"
11268else
81ecdfbb
RW
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11270$as_echo_n "checking for dlopen in -ldl... " >&6; }
11271if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11272 $as_echo_n "(cached) " >&6
d7040cdb
SE
11273else
11274 ac_check_lib_save_LIBS=$LIBS
11275LIBS="-ldl $LIBS"
81ecdfbb 11276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11277/* end confdefs.h. */
11278
81ecdfbb
RW
11279/* Override any GCC internal prototype to avoid an error.
11280 Use char because int might match the return type of a GCC
11281 builtin and then its argument prototype would still apply. */
d7040cdb
SE
11282#ifdef __cplusplus
11283extern "C"
11284#endif
d7040cdb
SE
11285char dlopen ();
11286int
11287main ()
11288{
81ecdfbb 11289return dlopen ();
d7040cdb
SE
11290 ;
11291 return 0;
11292}
11293_ACEOF
81ecdfbb 11294if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
11295 ac_cv_lib_dl_dlopen=yes
11296else
81ecdfbb 11297 ac_cv_lib_dl_dlopen=no
d7040cdb 11298fi
81ecdfbb
RW
11299rm -f core conftest.err conftest.$ac_objext \
11300 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
11301LIBS=$ac_check_lib_save_LIBS
11302fi
81ecdfbb
RW
11303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11304$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11305if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
d7040cdb
SE
11306 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11307else
81ecdfbb
RW
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11309$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11310if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11311 $as_echo_n "(cached) " >&6
d7040cdb
SE
11312else
11313 ac_check_lib_save_LIBS=$LIBS
11314LIBS="-lsvld $LIBS"
81ecdfbb 11315cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11316/* end confdefs.h. */
11317
81ecdfbb
RW
11318/* Override any GCC internal prototype to avoid an error.
11319 Use char because int might match the return type of a GCC
11320 builtin and then its argument prototype would still apply. */
d7040cdb
SE
11321#ifdef __cplusplus
11322extern "C"
11323#endif
d7040cdb
SE
11324char dlopen ();
11325int
11326main ()
11327{
81ecdfbb 11328return dlopen ();
d7040cdb
SE
11329 ;
11330 return 0;
11331}
11332_ACEOF
81ecdfbb 11333if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
11334 ac_cv_lib_svld_dlopen=yes
11335else
81ecdfbb 11336 ac_cv_lib_svld_dlopen=no
d7040cdb 11337fi
81ecdfbb
RW
11338rm -f core conftest.err conftest.$ac_objext \
11339 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
11340LIBS=$ac_check_lib_save_LIBS
11341fi
81ecdfbb
RW
11342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11343$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11344if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
d7040cdb
SE
11345 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11346else
81ecdfbb
RW
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11348$as_echo_n "checking for dld_link in -ldld... " >&6; }
11349if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11350 $as_echo_n "(cached) " >&6
d7040cdb
SE
11351else
11352 ac_check_lib_save_LIBS=$LIBS
11353LIBS="-ldld $LIBS"
81ecdfbb 11354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11355/* end confdefs.h. */
11356
81ecdfbb
RW
11357/* Override any GCC internal prototype to avoid an error.
11358 Use char because int might match the return type of a GCC
11359 builtin and then its argument prototype would still apply. */
d7040cdb
SE
11360#ifdef __cplusplus
11361extern "C"
11362#endif
d7040cdb
SE
11363char dld_link ();
11364int
11365main ()
11366{
81ecdfbb 11367return dld_link ();
d7040cdb
SE
11368 ;
11369 return 0;
11370}
11371_ACEOF
81ecdfbb 11372if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
11373 ac_cv_lib_dld_dld_link=yes
11374else
81ecdfbb 11375 ac_cv_lib_dld_dld_link=no
d7040cdb 11376fi
81ecdfbb
RW
11377rm -f core conftest.err conftest.$ac_objext \
11378 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
11379LIBS=$ac_check_lib_save_LIBS
11380fi
81ecdfbb
RW
11381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11382$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11383if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
718a6fd8 11384 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
d7040cdb
SE
11385fi
11386
11387
11388fi
11389
11390
11391fi
11392
11393
11394fi
11395
11396
11397fi
11398
11399
11400fi
11401
11402 ;;
11403 esac
11404
11405 if test "x$lt_cv_dlopen" != xno; then
11406 enable_dlopen=yes
20e95c23 11407 else
d7040cdb 11408 enable_dlopen=no
252b5132 11409 fi
5464f5a1 11410
d7040cdb
SE
11411 case $lt_cv_dlopen in
11412 dlopen)
11413 save_CPPFLAGS="$CPPFLAGS"
11414 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11415
11416 save_LDFLAGS="$LDFLAGS"
11417 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11418
11419 save_LIBS="$LIBS"
11420 LIBS="$lt_cv_dlopen_libs $LIBS"
11421
81ecdfbb
RW
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11423$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11424if test "${lt_cv_dlopen_self+set}" = set; then :
11425 $as_echo_n "(cached) " >&6
20e95c23 11426else
d7040cdb
SE
11427 if test "$cross_compiling" = yes; then :
11428 lt_cv_dlopen_self=cross
11429else
11430 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11431 lt_status=$lt_dlunknown
11432 cat > conftest.$ac_ext <<_LT_EOF
f6aec96d 11433#line 11433 "configure"
d7040cdb
SE
11434#include "confdefs.h"
11435
11436#if HAVE_DLFCN_H
11437#include <dlfcn.h>
11438#endif
11439
11440#include <stdio.h>
11441
11442#ifdef RTLD_GLOBAL
11443# define LT_DLGLOBAL RTLD_GLOBAL
11444#else
11445# ifdef DL_GLOBAL
11446# define LT_DLGLOBAL DL_GLOBAL
11447# else
11448# define LT_DLGLOBAL 0
11449# endif
11450#endif
11451
11452/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11453 find out it does not work in some platform. */
11454#ifndef LT_DLLAZY_OR_NOW
11455# ifdef RTLD_LAZY
11456# define LT_DLLAZY_OR_NOW RTLD_LAZY
11457# else
11458# ifdef DL_LAZY
11459# define LT_DLLAZY_OR_NOW DL_LAZY
11460# else
11461# ifdef RTLD_NOW
11462# define LT_DLLAZY_OR_NOW RTLD_NOW
11463# else
11464# ifdef DL_NOW
11465# define LT_DLLAZY_OR_NOW DL_NOW
11466# else
11467# define LT_DLLAZY_OR_NOW 0
11468# endif
11469# endif
11470# endif
11471# endif
11472#endif
11473
3725885a
RW
11474/* When -fvisbility=hidden is used, assume the code has been annotated
11475 correspondingly for the symbols needed. */
11476#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11477void fnord () __attribute__((visibility("default")));
11478#endif
11479
11480void fnord () { int i=42; }
d7040cdb
SE
11481int main ()
11482{
11483 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11484 int status = $lt_dlunknown;
11485
11486 if (self)
11487 {
11488 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11489 else
11490 {
11491 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11492 else puts (dlerror ());
11493 }
d7040cdb
SE
11494 /* dlclose (self); */
11495 }
11496 else
11497 puts (dlerror ());
11498
718a6fd8 11499 return status;
d7040cdb
SE
11500}
11501_LT_EOF
81ecdfbb 11502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
11503 (eval $ac_link) 2>&5
11504 ac_status=$?
81ecdfbb
RW
11505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11506 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
d7040cdb
SE
11507 (./conftest; exit; ) >&5 2>/dev/null
11508 lt_status=$?
11509 case x$lt_status in
11510 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11511 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11512 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11513 esac
11514 else :
11515 # compilation failed
11516 lt_cv_dlopen_self=no
11517 fi
252b5132 11518fi
d7040cdb 11519rm -fr conftest*
20e95c23 11520
d7040cdb
SE
11521
11522fi
81ecdfbb
RW
11523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11524$as_echo "$lt_cv_dlopen_self" >&6; }
d7040cdb
SE
11525
11526 if test "x$lt_cv_dlopen_self" = xyes; then
11527 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11529$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11530if test "${lt_cv_dlopen_self_static+set}" = set; then :
11531 $as_echo_n "(cached) " >&6
20e95c23 11532else
d7040cdb
SE
11533 if test "$cross_compiling" = yes; then :
11534 lt_cv_dlopen_self_static=cross
11535else
11536 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11537 lt_status=$lt_dlunknown
11538 cat > conftest.$ac_ext <<_LT_EOF
f6aec96d 11539#line 11539 "configure"
d7040cdb
SE
11540#include "confdefs.h"
11541
11542#if HAVE_DLFCN_H
11543#include <dlfcn.h>
11544#endif
11545
11546#include <stdio.h>
11547
11548#ifdef RTLD_GLOBAL
11549# define LT_DLGLOBAL RTLD_GLOBAL
11550#else
11551# ifdef DL_GLOBAL
11552# define LT_DLGLOBAL DL_GLOBAL
11553# else
11554# define LT_DLGLOBAL 0
11555# endif
11556#endif
11557
11558/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11559 find out it does not work in some platform. */
11560#ifndef LT_DLLAZY_OR_NOW
11561# ifdef RTLD_LAZY
11562# define LT_DLLAZY_OR_NOW RTLD_LAZY
11563# else
11564# ifdef DL_LAZY
11565# define LT_DLLAZY_OR_NOW DL_LAZY
11566# else
11567# ifdef RTLD_NOW
11568# define LT_DLLAZY_OR_NOW RTLD_NOW
11569# else
11570# ifdef DL_NOW
11571# define LT_DLLAZY_OR_NOW DL_NOW
11572# else
11573# define LT_DLLAZY_OR_NOW 0
11574# endif
11575# endif
11576# endif
11577# endif
11578#endif
11579
3725885a
RW
11580/* When -fvisbility=hidden is used, assume the code has been annotated
11581 correspondingly for the symbols needed. */
11582#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11583void fnord () __attribute__((visibility("default")));
11584#endif
11585
11586void fnord () { int i=42; }
d7040cdb
SE
11587int main ()
11588{
11589 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11590 int status = $lt_dlunknown;
11591
11592 if (self)
11593 {
11594 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11595 else
11596 {
11597 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11598 else puts (dlerror ());
11599 }
d7040cdb
SE
11600 /* dlclose (self); */
11601 }
11602 else
11603 puts (dlerror ());
11604
718a6fd8 11605 return status;
d7040cdb
SE
11606}
11607_LT_EOF
81ecdfbb 11608 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
11609 (eval $ac_link) 2>&5
11610 ac_status=$?
81ecdfbb
RW
11611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11612 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
d7040cdb
SE
11613 (./conftest; exit; ) >&5 2>/dev/null
11614 lt_status=$?
11615 case x$lt_status in
11616 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11617 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11618 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11619 esac
11620 else :
11621 # compilation failed
11622 lt_cv_dlopen_self_static=no
11623 fi
11624fi
11625rm -fr conftest*
11626
11627
11628fi
81ecdfbb
RW
11629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11630$as_echo "$lt_cv_dlopen_self_static" >&6; }
d7040cdb
SE
11631 fi
11632
11633 CPPFLAGS="$save_CPPFLAGS"
11634 LDFLAGS="$save_LDFLAGS"
11635 LIBS="$save_LIBS"
11636 ;;
11637 esac
11638
11639 case $lt_cv_dlopen_self in
11640 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11641 *) enable_dlopen_self=unknown ;;
11642 esac
11643
11644 case $lt_cv_dlopen_self_static in
11645 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11646 *) enable_dlopen_self_static=unknown ;;
11647 esac
11648fi
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666striplib=
11667old_striplib=
81ecdfbb
RW
11668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11669$as_echo_n "checking whether stripping libraries is possible... " >&6; }
d7040cdb
SE
11670if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11671 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11672 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
81ecdfbb
RW
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11674$as_echo "yes" >&6; }
d7040cdb
SE
11675else
11676# FIXME - insert some real tests, host_os isn't really good enough
11677 case $host_os in
11678 darwin*)
11679 if test -n "$STRIP" ; then
11680 striplib="$STRIP -x"
11681 old_striplib="$STRIP -S"
81ecdfbb
RW
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11683$as_echo "yes" >&6; }
d7040cdb 11684 else
81ecdfbb
RW
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11686$as_echo "no" >&6; }
d7040cdb 11687 fi
20e95c23
DJ
11688 ;;
11689 *)
81ecdfbb
RW
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11691$as_echo "no" >&6; }
d7040cdb
SE
11692 ;;
11693 esac
11694fi
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707 # Report which library types will actually be built
81ecdfbb
RW
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11709$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11711$as_echo "$can_build_shared" >&6; }
d7040cdb 11712
81ecdfbb
RW
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11714$as_echo_n "checking whether to build shared libraries... " >&6; }
d7040cdb
SE
11715 test "$can_build_shared" = "no" && enable_shared=no
11716
11717 # On AIX, shared libraries and static libraries use the same namespace, and
11718 # are all built from PIC.
11719 case $host_os in
11720 aix3*)
11721 test "$enable_shared" = yes && enable_static=no
11722 if test -n "$RANLIB"; then
11723 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11724 postinstall_cmds='$RANLIB $lib'
11725 fi
11726 ;;
11727
e81819a5 11728 aix[4-9]*)
d7040cdb
SE
11729 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11730 test "$enable_shared" = yes && enable_static=no
11731 fi
20e95c23 11732 ;;
d7040cdb 11733 esac
81ecdfbb
RW
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11735$as_echo "$enable_shared" >&6; }
d7040cdb 11736
81ecdfbb
RW
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11738$as_echo_n "checking whether to build static libraries... " >&6; }
d7040cdb
SE
11739 # Make sure either enable_shared or enable_static is yes.
11740 test "$enable_shared" = yes || enable_static=yes
81ecdfbb
RW
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11742$as_echo "$enable_static" >&6; }
d7040cdb
SE
11743
11744
11745
11746
11747fi
11748ac_ext=c
11749ac_cpp='$CPP $CPPFLAGS'
11750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11752ac_compiler_gnu=$ac_cv_c_compiler_gnu
11753
11754CC="$lt_save_CC"
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
81ecdfbb 11768 ac_config_commands="$ac_config_commands libtool"
ce3c775b
NC
11769
11770
11771
11772
11773# Only expand once:
11774
11775
11776
da2f07f1
JK
11777# AC_PLUGINS setting $plugins is called by ACX_LARGEFILE.
11778
3388710e
JM
11779# The tests for host and target for $enable_largefile require
11780# canonical names.
11781
11782
11783
da2f07f1
JK
11784# As the $enable_largefile decision depends on --enable-plugins we must set it
11785# even in directories otherwise not depending on the $plugins option.
11786
5691d22d 11787
b879806f
AM
11788 maybe_plugins=no
11789 for ac_header in dlfcn.h
11790do :
11791 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11792"
11793if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11794 cat >>confdefs.h <<_ACEOF
11795#define HAVE_DLFCN_H 1
11796_ACEOF
11797 maybe_plugins=yes
11798fi
11799
11800done
11801
11802 for ac_header in windows.h
11803do :
11804 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11805"
11806if test "x$ac_cv_header_windows_h" = x""yes; then :
11807 cat >>confdefs.h <<_ACEOF
11808#define HAVE_WINDOWS_H 1
11809_ACEOF
11810 maybe_plugins=yes
11811fi
11812
11813done
11814
11815
11816 # Check whether --enable-plugins was given.
81ecdfbb
RW
11817if test "${enable_plugins+set}" = set; then :
11818 enableval=$enable_plugins; case "${enableval}" in
b879806f
AM
11819 no) plugins=no ;;
11820 *) plugins=yes
11821 if test "$maybe_plugins" != "yes" ; then
11822 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11823 fi ;;
11824 esac
ce3c775b 11825else
b879806f
AM
11826 plugins=$maybe_plugins
11827
81ecdfbb 11828fi
ce3c775b 11829
2974be62 11830 if test "$plugins" = "yes"; then
3cba8b6c
L
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11832$as_echo_n "checking for library containing dlsym... " >&6; }
11833if test "${ac_cv_search_dlsym+set}" = set; then :
2974be62
AM
11834 $as_echo_n "(cached) " >&6
11835else
11836 ac_func_search_save_LIBS=$LIBS
11837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11838/* end confdefs.h. */
11839
11840/* Override any GCC internal prototype to avoid an error.
11841 Use char because int might match the return type of a GCC
11842 builtin and then its argument prototype would still apply. */
11843#ifdef __cplusplus
11844extern "C"
11845#endif
3cba8b6c 11846char dlsym ();
2974be62
AM
11847int
11848main ()
11849{
3cba8b6c 11850return dlsym ();
2974be62
AM
11851 ;
11852 return 0;
11853}
11854_ACEOF
11855for ac_lib in '' dl; do
11856 if test -z "$ac_lib"; then
11857 ac_res="none required"
11858 else
11859 ac_res=-l$ac_lib
11860 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11861 fi
11862 if ac_fn_c_try_link "$LINENO"; then :
3cba8b6c 11863 ac_cv_search_dlsym=$ac_res
2974be62
AM
11864fi
11865rm -f core conftest.err conftest.$ac_objext \
11866 conftest$ac_exeext
3cba8b6c 11867 if test "${ac_cv_search_dlsym+set}" = set; then :
2974be62
AM
11868 break
11869fi
11870done
3cba8b6c 11871if test "${ac_cv_search_dlsym+set}" = set; then :
2974be62
AM
11872
11873else
3cba8b6c 11874 ac_cv_search_dlsym=no
2974be62
AM
11875fi
11876rm conftest.$ac_ext
11877LIBS=$ac_func_search_save_LIBS
11878fi
3cba8b6c
L
11879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11880$as_echo "$ac_cv_search_dlsym" >&6; }
11881ac_res=$ac_cv_search_dlsym
2974be62
AM
11882if test "$ac_res" != no; then :
11883 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11884
11885fi
11886
11887 fi
ce3c775b 11888
5691d22d 11889
da2f07f1 11890case "${host}" in
ce3c775b
NC
11891 sparc-*-solaris*|i[3-7]86-*-solaris*)
11892 # On native 32bit sparc and ia32 solaris, large-file and procfs support
da2f07f1 11893 # are mutually exclusive; and without procfs support, the bfd/ elf module
ce3c775b
NC
11894 # cannot provide certain routines such as elfcore_write_prpsinfo
11895 # or elfcore_write_prstatus. So unless the user explicitly requested
11896 # large-file support through the --enable-largefile switch, disable
11897 # large-file support in favor of procfs support.
da2f07f1
JK
11898 test "${target}" = "${host}" -a "x$plugins" = xno \
11899 && : ${enable_largefile="no"}
ce3c775b
NC
11900 ;;
11901esac
11902
81ecdfbb
RW
11903# Check whether --enable-largefile was given.
11904if test "${enable_largefile+set}" = set; then :
11905 enableval=$enable_largefile;
11906fi
ce3c775b 11907
ce3c775b
NC
11908if test "$enable_largefile" != no; then
11909
81ecdfbb
RW
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11911$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11912if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11913 $as_echo_n "(cached) " >&6
ce3c775b
NC
11914else
11915 ac_cv_sys_largefile_CC=no
11916 if test "$GCC" != yes; then
11917 ac_save_CC=$CC
11918 while :; do
81ecdfbb
RW
11919 # IRIX 6.2 and later do not support large files by default,
11920 # so use the C compiler's -n32 option if that helps.
11921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce3c775b
NC
11922/* end confdefs.h. */
11923#include <sys/types.h>
11924 /* Check that off_t can represent 2**63 - 1 correctly.
11925 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11926 since some C++ compilers masquerading as C compilers
11927 incorrectly reject 9223372036854775807. */
11928#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11929 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11930 && LARGE_OFF_T % 2147483647 == 1)
11931 ? 1 : -1];
11932int
11933main ()
11934{
11935
11936 ;
11937 return 0;
11938}
11939_ACEOF
81ecdfbb 11940 if ac_fn_c_try_compile "$LINENO"; then :
ce3c775b 11941 break
ce3c775b 11942fi
81ecdfbb
RW
11943rm -f core conftest.err conftest.$ac_objext
11944 CC="$CC -n32"
11945 if ac_fn_c_try_compile "$LINENO"; then :
ce3c775b 11946 ac_cv_sys_largefile_CC=' -n32'; break
ce3c775b 11947fi
81ecdfbb 11948rm -f core conftest.err conftest.$ac_objext
ce3c775b
NC
11949 break
11950 done
11951 CC=$ac_save_CC
11952 rm -f conftest.$ac_ext
11953 fi
11954fi
81ecdfbb
RW
11955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11956$as_echo "$ac_cv_sys_largefile_CC" >&6; }
ce3c775b
NC
11957 if test "$ac_cv_sys_largefile_CC" != no; then
11958 CC=$CC$ac_cv_sys_largefile_CC
11959 fi
11960
81ecdfbb
RW
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11962$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11963if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11964 $as_echo_n "(cached) " >&6
ce3c775b
NC
11965else
11966 while :; do
81ecdfbb 11967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce3c775b
NC
11968/* end confdefs.h. */
11969#include <sys/types.h>
11970 /* Check that off_t can represent 2**63 - 1 correctly.
11971 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11972 since some C++ compilers masquerading as C compilers
11973 incorrectly reject 9223372036854775807. */
11974#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11975 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11976 && LARGE_OFF_T % 2147483647 == 1)
11977 ? 1 : -1];
11978int
11979main ()
11980{
11981
11982 ;
11983 return 0;
11984}
11985_ACEOF
81ecdfbb
RW
11986if ac_fn_c_try_compile "$LINENO"; then :
11987 ac_cv_sys_file_offset_bits=no; break
ce3c775b 11988fi
81ecdfbb
RW
11989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce3c775b
NC
11991/* end confdefs.h. */
11992#define _FILE_OFFSET_BITS 64
11993#include <sys/types.h>
11994 /* Check that off_t can represent 2**63 - 1 correctly.
11995 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11996 since some C++ compilers masquerading as C compilers
11997 incorrectly reject 9223372036854775807. */
11998#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11999 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12000 && LARGE_OFF_T % 2147483647 == 1)
12001 ? 1 : -1];
12002int
12003main ()
12004{
12005
12006 ;
12007 return 0;
12008}
12009_ACEOF
81ecdfbb 12010if ac_fn_c_try_compile "$LINENO"; then :
ce3c775b 12011 ac_cv_sys_file_offset_bits=64; break
ce3c775b 12012fi
81ecdfbb
RW
12013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12014 ac_cv_sys_file_offset_bits=unknown
ce3c775b
NC
12015 break
12016done
12017fi
81ecdfbb
RW
12018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12019$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12020case $ac_cv_sys_file_offset_bits in #(
12021 no | unknown) ;;
12022 *)
ce3c775b
NC
12023cat >>confdefs.h <<_ACEOF
12024#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12025_ACEOF
81ecdfbb
RW
12026;;
12027esac
12028rm -rf conftest*
12029 if test $ac_cv_sys_file_offset_bits = unknown; then
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12031$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12032if test "${ac_cv_sys_large_files+set}" = set; then :
12033 $as_echo_n "(cached) " >&6
ce3c775b
NC
12034else
12035 while :; do
81ecdfbb 12036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce3c775b
NC
12037/* end confdefs.h. */
12038#include <sys/types.h>
12039 /* Check that off_t can represent 2**63 - 1 correctly.
12040 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12041 since some C++ compilers masquerading as C compilers
12042 incorrectly reject 9223372036854775807. */
12043#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12044 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12045 && LARGE_OFF_T % 2147483647 == 1)
12046 ? 1 : -1];
12047int
12048main ()
12049{
12050
12051 ;
12052 return 0;
12053}
12054_ACEOF
81ecdfbb
RW
12055if ac_fn_c_try_compile "$LINENO"; then :
12056 ac_cv_sys_large_files=no; break
ce3c775b 12057fi
81ecdfbb
RW
12058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce3c775b
NC
12060/* end confdefs.h. */
12061#define _LARGE_FILES 1
12062#include <sys/types.h>
12063 /* Check that off_t can represent 2**63 - 1 correctly.
12064 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12065 since some C++ compilers masquerading as C compilers
12066 incorrectly reject 9223372036854775807. */
12067#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12068 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12069 && LARGE_OFF_T % 2147483647 == 1)
12070 ? 1 : -1];
12071int
12072main ()
12073{
d7040cdb 12074
ce3c775b
NC
12075 ;
12076 return 0;
12077}
12078_ACEOF
81ecdfbb 12079if ac_fn_c_try_compile "$LINENO"; then :
ce3c775b 12080 ac_cv_sys_large_files=1; break
ce3c775b 12081fi
81ecdfbb
RW
12082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12083 ac_cv_sys_large_files=unknown
ce3c775b
NC
12084 break
12085done
12086fi
81ecdfbb
RW
12087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12088$as_echo "$ac_cv_sys_large_files" >&6; }
12089case $ac_cv_sys_large_files in #(
12090 no | unknown) ;;
12091 *)
ce3c775b
NC
12092cat >>confdefs.h <<_ACEOF
12093#define _LARGE_FILES $ac_cv_sys_large_files
12094_ACEOF
81ecdfbb
RW
12095;;
12096esac
12097rm -rf conftest*
12098 fi
ce3c775b 12099fi
d7040cdb
SE
12100
12101
da2f07f1
JK
12102
12103 if test "$plugins" = "yes"; then
12104 PLUGINS_TRUE=
12105 PLUGINS_FALSE='#'
12106else
12107 PLUGINS_TRUE='#'
12108 PLUGINS_FALSE=
12109fi
12110
12111
12112if test "$plugins" = "yes"; then
da2f07f1
JK
12113 enable_targets="$enable_targets plugin"
12114fi
12115
81ecdfbb
RW
12116# Check whether --enable-64-bit-bfd was given.
12117if test "${enable_64_bit_bfd+set}" = set; then :
12118 enableval=$enable_64_bit_bfd; case "${enableval}" in
d7040cdb
SE
12119 yes) want64=true ;;
12120 no) want64=false ;;
81ecdfbb 12121 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
d7040cdb
SE
12122esac
12123else
12124 want64=false
81ecdfbb
RW
12125fi
12126
12127# Check whether --enable-targets was given.
12128if test "${enable_targets+set}" = set; then :
12129 enableval=$enable_targets; case "${enableval}" in
12130 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
d7040cdb
SE
12131 ;;
12132 no) enable_targets= ;;
12133 *) enable_targets=$enableval ;;
12134esac
81ecdfbb 12135fi
504b7d20 12136
e6cc316a
L
12137# Check whether --enable-64_bit_archive was given.
12138if test "${enable_64_bit_archive+set}" = set; then :
12139 enableval=$enable_64_bit_archive; case "${enableval}" in
12140 yes) want_64_bit_archive=true ;;
12141 no) want_64_bit_archive=false ;;
12142 *) as_fn_error "bad value ${enableval} for 64-bit-archive option" "$LINENO" 5 ;;
12143esac
12144else
12145 want_64_bit_archive=unset
12146fi
12147
81ecdfbb
RW
12148
12149# Check whether --with-mmap was given.
12150if test "${with_mmap+set}" = set; then :
12151 withval=$with_mmap; case "${withval}" in
d7040cdb
SE
12152 yes) want_mmap=true ;;
12153 no) want_mmap=false ;;
81ecdfbb 12154 *) as_fn_error "bad value ${withval} for BFD with-mmap option" "$LINENO" 5 ;;
20e95c23 12155esac
252b5132 12156else
d7040cdb 12157 want_mmap=false
81ecdfbb
RW
12158fi
12159
12160# Check whether --enable-secureplt was given.
12161if test "${enable_secureplt+set}" = set; then :
12162 enableval=$enable_secureplt; case "${enableval}" in
d7040cdb
SE
12163 yes) use_secureplt=true ;;
12164 no) use_secureplt=false ;;
81ecdfbb 12165 *) as_fn_error "bad value ${enableval} for secureplt option" "$LINENO" 5 ;;
d7040cdb 12166esac
252b5132 12167else
cc75d373 12168 use_secureplt=true
81ecdfbb
RW
12169fi
12170if test $use_secureplt = true; then
d7040cdb 12171
81ecdfbb 12172$as_echo "#define USE_SECUREPLT 1" >>confdefs.h
5464f5a1 12173
252b5132 12174fi
20e95c23 12175
f6aec96d
L
12176# Decide if -z separate-code should be enabled in ELF linker by default.
12177ac_default_ld_z_separate_code=unset
12178# Check whether --enable-separate-code was given.
12179if test "${enable_separate_code+set}" = set; then :
12180 enableval=$enable_separate_code; case "${enableval}" in
12181 yes) ac_default_ld_z_separate_code=1 ;;
12182 no) ac_default_ld_z_separate_code=0 ;;
12183esac
12184fi
12185
12186# Enable -z separate-code by default for Linux/x86.
12187case "${target}" in
12188i3-786-*-linux-* | x86_64-*-linux-*)
12189 if test ${ac_default_ld_z_separate_code} = unset; then
12190 ac_default_ld_z_separate_code=1
12191 fi
12192 ;;
12193esac
12194if test "${ac_default_ld_z_separate_code}" = unset; then
12195 ac_default_ld_z_separate_code=0
12196fi
12197
12198cat >>confdefs.h <<_ACEOF
12199#define DEFAULT_LD_Z_SEPARATE_CODE $ac_default_ld_z_separate_code
12200_ACEOF
12201
12202
ef72a554
KT
12203# Check whether --enable-leading-mingw64-underscores was given.
12204if test "${enable_leading_mingw64_underscores+set}" = set; then :
12205 enableval=$enable_leading_mingw64_underscores;
12206fi
12207
12208if test x"$enable_leading_mingw64_underscores" = xyes ; then :
12209
12210$as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12211
12212fi
12213
0d4a1476
AS
12214DEBUGDIR=${libdir}/debug
12215
81ecdfbb
RW
12216# Check whether --with-separate-debug-dir was given.
12217if test "${with_separate_debug_dir+set}" = set; then :
12218 withval=$with_separate_debug_dir; DEBUGDIR="${withval}"
12219fi
12220
0d4a1476
AS
12221
12222
504b7d20 12223
d7040cdb 12224
81ecdfbb
RW
12225# Check whether --with-pkgversion was given.
12226if test "${with_pkgversion+set}" = set; then :
12227 withval=$with_pkgversion; case "$withval" in
12228 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
d7040cdb
SE
12229 no) PKGVERSION= ;;
12230 *) PKGVERSION="($withval) " ;;
12231 esac
252b5132 12232else
d7040cdb 12233 PKGVERSION="(GNU Binutils) "
252b5132 12234
81ecdfbb
RW
12235fi
12236
20e95c23
DJ
12237
12238
5464f5a1 12239
20e95c23 12240
81ecdfbb
RW
12241# Check whether --with-bugurl was given.
12242if test "${with_bugurl+set}" = set; then :
12243 withval=$with_bugurl; case "$withval" in
12244 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
d7040cdb
SE
12245 no) BUGURL=
12246 ;;
12247 *) BUGURL="$withval"
12248 ;;
12249 esac
252b5132 12250else
d7040cdb
SE
12251 BUGURL="http://www.sourceware.org/bugzilla/"
12252
81ecdfbb
RW
12253fi
12254
d7040cdb
SE
12255 case ${BUGURL} in
12256 "")
12257 REPORT_BUGS_TO=
12258 REPORT_BUGS_TEXI=
20e95c23
DJ
12259 ;;
12260 *)
d7040cdb
SE
12261 REPORT_BUGS_TO="<$BUGURL>"
12262 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
20e95c23 12263 ;;
d7040cdb
SE
12264 esac;
12265
12266
12267
12268
12269
270c9937
JB
12270# Set the 'development' global.
12271. $srcdir/../bfd/development.sh
12272
c5da1932
VZ
12273# Set acp_cpp_for_build variable
12274ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
12275
9780e045 12276# Default set of GCC warnings to enable.
d1a98e0c 12277GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
c5da1932 12278GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9780e045
NC
12279
12280# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
d1a98e0c
AM
12281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12282/* end confdefs.h. */
12283__GNUC__
12284_ACEOF
12285if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12286 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
12287
12288else
12289 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
12290fi
12291rm -f conftest*
12292
d7040cdb 12293
9780e045
NC
12294# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12295cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12296/* end confdefs.h. */
12297__GNUC__
12298_ACEOF
12299if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12300 $EGREP "^[0-4]$" >/dev/null 2>&1; then :
12301
12302else
12303 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
12304fi
12305rm -f conftest*
12306
12307
6757cf57
TS
12308# Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
12309WARN_WRITE_STRINGS=""
12310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12311/* end confdefs.h. */
12312__GNUC__
12313_ACEOF
12314if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12315 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
12316
12317else
12318 WARN_WRITE_STRINGS="-Wwrite-strings"
12319fi
12320rm -f conftest*
12321
9780e045 12322
96fe4562 12323# Verify CC_FOR_BUILD to be compatible with warning flags
c5da1932
VZ
12324
12325# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12327/* end confdefs.h. */
12328__GNUC__
12329_ACEOF
12330if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12331 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
12332
12333else
12334 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
12335fi
12336rm -f conftest*
12337
12338
12339# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12340cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12341/* end confdefs.h. */
12342__GNUC__
12343_ACEOF
12344if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12345 $EGREP "^[0-4]$" >/dev/null 2>&1; then :
12346
12347else
12348 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
12349fi
12350rm -f conftest*
12351
12352
81ecdfbb
RW
12353# Check whether --enable-werror was given.
12354if test "${enable_werror+set}" = set; then :
12355 enableval=$enable_werror; case "${enableval}" in
d7040cdb
SE
12356 yes | y) ERROR_ON_WARNING="yes" ;;
12357 no | n) ERROR_ON_WARNING="no" ;;
81ecdfbb 12358 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
d7040cdb 12359 esac
81ecdfbb
RW
12360fi
12361
d7040cdb 12362
d1a98e0c 12363# Disable -Wformat by default when using gcc on mingw
bb8541b9
L
12364case "${host}" in
12365 *-*-mingw32*)
12366 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12367 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
c5da1932 12368 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
bb8541b9
L
12369 fi
12370 ;;
12371 *) ;;
12372esac
12373
270c9937
JB
12374# Enable -Werror by default when using gcc. Turn it off for releases.
12375if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
d7040cdb
SE
12376 ERROR_ON_WARNING=yes
12377fi
12378
12379NO_WERROR=
12380if test "${ERROR_ON_WARNING}" = yes ; then
9780e045 12381 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
c5da1932 12382 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
d7040cdb
SE
12383 NO_WERROR="-Wno-error"
12384fi
12385
12386if test "${GCC}" = yes ; then
12387 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
c5da1932 12388 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
d7040cdb
SE
12389fi
12390
81ecdfbb
RW
12391# Check whether --enable-build-warnings was given.
12392if test "${enable_build_warnings+set}" = set; then :
12393 enableval=$enable_build_warnings; case "${enableval}" in
c5da1932
VZ
12394 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12395 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
d7040cdb
SE
12396 no) if test "${GCC}" = yes ; then
12397 WARN_CFLAGS="-w"
c5da1932 12398 WARN_CFLAGS_FOR_BUILD="-w"
d7040cdb
SE
12399 fi;;
12400 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c5da1932
VZ
12401 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
12402 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
d7040cdb 12403 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c5da1932
VZ
12404 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
12405 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
12406 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
12407 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20e95c23 12408esac
81ecdfbb
RW
12409fi
12410
d7040cdb
SE
12411
12412if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12413 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
20e95c23 12414fi
d7040cdb
SE
12415
12416
12417
12418
12419
6757cf57 12420
c5da1932 12421
81ecdfbb 12422ac_config_headers="$ac_config_headers config.h:config.in"
d7040cdb
SE
12423
12424
df7b86aa
NC
12425# PR 14072
12426
12427
d7040cdb 12428if test -z "$target" ; then
81ecdfbb 12429 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
20e95c23
DJ
12430fi
12431
81ecdfbb
RW
12432
12433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12434$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12435 # Check whether --enable-maintainer-mode was given.
12436if test "${enable_maintainer_mode+set}" = set; then :
12437 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
d7040cdb
SE
12438else
12439 USE_MAINTAINER_MODE=no
81ecdfbb 12440fi
20e95c23 12441
81ecdfbb
RW
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12443$as_echo "$USE_MAINTAINER_MODE" >&6; }
12444 if test $USE_MAINTAINER_MODE = yes; then
d7040cdb
SE
12445 MAINTAINER_MODE_TRUE=
12446 MAINTAINER_MODE_FALSE='#'
12447else
12448 MAINTAINER_MODE_TRUE='#'
12449 MAINTAINER_MODE_FALSE=
6be7c12c 12450fi
5464f5a1 12451
d7040cdb
SE
12452 MAINT=$MAINTAINER_MODE_TRUE
12453
12454
81ecdfbb 12455 if false; then
d7040cdb
SE
12456 GENINSRC_NEVER_TRUE=
12457 GENINSRC_NEVER_FALSE='#'
20e95c23 12458else
d7040cdb
SE
12459 GENINSRC_NEVER_TRUE='#'
12460 GENINSRC_NEVER_FALSE=
5464f5a1 12461fi
5464f5a1 12462
d7040cdb
SE
12463 case ${build_alias} in
12464 "") build_noncanonical=${build} ;;
12465 *) build_noncanonical=${build_alias} ;;
20e95c23 12466esac
d7040cdb
SE
12467
12468 case ${host_alias} in
12469 "") host_noncanonical=${build_noncanonical} ;;
12470 *) host_noncanonical=${host_alias} ;;
12471esac
12472
12473 case ${target_alias} in
12474 "") target_noncanonical=${host_noncanonical} ;;
12475 *) target_noncanonical=${target_alias} ;;
12476esac
12477
81ecdfbb
RW
12478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5
12479$as_echo_n "checking whether to install libbfd... " >&6; }
12480 # Check whether --enable-install-libbfd was given.
12481if test "${enable_install_libbfd+set}" = set; then :
12482 enableval=$enable_install_libbfd; install_libbfd_p=$enableval
252b5132 12483else
d7040cdb
SE
12484 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
12485 install_libbfd_p=yes
12486 else
12487 install_libbfd_p=no
12488 fi
81ecdfbb 12489fi
d7040cdb 12490
81ecdfbb
RW
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5
12492$as_echo "$install_libbfd_p" >&6; }
12493 if test $install_libbfd_p = yes; then
d7040cdb
SE
12494 INSTALL_LIBBFD_TRUE=
12495 INSTALL_LIBBFD_FALSE='#'
12496else
12497 INSTALL_LIBBFD_TRUE='#'
12498 INSTALL_LIBBFD_FALSE=
5464f5a1 12499fi
5464f5a1 12500
d7040cdb 12501 # Need _noncanonical variables for this.
5464f5a1 12502
5464f5a1 12503
d7040cdb
SE
12504
12505
12506 # libbfd.a is a host library containing target dependent code
12507 bfdlibdir='$(libdir)'
12508 bfdincludedir='$(includedir)'
12509 if test "${host}" != "${target}"; then
12510 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
12511 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
20e95c23 12512 fi
6be7c12c 12513
5464f5a1 12514
5464f5a1
NN
12515
12516
5464f5a1 12517
ac48eca1 12518
573e8a1c
RW
12519
12520
d7040cdb
SE
12521host64=false
12522target64=false
12523bfd_default_target_size=32
252b5132 12524
d7040cdb 12525# host stuff:
20e95c23 12526
429d795d 12527ALL_LINGUAS="da es fi fr hr id ja ro ru rw sr sv tr uk vi zh_CN"
d7040cdb
SE
12528# If we haven't got the data from the intl directory,
12529# assume NLS is disabled.
12530USE_NLS=no
12531LIBINTL=
12532LIBINTL_DEP=
12533INCINTL=
12534XGETTEXT=
12535GMSGFMT=
12536POSUB=
12537
12538if test -f ../intl/config.intl; then
12539 . ../intl/config.intl
252b5132 12540fi
81ecdfbb
RW
12541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12542$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 12543if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12545$as_echo "no" >&6; }
d7040cdb 12546else
81ecdfbb
RW
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12548$as_echo "yes" >&6; }
5464f5a1 12549
81ecdfbb 12550$as_echo "#define ENABLE_NLS 1" >>confdefs.h
252b5132 12551
6be7c12c 12552
81ecdfbb
RW
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12554$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
12555 # Look for .po and .gmo files in the source directory.
12556 CATALOGS=
12557 XLINGUAS=
12558 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12559 # If there aren't any .gmo files the shell will give us the
12560 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12561 # weeded out.
12562 case "$cat" in *\**)
12563 continue;;
12564 esac
12565 # The quadruple backslash is collapsed to a double backslash
12566 # by the backticks, then collapsed again by the double quotes,
12567 # leaving us with one backslash in the sed expression (right
12568 # before the dot that mustn't act as a wildcard).
12569 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12570 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12571 # The user is allowed to set LINGUAS to a list of languages to
12572 # install catalogs for. If it's empty that means "all of them."
12573 if test "x$LINGUAS" = x; then
12574 CATALOGS="$CATALOGS $cat"
12575 XLINGUAS="$XLINGUAS $lang"
12576 else
12577 case "$LINGUAS" in *$lang*)
12578 CATALOGS="$CATALOGS $cat"
12579 XLINGUAS="$XLINGUAS $lang"
12580 ;;
12581 esac
12582 fi
12583 done
12584 LINGUAS="$XLINGUAS"
81ecdfbb
RW
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12586$as_echo "$LINGUAS" >&6; }
d7040cdb 12587
252b5132 12588
d7040cdb 12589 DATADIRNAME=share
252b5132 12590
d7040cdb 12591 INSTOBJEXT=.mo
5464f5a1 12592
d7040cdb 12593 GENCAT=gencat
20e95c23 12594
d7040cdb 12595 CATOBJEXT=.gmo
5464f5a1 12596
20e95c23 12597fi
5464f5a1 12598
d7040cdb
SE
12599 MKINSTALLDIRS=
12600 if test -n "$ac_aux_dir"; then
12601 case "$ac_aux_dir" in
12602 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12603 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12604 esac
12605 fi
12606 if test -z "$MKINSTALLDIRS"; then
12607 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5464f5a1 12608 fi
5464f5a1 12609
5464f5a1 12610
d7040cdb 12611
81ecdfbb
RW
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12613$as_echo_n "checking whether NLS is requested... " >&6; }
12614 # Check whether --enable-nls was given.
12615if test "${enable_nls+set}" = set; then :
12616 enableval=$enable_nls; USE_NLS=$enableval
252b5132 12617else
d7040cdb 12618 USE_NLS=yes
81ecdfbb
RW
12619fi
12620
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12622$as_echo "$USE_NLS" >&6; }
5464f5a1 12623
252b5132 12624
5464f5a1 12625
252b5132 12626
d7040cdb
SE
12627
12628
12629# Prepare PATH_SEPARATOR.
12630# The user is always right.
12631if test "${PATH_SEPARATOR+set}" != set; then
12632 echo "#! /bin/sh" >conf$$.sh
12633 echo "exit 0" >>conf$$.sh
12634 chmod +x conf$$.sh
12635 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12636 PATH_SEPARATOR=';'
20e95c23 12637 else
d7040cdb 12638 PATH_SEPARATOR=:
20e95c23 12639 fi
d7040cdb
SE
12640 rm -f conf$$.sh
12641fi
12642
12643# Find out how to test for executable files. Don't use a zero-byte file,
12644# as systems may use methods other than mode bits to determine executability.
12645cat >conf$$.file <<_ASEOF
12646#! /bin/sh
12647exit 0
12648_ASEOF
12649chmod +x conf$$.file
12650if test -x conf$$.file >/dev/null 2>&1; then
12651 ac_executable_p="test -x"
20e95c23 12652else
d7040cdb 12653 ac_executable_p="test -f"
20e95c23 12654fi
d7040cdb 12655rm -f conf$$.file
5464f5a1 12656
d7040cdb
SE
12657# Extract the first word of "msgfmt", so it can be a program name with args.
12658set dummy msgfmt; ac_word=$2
81ecdfbb
RW
12659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12660$as_echo_n "checking for $ac_word... " >&6; }
12661if test "${ac_cv_path_MSGFMT+set}" = set; then :
12662 $as_echo_n "(cached) " >&6
d7040cdb
SE
12663else
12664 case "$MSGFMT" in
12665 [\\/]* | ?:[\\/]*)
12666 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12667 ;;
12668 *)
12669 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12670 for ac_dir in $PATH; do
12671 IFS="$ac_save_IFS"
12672 test -z "$ac_dir" && ac_dir=.
12673 for ac_exec_ext in '' $ac_executable_extensions; do
12674 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12675 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12676 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12677 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12678 break 2
12679 fi
12680 fi
12681 done
12682 done
12683 IFS="$ac_save_IFS"
12684 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12685 ;;
12686esac
5464f5a1 12687fi
d7040cdb
SE
12688MSGFMT="$ac_cv_path_MSGFMT"
12689if test "$MSGFMT" != ":"; then
81ecdfbb
RW
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12691$as_echo "$MSGFMT" >&6; }
20e95c23 12692else
81ecdfbb
RW
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12694$as_echo "no" >&6; }
252b5132 12695fi
d7040cdb
SE
12696
12697 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12698set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
12699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12700$as_echo_n "checking for $ac_word... " >&6; }
12701if test "${ac_cv_path_GMSGFMT+set}" = set; then :
12702 $as_echo_n "(cached) " >&6
252b5132 12703else
d7040cdb
SE
12704 case $GMSGFMT in
12705 [\\/]* | ?:[\\/]*)
12706 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12707 ;;
12708 *)
12709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12710for as_dir in $PATH
12711do
12712 IFS=$as_save_IFS
12713 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12714 for ac_exec_ext in '' $ac_executable_extensions; do
12715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 12716 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12718 break 2
12719 fi
12720done
81ecdfbb
RW
12721 done
12722IFS=$as_save_IFS
5464f5a1 12723
d7040cdb
SE
12724 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12725 ;;
12726esac
252b5132 12727fi
d7040cdb 12728GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 12729if test -n "$GMSGFMT"; then
81ecdfbb
RW
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12731$as_echo "$GMSGFMT" >&6; }
252b5132 12732else
81ecdfbb
RW
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12734$as_echo "no" >&6; }
252b5132
RH
12735fi
12736
20e95c23
DJ
12737
12738
81ecdfbb 12739
d7040cdb
SE
12740# Prepare PATH_SEPARATOR.
12741# The user is always right.
12742if test "${PATH_SEPARATOR+set}" != set; then
12743 echo "#! /bin/sh" >conf$$.sh
12744 echo "exit 0" >>conf$$.sh
12745 chmod +x conf$$.sh
12746 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12747 PATH_SEPARATOR=';'
12748 else
12749 PATH_SEPARATOR=:
12750 fi
12751 rm -f conf$$.sh
252b5132 12752fi
20e95c23 12753
d7040cdb
SE
12754# Find out how to test for executable files. Don't use a zero-byte file,
12755# as systems may use methods other than mode bits to determine executability.
12756cat >conf$$.file <<_ASEOF
12757#! /bin/sh
12758exit 0
12759_ASEOF
12760chmod +x conf$$.file
12761if test -x conf$$.file >/dev/null 2>&1; then
12762 ac_executable_p="test -x"
12763else
12764 ac_executable_p="test -f"
12765fi
12766rm -f conf$$.file
252b5132 12767
d7040cdb
SE
12768# Extract the first word of "xgettext", so it can be a program name with args.
12769set dummy xgettext; ac_word=$2
81ecdfbb
RW
12770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12771$as_echo_n "checking for $ac_word... " >&6; }
12772if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12773 $as_echo_n "(cached) " >&6
20e95c23 12774else
d7040cdb
SE
12775 case "$XGETTEXT" in
12776 [\\/]* | ?:[\\/]*)
12777 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12778 ;;
12779 *)
12780 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12781 for ac_dir in $PATH; do
12782 IFS="$ac_save_IFS"
12783 test -z "$ac_dir" && ac_dir=.
12784 for ac_exec_ext in '' $ac_executable_extensions; do
12785 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12786 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12787 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12788 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12789 break 2
12790 fi
12791 fi
12792 done
12793 done
12794 IFS="$ac_save_IFS"
12795 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12796 ;;
12797esac
12798fi
12799XGETTEXT="$ac_cv_path_XGETTEXT"
12800if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12802$as_echo "$XGETTEXT" >&6; }
252b5132 12803else
81ecdfbb
RW
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12805$as_echo "no" >&6; }
252b5132
RH
12806fi
12807
d7040cdb 12808 rm -f messages.po
5464f5a1 12809
252b5132 12810
d7040cdb
SE
12811# Prepare PATH_SEPARATOR.
12812# The user is always right.
12813if test "${PATH_SEPARATOR+set}" != set; then
12814 echo "#! /bin/sh" >conf$$.sh
12815 echo "exit 0" >>conf$$.sh
12816 chmod +x conf$$.sh
12817 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12818 PATH_SEPARATOR=';'
12819 else
12820 PATH_SEPARATOR=:
12821 fi
12822 rm -f conf$$.sh
252b5132
RH
12823fi
12824
d7040cdb
SE
12825# Find out how to test for executable files. Don't use a zero-byte file,
12826# as systems may use methods other than mode bits to determine executability.
12827cat >conf$$.file <<_ASEOF
12828#! /bin/sh
12829exit 0
12830_ASEOF
12831chmod +x conf$$.file
12832if test -x conf$$.file >/dev/null 2>&1; then
12833 ac_executable_p="test -x"
5464f5a1 12834else
d7040cdb 12835 ac_executable_p="test -f"
20e95c23 12836fi
d7040cdb 12837rm -f conf$$.file
5464f5a1 12838
d7040cdb
SE
12839# Extract the first word of "msgmerge", so it can be a program name with args.
12840set dummy msgmerge; ac_word=$2
81ecdfbb
RW
12841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12842$as_echo_n "checking for $ac_word... " >&6; }
12843if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12844 $as_echo_n "(cached) " >&6
d7040cdb
SE
12845else
12846 case "$MSGMERGE" in
12847 [\\/]* | ?:[\\/]*)
12848 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12849 ;;
12850 *)
12851 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12852 for ac_dir in $PATH; do
12853 IFS="$ac_save_IFS"
12854 test -z "$ac_dir" && ac_dir=.
12855 for ac_exec_ext in '' $ac_executable_extensions; do
12856 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12857 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12858 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12859 break 2
12860 fi
12861 fi
12862 done
12863 done
12864 IFS="$ac_save_IFS"
12865 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12866 ;;
12867esac
5464f5a1 12868fi
d7040cdb
SE
12869MSGMERGE="$ac_cv_path_MSGMERGE"
12870if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12872$as_echo "$MSGMERGE" >&6; }
20e95c23 12873else
81ecdfbb
RW
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12875$as_echo "no" >&6; }
d7040cdb 12876fi
20e95c23 12877
5464f5a1 12878
d7040cdb
SE
12879 if test "$GMSGFMT" != ":"; then
12880 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12881 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12882 : ;
12883 else
12884 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12886$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
12887 GMSGFMT=":"
12888 fi
12889 fi
252b5132 12890
d7040cdb
SE
12891 if test "$XGETTEXT" != ":"; then
12892 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12893 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12894 : ;
12895 else
81ecdfbb
RW
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12897$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
12898 XGETTEXT=":"
12899 fi
12900 rm -f messages.po
12901 fi
6be7c12c 12902
81ecdfbb 12903 ac_config_commands="$ac_config_commands default-1"
5464f5a1 12904
252b5132 12905
5464f5a1 12906
d7040cdb
SE
12907# Permit host specific settings.
12908. ${srcdir}/configure.host
12909
12910
252b5132 12911
252b5132 12912
d7040cdb 12913BFD_HOST_64BIT_LONG=0
d2df793a 12914BFD_HOST_64BIT_LONG_LONG=0
d7040cdb
SE
12915BFD_HOST_64_BIT_DEFINED=0
12916BFD_HOST_64_BIT=
12917BFD_HOST_U_64_BIT=
d2df793a 12918BFD_HOSTPTR_T="unsigned long"
6be7c12c 12919
33c734b2
AM
12920
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
12922$as_echo_n "checking for long double... " >&6; }
12923if test "${ac_cv_type_long_double+set}" = set; then :
12924 $as_echo_n "(cached) " >&6
12925else
12926 if test "$GCC" = yes; then
12927 ac_cv_type_long_double=yes
12928 else
12929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12930/* end confdefs.h. */
12931/* The Stardent Vistra knows sizeof (long double), but does
12932 not support it. */
12933 long double foo = 0.0L;
12934int
12935main ()
12936{
12937static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
12938 sizeof (double) <= sizeof (long double))];
12939test_array [0] = 0
12940
12941 ;
12942 return 0;
12943}
12944_ACEOF
12945if ac_fn_c_try_compile "$LINENO"; then :
12946 ac_cv_type_long_double=yes
12947else
12948 ac_cv_type_long_double=no
12949fi
12950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12951 fi
12952fi
12953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
12954$as_echo "$ac_cv_type_long_double" >&6; }
12955 if test $ac_cv_type_long_double = yes; then
12956
12957$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
12958
12959 fi
12960
12961ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12962if test "x$ac_cv_type_long_long" = x""yes; then :
12963
12964cat >>confdefs.h <<_ACEOF
12965#define HAVE_LONG_LONG 1
12966_ACEOF
12967
81ecdfbb
RW
12968# The cast to long int works around a bug in the HP C Compiler
12969# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12970# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12971# This bug is HP SR number 8606223364.
12972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12973$as_echo_n "checking size of long long... " >&6; }
12974if test "${ac_cv_sizeof_long_long+set}" = set; then :
12975 $as_echo_n "(cached) " >&6
6726e1ea 12976else
81ecdfbb
RW
12977 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12978
12979else
12980 if test "$ac_cv_type_long_long" = yes; then
12981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12982$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12983{ as_fn_set_status 77
12984as_fn_error "cannot compute sizeof (long long)
12985See \`config.log' for more details." "$LINENO" 5; }; }
12986 else
12987 ac_cv_sizeof_long_long=0
12988 fi
12989fi
12990
12991fi
12992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12993$as_echo "$ac_cv_sizeof_long_long" >&6; }
12994
12995
12996
12997cat >>confdefs.h <<_ACEOF
12998#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5464f5a1 12999_ACEOF
81ecdfbb
RW
13000
13001
33c734b2
AM
13002fi
13003
81ecdfbb
RW
13004# The cast to long int works around a bug in the HP C Compiler
13005# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13006# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13007# This bug is HP SR number 8606223364.
13008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13009$as_echo_n "checking size of void *... " >&6; }
13010if test "${ac_cv_sizeof_void_p+set}" = set; then :
13011 $as_echo_n "(cached) " >&6
6726e1ea 13012else
81ecdfbb 13013 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5464f5a1 13014
81ecdfbb
RW
13015else
13016 if test "$ac_cv_type_void_p" = yes; then
13017 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13018$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13019{ as_fn_set_status 77
13020as_fn_error "cannot compute sizeof (void *)
13021See \`config.log' for more details." "$LINENO" 5; }; }
13022 else
13023 ac_cv_sizeof_void_p=0
13024 fi
6726e1ea 13025fi
81ecdfbb 13026
6726e1ea 13027fi
81ecdfbb
RW
13028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13029$as_echo "$ac_cv_sizeof_void_p" >&6; }
6726e1ea 13030
6726e1ea 13031
2ba49b59 13032
81ecdfbb
RW
13033cat >>confdefs.h <<_ACEOF
13034#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5464f5a1 13035_ACEOF
81ecdfbb
RW
13036
13037
13038# The cast to long int works around a bug in the HP C Compiler
13039# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13040# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13041# This bug is HP SR number 8606223364.
13042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13043$as_echo_n "checking size of long... " >&6; }
13044if test "${ac_cv_sizeof_long+set}" = set; then :
13045 $as_echo_n "(cached) " >&6
6726e1ea 13046else
81ecdfbb 13047 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5464f5a1 13048
252b5132 13049else
81ecdfbb
RW
13050 if test "$ac_cv_type_long" = yes; then
13051 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13052$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13053{ as_fn_set_status 77
13054as_fn_error "cannot compute sizeof (long)
13055See \`config.log' for more details." "$LINENO" 5; }; }
13056 else
13057 ac_cv_sizeof_long=0
13058 fi
13059fi
5464f5a1 13060
81ecdfbb
RW
13061fi
13062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13063$as_echo "$ac_cv_sizeof_long" >&6; }
2ba49b59 13064
81ecdfbb
RW
13065
13066
13067cat >>confdefs.h <<_ACEOF
13068#define SIZEOF_LONG $ac_cv_sizeof_long
5464f5a1 13069_ACEOF
2ba49b59 13070
2ba49b59 13071
81ecdfbb
RW
13072
13073if test "x${ac_cv_sizeof_void_p}" = "x8"; then
13074 host64=true
252b5132 13075fi
5464f5a1 13076
81ecdfbb
RW
13077if test "x${ac_cv_sizeof_long}" = "x8"; then
13078 BFD_HOST_64BIT_LONG=1
13079 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
13080 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
13081elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
13082 BFD_HOST_64BIT_LONG_LONG=1
13083 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
13084 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
13085 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
13086 BFD_HOSTPTR_T="unsigned long long"
13087 fi
252b5132 13088fi
81ecdfbb
RW
13089
13090if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
13091 BFD_HOST_64_BIT_DEFINED=1
13092 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
13093 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
2ba49b59 13094fi
5464f5a1 13095
5464f5a1 13096
2ba49b59 13097
2ba49b59 13098
5464f5a1 13099
81ecdfbb
RW
13100
13101
13102
13103# Put a plausible default for CC_FOR_BUILD in Makefile.
13104if test -z "$CC_FOR_BUILD"; then
13105 if test "x$cross_compiling" = "xno"; then
13106 CC_FOR_BUILD='$(CC)'
13107 else
13108 CC_FOR_BUILD=gcc
13109 fi
2ba49b59 13110fi
81ecdfbb
RW
13111
13112# Also set EXEEXT_FOR_BUILD.
13113if test "x$cross_compiling" = "xno"; then
13114 EXEEXT_FOR_BUILD='$(EXEEXT)'
13115else
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
13117$as_echo_n "checking for build system executable suffix... " >&6; }
13118if test "${bfd_cv_build_exeext+set}" = set; then :
13119 $as_echo_n "(cached) " >&6
6be7c12c 13120else
81ecdfbb
RW
13121 rm -f conftest*
13122 echo 'int main () { return 0; }' > conftest.c
13123 bfd_cv_build_exeext=
13124 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
13125 for file in conftest.*; do
13126 case $file in
13127 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
13128 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
13129 esac
13130 done
13131 rm -f conftest*
13132 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
5464f5a1 13133fi
81ecdfbb
RW
13134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
13135$as_echo "$bfd_cv_build_exeext" >&6; }
13136 EXEEXT_FOR_BUILD=""
13137 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
5464f5a1 13138fi
5464f5a1 13139
5464f5a1 13140
31593e1b 13141for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h wchar.h wctype.h
81ecdfbb
RW
13142do :
13143 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13144ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13145eval as_val=\$$as_ac_Header
13146 if test "x$as_val" = x""yes; then :
13147 cat >>confdefs.h <<_ACEOF
13148#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d2df793a 13149_ACEOF
d2df793a 13150
d2df793a 13151fi
d2df793a 13152
81ecdfbb 13153done
d2df793a 13154
9d782e8d 13155for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h sys/resource.h
81ecdfbb
RW
13156do :
13157 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13158ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13159eval as_val=\$$as_ac_Header
13160 if test "x$as_val" = x""yes; then :
13161 cat >>confdefs.h <<_ACEOF
13162#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d2df793a 13163_ACEOF
d2df793a 13164
d2df793a 13165fi
d2df793a 13166
81ecdfbb 13167done
d2df793a 13168
81ecdfbb 13169
d2df793a 13170
f3b4f6d0 13171inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
81ecdfbb 13172
f3b4f6d0
PB
13173acx_cv_header_stdint=stddef.h
13174acx_cv_header_stdint_kind="(already complete)"
13175for i in stdint.h $inttype_headers; do
13176 unset ac_cv_type_uintptr_t
13177 unset ac_cv_type_uintmax_t
13178 unset ac_cv_type_int_least32_t
13179 unset ac_cv_type_int_fast32_t
13180 unset ac_cv_type_uint64_t
13181 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
13182 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
13183#include <$i>
13184"
13185if test "x$ac_cv_type_uintmax_t" = x""yes; then :
13186 acx_cv_header_stdint=$i
d2df793a 13187else
f3b4f6d0
PB
13188 continue
13189fi
81ecdfbb 13190
f3b4f6d0
PB
13191 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
13192#include <$i>
13193"
13194if test "x$ac_cv_type_uintptr_t" = x""yes; then :
d2df793a 13195
81ecdfbb 13196else
f3b4f6d0 13197 acx_cv_header_stdint_kind="(mostly complete)"
d2df793a 13198fi
81ecdfbb 13199
f3b4f6d0
PB
13200 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
13201#include <$i>
13202"
13203if test "x$ac_cv_type_int_least32_t" = x""yes; then :
13204
d2df793a 13205else
f3b4f6d0 13206 acx_cv_header_stdint_kind="(mostly complete)"
81ecdfbb 13207fi
81ecdfbb 13208
f3b4f6d0
PB
13209 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
13210#include <$i>
13211"
13212if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
81ecdfbb 13213
f3b4f6d0
PB
13214else
13215 acx_cv_header_stdint_kind="(mostly complete)"
13216fi
81ecdfbb 13217
f3b4f6d0
PB
13218 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
13219#include <$i>
13220"
13221if test "x$ac_cv_type_uint64_t" = x""yes; then :
d2df793a 13222
07c58694 13223else
f3b4f6d0
PB
13224 acx_cv_header_stdint_kind="(lacks uint64_t)"
13225fi
81ecdfbb 13226
f3b4f6d0
PB
13227 break
13228done
13229if test "$acx_cv_header_stdint" = stddef.h; then
13230 acx_cv_header_stdint_kind="(lacks uintmax_t)"
13231 for i in stdint.h $inttype_headers; do
13232 unset ac_cv_type_uintptr_t
13233 unset ac_cv_type_uint32_t
13234 unset ac_cv_type_uint64_t
13235 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
13236 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
13237#include <$i>
13238"
13239if test "x$ac_cv_type_uint32_t" = x""yes; then :
13240 acx_cv_header_stdint=$i
13241else
13242 continue
d2df793a 13243fi
81ecdfbb 13244
f3b4f6d0
PB
13245 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
13246#include <$i>
13247"
13248if test "x$ac_cv_type_uint64_t" = x""yes; then :
81ecdfbb 13249
f3b4f6d0 13250fi
81ecdfbb 13251
f3b4f6d0
PB
13252 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
13253#include <$i>
13254"
13255if test "x$ac_cv_type_uintptr_t" = x""yes; then :
81ecdfbb 13256
f3b4f6d0 13257fi
81ecdfbb 13258
f3b4f6d0
PB
13259 break
13260 done
13261fi
13262if test "$acx_cv_header_stdint" = stddef.h; then
13263 acx_cv_header_stdint_kind="(u_intXX_t style)"
13264 for i in sys/types.h $inttype_headers; do
13265 unset ac_cv_type_u_int32_t
13266 unset ac_cv_type_u_int64_t
13267 $as_echo_n "looking for u_intXX_t types in $i, " >&6
13268 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
13269#include <$i>
13270"
13271if test "x$ac_cv_type_u_int32_t" = x""yes; then :
13272 acx_cv_header_stdint=$i
07c58694 13273else
f3b4f6d0
PB
13274 continue
13275fi
81ecdfbb 13276
f3b4f6d0
PB
13277 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
13278#include <$i>
13279"
13280if test "x$ac_cv_type_u_int64_t" = x""yes; then :
81ecdfbb 13281
f3b4f6d0 13282fi
81ecdfbb 13283
f3b4f6d0
PB
13284 break
13285 done
d2df793a 13286fi
f3b4f6d0
PB
13287if test "$acx_cv_header_stdint" = stddef.h; then
13288 acx_cv_header_stdint_kind="(using manual detection)"
d2df793a 13289fi
81ecdfbb 13290
f3b4f6d0
PB
13291test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
13292test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
13293test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
13294test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
13295test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
81ecdfbb 13296
f3b4f6d0 13297# ----------------- Summarize what we found so far
07c58694 13298
f3b4f6d0
PB
13299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in bfd_stdint.h" >&5
13300$as_echo_n "checking what to include in bfd_stdint.h... " >&6; }
81ecdfbb 13301
f3b4f6d0
PB
13302case `$as_basename -- bfd_stdint.h ||
13303$as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
13304 Xbfd_stdint.h : 'X\(//\)$' \| \
13305 Xbfd_stdint.h : 'X\(/\)' \| . 2>/dev/null ||
13306$as_echo X/bfd_stdint.h |
13307 sed '/^.*\/\([^/][^/]*\)\/*$/{
13308 s//\1/
13309 q
13310 }
13311 /^X\/\(\/\/\)$/{
13312 s//\1/
13313 q
13314 }
13315 /^X\/\(\/\).*/{
13316 s//\1/
13317 q
13318 }
13319 s/.*/./; q'` in
13320 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
13321$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13322 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
13323$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13324 *) ;;
13325esac
81ecdfbb 13326
f3b4f6d0
PB
13327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
13328$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
5464f5a1 13329
f3b4f6d0 13330# ----------------- done included file, check C basic types --------
2ba49b59 13331
f3b4f6d0
PB
13332# Lacking an uintptr_t? Test size of void *
13333case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
13334 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
13335# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13336# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13337# This bug is HP SR number 8606223364.
13338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13339$as_echo_n "checking size of void *... " >&6; }
13340if test "${ac_cv_sizeof_void_p+set}" = set; then :
13341 $as_echo_n "(cached) " >&6
13342else
13343 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
2ba49b59 13344
f3b4f6d0
PB
13345else
13346 if test "$ac_cv_type_void_p" = yes; then
13347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13348$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13349{ as_fn_set_status 77
13350as_fn_error "cannot compute sizeof (void *)
13351See \`config.log' for more details." "$LINENO" 5; }; }
13352 else
13353 ac_cv_sizeof_void_p=0
13354 fi
13355fi
81ecdfbb 13356
f3b4f6d0
PB
13357fi
13358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13359$as_echo "$ac_cv_sizeof_void_p" >&6; }
81ecdfbb 13360
07c58694
PB
13361
13362
13363cat >>confdefs.h <<_ACEOF
f3b4f6d0 13364#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
07c58694 13365_ACEOF
07c58694 13366
f3b4f6d0
PB
13367 ;;
13368esac
07c58694 13369
f3b4f6d0
PB
13370# Lacking an uint64_t? Test size of long
13371case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
13372 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
13373# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13374# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13375# This bug is HP SR number 8606223364.
13376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13377$as_echo_n "checking size of long... " >&6; }
13378if test "${ac_cv_sizeof_long+set}" = set; then :
81ecdfbb 13379 $as_echo_n "(cached) " >&6
5464f5a1 13380else
f3b4f6d0 13381 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
07c58694 13382
2ba49b59 13383else
f3b4f6d0
PB
13384 if test "$ac_cv_type_long" = yes; then
13385 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13386$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13387{ as_fn_set_status 77
13388as_fn_error "cannot compute sizeof (long)
13389See \`config.log' for more details." "$LINENO" 5; }; }
13390 else
13391 ac_cv_sizeof_long=0
13392 fi
81ecdfbb 13393fi
2ba49b59 13394
f3b4f6d0
PB
13395fi
13396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13397$as_echo "$ac_cv_sizeof_long" >&6; }
81ecdfbb 13398
5464f5a1 13399
81ecdfbb 13400
f3b4f6d0
PB
13401cat >>confdefs.h <<_ACEOF
13402#define SIZEOF_LONG $ac_cv_sizeof_long
13403_ACEOF
07c58694 13404
f3b4f6d0
PB
13405 ;;
13406esac
2ba49b59 13407
f3b4f6d0
PB
13408if test $acx_cv_header_stdint = stddef.h; then
13409 # Lacking a good header? Test size of everything and deduce all types.
13410 # The cast to long int works around a bug in the HP C Compiler
13411# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13412# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13413# This bug is HP SR number 8606223364.
13414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13415$as_echo_n "checking size of int... " >&6; }
13416if test "${ac_cv_sizeof_int+set}" = set; then :
13417 $as_echo_n "(cached) " >&6
81ecdfbb 13418else
f3b4f6d0 13419 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
81ecdfbb 13420
f3b4f6d0
PB
13421else
13422 if test "$ac_cv_type_int" = yes; then
13423 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13424$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13425{ as_fn_set_status 77
13426as_fn_error "cannot compute sizeof (int)
13427See \`config.log' for more details." "$LINENO" 5; }; }
13428 else
13429 ac_cv_sizeof_int=0
13430 fi
2ba49b59 13431fi
81ecdfbb 13432
f3b4f6d0
PB
13433fi
13434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13435$as_echo "$ac_cv_sizeof_int" >&6; }
81ecdfbb
RW
13436
13437
07c58694
PB
13438
13439cat >>confdefs.h <<_ACEOF
f3b4f6d0 13440#define SIZEOF_INT $ac_cv_sizeof_int
07c58694 13441_ACEOF
81ecdfbb 13442
07c58694 13443
f3b4f6d0
PB
13444 # The cast to long int works around a bug in the HP C Compiler
13445# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13446# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13447# This bug is HP SR number 8606223364.
13448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13449$as_echo_n "checking size of short... " >&6; }
13450if test "${ac_cv_sizeof_short+set}" = set; then :
13451 $as_echo_n "(cached) " >&6
13452else
13453 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
07c58694 13454
f3b4f6d0
PB
13455else
13456 if test "$ac_cv_type_short" = yes; then
13457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13458$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13459{ as_fn_set_status 77
13460as_fn_error "cannot compute sizeof (short)
13461See \`config.log' for more details." "$LINENO" 5; }; }
13462 else
13463 ac_cv_sizeof_short=0
13464 fi
13465fi
07c58694 13466
f3b4f6d0
PB
13467fi
13468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13469$as_echo "$ac_cv_sizeof_short" >&6; }
07c58694
PB
13470
13471
13472
f3b4f6d0
PB
13473cat >>confdefs.h <<_ACEOF
13474#define SIZEOF_SHORT $ac_cv_sizeof_short
13475_ACEOF
07c58694
PB
13476
13477
f3b4f6d0
PB
13478 # The cast to long int works around a bug in the HP C Compiler
13479# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13480# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13481# This bug is HP SR number 8606223364.
13482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
13483$as_echo_n "checking size of char... " >&6; }
13484if test "${ac_cv_sizeof_char+set}" = set; then :
13485 $as_echo_n "(cached) " >&6
13486else
13487 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
07c58694 13488
f3b4f6d0
PB
13489else
13490 if test "$ac_cv_type_char" = yes; then
13491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13492$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13493{ as_fn_set_status 77
13494as_fn_error "cannot compute sizeof (char)
13495See \`config.log' for more details." "$LINENO" 5; }; }
13496 else
13497 ac_cv_sizeof_char=0
13498 fi
13499fi
07c58694 13500
f3b4f6d0
PB
13501fi
13502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
13503$as_echo "$ac_cv_sizeof_char" >&6; }
07c58694
PB
13504
13505
07c58694 13506
2ba49b59 13507cat >>confdefs.h <<_ACEOF
f3b4f6d0 13508#define SIZEOF_CHAR $ac_cv_sizeof_char
2ba49b59
KC
13509_ACEOF
13510
13511
2ba49b59 13512
f3b4f6d0
PB
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
13514$as_echo_n "checking for type equivalent to int8_t... " >&6; }
13515 case "$ac_cv_sizeof_char" in
13516 1) acx_cv_type_int8_t=char ;;
58bbed62 13517 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
f3b4f6d0
PB
13518 esac
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
13520$as_echo "$acx_cv_type_int8_t" >&6; }
13521
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
13523$as_echo_n "checking for type equivalent to int16_t... " >&6; }
13524 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
13525 2:*) acx_cv_type_int16_t=int ;;
13526 *:2) acx_cv_type_int16_t=short ;;
58bbed62 13527 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
f3b4f6d0
PB
13528 esac
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
13530$as_echo "$acx_cv_type_int16_t" >&6; }
13531
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
13533$as_echo_n "checking for type equivalent to int32_t... " >&6; }
13534 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
13535 4:*) acx_cv_type_int32_t=int ;;
13536 *:4) acx_cv_type_int32_t=long ;;
58bbed62 13537 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
f3b4f6d0
PB
13538 esac
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
13540$as_echo "$acx_cv_type_int32_t" >&6; }
81ecdfbb 13541fi
2ba49b59 13542
f3b4f6d0 13543# These tests are here to make the output prettier
07c58694 13544
f3b4f6d0
PB
13545if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
13546 case "$ac_cv_sizeof_long" in
13547 8) acx_cv_type_int64_t=long ;;
13548 esac
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
13550$as_echo_n "checking for type equivalent to int64_t... " >&6; }
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
13552$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
13553fi
13554
13555# Now we can use the above types
13556
13557if test "$ac_cv_type_uintptr_t" != yes; then
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
13559$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
13560 case $ac_cv_sizeof_void_p in
13561 2) acx_cv_type_intptr_t=int16_t ;;
13562 4) acx_cv_type_intptr_t=int32_t ;;
13563 8) acx_cv_type_intptr_t=int64_t ;;
58bbed62 13564 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
f3b4f6d0
PB
13565 esac
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
13567$as_echo "$acx_cv_type_intptr_t" >&6; }
13568fi
07c58694 13569
f3b4f6d0 13570# ----------------- done all checks, emit header -------------
81ecdfbb 13571ac_config_commands="$ac_config_commands bfd_stdint.h"
2ba49b59
KC
13572
13573
d2df793a 13574
81ecdfbb
RW
13575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13576$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13577if test "${ac_cv_header_time+set}" = set; then :
13578 $as_echo_n "(cached) " >&6
2ba49b59 13579else
81ecdfbb
RW
13580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13581/* end confdefs.h. */
13582#include <sys/types.h>
13583#include <sys/time.h>
13584#include <time.h>
13585
13586int
13587main ()
13588{
13589if ((struct tm *) 0)
13590return 0;
13591 ;
13592 return 0;
13593}
13594_ACEOF
13595if ac_fn_c_try_compile "$LINENO"; then :
13596 ac_cv_header_time=yes
2ba49b59 13597else
81ecdfbb 13598 ac_cv_header_time=no
2ba49b59 13599fi
81ecdfbb 13600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59 13601fi
81ecdfbb
RW
13602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13603$as_echo "$ac_cv_header_time" >&6; }
13604if test $ac_cv_header_time = yes; then
2ba49b59 13605
81ecdfbb 13606$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
2ba49b59 13607
2ba49b59 13608fi
81ecdfbb
RW
13609
13610ac_header_dirent=no
13611for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13612 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13614$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13615if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
13616 $as_echo_n "(cached) " >&6
2ba49b59 13617else
81ecdfbb 13618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2ba49b59 13619/* end confdefs.h. */
81ecdfbb
RW
13620#include <sys/types.h>
13621#include <$ac_hdr>
13622
13623int
13624main ()
13625{
13626if ((DIR *) 0)
13627return 0;
13628 ;
13629 return 0;
13630}
2ba49b59 13631_ACEOF
81ecdfbb
RW
13632if ac_fn_c_try_compile "$LINENO"; then :
13633 eval "$as_ac_Header=yes"
2ba49b59 13634else
81ecdfbb
RW
13635 eval "$as_ac_Header=no"
13636fi
13637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13638fi
13639eval ac_res=\$$as_ac_Header
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13641$as_echo "$ac_res" >&6; }
13642eval as_val=\$$as_ac_Header
13643 if test "x$as_val" = x""yes; then :
13644 cat >>confdefs.h <<_ACEOF
13645#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13646_ACEOF
2ba49b59 13647
81ecdfbb 13648ac_header_dirent=$ac_hdr; break
2ba49b59 13649fi
2ba49b59 13650
81ecdfbb
RW
13651done
13652# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13653if test $ac_header_dirent = dirent.h; then
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13655$as_echo_n "checking for library containing opendir... " >&6; }
13656if test "${ac_cv_search_opendir+set}" = set; then :
13657 $as_echo_n "(cached) " >&6
13658else
13659 ac_func_search_save_LIBS=$LIBS
13660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2ba49b59 13661/* end confdefs.h. */
81ecdfbb
RW
13662
13663/* Override any GCC internal prototype to avoid an error.
13664 Use char because int might match the return type of a GCC
13665 builtin and then its argument prototype would still apply. */
13666#ifdef __cplusplus
13667extern "C"
13668#endif
13669char opendir ();
13670int
13671main ()
13672{
13673return opendir ();
13674 ;
13675 return 0;
13676}
2ba49b59 13677_ACEOF
81ecdfbb
RW
13678for ac_lib in '' dir; do
13679 if test -z "$ac_lib"; then
13680 ac_res="none required"
2ba49b59 13681 else
81ecdfbb
RW
13682 ac_res=-l$ac_lib
13683 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2ba49b59 13684 fi
81ecdfbb
RW
13685 if ac_fn_c_try_link "$LINENO"; then :
13686 ac_cv_search_opendir=$ac_res
2ba49b59 13687fi
81ecdfbb
RW
13688rm -f core conftest.err conftest.$ac_objext \
13689 conftest$ac_exeext
13690 if test "${ac_cv_search_opendir+set}" = set; then :
13691 break
2ba49b59 13692fi
81ecdfbb
RW
13693done
13694if test "${ac_cv_search_opendir+set}" = set; then :
2ba49b59 13695
2ba49b59 13696else
81ecdfbb 13697 ac_cv_search_opendir=no
2ba49b59 13698fi
81ecdfbb
RW
13699rm conftest.$ac_ext
13700LIBS=$ac_func_search_save_LIBS
2ba49b59 13701fi
81ecdfbb
RW
13702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13703$as_echo "$ac_cv_search_opendir" >&6; }
13704ac_res=$ac_cv_search_opendir
13705if test "$ac_res" != no; then :
13706 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2ba49b59
KC
13707
13708fi
13709
81ecdfbb
RW
13710else
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13712$as_echo_n "checking for library containing opendir... " >&6; }
13713if test "${ac_cv_search_opendir+set}" = set; then :
13714 $as_echo_n "(cached) " >&6
13715else
13716 ac_func_search_save_LIBS=$LIBS
13717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13718/* end confdefs.h. */
2ba49b59 13719
81ecdfbb
RW
13720/* Override any GCC internal prototype to avoid an error.
13721 Use char because int might match the return type of a GCC
13722 builtin and then its argument prototype would still apply. */
13723#ifdef __cplusplus
13724extern "C"
13725#endif
13726char opendir ();
13727int
13728main ()
13729{
13730return opendir ();
13731 ;
13732 return 0;
13733}
13734_ACEOF
13735for ac_lib in '' x; do
13736 if test -z "$ac_lib"; then
13737 ac_res="none required"
13738 else
13739 ac_res=-l$ac_lib
13740 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13741 fi
13742 if ac_fn_c_try_link "$LINENO"; then :
13743 ac_cv_search_opendir=$ac_res
13744fi
13745rm -f core conftest.err conftest.$ac_objext \
13746 conftest$ac_exeext
13747 if test "${ac_cv_search_opendir+set}" = set; then :
13748 break
13749fi
13750done
13751if test "${ac_cv_search_opendir+set}" = set; then :
2ba49b59 13752
81ecdfbb
RW
13753else
13754 ac_cv_search_opendir=no
13755fi
13756rm conftest.$ac_ext
13757LIBS=$ac_func_search_save_LIBS
13758fi
13759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13760$as_echo "$ac_cv_search_opendir" >&6; }
13761ac_res=$ac_cv_search_opendir
13762if test "$ac_res" != no; then :
13763 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2ba49b59 13764
81ecdfbb 13765fi
efde2f2c 13766
2ba49b59 13767fi
81ecdfbb 13768
17d5dae2 13769
81ecdfbb
RW
13770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
13771$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
13772if test "${gcc_cv_header_string+set}" = set; then :
13773 $as_echo_n "(cached) " >&6
2ba49b59 13774else
81ecdfbb 13775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2ba49b59 13776/* end confdefs.h. */
81ecdfbb
RW
13777#include <string.h>
13778#include <strings.h>
13779int
13780main ()
13781{
13782
13783 ;
13784 return 0;
13785}
2ba49b59 13786_ACEOF
81ecdfbb
RW
13787if ac_fn_c_try_compile "$LINENO"; then :
13788 gcc_cv_header_string=yes
2ba49b59 13789else
81ecdfbb
RW
13790 gcc_cv_header_string=no
13791fi
13792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13793fi
13794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
13795$as_echo "$gcc_cv_header_string" >&6; }
13796if test $gcc_cv_header_string = yes; then
13797
13798$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
2ba49b59 13799
2ba49b59 13800fi
2ba49b59 13801
81ecdfbb
RW
13802for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno
13803do :
13804 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13805ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13806eval as_val=\$$as_ac_var
13807 if test "x$as_val" = x""yes; then :
13808 cat >>confdefs.h <<_ACEOF
13809#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2ba49b59 13810_ACEOF
81ecdfbb
RW
13811
13812fi
13813done
13814
9d782e8d 13815for ac_func in strtoull getrlimit
81ecdfbb 13816do :
9d782e8d
MW
13817 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13818ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13819eval as_val=\$$as_ac_var
13820 if test "x$as_val" = x""yes; then :
81ecdfbb 13821 cat >>confdefs.h <<_ACEOF
9d782e8d 13822#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2ba49b59 13823_ACEOF
81ecdfbb
RW
13824
13825fi
13826done
13827
13828
13829ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
13830if test "x$ac_cv_have_decl_basename" = x""yes; then :
13831 ac_have_decl=1
2ba49b59 13832else
81ecdfbb 13833 ac_have_decl=0
2ba49b59 13834fi
81ecdfbb
RW
13835
13836cat >>confdefs.h <<_ACEOF
13837#define HAVE_DECL_BASENAME $ac_have_decl
13838_ACEOF
13839
13840ac_fn_c_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default"
13841if test "x$ac_cv_have_decl_ftello" = x""yes; then :
13842 ac_have_decl=1
2ba49b59 13843else
81ecdfbb
RW
13844 ac_have_decl=0
13845fi
2ba49b59 13846
81ecdfbb
RW
13847cat >>confdefs.h <<_ACEOF
13848#define HAVE_DECL_FTELLO $ac_have_decl
13849_ACEOF
13850
13851ac_fn_c_check_decl "$LINENO" "ftello64" "ac_cv_have_decl_ftello64" "$ac_includes_default"
13852if test "x$ac_cv_have_decl_ftello64" = x""yes; then :
13853 ac_have_decl=1
13854else
13855 ac_have_decl=0
2ba49b59 13856fi
2ba49b59 13857
81ecdfbb
RW
13858cat >>confdefs.h <<_ACEOF
13859#define HAVE_DECL_FTELLO64 $ac_have_decl
13860_ACEOF
13861
13862ac_fn_c_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default"
13863if test "x$ac_cv_have_decl_fseeko" = x""yes; then :
13864 ac_have_decl=1
2ba49b59 13865else
81ecdfbb 13866 ac_have_decl=0
2ba49b59 13867fi
2ba49b59 13868
81ecdfbb
RW
13869cat >>confdefs.h <<_ACEOF
13870#define HAVE_DECL_FSEEKO $ac_have_decl
13871_ACEOF
13872
13873ac_fn_c_check_decl "$LINENO" "fseeko64" "ac_cv_have_decl_fseeko64" "$ac_includes_default"
13874if test "x$ac_cv_have_decl_fseeko64" = x""yes; then :
13875 ac_have_decl=1
13876else
13877 ac_have_decl=0
2ba49b59 13878fi
81ecdfbb
RW
13879
13880cat >>confdefs.h <<_ACEOF
13881#define HAVE_DECL_FSEEKO64 $ac_have_decl
2ba49b59
KC
13882_ACEOF
13883
81ecdfbb
RW
13884
13885
13886case "${host}" in
13887*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13888
13889$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
13890 ;;
13891esac
13892
13893ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
13894if test "x$ac_cv_have_decl_ffs" = x""yes; then :
13895 ac_have_decl=1
13896else
13897 ac_have_decl=0
2ba49b59
KC
13898fi
13899
81ecdfbb
RW
13900cat >>confdefs.h <<_ACEOF
13901#define HAVE_DECL_FFS $ac_have_decl
13902_ACEOF
2ba49b59 13903
81ecdfbb
RW
13904ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
13905if test "x$ac_cv_have_decl_free" = x""yes; then :
13906 ac_have_decl=1
13907else
13908 ac_have_decl=0
13909fi
d5efd9fc 13910
81ecdfbb
RW
13911cat >>confdefs.h <<_ACEOF
13912#define HAVE_DECL_FREE $ac_have_decl
13913_ACEOF
d5efd9fc 13914
81ecdfbb
RW
13915ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
13916if test "x$ac_cv_have_decl_getenv" = x""yes; then :
13917 ac_have_decl=1
13918else
13919 ac_have_decl=0
13920fi
d5efd9fc 13921
81ecdfbb
RW
13922cat >>confdefs.h <<_ACEOF
13923#define HAVE_DECL_GETENV $ac_have_decl
d5efd9fc 13924_ACEOF
d5efd9fc 13925
81ecdfbb
RW
13926ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
13927if test "x$ac_cv_have_decl_malloc" = x""yes; then :
13928 ac_have_decl=1
13929else
13930 ac_have_decl=0
13931fi
13932
13933cat >>confdefs.h <<_ACEOF
13934#define HAVE_DECL_MALLOC $ac_have_decl
d5efd9fc 13935_ACEOF
81ecdfbb
RW
13936
13937ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
13938if test "x$ac_cv_have_decl_realloc" = x""yes; then :
13939 ac_have_decl=1
d5efd9fc 13940else
81ecdfbb
RW
13941 ac_have_decl=0
13942fi
13943
13944cat >>confdefs.h <<_ACEOF
13945#define HAVE_DECL_REALLOC $ac_have_decl
13946_ACEOF
d5efd9fc 13947
81ecdfbb
RW
13948ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
13949if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
13950 ac_have_decl=1
13951else
13952 ac_have_decl=0
d5efd9fc 13953fi
81ecdfbb
RW
13954
13955cat >>confdefs.h <<_ACEOF
13956#define HAVE_DECL_STPCPY $ac_have_decl
13957_ACEOF
13958
13959ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13960if test "x$ac_cv_have_decl_strstr" = x""yes; then :
13961 ac_have_decl=1
13962else
13963 ac_have_decl=0
d5efd9fc 13964fi
81ecdfbb
RW
13965
13966cat >>confdefs.h <<_ACEOF
13967#define HAVE_DECL_STRSTR $ac_have_decl
13968_ACEOF
13969
d6f1bafa
IB
13970ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
13971if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
13972 ac_have_decl=1
13973else
13974 ac_have_decl=0
13975fi
13976
13977cat >>confdefs.h <<_ACEOF
13978#define HAVE_DECL_ASPRINTF $ac_have_decl
13979_ACEOF
13980
13981ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
13982if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
13983 ac_have_decl=1
13984else
13985 ac_have_decl=0
13986fi
13987
13988cat >>confdefs.h <<_ACEOF
13989#define HAVE_DECL_VASPRINTF $ac_have_decl
13990_ACEOF
13991
81ecdfbb
RW
13992ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
13993if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
13994 ac_have_decl=1
d5efd9fc 13995else
81ecdfbb 13996 ac_have_decl=0
d5efd9fc
AM
13997fi
13998
81ecdfbb
RW
13999cat >>confdefs.h <<_ACEOF
14000#define HAVE_DECL_SNPRINTF $ac_have_decl
14001_ACEOF
14002
14003ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
14004if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
14005 ac_have_decl=1
d5efd9fc 14006else
81ecdfbb
RW
14007 ac_have_decl=0
14008fi
14009
14010cat >>confdefs.h <<_ACEOF
14011#define HAVE_DECL_VSNPRINTF $ac_have_decl
d5efd9fc 14012_ACEOF
81ecdfbb 14013
5a026fc9
NC
14014ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
14015if test "x$ac_cv_have_decl_strnlen" = x""yes; then :
14016 ac_have_decl=1
14017else
14018 ac_have_decl=0
14019fi
14020
14021cat >>confdefs.h <<_ACEOF
14022#define HAVE_DECL_STRNLEN $ac_have_decl
14023_ACEOF
14024
81ecdfbb 14025
9ae46699
L
14026# Link in zlib if we can. This allows us to read compressed debug sections.
14027# This is used only by compress.c.
14028
14029 # Use the system's zlib library.
39f3de7c
L
14030 zlibdir="-L\$(top_builddir)/../zlib"
14031 zlibinc="-I\$(top_srcdir)/../zlib"
bf993e3c 14032
243340ad
L
14033# Check whether --with-system-zlib was given.
14034if test "${with_system_zlib+set}" = set; then :
afa59b79
L
14035 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
14036 zlibdir=
14037 zlibinc=
14038 fi
bf993e3c 14039
bf993e3c
JB
14040fi
14041
14042
bf993e3c 14043
d5efd9fc 14044
9ae46699 14045
c603b11b
AM
14046# Check if linker supports --as-needed and --no-as-needed options
14047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
14048$as_echo_n "checking linker --as-needed support... " >&6; }
14049if test "${bfd_cv_ld_as_needed+set}" = set; then :
14050 $as_echo_n "(cached) " >&6
14051else
14052 bfd_cv_ld_as_needed=no
14053 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
14054 bfd_cv_ld_as_needed=yes
14055 fi
d5efd9fc 14056
c603b11b
AM
14057fi
14058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5
14059$as_echo "$bfd_cv_ld_as_needed" >&6; }
d5efd9fc 14060
c603b11b
AM
14061LIBM=
14062case $host in
14063*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
14064 # These system don't have libm, or don't need it
14065 ;;
14066*-ncr-sysv4.3*)
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
14068$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
14069if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
14070 $as_echo_n "(cached) " >&6
14071else
14072 ac_check_lib_save_LIBS=$LIBS
14073LIBS="-lmw $LIBS"
14074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14075/* end confdefs.h. */
c603b11b
AM
14076
14077/* Override any GCC internal prototype to avoid an error.
14078 Use char because int might match the return type of a GCC
14079 builtin and then its argument prototype would still apply. */
14080#ifdef __cplusplus
14081extern "C"
14082#endif
14083char _mwvalidcheckl ();
d5efd9fc
AM
14084int
14085main ()
14086{
c603b11b 14087return _mwvalidcheckl ();
d5efd9fc
AM
14088 ;
14089 return 0;
14090}
14091_ACEOF
c603b11b
AM
14092if ac_fn_c_try_link "$LINENO"; then :
14093 ac_cv_lib_mw__mwvalidcheckl=yes
d5efd9fc 14094else
c603b11b 14095 ac_cv_lib_mw__mwvalidcheckl=no
d5efd9fc 14096fi
c603b11b
AM
14097rm -f core conftest.err conftest.$ac_objext \
14098 conftest$ac_exeext conftest.$ac_ext
14099LIBS=$ac_check_lib_save_LIBS
d5efd9fc 14100fi
c603b11b
AM
14101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
14102$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
14103if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
14104 LIBM="-lmw"
d5efd9fc
AM
14105fi
14106
c603b11b
AM
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14108$as_echo_n "checking for cos in -lm... " >&6; }
14109if test "${ac_cv_lib_m_cos+set}" = set; then :
81ecdfbb 14110 $as_echo_n "(cached) " >&6
d5efd9fc 14111else
c603b11b
AM
14112 ac_check_lib_save_LIBS=$LIBS
14113LIBS="-lm $LIBS"
14114cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14115/* end confdefs.h. */
81ecdfbb 14116
c603b11b
AM
14117/* Override any GCC internal prototype to avoid an error.
14118 Use char because int might match the return type of a GCC
14119 builtin and then its argument prototype would still apply. */
14120#ifdef __cplusplus
14121extern "C"
14122#endif
14123char cos ();
d5efd9fc
AM
14124int
14125main ()
14126{
c603b11b 14127return cos ();
d5efd9fc
AM
14128 ;
14129 return 0;
14130}
14131_ACEOF
c603b11b
AM
14132if ac_fn_c_try_link "$LINENO"; then :
14133 ac_cv_lib_m_cos=yes
d5efd9fc 14134else
c603b11b 14135 ac_cv_lib_m_cos=no
d5efd9fc 14136fi
c603b11b
AM
14137rm -f core conftest.err conftest.$ac_objext \
14138 conftest$ac_exeext conftest.$ac_ext
14139LIBS=$ac_check_lib_save_LIBS
14140fi
14141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14142$as_echo "$ac_cv_lib_m_cos" >&6; }
14143if test "x$ac_cv_lib_m_cos" = x""yes; then :
14144 LIBM="$LIBM -lm"
d5efd9fc 14145fi
d5efd9fc 14146
c603b11b
AM
14147 ;;
14148*)
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14150$as_echo_n "checking for cos in -lm... " >&6; }
14151if test "${ac_cv_lib_m_cos+set}" = set; then :
81ecdfbb 14152 $as_echo_n "(cached) " >&6
d5efd9fc 14153else
c603b11b
AM
14154 ac_check_lib_save_LIBS=$LIBS
14155LIBS="-lm $LIBS"
14156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14157/* end confdefs.h. */
81ecdfbb 14158
c603b11b
AM
14159/* Override any GCC internal prototype to avoid an error.
14160 Use char because int might match the return type of a GCC
14161 builtin and then its argument prototype would still apply. */
14162#ifdef __cplusplus
14163extern "C"
14164#endif
14165char cos ();
d5efd9fc
AM
14166int
14167main ()
14168{
c603b11b 14169return cos ();
d5efd9fc
AM
14170 ;
14171 return 0;
14172}
14173_ACEOF
c603b11b
AM
14174if ac_fn_c_try_link "$LINENO"; then :
14175 ac_cv_lib_m_cos=yes
81ecdfbb 14176else
c603b11b 14177 ac_cv_lib_m_cos=no
81ecdfbb 14178fi
c603b11b
AM
14179rm -f core conftest.err conftest.$ac_objext \
14180 conftest$ac_exeext conftest.$ac_ext
14181LIBS=$ac_check_lib_save_LIBS
14182fi
14183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14184$as_echo "$ac_cv_lib_m_cos" >&6; }
14185if test "x$ac_cv_lib_m_cos" = x""yes; then :
14186 LIBM="-lm"
81ecdfbb
RW
14187fi
14188
c603b11b
AM
14189 ;;
14190esac
81ecdfbb 14191
81ecdfbb 14192
81ecdfbb 14193
c603b11b
AM
14194# When building a shared libbfd, link against the pic version of libiberty
14195# so that apps that use libbfd won't need libiberty just to satisfy any
14196# libbfd references.
14197# We can't do that if a pic libiberty is unavailable since including non-pic
14198# code would insert text relocations into libbfd.
14199SHARED_LIBADD=
14200SHARED_LDFLAGS=
14201if test "$enable_shared" = "yes"; then
14202 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
14203 if test -n "$x"; then
14204 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
14205 fi
81ecdfbb 14206
c603b11b
AM
14207# More hacks to build DLLs on Windows.
14208 case "${host}" in
14209 *-*-cygwin*)
14210 SHARED_LDFLAGS="-no-undefined"
14211 SHARED_LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
14212 ;;
d5efd9fc 14213
c603b11b
AM
14214 # Hack to build or1k-src on OSX
14215 or1k*-*-darwin*)
14216 SHARED_LIBADD="-L`pwd`/../libiberty/pic -L`pwd`/../intl -liberty -lintl"
14217 ;;
14218 esac
14219
14220 if test -n "$SHARED_LIBADD"; then
14221 if test -n "$LIBM"; then
14222 if test x"$bfd_cv_ld_as_needed" = xyes; then
14223 # Link against libm only when needed. Put -lc, -lm inside -Wl
14224 # to stop libtool reordering these options.
14225 SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
14226 else
14227 SHARED_LIBADD="$SHARED_LIBADD $LIBM"
14228 fi
14229 fi
14230 fi
81ecdfbb 14231fi
d5efd9fc 14232
81ecdfbb 14233
81ecdfbb 14234
c603b11b 14235# target stuff:
81ecdfbb 14236
c603b11b
AM
14237# Canonicalize the secondary target names.
14238if test -n "$enable_targets" ; then
14239 for targ in `echo $enable_targets | sed 's/,/ /g'`
14240 do
14241 result=`$ac_config_sub $targ 2>/dev/null`
14242 if test -n "$result" ; then
14243 canon_targets="$canon_targets $result"
14244 else
14245 # Allow targets that config.sub doesn't recognize, like "all".
14246 canon_targets="$canon_targets $targ"
14247 fi
14248 done
d5efd9fc 14249fi
d5efd9fc 14250
c603b11b
AM
14251all_targets=false
14252defvec=
14253selvecs=
14254assocvecs=
14255selarchs=
14256TDEFINES=
14257for targ in $target $canon_targets
14258do
14259 if test "x$targ" = "xall"; then
14260 all_targets=true
14261 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
14262 else
14263 . $srcdir/config.bfd
14264 if test "x$targ" = "x$target"; then
14265 defvec=$targ_defvec
14266 fi
14267 selvecs="$selvecs $targ_defvec $targ_selvecs"
14268 selarchs="$selarchs $targ_archs"
14269 TDEFINES="$TDEFINES $targ_cflags"
14270 fi
14271done
d5efd9fc 14272
81ecdfbb 14273
c603b11b
AM
14274# This processing still needs to be done if we're to decide properly whether
14275# 64-bit support needs to be compiled in. Currently, it will be included if
14276# the default or any other explicitly requested target requires it; it
14277# will not be included on a 32-bit host if no 64-bit target is requested, and
14278# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
14279# used.
81ecdfbb 14280
c603b11b
AM
14281# uniq the default and selected vectors in all the configured targets.
14282f=""
14283for i in $selvecs ; do
14284 case " $f " in
14285 *" $i "*) ;;
14286 *) f="$f $i" ;;
14287 esac
14288done
14289selvecs="$f"
335e41d4 14290
335e41d4 14291
c603b11b
AM
14292# uniq the associated vectors in all the configured targets.
14293f=""
14294for i in $assocvecs ; do
14295 case " $f " in
14296 *" $i "*) ;;
14297 *) f="$f $i" ;;
14298 esac
14299done
14300assocvecs="$f"
335e41d4 14301
335e41d4 14302
c603b11b
AM
14303# uniq the architectures in all the configured targets.
14304f=""
14305for i in $selarchs ; do
14306 case " $f " in
14307 *" $i "*) ;;
14308 *) f="$f $i" ;;
14309 esac
14310done
14311selarchs="$f"
335e41d4 14312
c603b11b
AM
14313# Target backend .o files.
14314tb=
335e41d4 14315
46bed679 14316elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-properties.lo
c603b11b
AM
14317 elf-eh-frame.lo dwarf1.lo dwarf2.lo"
14318coffgen="coffgen.lo dwarf2.lo"
14319coff="cofflink.lo $coffgen"
14320ecoff="ecofflink.lo $coffgen"
14321xcoff="xcofflink.lo $coffgen"
2ba49b59 14322
81ecdfbb 14323for vec in $selvecs
49c97a80 14324do
81ecdfbb
RW
14325 target_size=32
14326 case "$vec" in
14327 # This list is alphabetized to make it easy to compare
14328 # with the two vector lists in targets.c. For the same reason,
14329 # use one entry per line, even though this leads to long lines.
2f67d686
AM
14330 aarch64_elf32_be_vec) tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
14331 aarch64_elf32_le_vec) tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
d8bd95ef 14332 aarch64_elf64_be_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
a75cf613 14333 aarch64_elf64_be_cloudabi_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
d8bd95ef 14334 aarch64_elf64_le_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
a75cf613 14335 aarch64_elf64_le_cloudabi_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
f075eb5e 14336 aarch64_mach_o_vec) tb="$tb mach-o-aarch64.lo"; target_size=64 ;;
f4943d82 14337 alpha_ecoff_le_vec) tb="$tb coff-alpha.lo ecoff.lo $ecoff"; target_size=64 ;;
2f67d686
AM
14338 alpha_elf64_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
14339 alpha_elf64_fbsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
2f67d686
AM
14340 alpha_vms_vec) tb="$tb vms-alpha.lo vms-misc.lo vms-lib.lo"; target_size=64 ;;
14341 alpha_vms_lib_txt_vec) tb="$tb vms-lib.lo vms-misc.lo" ;;
14342 am33_elf32_linux_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
6d00b590 14343 aout0_be_vec) tb="$tb aout0.lo aout32.lo" ;;
2f67d686
AM
14344 aout64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
14345 aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
2f67d686
AM
14346 arc_elf32_be_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
14347 arc_elf32_le_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
6d00b590
AM
14348 arm_aout_be_vec) tb="$tb aout-arm.lo aout32.lo" ;;
14349 arm_aout_le_vec) tb="$tb aout-arm.lo aout32.lo" ;;
2f67d686
AM
14350 arm_aout_nbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
14351 arm_aout_riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
f4943d82
AM
14352 arm_coff_be_vec) tb="$tb coff-arm.lo $coff" ;;
14353 arm_coff_le_vec) tb="$tb coff-arm.lo $coff" ;;
2f67d686
AM
14354 arm_elf32_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14355 arm_elf32_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14356 arm_elf32_nacl_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14357 arm_elf32_nacl_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14358 arm_elf32_symbian_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14359 arm_elf32_symbian_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14360 arm_elf32_vxworks_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14361 arm_elf32_vxworks_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
f4943d82
AM
14362 arm_pe_be_vec) tb="$tb pe-arm.lo peigen.lo $coff" ;;
14363 arm_pe_le_vec) tb="$tb pe-arm.lo peigen.lo $coff" ;;
14364 arm_pe_epoc_be_vec) tb="$tb epoc-pe-arm.lo peigen.lo $coff" ;;
14365 arm_pe_epoc_le_vec) tb="$tb epoc-pe-arm.lo peigen.lo $coff" ;;
14366 arm_pe_wince_be_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;;
14367 arm_pe_wince_le_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;;
14368 arm_pei_be_vec) tb="$tb pei-arm.lo peigen.lo $coff" ;;
14369 arm_pei_le_vec) tb="$tb pei-arm.lo peigen.lo $coff" ;;
14370 arm_pei_epoc_be_vec) tb="$tb epoc-pei-arm.lo peigen.lo $coff" ;;
14371 arm_pei_epoc_le_vec) tb="$tb epoc-pei-arm.lo peigen.lo $coff" ;;
14372 arm_pei_wince_be_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;;
14373 arm_pei_wince_le_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;;
f075eb5e 14374 arm_mach_o_vec) tb="$tb mach-o-arm.lo" ;;
6d00b590
AM
14375 avr_elf32_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
14376 bfin_elf32_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
14377 bfin_elf32_fdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
6d00b590
AM
14378 cr16_elf32_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
14379 cr16c_elf32_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
2f67d686 14380 cris_aout_vec) tb="$tb aout-cris.lo" ;;
6d00b590 14381 cris_elf32_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
2f67d686 14382 cris_elf32_us_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
6d00b590
AM
14383 crx_elf32_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
14384 d10v_elf32_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
14385 d30v_elf32_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
14386 dlx_elf32_be_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
2f67d686
AM
14387 elf32_be_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
14388 elf32_le_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
14389 elf64_be_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
14390 elf64_le_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
6d00b590
AM
14391 epiphany_elf32_vec) tb="$tb elf32-epiphany.lo elf32.lo $elf" ;;
14392 fr30_elf32_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
14393 frv_elf32_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
14394 frv_elf32_fdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
14395 h8300_elf32_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
5518c738 14396 h8300_elf32_linux_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
2f67d686 14397 hppa_elf32_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
6d00b590
AM
14398 hppa_elf32_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
14399 hppa_elf32_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
2f67d686
AM
14400 hppa_elf64_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
14401 hppa_elf64_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
14402 hppa_som_vec) tb="$tb som.lo" ;;
2f67d686
AM
14403 i386_aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
14404 i386_aout_bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
14405 i386_aout_dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
14406 i386_aout_fbsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
14407 i386_aout_linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
14408 i386_aout_lynx_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
14409 i386_aout_mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
14410 i386_aout_nbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
14411 i386_aout_os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
f4943d82
AM
14412 i386_coff_vec) tb="$tb coff-i386.lo $coff" ;;
14413 i386_coff_go32_vec) tb="$tb coff-go32.lo $coff" ;;
14414 i386_coff_go32stubbed_vec) tb="$tb coff-stgo32.lo $coff" ;;
14415 i386_coff_lynx_vec) tb="$tb cf-i386lynx.lo lynx-core.lo $coff" ;;
0afcef53
L
14416 i386_elf32_vec) tb="$tb elf32-i386.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
14417 i386_elf32_fbsd_vec) tb="$tb elf32-i386.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
14418 i386_elf32_nacl_vec) tb="$tb elf32-i386.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
14419 i386_elf32_sol2_vec) tb="$tb elf32-i386.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
14420 i386_elf32_vxworks_vec) tb="$tb elf32-i386.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
2f67d686
AM
14421 i386_mach_o_vec) tb="$tb mach-o-i386.lo" ;;
14422 i386_msdos_vec) tb="$tb i386msdos.lo" ;;
f4943d82
AM
14423 i386_pe_vec) tb="$tb pe-i386.lo peigen.lo $coff" ;;
14424 i386_pei_vec) tb="$tb pei-i386.lo peigen.lo $coff" ;;
0afcef53 14425 iamcu_elf32_vec) tb="$tb elf32-i386.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
6d00b590
AM
14426 ia64_elf32_be_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;;
14427 ia64_elf32_hpux_be_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;;
2f67d686
AM
14428 ia64_elf64_be_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
14429 ia64_elf64_le_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
14430 ia64_elf64_hpux_be_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
14431 ia64_elf64_vms_vec) tb="$tb elf64-ia64-vms.lo elf64-ia64.lo elfxx-ia64.lo elf64.lo vms-lib.lo vms-misc.lo $elf"; target_size=64 ;;
f4943d82 14432 ia64_pei_vec) tb="$tb pei-ia64.lo pepigen.lo $coff"; target_size=64 ;;
6d00b590
AM
14433 ip2k_elf32_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
14434 iq2000_elf32_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
0afcef53
L
14435 k1om_elf64_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
14436 k1om_elf64_fbsd_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
14437 l1om_elf64_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
14438 l1om_elf64_fbsd_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
6d00b590
AM
14439 lm32_elf32_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
14440 lm32_elf32_fdpic_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
6d00b590
AM
14441 m32c_elf32_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
14442 m32r_elf32_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
14443 m32r_elf32_le_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
14444 m32r_elf32_linux_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
14445 m32r_elf32_linux_le_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
14446 m68hc11_elf32_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
14447 m68hc12_elf32_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
14448 m68k_elf32_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
f4943d82
AM
14449 mach_o_be_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
14450 mach_o_le_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
14451 mach_o_fat_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
6d00b590
AM
14452 mcore_elf32_be_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
14453 mcore_elf32_le_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
f4943d82
AM
14454 mcore_pe_be_vec) tb="$tb pe-mcore.lo peigen.lo $coff" ;;
14455 mcore_pe_le_vec) tb="$tb pe-mcore.lo peigen.lo $coff" ;;
14456 mcore_pei_be_vec) tb="$tb pei-mcore.lo peigen.lo $coff" ;;
14457 mcore_pei_le_vec) tb="$tb pei-mcore.lo peigen.lo $coff" ;;
6d00b590
AM
14458 mep_elf32_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
14459 mep_elf32_le_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
14460 metag_elf32_vec) tb="$tb elf32-metag.lo elf32.lo $elf" ;;
6d00b590 14461 microblaze_elf32_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
2f67d686 14462 microblaze_elf32_le_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
f4943d82
AM
14463 mips_ecoff_be_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
14464 mips_ecoff_le_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
14465 mips_ecoff_bele_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
14466 mips_elf32_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14467 mips_elf32_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14468 mips_elf32_n_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14469 mips_elf32_n_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14470 mips_elf32_ntrad_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14471 mips_elf32_ntrad_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14472 mips_elf32_ntradfbsd_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14473 mips_elf32_ntradfbsd_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14474 mips_elf32_trad_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14475 mips_elf32_trad_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14476 mips_elf32_tradfbsd_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14477 mips_elf32_tradfbsd_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14478 mips_elf32_vxworks_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14479 mips_elf32_vxworks_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14480 mips_elf64_be_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14481 mips_elf64_le_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14482 mips_elf64_trad_be_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14483 mips_elf64_trad_le_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14484 mips_elf64_tradfbsd_be_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14485 mips_elf64_tradfbsd_le_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14486 mips_pe_le_vec) tb="$tb pe-mips.lo peigen.lo $coff" ;;
14487 mips_pei_le_vec) tb="$tb pei-mips.lo peigen.lo $coff" ;;
2f67d686
AM
14488 mmix_elf64_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
14489 mmix_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
14490 mn10200_elf32_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
14491 mn10300_elf32_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
14492 moxie_elf32_be_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
14493 moxie_elf32_le_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
14494 msp430_elf32_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
14495 msp430_elf32_ti_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
14496 mt_elf32_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
6d00b590
AM
14497 nds32_elf32_be_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
14498 nds32_elf32_le_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
14499 nds32_elf32_linux_be_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
14500 nds32_elf32_linux_le_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
2f67d686
AM
14501 nios2_elf32_be_vec) tb="$tb elf32-nios2.lo elf32.lo $elf" ;;
14502 nios2_elf32_le_vec) tb="$tb elf32-nios2.lo elf32.lo $elf" ;;
14503 ns32k_aout_pc532mach_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
14504 ns32k_aout_pc532nbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
6d00b590 14505 or1k_elf32_vec) tb="$tb elf32-or1k.lo elf32.lo $elf" ;;
2f67d686
AM
14506 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
14507 pef_vec) tb="$tb pef.lo" ;;
14508 pef_xlib_vec) tb="$tb pef.lo" ;;
6d00b590
AM
14509 pj_elf32_vec) tb="$tb elf32-pj.lo elf32.lo $elf" ;;
14510 pj_elf32_le_vec) tb="$tb elf32-pj.lo elf32.lo $elf" ;;
2f67d686
AM
14511 plugin_vec) tb="$tb plugin.lo" ;;
14512 powerpc_boot_vec) tb="$tb ppcboot.lo" ;;
6d00b590
AM
14513 powerpc_elf32_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
14514 powerpc_elf32_le_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
14515 powerpc_elf32_fbsd_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
14516 powerpc_elf32_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
2f67d686
AM
14517 powerpc_elf64_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
14518 powerpc_elf64_le_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
14519 powerpc_elf64_fbsd_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
f4943d82
AM
14520 powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo $coff" ;;
14521 powerpc_pe_le_vec) tb="$tb pe-ppc.lo peigen.lo $coff" ;;
14522 powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo $coff" ;;
14523 powerpc_pei_le_vec) tb="$tb pei-ppc.lo peigen.lo $coff" ;;
14524 powerpc_xcoff_vec) tb="$tb coff-rs6000.lo $xcoff" ;;
889294f6 14525 pru_elf32_vec) tb="$tb elf32-pru.lo elf32.lo $elf" ;;
e23eba97
NC
14526 riscv_elf32_vec) tb="$tb elf32-riscv.lo elfxx-riscv.lo elf32.lo $elf" ;;
14527 riscv_elf64_vec) tb="$tb elf64-riscv.lo elf64.lo elfxx-riscv.lo elf32.lo $elf"; target_size=64 ;;
6d00b590 14528 rl78_elf32_vec) tb="$tb elf32-rl78.lo elf32.lo $elf" ;;
f4943d82
AM
14529 rs6000_xcoff64_vec) tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;;
14530 rs6000_xcoff64_aix_vec) tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;;
14531 rs6000_xcoff_vec) tb="$tb coff-rs6000.lo $xcoff" ;;
6d00b590
AM
14532 rx_elf32_be_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
14533 rx_elf32_be_ns_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
2f67d686 14534 rx_elf32_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
6d00b590 14535 s390_elf32_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
2f67d686 14536 s390_elf64_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
6d00b590
AM
14537 score_elf32_be_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64 ;;
14538 score_elf32_le_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64 ;;
f4943d82
AM
14539 sh_coff_vec) tb="$tb coff-sh.lo $coff" ;;
14540 sh_coff_le_vec) tb="$tb coff-sh.lo $coff" ;;
14541 sh_coff_small_vec) tb="$tb coff-sh.lo $coff" ;;
14542 sh_coff_small_le_vec) tb="$tb coff-sh.lo $coff" ;;
14543 sh_elf32_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14544 sh_elf32_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14545 sh_elf32_fdpic_be_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14546 sh_elf32_fdpic_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14547 sh_elf32_linux_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14548 sh_elf32_linux_be_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14549 sh_elf32_nbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14550 sh_elf32_nbsd_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
f4943d82
AM
14551 sh_elf32_vxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14552 sh_elf32_vxworks_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14553 sh_pe_le_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo $coff" ;;
14554 sh_pei_le_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo $coff" ;;
6d00b590
AM
14555 sparc_aout_le_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
14556 sparc_aout_linux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
14557 sparc_aout_lynx_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
6d00b590
AM
14558 sparc_aout_nbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
14559 sparc_aout_sunos_be_vec) tb="$tb sunos.lo aout32.lo" ;;
f4943d82
AM
14560 sparc_coff_vec) tb="$tb coff-sparc.lo $coffgen" ;;
14561 sparc_coff_lynx_vec) tb="$tb cf-sparclynx.lo lynx-core.lo $coffgen" ;;
2f67d686
AM
14562 sparc_elf32_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
14563 sparc_elf32_sol2_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
14564 sparc_elf32_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
14565 sparc_elf64_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
14566 sparc_elf64_fbsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
14567 sparc_elf64_sol2_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
2f67d686 14568 spu_elf32_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
6d00b590
AM
14569 sym_vec) tb="$tb xsym.lo" ;;
14570 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
f4943d82
AM
14571 tic30_coff_vec) tb="$tb coff-tic30.lo $coffgen" ;;
14572 tic4x_coff0_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
14573 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
14574 tic4x_coff1_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
14575 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
14576 tic4x_coff2_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
14577 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
14578 tic54x_coff0_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
14579 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
14580 tic54x_coff1_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
14581 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
14582 tic54x_coff2_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
14583 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
2f67d686
AM
14584 tic6x_elf32_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
14585 tic6x_elf32_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
14586 tic6x_elf32_c6000_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
14587 tic6x_elf32_c6000_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
14588 tic6x_elf32_linux_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
14589 tic6x_elf32_linux_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
f4943d82 14590 tic80_coff_vec) tb="$tb coff-tic80.lo $coff" ;;
2f67d686
AM
14591 tilegx_elf32_be_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
14592 tilegx_elf32_le_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
14593 tilegx_elf64_be_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;;
14594 tilegx_elf64_le_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;;
14595 tilepro_elf32_vec) tb="$tb elf32-tilepro.lo elf32.lo $elf" ;;
14596 v800_elf32_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
14597 v850_elf32_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
6d00b590 14598 vax_aout_1knbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
2f67d686
AM
14599 vax_aout_nbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
14600 vax_elf32_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
3f8107ab 14601 ft32_elf32_vec) tb="$tb elf32-ft32.lo elf32.lo $elf" ;;
d924db55 14602 visium_elf32_vec) tb="$tb elf32-visium.lo elf32.lo $elf" ;;
a6be0538 14603 wasm_vec) tb="$tb wasm-module.lo" ;;
8fb740dd 14604 wasm32_elf32_vec) tb="$tb elf32-wasm32.lo elf32.lo $elf" ;;
f4943d82 14605 x86_64_coff_vec) tb="$tb coff-x86_64.lo $coff"; target_size=64 ;;
0afcef53
L
14606 x86_64_elf32_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo elf32.lo $elf"; target_size=64 ;;
14607 x86_64_elf32_nacl_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo elf32.lo $elf"; target_size=64 ;;
14608 x86_64_elf64_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
14609 x86_64_elf64_cloudabi_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
14610 x86_64_elf64_fbsd_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
14611 x86_64_elf64_nacl_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
14612 x86_64_elf64_sol2_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
2f67d686 14613 x86_64_mach_o_vec) tb="$tb mach-o-x86-64.lo" ;;
f4943d82
AM
14614 x86_64_pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
14615 x86_64_pe_be_vec) tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
14616 x86_64_pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
2f67d686
AM
14617 xc16x_elf32_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
14618 xgate_elf32_vec) tb="$tb elf32-xgate.lo elf32.lo $elf" ;;
14619 xstormy16_elf32_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
14620 xtensa_elf32_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
14621 xtensa_elf32_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
f4943d82
AM
14622 z80_coff_vec) tb="$tb coff-z80.lo reloc16.lo $coffgen" ;;
14623 z8k_coff_vec) tb="$tb coff-z8k.lo reloc16.lo $coff" ;;
2ba49b59 14624
c603b11b
AM
14625 # These appear out of order in targets.c
14626 srec_vec) tb="$tb srec.lo" ;;
14627 symbolsrec_vec) tb="$tb srec.lo" ;;
14628 tekhex_vec) tb="$tb tekhex.lo" ;;
14629 core_cisco_be_vec) tb="$tb cisco-core.lo" ;;
14630 core_cisco_le_vec) tb="$tb cisco-core.lo" ;;
14631
14632 "") ;;
14633 *) as_fn_error "*** unknown target vector $vec" "$LINENO" 5 ;;
14634 esac
14635
14636 if test ${target_size} = 64; then
14637 target64=true
14638 fi
14639 if test x"${vec}" = x"${defvec}"; then
14640 bfd_default_target_size=${target_size}
14641 fi
14642done
14643
14644# Target architecture .o files.
14645# A couple of CPUs use shorter file names to avoid problems on DOS
14646# filesystems.
14647ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
14648
14649# Weed out duplicate .o files.
14650f=""
14651for i in $tb ; do
14652 case " $f " in
14653 *" $i "*) ;;
14654 *) f="$f $i" ;;
14655 esac
14656done
14657tb="$f"
14658
14659f=""
14660for i in $ta ; do
14661 case " $f " in
14662 *" $i "*) ;;
14663 *) f="$f $i" ;;
14664 esac
14665done
14666ta="$f"
14667
14668bfd_backends="$tb"
14669bfd_machines="$ta"
14670
14671if test x${all_targets} = xtrue ; then
14672 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
14673 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
14674 selvecs=
14675 havevecs=-DHAVE_all_vecs
14676 selarchs=
14677 test -n "$assocvecs" &&
14678 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
14679else # all_targets is true
14680 # Only set these if they will be nonempty, for the clever echo.
14681 havevecs=
14682 assocvecs=
14683 test -n "$selvecs" &&
14684 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
14685 test -n "$selvecs" &&
14686 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
14687 test -n "$selarchs" &&
14688 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
14689fi # all_targets is true
14690
e6cc316a
L
14691# 64-bit archives need a 64-bit bfd_vma.
14692if test "x$want_64_bit_archive" = xtrue; then
14693 want64=true
14694
14695$as_echo "#define USE_64_BIT_ARCHIVE 1" >>confdefs.h
14696
14697fi
14698
c603b11b
AM
14699case ${host64}-${target64}-${want64} in
14700 *true*)
14701 wordsize=64
14702 bfd64_libs='$(BFD64_LIBS)'
14703 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
14704 if test $BFD_HOST_64_BIT_DEFINED = 0; then
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have requested a 64 bit BFD configuration, but" >&5
14706$as_echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your compiler may not have a 64 bit integral type" >&5
14708$as_echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
14709 fi
14710 if test -n "$GCC" ; then
14711 bad_64bit_gcc=no;
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc version with buggy 64-bit support" >&5
14713$as_echo_n "checking for gcc version with buggy 64-bit support... " >&6; }
14714 # Add more tests for gcc versions with non-working 64-bit support here.
14715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14716/* end confdefs.h. */
14717:__GNUC__:__GNUC_MINOR__:__i386__:
14718_ACEOF
14719if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14720 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then :
14721 bad_64bit_gcc=yes;
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes: egcs-1.1.2 on ix86 spotted" >&5
14723$as_echo "yes: egcs-1.1.2 on ix86 spotted" >&6; }
14724else
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14726$as_echo "no" >&6; }
14727fi
14728rm -f conftest*
14729
14730 if test $bad_64bit_gcc = yes ; then
14731 as_fn_error "A newer version of gcc is needed for the requested 64-bit BFD configuration" "$LINENO" 5
14732 fi
14733 fi
14734 ;;
14735 false-false-false)
14736 wordsize=32
14737 all_backends='$(BFD32_BACKENDS)'
14738 ;;
14739esac
14740
14741tdefaults=""
14742test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
14743test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
14744test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
14745test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756# If we are configured native, pick a core file support file.
14757COREFILE=
14758COREFLAG=
14759CORE_HEADER=
14760TRAD_HEADER=
14761if test "${target}" = "${host}"; then
14762 case "${host}" in
14763 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu | alpha*-*-*vms*)
14764 COREFILE=''
14765 ;;
14766 alpha*-*-linux-*)
14767 COREFILE=trad-core.lo
14768 TRAD_HEADER='"hosts/alphalinux.h"'
14769 ;;
14770 alpha*-*-netbsd* | alpha*-*-openbsd*)
14771 COREFILE=netbsd-core.lo
14772 ;;
14773 alpha*-*-*)
14774 COREFILE=osf-core.lo
14775 ;;
14776 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
14777 COREFILE='' ;;
14778 arm-*-netbsd* | arm-*-openbsd*)
14779 COREFILE=netbsd-core.lo
14780 ;;
14781 arm-*-riscix) COREFILE=trad-core.lo ;;
14782 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
14783 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
14784 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
14785 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
14786 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
14787 hppa*-*-netbsd* | hppa*-*-openbsd*)
14788 COREFILE=netbsd-core.lo
14789 ;;
14790
c603b11b
AM
14791 i[3-7]86-sequent-bsd*)
14792 COREFILE=trad-core.lo
14793 TRAD_HEADER='"hosts/symmetry.h"'
14794 ;;
14795 i[3-7]86-sequent-sysv4*) ;;
14796 i[3-7]86-sequent-sysv*)
14797 COREFILE=trad-core.lo
14798 TRAD_HEADER='"hosts/symmetry.h"'
14799 ;;
14800 i[3-7]86-*-bsdi)
14801 COREFILE=
14802 ;;
14803 i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234] | i[3-7]86-*-freebsd4\.[01234]\.* | i[3-7]86-*-freebsd*aout*)
14804 COREFILE=trad-core.lo
14805 TRAD_HEADER='"hosts/i386bsd.h"'
14806 ;;
14807 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
14808 COREFILE=''
14809 TRAD_HEADER='"hosts/i386bsd.h"'
14810 ;;
14811 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
14812 COREFILE=netbsd-core.lo
14813 ;;
14814 i[3-7]86-esix-sysv3*)
14815 COREFILE=trad-core.lo
14816 TRAD_HEADER='"hosts/esix.h"'
14817 ;;
14818 i[3-7]86-*-sco3.2v5*)
14819 COREFILE=sco5-core.lo
14820 ;;
14821 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
14822 COREFILE=trad-core.lo
14823 TRAD_HEADER='"hosts/i386sco.h"'
14824 ;;
14825 i[3-7]86-*-mach3*)
14826 COREFILE=trad-core.lo
14827 TRAD_HEADER='"hosts/i386mach3.h"'
14828 ;;
14829 i[3-7]86-*-linux-*)
14830 COREFILE=trad-core.lo
14831 TRAD_HEADER='"hosts/i386linux.h"'
14832 case "$enable_targets"-"$want64" in
14833 *x86_64-*linux*|*-true)
14834 CORE_HEADER='"hosts/x86-64linux.h"'
14835 esac
14836 ;;
14837 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
14838 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
c603b11b
AM
14839 mips-*-netbsd* | mips*-*-openbsd*)
14840 COREFILE=netbsd-core.lo
14841 ;;
14842 mips-dec-*)
14843 COREFILE=trad-core.lo
14844 TRAD_HEADER='"hosts/decstation.h"'
14845 ;;
14846 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
14847 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
14848 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
14849 mips-*-sysv4*) ;;
14850 mips-*-sysv* | mips-*-riscos*)
14851 COREFILE=trad-core.lo
14852 TRAD_HEADER='"hosts/riscos.h"'
14853 ;;
c603b11b
AM
14854 m68*-*-linux-*)
14855 COREFILE=trad-core.lo
14856 TRAD_HEADER='"hosts/m68klinux.h"'
14857 ;;
dc12032b 14858 m68*-*-netbsd*)
c603b11b
AM
14859 COREFILE=netbsd-core.lo
14860 ;;
c603b11b
AM
14861 ns32k-pc532-mach)
14862 COREFILE=trad-core.lo
14863 TRAD_HEADER='"hosts/pc532mach.h"'
14864 ;;
14865 ns32k-*-netbsd* | ns32k-*-openbsd*)
14866 COREFILE=netbsd-core.lo
14867 ;;
14868 rs6000-*-lynx*)
14869 COREFILE=lynx-core.lo
14870 ;;
14871 rs6000-*-aix[5-9].* | powerpc-*-aix[5-9].* | powerpc64-*-aix[5-9].*)
14872 COREFILE=rs6000-core.lo
14873 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
14874 ;;
14875 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
14876 COREFILE=rs6000-core.lo
14877 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
14878 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
14879 # have c_impl as a member of struct core_dumpx
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_impl in struct core_dumpx" >&5
14881$as_echo_n "checking for c_impl in struct core_dumpx... " >&6; }
14882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14883/* end confdefs.h. */
14884#include <core.h>
14885int
14886main ()
14887{
14888struct core_dumpx c; c.c_impl = 0;
14889 ;
14890 return 0;
14891}
14892_ACEOF
14893if ac_fn_c_try_compile "$LINENO"; then :
14894
14895$as_echo "#define HAVE_ST_C_IMPL 1" >>confdefs.h
14896
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14898$as_echo "yes" >&6; }
14899else
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14901$as_echo "no" >&6; }
14902fi
14903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14904 ;;
14905 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
14906 rs6000-*-*) COREFILE=rs6000-core.lo ;;
14907 powerpc64-*-aix*) COREFILE=rs6000-core.lo ;;
14908 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
14909 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
14910 powerpc-*-beos*) ;;
14911 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
14912 COREFILE='' ;;
14913 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
14914 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
14915 s390*-*-*) COREFILE=trad-core.lo ;;
14916 sh*-*-netbsd* | sh*-*-openbsd*)
14917 COREFILE=netbsd-core.lo
14918 ;;
14919 sparc-*-netbsd* | sparc*-*-openbsd*)
14920 COREFILE=netbsd-core.lo
14921 ;;
c603b11b
AM
14922 vax-*-netbsd* | vax-*-openbsd*)
14923 COREFILE=netbsd-core.lo
14924 ;;
14925 vax-*-ultrix2*)
14926 COREFILE=trad-core.lo
14927 TRAD_HEADER='"hosts/vaxult2.h"'
14928 ;;
14929 vax-*-ultrix*)
14930 COREFILE=trad-core.lo
14931 TRAD_HEADER='"hosts/vaxult2.h"'
14932 ;;
14933 vax-*-linux-*)
14934 COREFILE=trad-core.lo
14935 TRAD_HEADER='"hosts/vaxlinux.h"'
14936 ;;
14937 vax-*-*)
14938 COREFILE=trad-core.lo
14939 TRAD_HEADER='"hosts/vaxbsd.h"'
14940 ;;
14941 x86_64-*-linux*)
14942 CORE_HEADER='"hosts/x86-64linux.h"'
14943 ;;
14944 x86_64-*-netbsd* | x86_64-*-openbsd*)
14945 COREFILE=netbsd-core.lo
14946 ;;
14947 esac
14948
14949 case "$COREFILE" in
14950 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
14951 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
14952 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
14953 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
14954 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
14955 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
14956 osf-core.lo) COREFLAG=-DOSF_CORE ;;
14957 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
14958 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
14959 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
14960 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
14961 esac
14962
14963 # ELF corefile support has several flavors, but all of
14964 # them use something called <sys/procfs.h>
14965 for ac_header in sys/procfs.h
14966do :
14967 ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
14968if test "x$ac_cv_header_sys_procfs_h" = x""yes; then :
14969 cat >>confdefs.h <<_ACEOF
14970#define HAVE_SYS_PROCFS_H 1
14971_ACEOF
14972
14973fi
14974
14975done
14976
14977 if test "$ac_cv_header_sys_procfs_h" = yes; then
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t in sys/procfs.h" >&5
14979$as_echo_n "checking for prstatus_t in sys/procfs.h... " >&6; }
14980 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then :
14981 $as_echo_n "(cached) " >&6
14982else
14983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14984/* end confdefs.h. */
14985
14986#define _SYSCALL32
14987/* Needed for new procfs interface on sparc-solaris. */
14988#define _STRUCTURED_PROC 1
14989#include <sys/procfs.h>
14990int
14991main ()
14992{
14993prstatus_t avar
14994 ;
14995 return 0;
14996}
14997_ACEOF
14998if ac_fn_c_try_compile "$LINENO"; then :
14999 bfd_cv_have_sys_procfs_type_prstatus_t=yes
15000else
15001 bfd_cv_have_sys_procfs_type_prstatus_t=no
15002
15003fi
15004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15005fi
15006
15007 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
15008
15009$as_echo "#define HAVE_PRSTATUS_T 1" >>confdefs.h
15010
15011 fi
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
15013$as_echo "$bfd_cv_have_sys_procfs_type_prstatus_t" >&6; }
15014
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t in sys/procfs.h" >&5
15016$as_echo_n "checking for prstatus32_t in sys/procfs.h... " >&6; }
15017 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then :
15018 $as_echo_n "(cached) " >&6
15019else
15020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15021/* end confdefs.h. */
15022
15023#define _SYSCALL32
15024/* Needed for new procfs interface on sparc-solaris. */
15025#define _STRUCTURED_PROC 1
15026#include <sys/procfs.h>
15027int
15028main ()
15029{
15030prstatus32_t avar
15031 ;
15032 return 0;
15033}
15034_ACEOF
15035if ac_fn_c_try_compile "$LINENO"; then :
15036 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
15037else
15038 bfd_cv_have_sys_procfs_type_prstatus32_t=no
15039
15040fi
15041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15042fi
15043
15044 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
15045
15046$as_echo "#define HAVE_PRSTATUS32_T 1" >>confdefs.h
15047
15048 fi
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
15050$as_echo "$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6; }
15051
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t.pr_who in sys/procfs.h" >&5
15053$as_echo_n "checking for prstatus_t.pr_who in sys/procfs.h... " >&6; }
15054 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then :
15055 $as_echo_n "(cached) " >&6
15056else
15057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15058/* end confdefs.h. */
15059
15060#define _SYSCALL32
15061/* Needed for new procfs interface on sparc-solaris. */
15062#define _STRUCTURED_PROC 1
15063#include <sys/procfs.h>
15064int
15065main ()
15066{
15067prstatus_t avar; void* aref = (void*) &avar.pr_who
15068 ;
15069 return 0;
15070}
15071_ACEOF
15072if ac_fn_c_try_compile "$LINENO"; then :
15073 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
15074else
15075 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
15076
15077fi
15078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15079fi
15080
15081 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
15082
15083$as_echo "#define HAVE_PRSTATUS_T_PR_WHO 1" >>confdefs.h
15084
15085 fi
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
15087$as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6; }
15088
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
15090$as_echo_n "checking for prstatus32_t.pr_who in sys/procfs.h... " >&6; }
15091 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then :
15092 $as_echo_n "(cached) " >&6
15093else
15094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15095/* end confdefs.h. */
15096
15097#define _SYSCALL32
15098/* Needed for new procfs interface on sparc-solaris. */
15099#define _STRUCTURED_PROC 1
15100#include <sys/procfs.h>
15101int
15102main ()
15103{
15104prstatus32_t avar; void* aref = (void*) &avar.pr_who
15105 ;
15106 return 0;
15107}
15108_ACEOF
15109if ac_fn_c_try_compile "$LINENO"; then :
15110 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
15111else
15112 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
15113
15114fi
15115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15116fi
15117
15118 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
15119
15120$as_echo "#define HAVE_PRSTATUS32_T_PR_WHO 1" >>confdefs.h
15121
15122 fi
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
15124$as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6; }
15125
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
15127$as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
15128 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
15129 $as_echo_n "(cached) " >&6
15130else
15131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15132/* end confdefs.h. */
15133
15134#define _SYSCALL32
15135/* Needed for new procfs interface on sparc-solaris. */
15136#define _STRUCTURED_PROC 1
15137#include <sys/procfs.h>
15138int
15139main ()
15140{
15141pstatus_t avar
15142 ;
15143 return 0;
15144}
15145_ACEOF
15146if ac_fn_c_try_compile "$LINENO"; then :
15147 bfd_cv_have_sys_procfs_type_pstatus_t=yes
15148else
15149 bfd_cv_have_sys_procfs_type_pstatus_t=no
15150
15151fi
15152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15153fi
15154
15155 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
15156
15157$as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
15158
15159 fi
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
15161$as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
15162
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pxstatus_t in sys/procfs.h" >&5
15164$as_echo_n "checking for pxstatus_t in sys/procfs.h... " >&6; }
15165 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then :
15166 $as_echo_n "(cached) " >&6
15167else
15168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15169/* end confdefs.h. */
15170
15171#define _SYSCALL32
15172/* Needed for new procfs interface on sparc-solaris. */
15173#define _STRUCTURED_PROC 1
15174#include <sys/procfs.h>
15175int
15176main ()
15177{
15178pxstatus_t avar
15179 ;
15180 return 0;
15181}
15182_ACEOF
15183if ac_fn_c_try_compile "$LINENO"; then :
15184 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
15185else
15186 bfd_cv_have_sys_procfs_type_pxstatus_t=no
15187
15188fi
15189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15190fi
15191
15192 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
15193
15194$as_echo "#define HAVE_PXSTATUS_T 1" >>confdefs.h
15195
15196 fi
15197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
15198$as_echo "$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6; }
15199
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus32_t in sys/procfs.h" >&5
15201$as_echo_n "checking for pstatus32_t in sys/procfs.h... " >&6; }
15202 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then :
15203 $as_echo_n "(cached) " >&6
15204else
15205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15206/* end confdefs.h. */
15207
15208#define _SYSCALL32
15209/* Needed for new procfs interface on sparc-solaris. */
15210#define _STRUCTURED_PROC 1
15211#include <sys/procfs.h>
15212int
15213main ()
15214{
15215pstatus32_t avar
15216 ;
15217 return 0;
15218}
15219_ACEOF
15220if ac_fn_c_try_compile "$LINENO"; then :
15221 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
15222else
15223 bfd_cv_have_sys_procfs_type_pstatus32_t=no
15224
15225fi
15226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15227fi
15228
15229 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
15230
15231$as_echo "#define HAVE_PSTATUS32_T 1" >>confdefs.h
15232
15233 fi
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
15235$as_echo "$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6; }
15236
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo_t in sys/procfs.h" >&5
15238$as_echo_n "checking for prpsinfo_t in sys/procfs.h... " >&6; }
15239 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then :
15240 $as_echo_n "(cached) " >&6
15241else
15242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15243/* end confdefs.h. */
15244
15245#define _SYSCALL32
15246/* Needed for new procfs interface on sparc-solaris. */
15247#define _STRUCTURED_PROC 1
15248#include <sys/procfs.h>
15249int
15250main ()
15251{
15252prpsinfo_t avar
15253 ;
15254 return 0;
15255}
15256_ACEOF
15257if ac_fn_c_try_compile "$LINENO"; then :
15258 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
15259else
15260 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
15261
15262fi
15263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15264fi
15265
15266 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
15267
15268$as_echo "#define HAVE_PRPSINFO_T 1" >>confdefs.h
15269
15270 fi
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
15272$as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6; }
15273
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo_t.pr_pid in sys/procfs.h" >&5
15275$as_echo_n "checking for prpsinfo_t.pr_pid in sys/procfs.h... " >&6; }
15276 if test "${bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid+set}" = set; then :
15277 $as_echo_n "(cached) " >&6
15278else
15279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15280/* end confdefs.h. */
15281
15282#define _SYSCALL32
15283/* Needed for new procfs interface on sparc-solaris. */
15284#define _STRUCTURED_PROC 1
15285#include <sys/procfs.h>
15286int
15287main ()
15288{
15289prpsinfo_t avar; void* aref = (void*) &avar.pr_pid
15290 ;
15291 return 0;
15292}
15293_ACEOF
15294if ac_fn_c_try_compile "$LINENO"; then :
15295 bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid=yes
15296else
15297 bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid=no
15298
15299fi
15300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15301fi
15302
15303 if test $bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid = yes; then
15304
15305$as_echo "#define HAVE_PRPSINFO_T_PR_PID 1" >>confdefs.h
15306
15307 fi
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid" >&5
15309$as_echo "$bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid" >&6; }
15310
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo32_t in sys/procfs.h" >&5
15312$as_echo_n "checking for prpsinfo32_t in sys/procfs.h... " >&6; }
15313 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then :
15314 $as_echo_n "(cached) " >&6
15315else
15316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15317/* end confdefs.h. */
15318
15319#define _SYSCALL32
15320/* Needed for new procfs interface on sparc-solaris. */
15321#define _STRUCTURED_PROC 1
15322#include <sys/procfs.h>
15323int
15324main ()
15325{
15326prpsinfo32_t avar
15327 ;
15328 return 0;
15329}
15330_ACEOF
15331if ac_fn_c_try_compile "$LINENO"; then :
15332 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
15333else
15334 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
15335
15336fi
15337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15338fi
15339
15340 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
15341
15342$as_echo "#define HAVE_PRPSINFO32_T 1" >>confdefs.h
15343
15344 fi
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
15346$as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6; }
15347
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo32_t.pr_pid in sys/procfs.h" >&5
15349$as_echo_n "checking for prpsinfo32_t.pr_pid in sys/procfs.h... " >&6; }
15350 if test "${bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid+set}" = set; then :
15351 $as_echo_n "(cached) " >&6
15352else
15353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15354/* end confdefs.h. */
15355
15356#define _SYSCALL32
15357/* Needed for new procfs interface on sparc-solaris. */
15358#define _STRUCTURED_PROC 1
15359#include <sys/procfs.h>
15360int
15361main ()
15362{
15363prpsinfo32_t avar; void* aref = (void*) &avar.pr_pid
15364 ;
15365 return 0;
15366}
15367_ACEOF
15368if ac_fn_c_try_compile "$LINENO"; then :
15369 bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid=yes
15370else
15371 bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid=no
15372
15373fi
15374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15375fi
15376
15377 if test $bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid = yes; then
15378
15379$as_echo "#define HAVE_PRPSINFO32_T_PR_PID 1" >>confdefs.h
15380
15381 fi
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid" >&5
15383$as_echo "$bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid" >&6; }
15384
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo_t in sys/procfs.h" >&5
15386$as_echo_n "checking for psinfo_t in sys/procfs.h... " >&6; }
15387 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then :
15388 $as_echo_n "(cached) " >&6
15389else
15390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15391/* end confdefs.h. */
15392
15393#define _SYSCALL32
15394/* Needed for new procfs interface on sparc-solaris. */
15395#define _STRUCTURED_PROC 1
15396#include <sys/procfs.h>
15397int
15398main ()
15399{
15400psinfo_t avar
15401 ;
15402 return 0;
15403}
15404_ACEOF
15405if ac_fn_c_try_compile "$LINENO"; then :
15406 bfd_cv_have_sys_procfs_type_psinfo_t=yes
15407else
15408 bfd_cv_have_sys_procfs_type_psinfo_t=no
15409
15410fi
15411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15412fi
15413
15414 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
15415
15416$as_echo "#define HAVE_PSINFO_T 1" >>confdefs.h
15417
15418 fi
15419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
15420$as_echo "$bfd_cv_have_sys_procfs_type_psinfo_t" >&6; }
15421
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo_t.pr_pid in sys/procfs.h" >&5
15423$as_echo_n "checking for psinfo_t.pr_pid in sys/procfs.h... " >&6; }
15424 if test "${bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid+set}" = set; then :
15425 $as_echo_n "(cached) " >&6
15426else
15427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15428/* end confdefs.h. */
15429
15430#define _SYSCALL32
15431/* Needed for new procfs interface on sparc-solaris. */
15432#define _STRUCTURED_PROC 1
15433#include <sys/procfs.h>
15434int
15435main ()
15436{
15437psinfo_t avar; void* aref = (void*) &avar.pr_pid
15438 ;
15439 return 0;
15440}
15441_ACEOF
15442if ac_fn_c_try_compile "$LINENO"; then :
15443 bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid=yes
15444else
15445 bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid=no
15446
15447fi
15448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15449fi
15450
15451 if test $bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid = yes; then
15452
15453$as_echo "#define HAVE_PSINFO_T_PR_PID 1" >>confdefs.h
15454
15455 fi
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid" >&5
15457$as_echo "$bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid" >&6; }
15458
15459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo32_t in sys/procfs.h" >&5
15460$as_echo_n "checking for psinfo32_t in sys/procfs.h... " >&6; }
15461 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then :
15462 $as_echo_n "(cached) " >&6
15463else
15464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15465/* end confdefs.h. */
15466
15467#define _SYSCALL32
15468/* Needed for new procfs interface on sparc-solaris. */
15469#define _STRUCTURED_PROC 1
15470#include <sys/procfs.h>
15471int
15472main ()
15473{
15474psinfo32_t avar
15475 ;
15476 return 0;
15477}
15478_ACEOF
15479if ac_fn_c_try_compile "$LINENO"; then :
15480 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
15481else
15482 bfd_cv_have_sys_procfs_type_psinfo32_t=no
15483
15484fi
15485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15486fi
15487
15488 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
15489
15490$as_echo "#define HAVE_PSINFO32_T 1" >>confdefs.h
15491
15492 fi
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
15494$as_echo "$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6; }
15495
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo32_t.pr_pid in sys/procfs.h" >&5
15497$as_echo_n "checking for psinfo32_t.pr_pid in sys/procfs.h... " >&6; }
15498 if test "${bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid+set}" = set; then :
15499 $as_echo_n "(cached) " >&6
15500else
15501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15502/* end confdefs.h. */
15503
15504#define _SYSCALL32
15505/* Needed for new procfs interface on sparc-solaris. */
15506#define _STRUCTURED_PROC 1
15507#include <sys/procfs.h>
15508int
15509main ()
15510{
15511psinfo32_t avar; void* aref = (void*) &avar.pr_pid
15512 ;
15513 return 0;
15514}
15515_ACEOF
15516if ac_fn_c_try_compile "$LINENO"; then :
15517 bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid=yes
15518else
15519 bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid=no
15520
15521fi
15522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15523fi
15524
15525 if test $bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid = yes; then
15526
15527$as_echo "#define HAVE_PSINFO32_T_PR_PID 1" >>confdefs.h
15528
15529 fi
15530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid" >&5
15531$as_echo "$bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid" >&6; }
15532
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t in sys/procfs.h" >&5
15534$as_echo_n "checking for lwpstatus_t in sys/procfs.h... " >&6; }
15535 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then :
15536 $as_echo_n "(cached) " >&6
15537else
15538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15539/* end confdefs.h. */
15540
15541#define _SYSCALL32
15542/* Needed for new procfs interface on sparc-solaris. */
15543#define _STRUCTURED_PROC 1
15544#include <sys/procfs.h>
15545int
15546main ()
15547{
15548lwpstatus_t avar
15549 ;
15550 return 0;
15551}
15552_ACEOF
15553if ac_fn_c_try_compile "$LINENO"; then :
15554 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
15555else
15556 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
15557
15558fi
15559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15560fi
15561
15562 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
15563
15564$as_echo "#define HAVE_LWPSTATUS_T 1" >>confdefs.h
15565
15566 fi
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
15568$as_echo "$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6; }
15569
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpxstatus_t in sys/procfs.h" >&5
15571$as_echo_n "checking for lwpxstatus_t in sys/procfs.h... " >&6; }
15572 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then :
15573 $as_echo_n "(cached) " >&6
15574else
15575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15576/* end confdefs.h. */
15577
15578#define _SYSCALL32
15579/* Needed for new procfs interface on sparc-solaris. */
15580#define _STRUCTURED_PROC 1
15581#include <sys/procfs.h>
15582int
15583main ()
15584{
15585lwpxstatus_t avar
15586 ;
15587 return 0;
15588}
15589_ACEOF
15590if ac_fn_c_try_compile "$LINENO"; then :
15591 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
15592else
15593 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
15594
15595fi
15596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15597fi
15598
15599 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
15600
15601$as_echo "#define HAVE_LWPXSTATUS_T 1" >>confdefs.h
5464f5a1 15602
c603b11b
AM
15603 fi
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
15605$as_echo "$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6; }
1012372a 15606
c603b11b
AM
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
15608$as_echo_n "checking for lwpstatus_t.pr_context in sys/procfs.h... " >&6; }
15609 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then :
15610 $as_echo_n "(cached) " >&6
15611else
15612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15613/* end confdefs.h. */
2ba49b59 15614
c603b11b
AM
15615#define _SYSCALL32
15616/* Needed for new procfs interface on sparc-solaris. */
15617#define _STRUCTURED_PROC 1
15618#include <sys/procfs.h>
15619int
15620main ()
15621{
15622lwpstatus_t avar; void* aref = (void*) &avar.pr_context
15623 ;
15624 return 0;
15625}
15626_ACEOF
15627if ac_fn_c_try_compile "$LINENO"; then :
15628 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
15629else
15630 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
5464f5a1 15631
c603b11b
AM
15632fi
15633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15634fi
1012372a 15635
c603b11b 15636 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
2ba49b59 15637
c603b11b 15638$as_echo "#define HAVE_LWPSTATUS_T_PR_CONTEXT 1" >>confdefs.h
1012372a 15639
c603b11b
AM
15640 fi
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
15642$as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6; }
81ecdfbb 15643
c603b11b
AM
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
15645$as_echo_n "checking for lwpstatus_t.pr_reg in sys/procfs.h... " >&6; }
15646 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then :
15647 $as_echo_n "(cached) " >&6
15648else
15649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81ecdfbb 15650/* end confdefs.h. */
c603b11b
AM
15651
15652#define _SYSCALL32
15653/* Needed for new procfs interface on sparc-solaris. */
15654#define _STRUCTURED_PROC 1
15655#include <sys/procfs.h>
15656int
15657main ()
15658{
15659lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
15660 ;
15661 return 0;
15662}
81ecdfbb 15663_ACEOF
c603b11b
AM
15664if ac_fn_c_try_compile "$LINENO"; then :
15665 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
2ba49b59 15666else
c603b11b
AM
15667 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
15668
15669fi
15670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59 15671fi
1012372a 15672
c603b11b
AM
15673 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
15674
15675$as_echo "#define HAVE_LWPSTATUS_T_PR_REG 1" >>confdefs.h
15676
15677 fi
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
15679$as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6; }
15680
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_fpreg in sys/procfs.h" >&5
15682$as_echo_n "checking for lwpstatus_t.pr_fpreg in sys/procfs.h... " >&6; }
15683 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg+set}" = set; then :
15684 $as_echo_n "(cached) " >&6
15685else
15686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15687/* end confdefs.h. */
15688
15689#define _SYSCALL32
15690/* Needed for new procfs interface on sparc-solaris. */
15691#define _STRUCTURED_PROC 1
15692#include <sys/procfs.h>
15693int
15694main ()
15695{
15696lwpstatus_t avar; void* aref = (void*) &avar.pr_fpreg
15697 ;
15698 return 0;
15699}
15700_ACEOF
15701if ac_fn_c_try_compile "$LINENO"; then :
15702 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg=yes
15703else
15704 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg=no
15705
15706fi
15707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15708fi
15709
15710 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg = yes; then
1012372a 15711
c603b11b
AM
15712$as_echo "#define HAVE_LWPSTATUS_T_PR_FPREG 1" >>confdefs.h
15713
15714 fi
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg" >&5
15716$as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg" >&6; }
15717
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for win32_pstatus_t in sys/procfs.h" >&5
15719$as_echo_n "checking for win32_pstatus_t in sys/procfs.h... " >&6; }
15720 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then :
15721 $as_echo_n "(cached) " >&6
15722else
15723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15724/* end confdefs.h. */
15725
15726#define _SYSCALL32
15727/* Needed for new procfs interface on sparc-solaris. */
15728#define _STRUCTURED_PROC 1
15729#include <sys/procfs.h>
15730int
15731main ()
15732{
15733win32_pstatus_t avar
15734 ;
15735 return 0;
15736}
15737_ACEOF
15738if ac_fn_c_try_compile "$LINENO"; then :
15739 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
15740else
15741 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
15742
15743fi
15744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15745fi
15746
15747 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
15748
15749$as_echo "#define HAVE_WIN32_PSTATUS_T 1" >>confdefs.h
15750
15751 fi
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
15753$as_echo "$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6; }
15754
15755 fi
15756fi
1012372a
AC
15757
15758
c603b11b 15759if test -n "$CORE_HEADER"; then
1012372a 15760
c603b11b
AM
15761cat >>confdefs.h <<_ACEOF
15762#define CORE_HEADER $CORE_HEADER
15763_ACEOF
252b5132 15764
c603b11b
AM
15765fi
15766if test -n "$TRAD_HEADER"; then
6be7c12c 15767
c603b11b
AM
15768cat >>confdefs.h <<_ACEOF
15769#define TRAD_HEADER $TRAD_HEADER
15770_ACEOF
5464f5a1 15771
c603b11b 15772fi
5464f5a1 15773
81ecdfbb
RW
15774if test "$plugins" = "yes"; then
15775 supports_plugins=1
5464f5a1 15776else
81ecdfbb 15777 supports_plugins=0
5464f5a1 15778fi
5464f5a1 15779
81ecdfbb 15780
3cf9e6c4 15781
96fe4562 15782# Determine the host dependent file_ptr a.k.a. off_t type. In order
81ecdfbb
RW
15783# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
15784# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
15785# Hopefully a reasonable assumption since fseeko et.al. should be
15786# upward compatible.
15787for ac_func in ftello ftello64 fseeko fseeko64 fopen64
15788do :
15789 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15790ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15791eval as_val=\$$as_ac_var
15792 if test "x$as_val" = x""yes; then :
15793 cat >>confdefs.h <<_ACEOF
15794#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5464f5a1 15795_ACEOF
5464f5a1 15796
252b5132 15797fi
81ecdfbb 15798done
5464f5a1 15799
81ecdfbb
RW
15800if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
15801 # The cast to long int works around a bug in the HP C Compiler
15802# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15803# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15804# This bug is HP SR number 8606223364.
15805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
15806$as_echo_n "checking size of off_t... " >&6; }
15807if test "${ac_cv_sizeof_off_t+set}" = set; then :
15808 $as_echo_n "(cached) " >&6
6be7c12c 15809else
81ecdfbb 15810 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
5464f5a1 15811
81ecdfbb
RW
15812else
15813 if test "$ac_cv_type_off_t" = yes; then
15814 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15815$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15816{ as_fn_set_status 77
15817as_fn_error "cannot compute sizeof (off_t)
15818See \`config.log' for more details." "$LINENO" 5; }; }
15819 else
15820 ac_cv_sizeof_off_t=0
15821 fi
5464f5a1 15822fi
5464f5a1 15823
252b5132 15824fi
81ecdfbb
RW
15825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
15826$as_echo "$ac_cv_sizeof_off_t" >&6; }
5464f5a1 15827
252b5132 15828
5464f5a1 15829
81ecdfbb
RW
15830cat >>confdefs.h <<_ACEOF
15831#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
5464f5a1 15832_ACEOF
5464f5a1 15833
5464f5a1 15834
81ecdfbb
RW
15835fi
15836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking file_ptr type" >&5
15837$as_echo_n "checking file_ptr type... " >&6; }
15838bfd_file_ptr="long"
15839bfd_ufile_ptr="unsigned long"
15840if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
15841 -o x"${ac_cv_sizeof_off_t}" = x8; then
15842 bfd_file_ptr=BFD_HOST_64_BIT
15843 bfd_ufile_ptr=BFD_HOST_U_64_BIT
15844fi
15845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_file_ptr" >&5
15846$as_echo "$bfd_file_ptr" >&6; }
15847
6be7c12c 15848
252b5132 15849
81ecdfbb
RW
15850for ac_header in stdlib.h unistd.h
15851do :
15852 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15853ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15854eval as_val=\$$as_ac_Header
15855 if test "x$as_val" = x""yes; then :
15856 cat >>confdefs.h <<_ACEOF
15857#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5464f5a1 15858_ACEOF
5464f5a1 15859
5464f5a1 15860fi
81ecdfbb
RW
15861
15862done
15863
15864for ac_func in getpagesize
15865do :
15866 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
15867if test "x$ac_cv_func_getpagesize" = x""yes; then :
5464f5a1 15868 cat >>confdefs.h <<_ACEOF
81ecdfbb 15869#define HAVE_GETPAGESIZE 1
5464f5a1 15870_ACEOF
252b5132 15871
252b5132
RH
15872fi
15873done
15874
81ecdfbb
RW
15875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
15876$as_echo_n "checking for working mmap... " >&6; }
15877if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
15878 $as_echo_n "(cached) " >&6
252b5132 15879else
81ecdfbb 15880 if test "$cross_compiling" = yes; then :
252b5132
RH
15881 ac_cv_func_mmap_fixed_mapped=no
15882else
81ecdfbb 15883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464f5a1
NN
15884/* end confdefs.h. */
15885$ac_includes_default
15886/* malloc might have been renamed as rpl_malloc. */
15887#undef malloc
6be7c12c 15888
252b5132
RH
15889/* Thanks to Mike Haertel and Jim Avera for this test.
15890 Here is a matrix of mmap possibilities:
15891 mmap private not fixed
15892 mmap private fixed at somewhere currently unmapped
15893 mmap private fixed at somewhere already mapped
15894 mmap shared not fixed
15895 mmap shared fixed at somewhere currently unmapped
15896 mmap shared fixed at somewhere already mapped
15897 For private mappings, we should verify that changes cannot be read()
15898 back from the file, nor mmap's back from the file at a different
15899 address. (There have been systems where private was not correctly
15900 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 15901 VM page cache was not coherent with the file system buffer cache
252b5132
RH
15902 like early versions of FreeBSD and possibly contemporary NetBSD.)
15903 For shared mappings, we should conversely verify that changes get
5464f5a1 15904 propagated back to all the places they're supposed to be.
252b5132
RH
15905
15906 Grep wants private fixed already mapped.
15907 The main things grep needs to know about mmap are:
15908 * does it exist and is it safe to write into the mmap'd area
15909 * how to use it (BSD variants) */
5464f5a1 15910
252b5132
RH
15911#include <fcntl.h>
15912#include <sys/mman.h>
15913
81ecdfbb 15914#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
5464f5a1
NN
15915char *malloc ();
15916#endif
6be7c12c 15917
5464f5a1 15918/* This mess was copied from the GNU getpagesize.h. */
81ecdfbb 15919#ifndef HAVE_GETPAGESIZE
252b5132 15920/* Assume that all systems that can run configure have sys/param.h. */
81ecdfbb 15921# ifndef HAVE_SYS_PARAM_H
252b5132
RH
15922# define HAVE_SYS_PARAM_H 1
15923# endif
15924
15925# ifdef _SC_PAGESIZE
15926# define getpagesize() sysconf(_SC_PAGESIZE)
15927# else /* no _SC_PAGESIZE */
81ecdfbb 15928# ifdef HAVE_SYS_PARAM_H
252b5132
RH
15929# include <sys/param.h>
15930# ifdef EXEC_PAGESIZE
15931# define getpagesize() EXEC_PAGESIZE
15932# else /* no EXEC_PAGESIZE */
15933# ifdef NBPG
15934# define getpagesize() NBPG * CLSIZE
15935# ifndef CLSIZE
15936# define CLSIZE 1
15937# endif /* no CLSIZE */
15938# else /* no NBPG */
15939# ifdef NBPC
15940# define getpagesize() NBPC
15941# else /* no NBPC */
15942# ifdef PAGESIZE
15943# define getpagesize() PAGESIZE
15944# endif /* PAGESIZE */
15945# endif /* no NBPC */
15946# endif /* no NBPG */
15947# endif /* no EXEC_PAGESIZE */
15948# else /* no HAVE_SYS_PARAM_H */
15949# define getpagesize() 8192 /* punt totally */
15950# endif /* no HAVE_SYS_PARAM_H */
15951# endif /* no _SC_PAGESIZE */
15952
5464f5a1
NN
15953#endif /* no HAVE_GETPAGESIZE */
15954
15955int
15956main ()
15957{
15958 char *data, *data2, *data3;
15959 int i, pagesize;
15960 int fd;
15961
15962 pagesize = getpagesize ();
15963
15964 /* First, make a file with some known garbage in it. */
15965 data = (char *) malloc (pagesize);
15966 if (!data)
81ecdfbb 15967 return 1;
5464f5a1
NN
15968 for (i = 0; i < pagesize; ++i)
15969 *(data + i) = rand ();
15970 umask (0);
15971 fd = creat ("conftest.mmap", 0600);
15972 if (fd < 0)
81ecdfbb 15973 return 1;
5464f5a1 15974 if (write (fd, data, pagesize) != pagesize)
81ecdfbb 15975 return 1;
5464f5a1
NN
15976 close (fd);
15977
15978 /* Next, try to mmap the file at a fixed address which already has
15979 something else allocated at it. If we can, also make sure that
15980 we see the same garbage. */
15981 fd = open ("conftest.mmap", O_RDWR);
15982 if (fd < 0)
81ecdfbb 15983 return 1;
5464f5a1
NN
15984 data2 = (char *) malloc (2 * pagesize);
15985 if (!data2)
81ecdfbb
RW
15986 return 1;
15987 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
5464f5a1
NN
15988 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15989 MAP_PRIVATE | MAP_FIXED, fd, 0L))
81ecdfbb 15990 return 1;
5464f5a1
NN
15991 for (i = 0; i < pagesize; ++i)
15992 if (*(data + i) != *(data2 + i))
81ecdfbb 15993 return 1;
5464f5a1
NN
15994
15995 /* Finally, make sure that changes to the mapped area do not
15996 percolate back to the file as seen by read(). (This is a bug on
15997 some variants of i386 svr4.0.) */
15998 for (i = 0; i < pagesize; ++i)
15999 *(data2 + i) = *(data2 + i) + 1;
16000 data3 = (char *) malloc (pagesize);
16001 if (!data3)
81ecdfbb 16002 return 1;
5464f5a1 16003 if (read (fd, data3, pagesize) != pagesize)
81ecdfbb 16004 return 1;
5464f5a1
NN
16005 for (i = 0; i < pagesize; ++i)
16006 if (*(data + i) != *(data3 + i))
81ecdfbb 16007 return 1;
5464f5a1 16008 close (fd);
81ecdfbb 16009 return 0;
5464f5a1
NN
16010}
16011_ACEOF
81ecdfbb 16012if ac_fn_c_try_run "$LINENO"; then :
5464f5a1
NN
16013 ac_cv_func_mmap_fixed_mapped=yes
16014else
81ecdfbb 16015 ac_cv_func_mmap_fixed_mapped=no
5464f5a1 16016fi
81ecdfbb
RW
16017rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16018 conftest.$ac_objext conftest.beam conftest.$ac_ext
5464f5a1 16019fi
81ecdfbb 16020
5464f5a1 16021fi
81ecdfbb
RW
16022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16023$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
5464f5a1
NN
16024if test $ac_cv_func_mmap_fixed_mapped = yes; then
16025
81ecdfbb 16026$as_echo "#define HAVE_MMAP 1" >>confdefs.h
5464f5a1
NN
16027
16028fi
16029rm -f conftest.mmap
16030
5464f5a1 16031for ac_func in madvise mprotect
81ecdfbb
RW
16032do :
16033 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16034ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16035eval as_val=\$$as_ac_var
16036 if test "x$as_val" = x""yes; then :
5464f5a1 16037 cat >>confdefs.h <<_ACEOF
81ecdfbb 16038#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5464f5a1
NN
16039_ACEOF
16040
16041fi
16042done
16043
16044case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
16045 true+yes )
81ecdfbb 16046$as_echo "#define USE_MMAP 1" >>confdefs.h
5464f5a1
NN
16047 ;;
16048esac
16049
16050rm -f doc/config.status
81ecdfbb 16051ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
5464f5a1 16052
20e95c23 16053
81ecdfbb 16054ac_config_commands="$ac_config_commands default"
5464f5a1 16055
108a6f8e
CD
16056
16057
16058
16059
16060
31dd3154 16061
5464f5a1
NN
16062cat >confcache <<\_ACEOF
16063# This file is a shell script that caches the results of configure
16064# tests run on this system so they can be shared between configure
16065# scripts and configure runs, see configure's option --config-cache.
16066# It is not useful on other systems. If it contains results you don't
16067# want to keep, you may remove or edit it.
16068#
16069# config.status only pays attention to the cache file if you give it
16070# the --recheck option to rerun configure.
16071#
16072# `ac_cv_env_foo' variables (set or unset) will be overridden when
16073# loading this file, other *unset* `ac_cv_foo' will be assigned the
16074# following values.
16075
16076_ACEOF
16077
16078# The following way of writing the cache mishandles newlines in values,
16079# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 16080# So, we kill variables containing newlines.
5464f5a1
NN
16081# Ultrix sh set writes to stderr and can't be redirected directly,
16082# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
16083(
16084 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16085 eval ac_val=\$$ac_var
16086 case $ac_val in #(
16087 *${as_nl}*)
16088 case $ac_var in #(
16089 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16090$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16091 esac
16092 case $ac_var in #(
16093 _ | IFS | as_nl) ;; #(
16094 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16095 *) { eval $ac_var=; unset $ac_var;} ;;
16096 esac ;;
16097 esac
16098 done
16099
5464f5a1 16100 (set) 2>&1 |
81ecdfbb
RW
16101 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16102 *${as_nl}ac_space=\ *)
16103 # `set' does not quote correctly, so add quotes: double-quote
16104 # substitution turns \\\\ into \\, and sed turns \\ into \.
5464f5a1
NN
16105 sed -n \
16106 "s/'/'\\\\''/g;
16107 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 16108 ;; #(
5464f5a1
NN
16109 *)
16110 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 16111 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5464f5a1 16112 ;;
81ecdfbb
RW
16113 esac |
16114 sort
16115) |
5464f5a1 16116 sed '
81ecdfbb 16117 /^ac_cv_env_/b end
5464f5a1 16118 t clear
81ecdfbb 16119 :clear
5464f5a1
NN
16120 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16121 t end
81ecdfbb
RW
16122 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16123 :end' >>confcache
16124if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16125 if test -w "$cache_file"; then
16126 test "x$cache_file" != "x/dev/null" &&
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16128$as_echo "$as_me: updating cache $cache_file" >&6;}
5464f5a1
NN
16129 cat confcache >$cache_file
16130 else
81ecdfbb
RW
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16132$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5464f5a1
NN
16133 fi
16134fi
16135rm -f confcache
16136
16137test "x$prefix" = xNONE && prefix=$ac_default_prefix
16138# Let make expand exec_prefix.
16139test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16140
5464f5a1
NN
16141DEFS=-DHAVE_CONFIG_H
16142
16143ac_libobjs=
16144ac_ltlibobjs=
16145for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16146 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
16147 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16148 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16149 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16150 # will be set to the directory where LIBOBJS objects are built.
16151 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16152 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5464f5a1
NN
16153done
16154LIBOBJS=$ac_libobjs
16155
16156LTLIBOBJS=$ac_ltlibobjs
16157
16158
f5385ebf 16159if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
81ecdfbb
RW
16160 as_fn_error "conditional \"AMDEP\" was never defined.
16161Usually this means the macro was only invoked conditionally." "$LINENO" 5
f5385ebf
AM
16162fi
16163if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
81ecdfbb
RW
16164 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16165Usually this means the macro was only invoked conditionally." "$LINENO" 5
16166fi
16167 if test -n "$EXEEXT"; then
16168 am__EXEEXT_TRUE=
16169 am__EXEEXT_FALSE='#'
16170else
16171 am__EXEEXT_TRUE='#'
16172 am__EXEEXT_FALSE=
f5385ebf 16173fi
81ecdfbb 16174
ce3c775b 16175if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
81ecdfbb
RW
16176 as_fn_error "conditional \"PLUGINS\" was never defined.
16177Usually this means the macro was only invoked conditionally." "$LINENO" 5
ce3c775b 16178fi
f5385ebf 16179if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
81ecdfbb
RW
16180 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16181Usually this means the macro was only invoked conditionally." "$LINENO" 5
f5385ebf 16182fi
d5fbea21 16183if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
81ecdfbb
RW
16184 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
16185Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 16186fi
f5385ebf 16187if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
81ecdfbb
RW
16188 as_fn_error "conditional \"INSTALL_LIBBFD\" was never defined.
16189Usually this means the macro was only invoked conditionally." "$LINENO" 5
f5385ebf 16190fi
5464f5a1
NN
16191
16192: ${CONFIG_STATUS=./config.status}
81ecdfbb 16193ac_write_fail=0
5464f5a1
NN
16194ac_clean_files_save=$ac_clean_files
16195ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
16196{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16197$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16198as_write_fail=0
16199cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5464f5a1
NN
16200#! $SHELL
16201# Generated by $as_me.
16202# Run this file to recreate the current configuration.
16203# Compiler output produced by configure, useful for debugging
16204# configure, is in config.log if it exists.
16205
16206debug=false
16207ac_cs_recheck=false
16208ac_cs_silent=false
5464f5a1 16209
81ecdfbb
RW
16210SHELL=\${CONFIG_SHELL-$SHELL}
16211export SHELL
16212_ASEOF
16213cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16214## -------------------- ##
16215## M4sh Initialization. ##
16216## -------------------- ##
5464f5a1 16217
81ecdfbb
RW
16218# Be more Bourne compatible
16219DUALCASE=1; export DUALCASE # for MKS sh
16220if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5464f5a1
NN
16221 emulate sh
16222 NULLCMD=:
81ecdfbb 16223 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5464f5a1
NN
16224 # is contrary to our usage. Disable this feature.
16225 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
16226 setopt NO_GLOB_SUBST
16227else
16228 case `(set -o) 2>/dev/null` in #(
16229 *posix*) :
16230 set -o posix ;; #(
16231 *) :
16232 ;;
16233esac
5464f5a1 16234fi
5464f5a1 16235
81ecdfbb
RW
16236
16237as_nl='
16238'
16239export as_nl
16240# Printing a long string crashes Solaris 7 /usr/bin/printf.
16241as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16242as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16243as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16244# Prefer a ksh shell builtin over an external printf program on Solaris,
16245# but without wasting forks for bash or zsh.
16246if test -z "$BASH_VERSION$ZSH_VERSION" \
16247 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16248 as_echo='print -r --'
16249 as_echo_n='print -rn --'
16250elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16251 as_echo='printf %s\n'
16252 as_echo_n='printf %s'
16253else
16254 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16255 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16256 as_echo_n='/usr/ucb/echo -n'
16257 else
16258 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16259 as_echo_n_body='eval
16260 arg=$1;
16261 case $arg in #(
16262 *"$as_nl"*)
16263 expr "X$arg" : "X\\(.*\\)$as_nl";
16264 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16265 esac;
16266 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16267 '
16268 export as_echo_n_body
16269 as_echo_n='sh -c $as_echo_n_body as_echo'
16270 fi
16271 export as_echo_body
16272 as_echo='sh -c $as_echo_body as_echo'
16273fi
16274
16275# The user is always right.
16276if test "${PATH_SEPARATOR+set}" != set; then
16277 PATH_SEPARATOR=:
16278 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16279 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16280 PATH_SEPARATOR=';'
16281 }
5464f5a1
NN
16282fi
16283
16284
81ecdfbb
RW
16285# IFS
16286# We need space, tab and new line, in precisely that order. Quoting is
16287# there to prevent editors from complaining about space-tab.
16288# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16289# splitting by setting IFS to empty value.)
16290IFS=" "" $as_nl"
16291
16292# Find who we are. Look in the path if we contain no directory separator.
16293case $0 in #((
16294 *[\\/]* ) as_myself=$0 ;;
16295 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16296for as_dir in $PATH
16297do
16298 IFS=$as_save_IFS
16299 test -z "$as_dir" && as_dir=.
16300 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16301 done
16302IFS=$as_save_IFS
16303
16304 ;;
16305esac
16306# We did not find ourselves, most probably we were run as `sh COMMAND'
16307# in which case we are not to be found in the path.
16308if test "x$as_myself" = x; then
16309 as_myself=$0
16310fi
16311if test ! -f "$as_myself"; then
16312 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16313 exit 1
16314fi
16315
16316# Unset variables that we do not need and which cause bugs (e.g. in
16317# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16318# suppresses any "Segmentation fault" message there. '((' could
16319# trigger a bug in pdksh 5.2.14.
16320for as_var in BASH_ENV ENV MAIL MAILPATH
16321do eval test x\${$as_var+set} = xset \
16322 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16323done
5464f5a1
NN
16324PS1='$ '
16325PS2='> '
16326PS4='+ '
16327
16328# NLS nuisances.
81ecdfbb
RW
16329LC_ALL=C
16330export LC_ALL
16331LANGUAGE=C
16332export LANGUAGE
16333
16334# CDPATH.
16335(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16336
16337
16338# as_fn_error ERROR [LINENO LOG_FD]
16339# ---------------------------------
16340# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16341# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16342# script with status $?, using 1 if that was 0.
16343as_fn_error ()
16344{
16345 as_status=$?; test $as_status -eq 0 && as_status=1
16346 if test "$3"; then
16347 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16348 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
5464f5a1 16349 fi
81ecdfbb
RW
16350 $as_echo "$as_me: error: $1" >&2
16351 as_fn_exit $as_status
16352} # as_fn_error
16353
16354
16355# as_fn_set_status STATUS
16356# -----------------------
16357# Set $? to STATUS, without forking.
16358as_fn_set_status ()
16359{
16360 return $1
16361} # as_fn_set_status
16362
16363# as_fn_exit STATUS
16364# -----------------
16365# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16366as_fn_exit ()
16367{
16368 set +e
16369 as_fn_set_status $1
16370 exit $1
16371} # as_fn_exit
16372
16373# as_fn_unset VAR
16374# ---------------
16375# Portably unset VAR.
16376as_fn_unset ()
16377{
16378 { eval $1=; unset $1;}
16379}
16380as_unset=as_fn_unset
16381# as_fn_append VAR VALUE
16382# ----------------------
16383# Append the text in VALUE to the end of the definition contained in VAR. Take
16384# advantage of any shell optimizations that allow amortized linear growth over
16385# repeated appends, instead of the typical quadratic growth present in naive
16386# implementations.
16387if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16388 eval 'as_fn_append ()
16389 {
16390 eval $1+=\$2
16391 }'
16392else
16393 as_fn_append ()
16394 {
16395 eval $1=\$$1\$2
16396 }
16397fi # as_fn_append
16398
16399# as_fn_arith ARG...
16400# ------------------
16401# Perform arithmetic evaluation on the ARGs, and store the result in the
16402# global $as_val. Take advantage of shells that can avoid forks. The arguments
16403# must be portable across $(()) and expr.
16404if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16405 eval 'as_fn_arith ()
16406 {
16407 as_val=$(( $* ))
16408 }'
16409else
16410 as_fn_arith ()
16411 {
16412 as_val=`expr "$@" || test $? -eq 1`
16413 }
16414fi # as_fn_arith
16415
5464f5a1 16416
81ecdfbb
RW
16417if expr a : '\(a\)' >/dev/null 2>&1 &&
16418 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5464f5a1
NN
16419 as_expr=expr
16420else
16421 as_expr=false
16422fi
16423
81ecdfbb 16424if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5464f5a1
NN
16425 as_basename=basename
16426else
16427 as_basename=false
16428fi
252b5132 16429
81ecdfbb
RW
16430if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16431 as_dirname=dirname
16432else
16433 as_dirname=false
16434fi
6be7c12c 16435
81ecdfbb 16436as_me=`$as_basename -- "$0" ||
5464f5a1
NN
16437$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16438 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
16439 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16440$as_echo X/"$0" |
16441 sed '/^.*\/\([^/][^/]*\)\/*$/{
16442 s//\1/
16443 q
16444 }
16445 /^X\/\(\/\/\)$/{
16446 s//\1/
16447 q
16448 }
16449 /^X\/\(\/\).*/{
16450 s//\1/
16451 q
16452 }
16453 s/.*/./; q'`
5464f5a1 16454
5464f5a1
NN
16455# Avoid depending upon Character Ranges.
16456as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16457as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16458as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16459as_cr_digits='0123456789'
16460as_cr_alnum=$as_cr_Letters$as_cr_digits
16461
81ecdfbb
RW
16462ECHO_C= ECHO_N= ECHO_T=
16463case `echo -n x` in #(((((
16464-n*)
16465 case `echo 'xy\c'` in
16466 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16467 xy) ECHO_C='\c';;
16468 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16469 ECHO_T=' ';;
16470 esac;;
16471*)
16472 ECHO_N='-n';;
5464f5a1
NN
16473esac
16474
81ecdfbb
RW
16475rm -f conf$$ conf$$.exe conf$$.file
16476if test -d conf$$.dir; then
16477 rm -f conf$$.dir/conf$$.file
252b5132 16478else
81ecdfbb
RW
16479 rm -f conf$$.dir
16480 mkdir conf$$.dir 2>/dev/null
252b5132 16481fi
81ecdfbb
RW
16482if (echo >conf$$.file) 2>/dev/null; then
16483 if ln -s conf$$.file conf$$ 2>/dev/null; then
5464f5a1 16484 as_ln_s='ln -s'
81ecdfbb
RW
16485 # ... but there are two gotchas:
16486 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16487 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16488 # In both cases, we have to default to `cp -p'.
16489 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16490 as_ln_s='cp -p'
16491 elif ln conf$$.file conf$$ 2>/dev/null; then
16492 as_ln_s=ln
16493 else
16494 as_ln_s='cp -p'
5464f5a1 16495 fi
5464f5a1
NN
16496else
16497 as_ln_s='cp -p'
252b5132 16498fi
81ecdfbb
RW
16499rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16500rmdir conf$$.dir 2>/dev/null
16501
16502
16503# as_fn_mkdir_p
16504# -------------
16505# Create "$as_dir" as a directory, including parents if necessary.
16506as_fn_mkdir_p ()
16507{
16508
16509 case $as_dir in #(
16510 -*) as_dir=./$as_dir;;
16511 esac
16512 test -d "$as_dir" || eval $as_mkdir_p || {
16513 as_dirs=
16514 while :; do
16515 case $as_dir in #(
16516 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16517 *) as_qdir=$as_dir;;
16518 esac
16519 as_dirs="'$as_qdir' $as_dirs"
16520 as_dir=`$as_dirname -- "$as_dir" ||
16521$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16522 X"$as_dir" : 'X\(//\)[^/]' \| \
16523 X"$as_dir" : 'X\(//\)$' \| \
16524 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16525$as_echo X"$as_dir" |
16526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16527 s//\1/
16528 q
16529 }
16530 /^X\(\/\/\)[^/].*/{
16531 s//\1/
16532 q
16533 }
16534 /^X\(\/\/\)$/{
16535 s//\1/
16536 q
16537 }
16538 /^X\(\/\).*/{
16539 s//\1/
16540 q
16541 }
16542 s/.*/./; q'`
16543 test -d "$as_dir" && break
16544 done
16545 test -z "$as_dirs" || eval "mkdir $as_dirs"
16546 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16547
6be7c12c 16548
81ecdfbb 16549} # as_fn_mkdir_p
5464f5a1 16550if mkdir -p . 2>/dev/null; then
81ecdfbb 16551 as_mkdir_p='mkdir -p "$as_dir"'
5464f5a1
NN
16552else
16553 test -d ./-p && rmdir ./-p
16554 as_mkdir_p=false
252b5132 16555fi
81ecdfbb
RW
16556
16557if test -x / >/dev/null 2>&1; then
16558 as_test_x='test -x'
16559else
16560 if ls -dL / >/dev/null 2>&1; then
16561 as_ls_L_option=L
16562 else
16563 as_ls_L_option=
16564 fi
16565 as_test_x='
16566 eval sh -c '\''
16567 if test -d "$1"; then
16568 test -d "$1/.";
16569 else
16570 case $1 in #(
16571 -*)set "./$1";;
16572 esac;
16573 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16574 ???[sx]*):;;*)false;;esac;fi
16575 '\'' sh
16576 '
16577fi
16578as_executable_p=$as_test_x
252b5132 16579
5464f5a1
NN
16580# Sed expression to map a string onto a valid CPP name.
16581as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 16582
5464f5a1
NN
16583# Sed expression to map a string onto a valid variable name.
16584as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6be7c12c 16585
252b5132 16586
5464f5a1 16587exec 6>&1
81ecdfbb
RW
16588## ----------------------------------- ##
16589## Main body of $CONFIG_STATUS script. ##
16590## ----------------------------------- ##
16591_ASEOF
16592test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5464f5a1 16593
81ecdfbb
RW
16594cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16595# Save the log message, to keep $0 and so on meaningful, and to
5464f5a1 16596# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
16597# values after options handling.
16598ac_log="
769c7ea5 16599This file was extended by bfd $as_me 2.30.51, which was
81ecdfbb 16600generated by GNU Autoconf 2.64. Invocation command line was
5464f5a1
NN
16601
16602 CONFIG_FILES = $CONFIG_FILES
16603 CONFIG_HEADERS = $CONFIG_HEADERS
16604 CONFIG_LINKS = $CONFIG_LINKS
16605 CONFIG_COMMANDS = $CONFIG_COMMANDS
16606 $ $0 $@
16607
81ecdfbb
RW
16608on `(hostname || uname -n) 2>/dev/null | sed 1q`
16609"
16610
5464f5a1
NN
16611_ACEOF
16612
81ecdfbb
RW
16613case $ac_config_files in *"
16614"*) set x $ac_config_files; shift; ac_config_files=$*;;
16615esac
5464f5a1 16616
81ecdfbb
RW
16617case $ac_config_headers in *"
16618"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16619esac
252b5132 16620
252b5132 16621
81ecdfbb
RW
16622cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16623# Files that config.status was made for.
16624config_files="$ac_config_files"
16625config_headers="$ac_config_headers"
16626config_commands="$ac_config_commands"
252b5132 16627
81ecdfbb 16628_ACEOF
5464f5a1 16629
81ecdfbb 16630cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5464f5a1 16631ac_cs_usage="\
81ecdfbb
RW
16632\`$as_me' instantiates files and other configuration actions
16633from templates according to the current configuration. Unless the files
16634and actions are specified as TAGs, all are instantiated by default.
5464f5a1 16635
81ecdfbb 16636Usage: $0 [OPTION]... [TAG]...
5464f5a1
NN
16637
16638 -h, --help print this help, then exit
81ecdfbb
RW
16639 -V, --version print version number and configuration settings, then exit
16640 -q, --quiet, --silent
16641 do not print progress messages
5464f5a1
NN
16642 -d, --debug don't remove temporary files
16643 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
16644 --file=FILE[:TEMPLATE]
16645 instantiate the configuration file FILE
16646 --header=FILE[:TEMPLATE]
16647 instantiate the configuration header FILE
5464f5a1
NN
16648
16649Configuration files:
16650$config_files
16651
16652Configuration headers:
16653$config_headers
16654
16655Configuration commands:
16656$config_commands
16657
81ecdfbb 16658Report bugs to the package provider."
5464f5a1 16659
81ecdfbb
RW
16660_ACEOF
16661cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5464f5a1 16662ac_cs_version="\\
769c7ea5 16663bfd config.status 2.30.51
81ecdfbb
RW
16664configured by $0, generated by GNU Autoconf 2.64,
16665 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5464f5a1 16666
81ecdfbb 16667Copyright (C) 2009 Free Software Foundation, Inc.
5464f5a1
NN
16668This config.status script is free software; the Free Software Foundation
16669gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
16670
16671ac_pwd='$ac_pwd'
16672srcdir='$srcdir'
16673INSTALL='$INSTALL'
16674MKDIR_P='$MKDIR_P'
16675AWK='$AWK'
16676test -n "\$AWK" || AWK=awk
5464f5a1
NN
16677_ACEOF
16678
81ecdfbb
RW
16679cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16680# The default lists apply if the user does not specify any file.
5464f5a1
NN
16681ac_need_defaults=:
16682while test $# != 0
16683do
16684 case $1 in
16685 --*=*)
81ecdfbb
RW
16686 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16687 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5464f5a1 16688 ac_shift=:
6be7c12c 16689 ;;
81ecdfbb 16690 *)
5464f5a1
NN
16691 ac_option=$1
16692 ac_optarg=$2
16693 ac_shift=shift
6be7c12c 16694 ;;
5464f5a1 16695 esac
252b5132 16696
5464f5a1
NN
16697 case $ac_option in
16698 # Handling of the options.
5464f5a1
NN
16699 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16700 ac_cs_recheck=: ;;
81ecdfbb
RW
16701 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16702 $as_echo "$ac_cs_version"; exit ;;
16703 --debug | --debu | --deb | --de | --d | -d )
5464f5a1
NN
16704 debug=: ;;
16705 --file | --fil | --fi | --f )
16706 $ac_shift
81ecdfbb
RW
16707 case $ac_optarg in
16708 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16709 esac
16710 as_fn_append CONFIG_FILES " '$ac_optarg'"
5464f5a1
NN
16711 ac_need_defaults=false;;
16712 --header | --heade | --head | --hea )
16713 $ac_shift
81ecdfbb
RW
16714 case $ac_optarg in
16715 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16716 esac
16717 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5464f5a1 16718 ac_need_defaults=false;;
81ecdfbb
RW
16719 --he | --h)
16720 # Conflict between --help and --header
16721 as_fn_error "ambiguous option: \`$1'
16722Try \`$0 --help' for more information.";;
16723 --help | --hel | -h )
16724 $as_echo "$ac_cs_usage"; exit ;;
5464f5a1
NN
16725 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16726 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16727 ac_cs_silent=: ;;
6be7c12c 16728
5464f5a1 16729 # This is an error.
81ecdfbb
RW
16730 -*) as_fn_error "unrecognized option: \`$1'
16731Try \`$0 --help' for more information." ;;
252b5132 16732
81ecdfbb
RW
16733 *) as_fn_append ac_config_targets " $1"
16734 ac_need_defaults=false ;;
252b5132 16735
5464f5a1
NN
16736 esac
16737 shift
16738done
6be7c12c 16739
5464f5a1 16740ac_configure_extra_args=
252b5132 16741
5464f5a1
NN
16742if $ac_cs_silent; then
16743 exec 6>/dev/null
16744 ac_configure_extra_args="$ac_configure_extra_args --silent"
16745fi
6be7c12c 16746
5464f5a1 16747_ACEOF
81ecdfbb 16748cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5464f5a1 16749if \$ac_cs_recheck; then
81ecdfbb
RW
16750 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16751 shift
16752 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16753 CONFIG_SHELL='$SHELL'
16754 export CONFIG_SHELL
16755 exec "\$@"
5464f5a1
NN
16756fi
16757
16758_ACEOF
81ecdfbb
RW
16759cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16760exec 5>>config.log
16761{
16762 echo
16763 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16764## Running $as_me. ##
16765_ASBOX
16766 $as_echo "$ac_log"
16767} >&5
5464f5a1 16768
81ecdfbb
RW
16769_ACEOF
16770cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6be7c12c 16771#
81ecdfbb 16772# INIT-COMMANDS
6be7c12c 16773#
f5385ebf 16774AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
16775
16776
16777# The HP-UX ksh and POSIX shell print the target directory to stdout
16778# if CDPATH is set.
16779(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16780
16781sed_quote_subst='$sed_quote_subst'
16782double_quote_subst='$double_quote_subst'
16783delay_variable_subst='$delay_variable_subst'
3725885a
RW
16784enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16785macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16786macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16787enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16788pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16789enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16790SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16791ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16792host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16793host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16794host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16795build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16796build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16797build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16798SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16799Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16800GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16801EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16802FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16803LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16804NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16805LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16806max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16807ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16808exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16809lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16810lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16811lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16812reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16813reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16814OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16815deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16816file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16817AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16818AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16819STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16820RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16821old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16822old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16823old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16824lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16825CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16826CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16827compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16828GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16829lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16830lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16831lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16832lt_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"`'
16833objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16834MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16835lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16836lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16837lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16838lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16839lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16840need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16841DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16842NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16843LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16844OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16845OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16846libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16847shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16848extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16849archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16850enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16851export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16852whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16853compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16854old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16855old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16856archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16857archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16858module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16859module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16860with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16861allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16862no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16863hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16864hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16865hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16866hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16867hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16868hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16869hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16870hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16871inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16872link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16873fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16874always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16875export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16876exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16877include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16878prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16879file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16880variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16881need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16882need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16883version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16884runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16885shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16886shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16887libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16888library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16889soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16890install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16891postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16892postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16893finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16894finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16895hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16896sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16897sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16898hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16899enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16900enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16901enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16902old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16903striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
16904
16905LTCC='$LTCC'
16906LTCFLAGS='$LTCFLAGS'
16907compiler='$compiler_DEFAULT'
16908
3725885a
RW
16909# A function that is used when there is no print builtin or printf.
16910func_fallback_echo ()
16911{
16912 eval 'cat <<_LTECHO_EOF
16913\$1
16914_LTECHO_EOF'
16915}
16916
d7040cdb 16917# Quote evaled strings.
3725885a
RW
16918for var in SHELL \
16919ECHO \
16920SED \
d7040cdb
SE
16921GREP \
16922EGREP \
16923FGREP \
16924LD \
16925NM \
16926LN_S \
16927lt_SP2NL \
16928lt_NL2SP \
16929reload_flag \
718a6fd8 16930OBJDUMP \
d7040cdb
SE
16931deplibs_check_method \
16932file_magic_cmd \
16933AR \
16934AR_FLAGS \
16935STRIP \
16936RANLIB \
16937CC \
16938CFLAGS \
16939compiler \
16940lt_cv_sys_global_symbol_pipe \
16941lt_cv_sys_global_symbol_to_cdecl \
16942lt_cv_sys_global_symbol_to_c_name_address \
718a6fd8 16943lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
16944lt_prog_compiler_no_builtin_flag \
16945lt_prog_compiler_wl \
16946lt_prog_compiler_pic \
16947lt_prog_compiler_static \
16948lt_cv_prog_compiler_c_o \
16949need_locks \
718a6fd8
SE
16950DSYMUTIL \
16951NMEDIT \
16952LIPO \
16953OTOOL \
16954OTOOL64 \
d7040cdb
SE
16955shrext_cmds \
16956export_dynamic_flag_spec \
16957whole_archive_flag_spec \
16958compiler_needs_object \
16959with_gnu_ld \
16960allow_undefined_flag \
16961no_undefined_flag \
16962hardcode_libdir_flag_spec \
16963hardcode_libdir_flag_spec_ld \
16964hardcode_libdir_separator \
16965fix_srcfile_path \
16966exclude_expsyms \
16967include_expsyms \
16968file_list_spec \
16969variables_saved_for_relink \
16970libname_spec \
16971library_names_spec \
16972soname_spec \
3725885a 16973install_override_mode \
d7040cdb
SE
16974finish_eval \
16975old_striplib \
16976striplib; do
3725885a 16977 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 16978 *[\\\\\\\`\\"\\\$]*)
3725885a 16979 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
16980 ;;
16981 *)
16982 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16983 ;;
16984 esac
16985done
16986
16987# Double-quote double-evaled strings.
16988for var in reload_cmds \
16989old_postinstall_cmds \
16990old_postuninstall_cmds \
16991old_archive_cmds \
16992extract_expsyms_cmds \
16993old_archive_from_new_cmds \
16994old_archive_from_expsyms_cmds \
16995archive_cmds \
16996archive_expsym_cmds \
16997module_cmds \
16998module_expsym_cmds \
16999export_symbols_cmds \
17000prelink_cmds \
17001postinstall_cmds \
17002postuninstall_cmds \
17003finish_cmds \
17004sys_lib_search_path_spec \
17005sys_lib_dlsearch_path_spec; do
3725885a 17006 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 17007 *[\\\\\\\`\\"\\\$]*)
3725885a 17008 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
17009 ;;
17010 *)
17011 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17012 ;;
17013 esac
17014done
17015
d7040cdb
SE
17016ac_aux_dir='$ac_aux_dir'
17017xsi_shell='$xsi_shell'
17018lt_shell_append='$lt_shell_append'
17019
17020# See if we are running on zsh, and set the options which allow our
17021# commands through without removal of \ escapes INIT.
17022if test -n "\${ZSH_VERSION+set}" ; then
17023 setopt NO_GLOB_SUBST
17024fi
17025
17026
17027 PACKAGE='$PACKAGE'
17028 VERSION='$VERSION'
17029 TIMESTAMP='$TIMESTAMP'
17030 RM='$RM'
17031 ofile='$ofile'
17032
17033
17034
20e95c23
DJ
17035# Capture the value of obsolete ALL_LINGUAS because we need it to compute
17036 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
17037 # from automake.
17038 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17039 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17040 LINGUAS="${LINGUAS-%UNSET%}"
17041
5464f5a1 17042
f3b4f6d0
PB
17043GCC="$GCC"
17044CC="$CC"
17045acx_cv_header_stdint="$acx_cv_header_stdint"
17046acx_cv_type_int8_t="$acx_cv_type_int8_t"
17047acx_cv_type_int16_t="$acx_cv_type_int16_t"
17048acx_cv_type_int32_t="$acx_cv_type_int32_t"
17049acx_cv_type_int64_t="$acx_cv_type_int64_t"
17050acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
17051ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
17052ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
17053ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17054ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17055ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
d5efd9fc
AM
17056ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17057ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
f3b4f6d0 17058ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
d5efd9fc
AM
17059
17060
5464f5a1
NN
17061
17062_ACEOF
17063
81ecdfbb 17064cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5464f5a1 17065
81ecdfbb 17066# Handling of arguments.
5464f5a1 17067for ac_config_target in $ac_config_targets
252b5132 17068do
81ecdfbb
RW
17069 case $ac_config_target in
17070 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17071 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17072 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
17073 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17074 "bfd_stdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
17075 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17076 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17077 "bfd-in3.h") CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
17078 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
17079 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17080
17081 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
252b5132
RH
17082 esac
17083done
17084
81ecdfbb 17085
5464f5a1
NN
17086# If the user did not use the arguments to specify the items to instantiate,
17087# then the envvar interface is used. Set only those that are not.
17088# We use the long form for the default assignment because of an extremely
17089# bizarre bug on SunOS 4.1.3.
17090if $ac_need_defaults; then
17091 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17092 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17093 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17094fi
17095
17096# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 17097# simply because there is no reason against having it here, and in addition,
5464f5a1 17098# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
17099# Hook for its removal unless debugging.
17100# Note that there is a small window in which the directory will not be cleaned:
17101# after its creation but before its name has been assigned to `$tmp'.
5464f5a1
NN
17102$debug ||
17103{
81ecdfbb
RW
17104 tmp=
17105 trap 'exit_status=$?
17106 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17107' 0
17108 trap 'as_fn_exit 1' 1 2 13 15
5464f5a1 17109}
5464f5a1 17110# Create a (secure) tmp directory for tmp files.
b3baf5d0 17111
5464f5a1 17112{
81ecdfbb 17113 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5464f5a1
NN
17114 test -n "$tmp" && test -d "$tmp"
17115} ||
17116{
81ecdfbb
RW
17117 tmp=./conf$$-$RANDOM
17118 (umask 077 && mkdir "$tmp")
17119} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17120
17121# Set up the scripts for CONFIG_FILES section.
17122# No need to generate them if there are no CONFIG_FILES.
17123# This happens for instance with `./config.status config.h'.
17124if test -n "$CONFIG_FILES"; then
17125
17126
17127ac_cr=`echo X | tr X '\015'`
17128# On cygwin, bash can eat \r inside `` if the user requested igncr.
17129# But we know of no other shell where ac_cr would be empty at this
17130# point, so we can use a bashism as a fallback.
17131if test "x$ac_cr" = x; then
17132 eval ac_cr=\$\'\\r\'
17133fi
17134ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17135if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17136 ac_cs_awk_cr='\r'
17137else
17138 ac_cs_awk_cr=$ac_cr
17139fi
17140
17141echo 'BEGIN {' >"$tmp/subs1.awk" &&
17142_ACEOF
17143
17144
17145{
17146 echo "cat >conf$$subs.awk <<_ACEOF" &&
17147 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17148 echo "_ACEOF"
17149} >conf$$subs.sh ||
17150 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17151ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17152ac_delim='%!_!# '
17153for ac_last_try in false false false false false :; do
17154 . ./conf$$subs.sh ||
17155 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17156
17157 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17158 if test $ac_delim_n = $ac_delim_num; then
17159 break
17160 elif $ac_last_try; then
17161 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17162 else
17163 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17164 fi
17165done
17166rm -f conf$$subs.sh
17167
17168cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17169cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17170_ACEOF
17171sed -n '
17172h
17173s/^/S["/; s/!.*/"]=/
17174p
17175g
17176s/^[^!]*!//
17177:repl
17178t repl
17179s/'"$ac_delim"'$//
17180t delim
17181:nl
17182h
17183s/\(.\{148\}\).*/\1/
17184t more1
17185s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17186p
17187n
17188b repl
17189:more1
17190s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17191p
17192g
17193s/.\{148\}//
17194t nl
17195:delim
17196h
17197s/\(.\{148\}\).*/\1/
17198t more2
17199s/["\\]/\\&/g; s/^/"/; s/$/"/
17200p
17201b
17202:more2
17203s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17204p
17205g
17206s/.\{148\}//
17207t delim
17208' <conf$$subs.awk | sed '
17209/^[^""]/{
17210 N
17211 s/\n//
17212}
17213' >>$CONFIG_STATUS || ac_write_fail=1
17214rm -f conf$$subs.awk
17215cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17216_ACAWK
17217cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17218 for (key in S) S_is_set[key] = 1
17219 FS = "\a"
17220
17221}
5464f5a1 17222{
81ecdfbb
RW
17223 line = $ 0
17224 nfields = split(line, field, "@")
17225 substed = 0
17226 len = length(field[1])
17227 for (i = 2; i < nfields; i++) {
17228 key = field[i]
17229 keylen = length(key)
17230 if (S_is_set[key]) {
17231 value = S[key]
17232 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17233 len += length(value) + length(field[++i])
17234 substed = 1
17235 } else
17236 len += 1 + keylen
17237 }
17238
17239 print line
5464f5a1
NN
17240}
17241
81ecdfbb
RW
17242_ACAWK
17243_ACEOF
17244cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17245if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17246 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17247else
17248 cat
17249fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17250 || as_fn_error "could not setup config files machinery" "$LINENO" 5
5464f5a1
NN
17251_ACEOF
17252
81ecdfbb
RW
17253# VPATH may cause trouble with some makes, so we remove $(srcdir),
17254# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17255# trailing colons and then remove the whole line if VPATH becomes empty
17256# (actually we leave an empty line to preserve line numbers).
17257if test "x$srcdir" = x.; then
17258 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17259s/:*\$(srcdir):*/:/
17260s/:*\${srcdir}:*/:/
17261s/:*@srcdir@:*/:/
17262s/^\([^=]*=[ ]*\):*/\1/
17263s/:*$//
17264s/^[^=]*=[ ]*$//
17265}'
17266fi
b3baf5d0 17267
81ecdfbb
RW
17268cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17269fi # test -n "$CONFIG_FILES"
252b5132 17270
81ecdfbb
RW
17271# Set up the scripts for CONFIG_HEADERS section.
17272# No need to generate them if there are no CONFIG_HEADERS.
17273# This happens for instance with `./config.status Makefile'.
17274if test -n "$CONFIG_HEADERS"; then
17275cat >"$tmp/defines.awk" <<\_ACAWK ||
17276BEGIN {
5464f5a1
NN
17277_ACEOF
17278
81ecdfbb
RW
17279# Transform confdefs.h into an awk script `defines.awk', embedded as
17280# here-document in config.status, that substitutes the proper values into
17281# config.h.in to produce config.h.
17282
17283# Create a delimiter string that does not exist in confdefs.h, to ease
17284# handling of long lines.
17285ac_delim='%!_!# '
17286for ac_last_try in false false :; do
17287 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17288 if test -z "$ac_t"; then
17289 break
17290 elif $ac_last_try; then
17291 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17292 else
17293 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
252b5132 17294 fi
81ecdfbb 17295done
6be7c12c 17296
81ecdfbb
RW
17297# For the awk script, D is an array of macro values keyed by name,
17298# likewise P contains macro parameters if any. Preserve backslash
17299# newline sequences.
17300
17301ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17302sed -n '
17303s/.\{148\}/&'"$ac_delim"'/g
17304t rset
17305:rset
17306s/^[ ]*#[ ]*define[ ][ ]*/ /
17307t def
17308d
17309:def
17310s/\\$//
17311t bsnl
17312s/["\\]/\\&/g
17313s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17314D["\1"]=" \3"/p
17315s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17316d
17317:bsnl
17318s/["\\]/\\&/g
17319s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17320D["\1"]=" \3\\\\\\n"\\/p
17321t cont
17322s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17323t cont
17324d
17325:cont
17326n
17327s/.\{148\}/&'"$ac_delim"'/g
17328t clear
17329:clear
17330s/\\$//
17331t bsnlc
17332s/["\\]/\\&/g; s/^/"/; s/$/"/p
17333d
17334:bsnlc
17335s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17336b cont
17337' <confdefs.h | sed '
17338s/'"$ac_delim"'/"\\\
17339"/g' >>$CONFIG_STATUS || ac_write_fail=1
17340
17341cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17342 for (key in D) D_is_set[key] = 1
17343 FS = "\a"
17344}
17345/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17346 line = \$ 0
17347 split(line, arg, " ")
17348 if (arg[1] == "#") {
17349 defundef = arg[2]
17350 mac1 = arg[3]
17351 } else {
17352 defundef = substr(arg[1], 2)
17353 mac1 = arg[2]
17354 }
17355 split(mac1, mac2, "(") #)
17356 macro = mac2[1]
17357 prefix = substr(line, 1, index(line, defundef) - 1)
17358 if (D_is_set[macro]) {
17359 # Preserve the white space surrounding the "#".
17360 print prefix "define", macro P[macro] D[macro]
17361 next
17362 } else {
17363 # Replace #undef with comments. This is necessary, for example,
17364 # in the case of _POSIX_SOURCE, which is predefined and required
17365 # on some systems where configure will not decide to define it.
17366 if (defundef == "undef") {
17367 print "/*", prefix defundef, macro, "*/"
17368 next
17369 }
17370 }
17371}
17372{ print }
17373_ACAWK
5464f5a1 17374_ACEOF
81ecdfbb
RW
17375cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17376 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17377fi # test -n "$CONFIG_HEADERS"
17378
17379
17380eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17381shift
17382for ac_tag
17383do
17384 case $ac_tag in
17385 :[FHLC]) ac_mode=$ac_tag; continue;;
17386 esac
17387 case $ac_mode$ac_tag in
17388 :[FHL]*:*);;
17389 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17390 :[FH]-) ac_tag=-:-;;
17391 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17392 esac
17393 ac_save_IFS=$IFS
17394 IFS=:
17395 set x $ac_tag
17396 IFS=$ac_save_IFS
17397 shift
17398 ac_file=$1
17399 shift
17400
17401 case $ac_mode in
17402 :L) ac_source=$1;;
17403 :[FH])
17404 ac_file_inputs=
17405 for ac_f
17406 do
17407 case $ac_f in
17408 -) ac_f="$tmp/stdin";;
17409 *) # Look for the file first in the build tree, then in the source tree
17410 # (if the path is not absolute). The absolute path cannot be DOS-style,
17411 # because $ac_f cannot contain `:'.
17412 test -f "$ac_f" ||
17413 case $ac_f in
17414 [\\/$]*) false;;
17415 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17416 esac ||
17417 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17418 esac
17419 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17420 as_fn_append ac_file_inputs " '$ac_f'"
17421 done
17422
17423 # Let's still pretend it is `configure' which instantiates (i.e., don't
17424 # use $as_me), people would be surprised to read:
17425 # /* config.h. Generated by config.status. */
17426 configure_input='Generated from '`
17427 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17428 `' by configure.'
17429 if test x"$ac_file" != x-; then
17430 configure_input="$ac_file. $configure_input"
17431 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17432$as_echo "$as_me: creating $ac_file" >&6;}
17433 fi
17434 # Neutralize special characters interpreted by sed in replacement strings.
17435 case $configure_input in #(
17436 *\&* | *\|* | *\\* )
17437 ac_sed_conf_input=`$as_echo "$configure_input" |
17438 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17439 *) ac_sed_conf_input=$configure_input;;
17440 esac
17441
17442 case $ac_tag in
17443 *:-:* | *:-) cat >"$tmp/stdin" \
17444 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17445 esac
17446 ;;
252b5132
RH
17447 esac
17448
81ecdfbb 17449 ac_dir=`$as_dirname -- "$ac_file" ||
5464f5a1
NN
17450$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17451 X"$ac_file" : 'X\(//\)[^/]' \| \
17452 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
17453 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17454$as_echo X"$ac_file" |
17455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17456 s//\1/
17457 q
17458 }
17459 /^X\(\/\/\)[^/].*/{
17460 s//\1/
17461 q
17462 }
17463 /^X\(\/\/\)$/{
17464 s//\1/
17465 q
17466 }
17467 /^X\(\/\).*/{
17468 s//\1/
17469 q
17470 }
17471 s/.*/./; q'`
17472 as_dir="$ac_dir"; as_fn_mkdir_p
5464f5a1
NN
17473 ac_builddir=.
17474
81ecdfbb
RW
17475case "$ac_dir" in
17476.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17477*)
17478 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17479 # A ".." for each directory in $ac_dir_suffix.
17480 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17481 case $ac_top_builddir_sub in
17482 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17483 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17484 esac ;;
17485esac
17486ac_abs_top_builddir=$ac_pwd
17487ac_abs_builddir=$ac_pwd$ac_dir_suffix
17488# for backward compatibility:
17489ac_top_builddir=$ac_top_build_prefix
252b5132 17490
5464f5a1 17491case $srcdir in
81ecdfbb 17492 .) # We are building in place.
5464f5a1 17493 ac_srcdir=.
81ecdfbb
RW
17494 ac_top_srcdir=$ac_top_builddir_sub
17495 ac_abs_top_srcdir=$ac_pwd ;;
17496 [\\/]* | ?:[\\/]* ) # Absolute name.
5464f5a1 17497 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
17498 ac_top_srcdir=$srcdir
17499 ac_abs_top_srcdir=$srcdir ;;
17500 *) # Relative name.
17501 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17502 ac_top_srcdir=$ac_top_build_prefix$srcdir
17503 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5464f5a1 17504esac
81ecdfbb 17505ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 17506
252b5132 17507
81ecdfbb
RW
17508 case $ac_mode in
17509 :F)
17510 #
17511 # CONFIG_FILE
17512 #
5464f5a1
NN
17513
17514 case $INSTALL in
17515 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
17516 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17517 esac
17518 ac_MKDIR_P=$MKDIR_P
17519 case $MKDIR_P in
17520 [\\/$]* | ?:[\\/]* ) ;;
17521 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6be7c12c 17522 esac
81ecdfbb 17523_ACEOF
252b5132 17524
81ecdfbb
RW
17525cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17526# If the template does not know about datarootdir, expand it.
17527# FIXME: This hack should be removed a few years after 2.60.
17528ac_datarootdir_hack=; ac_datarootdir_seen=
17529ac_sed_dataroot='
17530/datarootdir/ {
17531 p
17532 q
17533}
17534/@datadir@/p
17535/@docdir@/p
17536/@infodir@/p
17537/@localedir@/p
17538/@mandir@/p'
17539case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17540*datarootdir*) ac_datarootdir_seen=yes;;
17541*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17543$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17544_ACEOF
17545cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17546 ac_datarootdir_hack='
17547 s&@datadir@&$datadir&g
17548 s&@docdir@&$docdir&g
17549 s&@infodir@&$infodir&g
17550 s&@localedir@&$localedir&g
17551 s&@mandir@&$mandir&g
17552 s&\\\${datarootdir}&$datarootdir&g' ;;
17553esac
5464f5a1 17554_ACEOF
81ecdfbb
RW
17555
17556# Neutralize VPATH when `$srcdir' = `.'.
17557# Shell code in configure.ac might set extrasub.
17558# FIXME: do we really want to maintain this feature?
17559cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17560ac_sed_extra="$ac_vpsub
5464f5a1
NN
17561$extrasub
17562_ACEOF
81ecdfbb 17563cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5464f5a1
NN
17564:t
17565/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
17566s|@configure_input@|$ac_sed_conf_input|;t t
17567s&@top_builddir@&$ac_top_builddir_sub&;t t
17568s&@top_build_prefix@&$ac_top_build_prefix&;t t
17569s&@srcdir@&$ac_srcdir&;t t
17570s&@abs_srcdir@&$ac_abs_srcdir&;t t
17571s&@top_srcdir@&$ac_top_srcdir&;t t
17572s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17573s&@builddir@&$ac_builddir&;t t
17574s&@abs_builddir@&$ac_abs_builddir&;t t
17575s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17576s&@INSTALL@&$ac_INSTALL&;t t
17577s&@MKDIR_P@&$ac_MKDIR_P&;t t
17578$ac_datarootdir_hack
17579"
17580eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17581 || as_fn_error "could not create $ac_file" "$LINENO" 5
17582
17583test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17584 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17585 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17587which seems to be undefined. Please make sure it is defined." >&5
17588$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17589which seems to be undefined. Please make sure it is defined." >&2;}
17590
17591 rm -f "$tmp/stdin"
5464f5a1 17592 case $ac_file in
81ecdfbb
RW
17593 -) cat "$tmp/out" && rm -f "$tmp/out";;
17594 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17595 esac \
17596 || as_fn_error "could not create $ac_file" "$LINENO" 5
17597 ;;
17598 :H)
17599 #
17600 # CONFIG_HEADER
17601 #
5464f5a1 17602 if test x"$ac_file" != x-; then
81ecdfbb
RW
17603 {
17604 $as_echo "/* $configure_input */" \
17605 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17606 } >"$tmp/config.h" \
17607 || as_fn_error "could not create $ac_file" "$LINENO" 5
17608 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17609 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17610$as_echo "$as_me: $ac_file is unchanged" >&6;}
5464f5a1 17611 else
81ecdfbb
RW
17612 rm -f "$ac_file"
17613 mv "$tmp/config.h" "$ac_file" \
17614 || as_fn_error "could not create $ac_file" "$LINENO" 5
252b5132 17615 fi
5464f5a1 17616 else
81ecdfbb
RW
17617 $as_echo "/* $configure_input */" \
17618 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17619 || as_fn_error "could not create -" "$LINENO" 5
252b5132 17620 fi
81ecdfbb
RW
17621# Compute "$ac_file"'s index in $config_headers.
17622_am_arg="$ac_file"
f5385ebf
AM
17623_am_stamp_count=1
17624for _am_header in $config_headers :; do
17625 case $_am_header in
81ecdfbb 17626 $_am_arg | $_am_arg:* )
f5385ebf
AM
17627 break ;;
17628 * )
17629 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17630 esac
17631done
81ecdfbb
RW
17632echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17633$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17634 X"$_am_arg" : 'X\(//\)[^/]' \| \
17635 X"$_am_arg" : 'X\(//\)$' \| \
17636 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17637$as_echo X"$_am_arg" |
17638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17639 s//\1/
17640 q
17641 }
17642 /^X\(\/\/\)[^/].*/{
17643 s//\1/
17644 q
17645 }
17646 /^X\(\/\/\)$/{
17647 s//\1/
17648 q
17649 }
17650 /^X\(\/\).*/{
17651 s//\1/
17652 q
17653 }
17654 s/.*/./; q'`/stamp-h$_am_stamp_count
17655 ;;
5464f5a1 17656
81ecdfbb
RW
17657 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17658$as_echo "$as_me: executing $ac_file commands" >&6;}
17659 ;;
17660 esac
5464f5a1
NN
17661
17662
81ecdfbb
RW
17663 case $ac_file$ac_mode in
17664 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17665 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17666 # are listed without --file. Let's play safe and only enable the eval
17667 # if we detect the quoting.
17668 case $CONFIG_FILES in
17669 *\'*) eval set x "$CONFIG_FILES" ;;
17670 *) set x $CONFIG_FILES ;;
17671 esac
17672 shift
17673 for mf
17674 do
17675 # Strip MF so we end up with the name of the file.
17676 mf=`echo "$mf" | sed -e 's/:.*$//'`
17677 # Check whether this is an Automake generated Makefile or not.
17678 # We used to match only the files named `Makefile.in', but
17679 # some people rename them; so instead we look at the file content.
17680 # Grep'ing the first line is not enough: some people post-process
17681 # each Makefile.in and add a new line on top of each file to say so.
17682 # Grep'ing the whole file is not good either: AIX grep has a line
17683 # limit of 2048, but all sed's we know have understand at least 4000.
17684 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17685 dirpart=`$as_dirname -- "$mf" ||
f5385ebf
AM
17686$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17687 X"$mf" : 'X\(//\)[^/]' \| \
17688 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
17689 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17690$as_echo X"$mf" |
17691 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17692 s//\1/
17693 q
17694 }
17695 /^X\(\/\/\)[^/].*/{
17696 s//\1/
17697 q
17698 }
17699 /^X\(\/\/\)$/{
17700 s//\1/
17701 q
17702 }
17703 /^X\(\/\).*/{
17704 s//\1/
17705 q
17706 }
17707 s/.*/./; q'`
17708 else
17709 continue
17710 fi
17711 # Extract the definition of DEPDIR, am__include, and am__quote
17712 # from the Makefile without running `make'.
17713 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17714 test -z "$DEPDIR" && continue
17715 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17716 test -z "am__include" && continue
17717 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17718 # When using ansi2knr, U may be empty or an underscore; expand it
17719 U=`sed -n 's/^U = //p' < "$mf"`
17720 # Find all dependency output files, they are included files with
17721 # $(DEPDIR) in their names. We invoke sed twice because it is the
17722 # simplest approach to changing $(DEPDIR) to its actual value in the
17723 # expansion.
17724 for file in `sed -n "
17725 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17726 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17727 # Make sure the directory exists.
17728 test -f "$dirpart/$file" && continue
17729 fdir=`$as_dirname -- "$file" ||
f5385ebf
AM
17730$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17731 X"$file" : 'X\(//\)[^/]' \| \
17732 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
17733 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17734$as_echo X"$file" |
17735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17736 s//\1/
17737 q
17738 }
17739 /^X\(\/\/\)[^/].*/{
17740 s//\1/
17741 q
17742 }
17743 /^X\(\/\/\)$/{
17744 s//\1/
17745 q
17746 }
17747 /^X\(\/\).*/{
17748 s//\1/
17749 q
17750 }
17751 s/.*/./; q'`
17752 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17753 # echo "creating $dirpart/$file"
17754 echo '# dummy' > "$dirpart/$file"
f5385ebf 17755 done
f5385ebf 17756 done
81ecdfbb 17757}
d7040cdb 17758 ;;
81ecdfbb 17759 "libtool":C)
d7040cdb
SE
17760
17761 # See if we are running on zsh, and set the options which allow our
17762 # commands through without removal of \ escapes.
17763 if test -n "${ZSH_VERSION+set}" ; then
17764 setopt NO_GLOB_SUBST
17765 fi
17766
17767 cfgfile="${ofile}T"
17768 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17769 $RM "$cfgfile"
17770
17771 cat <<_LT_EOF >> "$cfgfile"
17772#! $SHELL
17773
17774# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
718a6fd8 17775# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
17776# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17777# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17778#
718a6fd8 17779# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3725885a 17780# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
718a6fd8 17781# Written by Gordon Matzigkeit, 1996
d7040cdb 17782#
718a6fd8 17783# This file is part of GNU Libtool.
d7040cdb 17784#
718a6fd8
SE
17785# GNU Libtool is free software; you can redistribute it and/or
17786# modify it under the terms of the GNU General Public License as
17787# published by the Free Software Foundation; either version 2 of
17788# the License, or (at your option) any later version.
d7040cdb 17789#
718a6fd8
SE
17790# As a special exception to the GNU General Public License,
17791# if you distribute this file as part of a program or library that
17792# is built using GNU Libtool, you may include this file under the
17793# same distribution terms that you use for the rest of that program.
d7040cdb 17794#
718a6fd8
SE
17795# GNU Libtool is distributed in the hope that it will be useful,
17796# but WITHOUT ANY WARRANTY; without even the implied warranty of
17797# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17798# GNU General Public License for more details.
d7040cdb 17799#
718a6fd8
SE
17800# You should have received a copy of the GNU General Public License
17801# along with GNU Libtool; see the file COPYING. If not, a copy
17802# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17803# obtained by writing to the Free Software Foundation, Inc.,
17804# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
17805
17806
17807# The names of the tagged configurations supported by this script.
17808available_tags=""
17809
17810# ### BEGIN LIBTOOL CONFIG
17811
17812# Whether or not to build shared libraries.
17813build_libtool_libs=$enable_shared
17814
17815# Which release of libtool.m4 was used?
17816macro_version=$macro_version
17817macro_revision=$macro_revision
17818
17819# Whether or not to build static libraries.
17820build_old_libs=$enable_static
17821
17822# What type of objects to build.
17823pic_mode=$pic_mode
17824
17825# Whether or not to optimize for fast installation.
17826fast_install=$enable_fast_install
17827
3725885a
RW
17828# Shell to use when invoking shell scripts.
17829SHELL=$lt_SHELL
17830
17831# An echo program that protects backslashes.
17832ECHO=$lt_ECHO
17833
d7040cdb
SE
17834# The host system.
17835host_alias=$host_alias
17836host=$host
17837host_os=$host_os
17838
17839# The build system.
17840build_alias=$build_alias
17841build=$build
17842build_os=$build_os
17843
17844# A sed program that does not truncate output.
17845SED=$lt_SED
17846
17847# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17848Xsed="\$SED -e 1s/^X//"
17849
17850# A grep program that handles long lines.
17851GREP=$lt_GREP
17852
17853# An ERE matcher.
17854EGREP=$lt_EGREP
17855
17856# A literal string matcher.
17857FGREP=$lt_FGREP
17858
17859# A BSD- or MS-compatible name lister.
17860NM=$lt_NM
17861
17862# Whether we need soft or hard links.
17863LN_S=$lt_LN_S
17864
17865# What is the maximum length of a command?
17866max_cmd_len=$max_cmd_len
17867
17868# Object file suffix (normally "o").
17869objext=$ac_objext
17870
17871# Executable file suffix (normally "").
17872exeext=$exeext
17873
17874# whether the shell understands "unset".
17875lt_unset=$lt_unset
17876
17877# turn spaces into newlines.
17878SP2NL=$lt_lt_SP2NL
17879
17880# turn newlines into spaces.
17881NL2SP=$lt_lt_NL2SP
17882
718a6fd8
SE
17883# An object symbol dumper.
17884OBJDUMP=$lt_OBJDUMP
17885
d7040cdb
SE
17886# Method to check whether dependent libraries are shared objects.
17887deplibs_check_method=$lt_deplibs_check_method
17888
17889# Command to use when deplibs_check_method == "file_magic".
17890file_magic_cmd=$lt_file_magic_cmd
17891
17892# The archiver.
17893AR=$lt_AR
17894AR_FLAGS=$lt_AR_FLAGS
17895
17896# A symbol stripping program.
17897STRIP=$lt_STRIP
17898
17899# Commands used to install an old-style archive.
17900RANLIB=$lt_RANLIB
17901old_postinstall_cmds=$lt_old_postinstall_cmds
17902old_postuninstall_cmds=$lt_old_postuninstall_cmds
17903
3725885a
RW
17904# Whether to use a lock for old archive extraction.
17905lock_old_archive_extraction=$lock_old_archive_extraction
17906
d7040cdb
SE
17907# A C compiler.
17908LTCC=$lt_CC
17909
17910# LTCC compiler flags.
17911LTCFLAGS=$lt_CFLAGS
17912
17913# Take the output of nm and produce a listing of raw symbols and C names.
17914global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17915
17916# Transform the output of nm in a proper C declaration.
17917global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17918
17919# Transform the output of nm in a C name address pair.
17920global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17921
718a6fd8
SE
17922# Transform the output of nm in a C name address pair when lib prefix is needed.
17923global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17924
d7040cdb
SE
17925# The name of the directory that contains temporary libtool files.
17926objdir=$objdir
17927
d7040cdb
SE
17928# Used to examine libraries when file_magic_cmd begins with "file".
17929MAGIC_CMD=$MAGIC_CMD
17930
17931# Must we lock files when doing compilation?
17932need_locks=$lt_need_locks
17933
718a6fd8
SE
17934# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17935DSYMUTIL=$lt_DSYMUTIL
17936
17937# Tool to change global to local symbols on Mac OS X.
17938NMEDIT=$lt_NMEDIT
17939
17940# Tool to manipulate fat objects and archives on Mac OS X.
17941LIPO=$lt_LIPO
17942
17943# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17944OTOOL=$lt_OTOOL
17945
17946# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17947OTOOL64=$lt_OTOOL64
17948
d7040cdb
SE
17949# Old archive suffix (normally "a").
17950libext=$libext
17951
17952# Shared library suffix (normally ".so").
17953shrext_cmds=$lt_shrext_cmds
17954
17955# The commands to extract the exported symbol list from a shared archive.
17956extract_expsyms_cmds=$lt_extract_expsyms_cmds
17957
17958# Variables whose values should be saved in libtool wrapper scripts and
17959# restored at link time.
17960variables_saved_for_relink=$lt_variables_saved_for_relink
17961
17962# Do we need the "lib" prefix for modules?
17963need_lib_prefix=$need_lib_prefix
17964
17965# Do we need a version for libraries?
17966need_version=$need_version
17967
17968# Library versioning type.
17969version_type=$version_type
17970
17971# Shared library runtime path variable.
17972runpath_var=$runpath_var
17973
17974# Shared library path variable.
17975shlibpath_var=$shlibpath_var
17976
17977# Is shlibpath searched before the hard-coded library search path?
17978shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17979
17980# Format of library name prefix.
17981libname_spec=$lt_libname_spec
17982
17983# List of archive names. First name is the real one, the rest are links.
17984# The last name is the one that the linker finds with -lNAME
17985library_names_spec=$lt_library_names_spec
17986
17987# The coded name of the library, if different from the real name.
17988soname_spec=$lt_soname_spec
17989
3725885a
RW
17990# Permission mode override for installation of shared libraries.
17991install_override_mode=$lt_install_override_mode
17992
d7040cdb
SE
17993# Command to use after installation of a shared archive.
17994postinstall_cmds=$lt_postinstall_cmds
17995
17996# Command to use after uninstallation of a shared archive.
17997postuninstall_cmds=$lt_postuninstall_cmds
17998
17999# Commands used to finish a libtool library installation in a directory.
18000finish_cmds=$lt_finish_cmds
18001
18002# As "finish_cmds", except a single script fragment to be evaled but
18003# not shown.
18004finish_eval=$lt_finish_eval
18005
18006# Whether we should hardcode library paths into libraries.
18007hardcode_into_libs=$hardcode_into_libs
18008
18009# Compile-time system search path for libraries.
18010sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18011
18012# Run-time system search path for libraries.
18013sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18014
18015# Whether dlopen is supported.
18016dlopen_support=$enable_dlopen
18017
18018# Whether dlopen of programs is supported.
18019dlopen_self=$enable_dlopen_self
18020
18021# Whether dlopen of statically linked programs is supported.
18022dlopen_self_static=$enable_dlopen_self_static
18023
18024# Commands to strip libraries.
18025old_striplib=$lt_old_striplib
18026striplib=$lt_striplib
18027
18028
18029# The linker used to build libraries.
18030LD=$lt_LD
18031
3725885a
RW
18032# How to create reloadable object files.
18033reload_flag=$lt_reload_flag
18034reload_cmds=$lt_reload_cmds
18035
d7040cdb
SE
18036# Commands used to build an old-style archive.
18037old_archive_cmds=$lt_old_archive_cmds
18038
18039# A language specific compiler.
18040CC=$lt_compiler
18041
18042# Is the compiler the GNU compiler?
18043with_gcc=$GCC
18044
18045# Compiler flag to turn off builtin functions.
18046no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18047
18048# How to pass a linker flag through the compiler.
18049wl=$lt_lt_prog_compiler_wl
18050
18051# Additional compiler flags for building library objects.
18052pic_flag=$lt_lt_prog_compiler_pic
18053
18054# Compiler flag to prevent dynamic linking.
18055link_static_flag=$lt_lt_prog_compiler_static
18056
18057# Does compiler simultaneously support -c and -o options?
18058compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18059
18060# Whether or not to add -lc for building shared libraries.
18061build_libtool_need_lc=$archive_cmds_need_lc
18062
18063# Whether or not to disallow shared libs when runtime libs are static.
18064allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18065
18066# Compiler flag to allow reflexive dlopens.
18067export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18068
18069# Compiler flag to generate shared objects directly from archives.
18070whole_archive_flag_spec=$lt_whole_archive_flag_spec
18071
18072# Whether the compiler copes with passing no objects directly.
18073compiler_needs_object=$lt_compiler_needs_object
18074
18075# Create an old-style archive from a shared archive.
18076old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18077
18078# Create a temporary old-style archive to link instead of a shared archive.
18079old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18080
18081# Commands used to build a shared archive.
18082archive_cmds=$lt_archive_cmds
18083archive_expsym_cmds=$lt_archive_expsym_cmds
18084
18085# Commands used to build a loadable module if different from building
18086# a shared archive.
18087module_cmds=$lt_module_cmds
18088module_expsym_cmds=$lt_module_expsym_cmds
18089
18090# Whether we are building with GNU ld or not.
18091with_gnu_ld=$lt_with_gnu_ld
18092
18093# Flag that allows shared libraries with undefined symbols to be built.
18094allow_undefined_flag=$lt_allow_undefined_flag
18095
18096# Flag that enforces no undefined symbols.
18097no_undefined_flag=$lt_no_undefined_flag
18098
18099# Flag to hardcode \$libdir into a binary during linking.
18100# This must work even if \$libdir does not exist
18101hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18102
18103# If ld is used when linking, flag to hardcode \$libdir into a binary
18104# during linking. This must work even if \$libdir does not exist.
18105hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18106
18107# Whether we need a single "-rpath" flag with a separated argument.
18108hardcode_libdir_separator=$lt_hardcode_libdir_separator
18109
18110# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18111# DIR into the resulting binary.
18112hardcode_direct=$hardcode_direct
18113
18114# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18115# DIR into the resulting binary and the resulting library dependency is
18116# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18117# library is relocated.
18118hardcode_direct_absolute=$hardcode_direct_absolute
18119
18120# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18121# into the resulting binary.
18122hardcode_minus_L=$hardcode_minus_L
18123
18124# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18125# into the resulting binary.
18126hardcode_shlibpath_var=$hardcode_shlibpath_var
18127
18128# Set to "yes" if building a shared library automatically hardcodes DIR
18129# into the library and all subsequent libraries and executables linked
18130# against it.
18131hardcode_automatic=$hardcode_automatic
18132
18133# Set to yes if linker adds runtime paths of dependent libraries
18134# to runtime path list.
18135inherit_rpath=$inherit_rpath
18136
18137# Whether libtool must link a program against all its dependency libraries.
18138link_all_deplibs=$link_all_deplibs
18139
18140# Fix the shell variable \$srcfile for the compiler.
18141fix_srcfile_path=$lt_fix_srcfile_path
18142
18143# Set to "yes" if exported symbols are required.
18144always_export_symbols=$always_export_symbols
18145
18146# The commands to list exported symbols.
18147export_symbols_cmds=$lt_export_symbols_cmds
18148
18149# Symbols that should not be listed in the preloaded symbols.
18150exclude_expsyms=$lt_exclude_expsyms
18151
18152# Symbols that must always be exported.
18153include_expsyms=$lt_include_expsyms
18154
18155# Commands necessary for linking programs (against libraries) with templates.
18156prelink_cmds=$lt_prelink_cmds
18157
18158# Specify filename containing input files.
18159file_list_spec=$lt_file_list_spec
18160
18161# How to hardcode a shared library path into an executable.
18162hardcode_action=$hardcode_action
18163
18164# ### END LIBTOOL CONFIG
18165
18166_LT_EOF
18167
18168 case $host_os in
18169 aix3*)
18170 cat <<\_LT_EOF >> "$cfgfile"
18171# AIX sometimes has problems with the GCC collect2 program. For some
18172# reason, if we set the COLLECT_NAMES environment variable, the problems
18173# vanish in a puff of smoke.
18174if test "X${COLLECT_NAMES+set}" != Xset; then
18175 COLLECT_NAMES=
18176 export COLLECT_NAMES
18177fi
18178_LT_EOF
18179 ;;
18180 esac
18181
18182
18183ltmain="$ac_aux_dir/ltmain.sh"
18184
18185
18186 # We use sed instead of cat because bash on DJGPP gets confused if
18187 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18188 # text mode, it properly converts lines to CR/LF. This bash problem
18189 # is reportedly fixed, but why not run on old versions too?
18190 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18191 || (rm -f "$cfgfile"; exit 1)
18192
18193 case $xsi_shell in
18194 yes)
18195 cat << \_LT_EOF >> "$cfgfile"
718a6fd8 18196
d7040cdb
SE
18197# func_dirname file append nondir_replacement
18198# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18199# otherwise set result to NONDIR_REPLACEMENT.
18200func_dirname ()
18201{
18202 case ${1} in
18203 */*) func_dirname_result="${1%/*}${2}" ;;
18204 * ) func_dirname_result="${3}" ;;
18205 esac
18206}
18207
18208# func_basename file
18209func_basename ()
18210{
18211 func_basename_result="${1##*/}"
18212}
18213
718a6fd8
SE
18214# func_dirname_and_basename file append nondir_replacement
18215# perform func_basename and func_dirname in a single function
18216# call:
18217# dirname: Compute the dirname of FILE. If nonempty,
18218# add APPEND to the result, otherwise set result
18219# to NONDIR_REPLACEMENT.
18220# value returned in "$func_dirname_result"
18221# basename: Compute filename of FILE.
18222# value retuned in "$func_basename_result"
18223# Implementation must be kept synchronized with func_dirname
18224# and func_basename. For efficiency, we do not delegate to
18225# those functions but instead duplicate the functionality here.
18226func_dirname_and_basename ()
18227{
18228 case ${1} in
18229 */*) func_dirname_result="${1%/*}${2}" ;;
18230 * ) func_dirname_result="${3}" ;;
18231 esac
18232 func_basename_result="${1##*/}"
18233}
18234
d7040cdb
SE
18235# func_stripname prefix suffix name
18236# strip PREFIX and SUFFIX off of NAME.
18237# PREFIX and SUFFIX must not contain globbing or regex special
18238# characters, hashes, percent signs, but SUFFIX may contain a leading
18239# dot (in which case that matches only a dot).
18240func_stripname ()
18241{
18242 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18243 # positional parameters, so assign one to ordinary parameter first.
18244 func_stripname_result=${3}
18245 func_stripname_result=${func_stripname_result#"${1}"}
18246 func_stripname_result=${func_stripname_result%"${2}"}
18247}
18248
18249# func_opt_split
18250func_opt_split ()
18251{
18252 func_opt_split_opt=${1%%=*}
18253 func_opt_split_arg=${1#*=}
18254}
18255
18256# func_lo2o object
18257func_lo2o ()
18258{
18259 case ${1} in
18260 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18261 *) func_lo2o_result=${1} ;;
18262 esac
18263}
718a6fd8
SE
18264
18265# func_xform libobj-or-source
18266func_xform ()
18267{
18268 func_xform_result=${1%.*}.lo
18269}
18270
18271# func_arith arithmetic-term...
18272func_arith ()
18273{
18274 func_arith_result=$(( $* ))
18275}
18276
18277# func_len string
18278# STRING may not start with a hyphen.
18279func_len ()
18280{
18281 func_len_result=${#1}
18282}
18283
d7040cdb
SE
18284_LT_EOF
18285 ;;
18286 *) # Bourne compatible functions.
18287 cat << \_LT_EOF >> "$cfgfile"
718a6fd8 18288
d7040cdb
SE
18289# func_dirname file append nondir_replacement
18290# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18291# otherwise set result to NONDIR_REPLACEMENT.
18292func_dirname ()
18293{
18294 # Extract subdirectory from the argument.
3725885a 18295 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
d7040cdb
SE
18296 if test "X$func_dirname_result" = "X${1}"; then
18297 func_dirname_result="${3}"
18298 else
18299 func_dirname_result="$func_dirname_result${2}"
18300 fi
18301}
18302
18303# func_basename file
18304func_basename ()
18305{
3725885a 18306 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
d7040cdb
SE
18307}
18308
718a6fd8 18309
d7040cdb
SE
18310# func_stripname prefix suffix name
18311# strip PREFIX and SUFFIX off of NAME.
18312# PREFIX and SUFFIX must not contain globbing or regex special
18313# characters, hashes, percent signs, but SUFFIX may contain a leading
18314# dot (in which case that matches only a dot).
18315# func_strip_suffix prefix name
18316func_stripname ()
18317{
18318 case ${2} in
3725885a
RW
18319 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18320 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
d7040cdb
SE
18321 esac
18322}
18323
18324# sed scripts:
18325my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18326my_sed_long_arg='1s/^-[^=]*=//'
18327
18328# func_opt_split
18329func_opt_split ()
18330{
3725885a
RW
18331 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18332 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
d7040cdb
SE
18333}
18334
18335# func_lo2o object
18336func_lo2o ()
18337{
3725885a 18338 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
d7040cdb 18339}
718a6fd8
SE
18340
18341# func_xform libobj-or-source
18342func_xform ()
18343{
3725885a 18344 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
718a6fd8
SE
18345}
18346
18347# func_arith arithmetic-term...
18348func_arith ()
18349{
18350 func_arith_result=`expr "$@"`
18351}
18352
18353# func_len string
18354# STRING may not start with a hyphen.
18355func_len ()
18356{
18357 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18358}
18359
d7040cdb
SE
18360_LT_EOF
18361esac
18362
18363case $lt_shell_append in
18364 yes)
18365 cat << \_LT_EOF >> "$cfgfile"
18366
18367# func_append var value
18368# Append VALUE to the end of shell variable VAR.
18369func_append ()
18370{
18371 eval "$1+=\$2"
18372}
18373_LT_EOF
18374 ;;
18375 *)
18376 cat << \_LT_EOF >> "$cfgfile"
18377
18378# func_append var value
18379# Append VALUE to the end of shell variable VAR.
18380func_append ()
18381{
18382 eval "$1=\$$1\$2"
18383}
718a6fd8 18384
d7040cdb
SE
18385_LT_EOF
18386 ;;
18387 esac
18388
18389
18390 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18391 || (rm -f "$cfgfile"; exit 1)
18392
18393 mv -f "$cfgfile" "$ofile" ||
18394 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18395 chmod +x "$ofile"
18396
f5385ebf 18397 ;;
81ecdfbb 18398 "default-1":C)
20e95c23
DJ
18399 for ac_file in $CONFIG_FILES; do
18400 # Support "outfile[:infile[:infile...]]"
18401 case "$ac_file" in
18402 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18403 esac
18404 # PO directories have a Makefile.in generated from Makefile.in.in.
18405 case "$ac_file" in */Makefile.in)
18406 # Adjust a relative srcdir.
18407 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
3cac54d2 18408 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20e95c23
DJ
18409 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18410 # In autoconf-2.13 it is called $ac_given_srcdir.
18411 # In autoconf-2.50 it is called $srcdir.
18412 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18413 case "$ac_given_srcdir" in
18414 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18415 /*) top_srcdir="$ac_given_srcdir" ;;
18416 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
18417 esac
18418 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18419 rm -f "$ac_dir/POTFILES"
18420 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18421 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18422 POMAKEFILEDEPS="POTFILES.in"
18423 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
18424 # on $ac_dir but don't depend on user-specified configuration
18425 # parameters.
18426 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18427 # The LINGUAS file contains the set of available languages.
18428 if test -n "$OBSOLETE_ALL_LINGUAS"; then
37a42ee9 18429 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
20e95c23
DJ
18430 fi
18431 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18432 # Hide the ALL_LINGUAS assigment from automake.
18433 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18434 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18435 else
37a42ee9 18436 # The set of available languages was given in configure.ac.
20e95c23
DJ
18437 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18438 fi
18439 case "$ac_given_srcdir" in
18440 .) srcdirpre= ;;
18441 *) srcdirpre='$(srcdir)/' ;;
18442 esac
18443 POFILES=
18444 GMOFILES=
18445 UPDATEPOFILES=
18446 DUMMYPOFILES=
18447 for lang in $ALL_LINGUAS; do
18448 POFILES="$POFILES $srcdirpre$lang.po"
18449 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18450 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18451 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18452 done
18453 # CATALOGS depends on both $ac_dir and the user's LINGUAS
18454 # environment variable.
18455 INST_LINGUAS=
18456 if test -n "$ALL_LINGUAS"; then
18457 for presentlang in $ALL_LINGUAS; do
18458 useit=no
18459 if test "%UNSET%" != "$LINGUAS"; then
18460 desiredlanguages="$LINGUAS"
18461 else
18462 desiredlanguages="$ALL_LINGUAS"
18463 fi
18464 for desiredlang in $desiredlanguages; do
18465 # Use the presentlang catalog if desiredlang is
18466 # a. equal to presentlang, or
18467 # b. a variant of presentlang (because in this case,
18468 # presentlang can be used as a fallback for messages
18469 # which are not translated in the desiredlang catalog).
18470 case "$desiredlang" in
18471 "$presentlang"*) useit=yes;;
18472 esac
18473 done
18474 if test $useit = yes; then
18475 INST_LINGUAS="$INST_LINGUAS $presentlang"
18476 fi
18477 done
18478 fi
18479 CATALOGS=
18480 if test -n "$INST_LINGUAS"; then
18481 for lang in $INST_LINGUAS; do
18482 CATALOGS="$CATALOGS $lang.gmo"
18483 done
18484 fi
18485 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18486 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
18487 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18488 if test -f "$f"; then
18489 case "$f" in
18490 *.orig | *.bak | *~) ;;
18491 *) cat "$f" >> "$ac_dir/Makefile" ;;
18492 esac
18493 fi
18494 done
18495 fi
18496 ;;
18497 esac
18498 done ;;
81ecdfbb 18499 "bfd_stdint.h":C)
f3b4f6d0
PB
18500if test "$GCC" = yes; then
18501 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
18502else
18503 echo "/* generated for $CC */" > tmp-stdint.h
18504fi
d5efd9fc 18505
f3b4f6d0
PB
18506sed 's/^ *//' >> tmp-stdint.h <<EOF
18507
18508 #ifndef GCC_GENERATED_STDINT_H
18509 #define GCC_GENERATED_STDINT_H 1
18510
18511 #include <sys/types.h>
18512EOF
18513
18514if test "$acx_cv_header_stdint" != stdint.h; then
18515 echo "#include <stddef.h>" >> tmp-stdint.h
18516fi
18517if test "$acx_cv_header_stdint" != stddef.h; then
18518 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
18519fi
18520
18521sed 's/^ *//' >> tmp-stdint.h <<EOF
18522 /* glibc uses these symbols as guards to prevent redefinitions. */
18523 #ifdef __int8_t_defined
18524 #define _INT8_T
18525 #define _INT16_T
18526 #define _INT32_T
18527 #endif
18528 #ifdef __uint32_t_defined
18529 #define _UINT32_T
18530 #endif
18531
18532EOF
18533
18534# ----------------- done header, emit basic int types -------------
18535if test "$acx_cv_header_stdint" = stddef.h; then
18536 sed 's/^ *//' >> tmp-stdint.h <<EOF
18537
18538 #ifndef _UINT8_T
18539 #define _UINT8_T
18540 #ifndef __uint8_t_defined
18541 #define __uint8_t_defined
a009f2e7 18542 #ifndef uint8_t
f3b4f6d0
PB
18543 typedef unsigned $acx_cv_type_int8_t uint8_t;
18544 #endif
18545 #endif
a009f2e7 18546 #endif
f3b4f6d0
PB
18547
18548 #ifndef _UINT16_T
18549 #define _UINT16_T
18550 #ifndef __uint16_t_defined
18551 #define __uint16_t_defined
a009f2e7 18552 #ifndef uint16_t
f3b4f6d0
PB
18553 typedef unsigned $acx_cv_type_int16_t uint16_t;
18554 #endif
18555 #endif
a009f2e7 18556 #endif
f3b4f6d0
PB
18557
18558 #ifndef _UINT32_T
18559 #define _UINT32_T
18560 #ifndef __uint32_t_defined
18561 #define __uint32_t_defined
a009f2e7 18562 #ifndef uint32_t
f3b4f6d0
PB
18563 typedef unsigned $acx_cv_type_int32_t uint32_t;
18564 #endif
18565 #endif
a009f2e7 18566 #endif
f3b4f6d0
PB
18567
18568 #ifndef _INT8_T
18569 #define _INT8_T
18570 #ifndef __int8_t_defined
18571 #define __int8_t_defined
a009f2e7 18572 #ifndef int8_t
f3b4f6d0
PB
18573 typedef $acx_cv_type_int8_t int8_t;
18574 #endif
18575 #endif
a009f2e7 18576 #endif
f3b4f6d0
PB
18577
18578 #ifndef _INT16_T
18579 #define _INT16_T
18580 #ifndef __int16_t_defined
18581 #define __int16_t_defined
a009f2e7 18582 #ifndef int16_t
f3b4f6d0
PB
18583 typedef $acx_cv_type_int16_t int16_t;
18584 #endif
18585 #endif
a009f2e7 18586 #endif
f3b4f6d0
PB
18587
18588 #ifndef _INT32_T
18589 #define _INT32_T
18590 #ifndef __int32_t_defined
18591 #define __int32_t_defined
a009f2e7 18592 #ifndef int32_t
f3b4f6d0
PB
18593 typedef $acx_cv_type_int32_t int32_t;
18594 #endif
18595 #endif
a009f2e7 18596 #endif
f3b4f6d0
PB
18597EOF
18598elif test "$ac_cv_type_u_int32_t" = yes; then
18599 sed 's/^ *//' >> tmp-stdint.h <<EOF
18600
18601 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
18602 #ifndef _INT8_T
18603 #define _INT8_T
18604 #endif
18605 #ifndef _INT16_T
18606 #define _INT16_T
18607 #endif
18608 #ifndef _INT32_T
18609 #define _INT32_T
18610 #endif
18611
18612 #ifndef _UINT8_T
18613 #define _UINT8_T
18614 #ifndef __uint8_t_defined
18615 #define __uint8_t_defined
a009f2e7 18616 #ifndef uint8_t
f3b4f6d0
PB
18617 typedef u_int8_t uint8_t;
18618 #endif
18619 #endif
a009f2e7 18620 #endif
f3b4f6d0
PB
18621
18622 #ifndef _UINT16_T
18623 #define _UINT16_T
18624 #ifndef __uint16_t_defined
18625 #define __uint16_t_defined
a009f2e7 18626 #ifndef uint16_t
f3b4f6d0
PB
18627 typedef u_int16_t uint16_t;
18628 #endif
18629 #endif
a009f2e7 18630 #endif
f3b4f6d0
PB
18631
18632 #ifndef _UINT32_T
18633 #define _UINT32_T
18634 #ifndef __uint32_t_defined
18635 #define __uint32_t_defined
a009f2e7 18636 #ifndef uint32_t
f3b4f6d0
PB
18637 typedef u_int32_t uint32_t;
18638 #endif
18639 #endif
a009f2e7 18640 #endif
d5efd9fc 18641EOF
f3b4f6d0
PB
18642else
18643 sed 's/^ *//' >> tmp-stdint.h <<EOF
18644
18645 /* Some systems have guard macros to prevent redefinitions, define them. */
18646 #ifndef _INT8_T
18647 #define _INT8_T
18648 #endif
18649 #ifndef _INT16_T
18650 #define _INT16_T
18651 #endif
18652 #ifndef _INT32_T
18653 #define _INT32_T
18654 #endif
18655 #ifndef _UINT8_T
18656 #define _UINT8_T
18657 #endif
18658 #ifndef _UINT16_T
18659 #define _UINT16_T
18660 #endif
18661 #ifndef _UINT32_T
18662 #define _UINT32_T
18663 #endif
18664EOF
18665fi
18666
18667# ------------- done basic int types, emit int64_t types ------------
18668if test "$ac_cv_type_uint64_t" = yes; then
18669 sed 's/^ *//' >> tmp-stdint.h <<EOF
d5efd9fc 18670
f3b4f6d0
PB
18671 /* system headers have good uint64_t and int64_t */
18672 #ifndef _INT64_T
18673 #define _INT64_T
18674 #endif
18675 #ifndef _UINT64_T
18676 #define _UINT64_T
18677 #endif
18678EOF
18679elif test "$ac_cv_type_u_int64_t" = yes; then
18680 sed 's/^ *//' >> tmp-stdint.h <<EOF
18681
18682 /* system headers have an u_int64_t (and int64_t) */
18683 #ifndef _INT64_T
18684 #define _INT64_T
18685 #endif
18686 #ifndef _UINT64_T
18687 #define _UINT64_T
18688 #ifndef __uint64_t_defined
18689 #define __uint64_t_defined
a009f2e7 18690 #ifndef uint64_t
f3b4f6d0
PB
18691 typedef u_int64_t uint64_t;
18692 #endif
18693 #endif
a009f2e7 18694 #endif
f3b4f6d0
PB
18695EOF
18696elif test -n "$acx_cv_type_int64_t"; then
18697 sed 's/^ *//' >> tmp-stdint.h <<EOF
18698
18699 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
18700 #ifndef _INT64_T
18701 #define _INT64_T
a009f2e7 18702 #ifndef int64_t
f3b4f6d0
PB
18703 typedef $acx_cv_type_int64_t int64_t;
18704 #endif
a009f2e7 18705 #endif
f3b4f6d0
PB
18706 #ifndef _UINT64_T
18707 #define _UINT64_T
18708 #ifndef __uint64_t_defined
18709 #define __uint64_t_defined
a009f2e7 18710 #ifndef uint64_t
f3b4f6d0
PB
18711 typedef unsigned $acx_cv_type_int64_t uint64_t;
18712 #endif
18713 #endif
a009f2e7 18714 #endif
f3b4f6d0
PB
18715EOF
18716else
18717 sed 's/^ *//' >> tmp-stdint.h <<EOF
18718
18719 /* some common heuristics for int64_t, using compiler-specific tests */
18720 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
18721 #ifndef _INT64_T
18722 #define _INT64_T
18723 #ifndef __int64_t_defined
a009f2e7 18724 #ifndef int64_t
f3b4f6d0
PB
18725 typedef long long int64_t;
18726 #endif
18727 #endif
a009f2e7 18728 #endif
f3b4f6d0
PB
18729 #ifndef _UINT64_T
18730 #define _UINT64_T
a009f2e7 18731 #ifndef uint64_t
f3b4f6d0
PB
18732 typedef unsigned long long uint64_t;
18733 #endif
a009f2e7 18734 #endif
f3b4f6d0
PB
18735
18736 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
18737 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
18738 does not implement __extension__. But that compiler doesn't define
18739 __GNUC_MINOR__. */
18740 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
18741 # define __extension__
18742 # endif
18743
18744 # ifndef _INT64_T
18745 # define _INT64_T
a009f2e7 18746 # ifndef int64_t
f3b4f6d0
PB
18747 __extension__ typedef long long int64_t;
18748 # endif
a009f2e7 18749 # endif
f3b4f6d0
PB
18750 # ifndef _UINT64_T
18751 # define _UINT64_T
a009f2e7 18752 # ifndef uint64_t
f3b4f6d0
PB
18753 __extension__ typedef unsigned long long uint64_t;
18754 # endif
a009f2e7 18755 # endif
f3b4f6d0
PB
18756
18757 #elif !defined __STRICT_ANSI__
18758 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
18759
18760 # ifndef _INT64_T
18761 # define _INT64_T
a009f2e7 18762 # ifndef int64_t
f3b4f6d0
PB
18763 typedef __int64 int64_t;
18764 # endif
a009f2e7 18765 # endif
f3b4f6d0
PB
18766 # ifndef _UINT64_T
18767 # define _UINT64_T
a009f2e7 18768 # ifndef uint64_t
f3b4f6d0
PB
18769 typedef unsigned __int64 uint64_t;
18770 # endif
a009f2e7 18771 # endif
f3b4f6d0
PB
18772 # endif /* compiler */
18773
18774 #endif /* ANSI version */
18775EOF
18776fi
18777
18778# ------------- done int64_t types, emit intptr types ------------
18779if test "$ac_cv_type_uintptr_t" != yes; then
18780 sed 's/^ *//' >> tmp-stdint.h <<EOF
18781
18782 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
18783 #ifndef __uintptr_t_defined
a009f2e7 18784 #ifndef uintptr_t
f3b4f6d0
PB
18785 typedef u$acx_cv_type_intptr_t uintptr_t;
18786 #endif
a009f2e7 18787 #endif
f3b4f6d0 18788 #ifndef __intptr_t_defined
a009f2e7 18789 #ifndef intptr_t
f3b4f6d0
PB
18790 typedef $acx_cv_type_intptr_t intptr_t;
18791 #endif
a009f2e7 18792 #endif
f3b4f6d0
PB
18793EOF
18794fi
18795
18796# ------------- done intptr types, emit int_least types ------------
d5efd9fc 18797if test "$ac_cv_type_int_least32_t" != yes; then
f3b4f6d0 18798 sed 's/^ *//' >> tmp-stdint.h <<EOF
d5efd9fc
AM
18799
18800 /* Define int_least types */
18801 typedef int8_t int_least8_t;
18802 typedef int16_t int_least16_t;
18803 typedef int32_t int_least32_t;
f3b4f6d0 18804 #ifdef _INT64_T
d5efd9fc 18805 typedef int64_t int_least64_t;
f3b4f6d0 18806 #endif
d5efd9fc
AM
18807
18808 typedef uint8_t uint_least8_t;
18809 typedef uint16_t uint_least16_t;
18810 typedef uint32_t uint_least32_t;
f3b4f6d0 18811 #ifdef _UINT64_T
d5efd9fc 18812 typedef uint64_t uint_least64_t;
f3b4f6d0 18813 #endif
d5efd9fc
AM
18814EOF
18815fi
18816
f3b4f6d0 18817# ------------- done intptr types, emit int_fast types ------------
d5efd9fc 18818if test "$ac_cv_type_int_fast32_t" != yes; then
f3b4f6d0 18819 sed 's/^ *//' >> tmp-stdint.h <<EOF
d5efd9fc
AM
18820
18821 /* Define int_fast types. short is often slow */
18822 typedef int8_t int_fast8_t;
18823 typedef int int_fast16_t;
18824 typedef int32_t int_fast32_t;
f3b4f6d0 18825 #ifdef _INT64_T
d5efd9fc 18826 typedef int64_t int_fast64_t;
f3b4f6d0 18827 #endif
d5efd9fc
AM
18828
18829 typedef uint8_t uint_fast8_t;
18830 typedef unsigned int uint_fast16_t;
18831 typedef uint32_t uint_fast32_t;
f3b4f6d0 18832 #ifdef _UINT64_T
d5efd9fc 18833 typedef uint64_t uint_fast64_t;
f3b4f6d0
PB
18834 #endif
18835EOF
18836fi
18837
18838if test "$ac_cv_type_uintmax_t" != yes; then
18839 sed 's/^ *//' >> tmp-stdint.h <<EOF
18840
18841 /* Define intmax based on what we found */
a009f2e7 18842 #ifndef intmax_t
f3b4f6d0
PB
18843 #ifdef _INT64_T
18844 typedef int64_t intmax_t;
18845 #else
18846 typedef long intmax_t;
18847 #endif
a009f2e7
RW
18848 #endif
18849 #ifndef uintmax_t
f3b4f6d0
PB
18850 #ifdef _UINT64_T
18851 typedef uint64_t uintmax_t;
18852 #else
18853 typedef unsigned long uintmax_t;
18854 #endif
a009f2e7 18855 #endif
d5efd9fc
AM
18856EOF
18857fi
18858
f3b4f6d0
PB
18859sed 's/^ *//' >> tmp-stdint.h <<EOF
18860
18861 #endif /* GCC_GENERATED_STDINT_H */
18862EOF
d5efd9fc 18863
f3b4f6d0
PB
18864if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
18865 rm -f tmp-stdint.h
d5efd9fc 18866else
f3b4f6d0 18867 mv -f tmp-stdint.h bfd_stdint.h
d5efd9fc
AM
18868fi
18869
18870 ;;
81ecdfbb 18871 "default":C)
20e95c23
DJ
18872case "$srcdir" in
18873 .) srcdirpre= ;;
18874 *) srcdirpre='$(srcdir)/' ;;
18875esac
18876POFILES=
18877GMOFILES=
18878for lang in dummy $OBSOLETE_ALL_LINGUAS; do
18879 if test $lang != dummy; then
18880 POFILES="$POFILES $srcdirpre$lang.po"
18881 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18882 fi
18883done
18884sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
18885 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
18886 -e "s,@POFILES@,$POFILES," \
18887 -e "s,@GMOFILES@,$GMOFILES," \
18888 po/Makefile.in > po/Makefile ;;
81ecdfbb 18889
5464f5a1 18890 esac
81ecdfbb 18891done # for ac_tag
5464f5a1 18892
5464f5a1 18893
81ecdfbb 18894as_fn_exit 0
5464f5a1 18895_ACEOF
5464f5a1
NN
18896ac_clean_files=$ac_clean_files_save
18897
81ecdfbb
RW
18898test $ac_write_fail = 0 ||
18899 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18900
5464f5a1
NN
18901
18902# configure is writing to config.log, and then calls config.status.
18903# config.status does its own redirection, appending to config.log.
18904# Unfortunately, on DOS this fails, as config.log is still kept open
18905# by configure, so config.status won't be able to write to it; its
18906# output is simply discarded. So we exec the FD to /dev/null,
18907# effectively closing config.log, so it can be properly (re)opened and
18908# appended to by config.status. When coming back to configure, we
18909# need to make the FD available again.
18910if test "$no_create" != yes; then
18911 ac_cs_success=:
18912 ac_config_status_args=
18913 test "$silent" = yes &&
18914 ac_config_status_args="$ac_config_status_args --quiet"
18915 exec 5>/dev/null
18916 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18917 exec 5>>config.log
18918 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18919 # would make configure fail if this is the last instruction.
81ecdfbb
RW
18920 $ac_cs_success || as_fn_exit $?
18921fi
18922if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18924$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5464f5a1 18925fi
252b5132 18926
This page took 2.697436 seconds and 4 git commands to generate.