2010-05-14 Hui Zhu <teawater@gmail.com>
[deliverable/binutils-gdb.git] / bfd / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
81ecdfbb
RW
3# Generated by GNU Autoconf 2.64.
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.
557PACKAGE_NAME=
558PACKAGE_TARNAME=
559PACKAGE_VERSION=
560PACKAGE_STRING=
561PACKAGE_BUGREPORT=
81ecdfbb 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
605tdefaults
606bfd_ufile_ptr
607bfd_file_ptr
608supports_plugins
609bfd_default_target_size
610bfd_machines
611bfd_backends
612all_backends
613bfd64_libs
614wordsize
615TDEFINES
616SHARED_LIBADD
617SHARED_LDFLAGS
618LIBM
619COREFLAG
620COREFILE
621EXEEXT_FOR_BUILD
622CC_FOR_BUILD
623BFD_HOSTPTR_T
624BFD_HOST_U_64_BIT
625BFD_HOST_64_BIT
626BFD_HOST_64_BIT_DEFINED
627BFD_HOST_64BIT_LONG_LONG
628BFD_HOST_64BIT_LONG
629HDEFINES
630MSGMERGE
631MSGFMT
632MKINSTALLDIRS
633CATOBJEXT
634GENCAT
635INSTOBJEXT
636DATADIRNAME
637CATALOGS
638POSUB
639GMSGFMT
640XGETTEXT
641INCINTL
642LIBINTL_DEP
643LIBINTL
644USE_NLS
645bfdincludedir
646bfdlibdir
647target_noncanonical
648host_noncanonical
649INSTALL_LIBBFD_FALSE
650INSTALL_LIBBFD_TRUE
651GENINSRC_NEVER_FALSE
652GENINSRC_NEVER_TRUE
653MAINT
654MAINTAINER_MODE_FALSE
655MAINTAINER_MODE_TRUE
656NO_WERROR
657WARN_CFLAGS
658REPORT_BUGS_TEXI
659REPORT_BUGS_TO
660PKGVERSION
661DEBUGDIR
662PLUGINS_FALSE
663PLUGINS_TRUE
664OTOOL64
665OTOOL
666LIPO
667NMEDIT
668DSYMUTIL
81ecdfbb
RW
669OBJDUMP
670LN_S
671NM
672ac_ct_DUMPBIN
673DUMPBIN
674LD
675FGREP
676SED
677LIBTOOL
678EGREP
679GREP
680CPP
681RANLIB
682AR
683am__fastdepCC_FALSE
684am__fastdepCC_TRUE
685CCDEPMODE
686AMDEPBACKSLASH
687AMDEP_FALSE
688AMDEP_TRUE
689am__quote
690am__include
691DEPDIR
692am__untar
693am__tar
694AMTAR
695am__leading_dot
696SET_MAKE
697AWK
698mkdir_p
699MKDIR_P
700INSTALL_STRIP_PROGRAM
701STRIP
702install_sh
703MAKEINFO
704AUTOHEADER
705AUTOMAKE
706AUTOCONF
707ACLOCAL
708VERSION
709PACKAGE
710CYGPATH_W
711am__isrc
712INSTALL_DATA
713INSTALL_SCRIPT
714INSTALL_PROGRAM
715OBJEXT
716EXEEXT
717ac_ct_CC
718CPPFLAGS
719LDFLAGS
720CFLAGS
721CC
722target_os
723target_vendor
724target_cpu
725target
726host_os
727host_vendor
728host_cpu
729host
730build_os
731build_vendor
732build_cpu
733build
734target_alias
735host_alias
736build_alias
737LIBS
738ECHO_T
739ECHO_N
740ECHO_C
741DEFS
742mandir
743localedir
744libdir
745psdir
746pdfdir
747dvidir
748htmldir
749infodir
750docdir
751oldincludedir
752includedir
753localstatedir
754sharedstatedir
755sysconfdir
756datadir
757datarootdir
758libexecdir
759sbindir
760bindir
761program_transform_name
762prefix
763exec_prefix
764PACKAGE_URL
765PACKAGE_BUGREPORT
766PACKAGE_STRING
767PACKAGE_VERSION
768PACKAGE_TARNAME
769PACKAGE_NAME
770PATH_SEPARATOR
771SHELL'
5464f5a1 772ac_subst_files=''
81ecdfbb
RW
773ac_user_opts='
774enable_option_checking
775enable_dependency_tracking
776enable_shared
777enable_static
778with_pic
779enable_fast_install
780with_gnu_ld
781enable_libtool_lock
782enable_plugins
783enable_largefile
784enable_64_bit_bfd
785enable_targets
786with_mmap
787enable_secureplt
ef72a554 788enable_leading_mingw64_underscores
81ecdfbb
RW
789with_separate_debug_dir
790enable_elf_stt_common
791with_pkgversion
792with_bugurl
793enable_werror
794enable_build_warnings
795enable_maintainer_mode
796enable_install_libbfd
797enable_nls
bf993e3c 798with_zlib
81ecdfbb
RW
799'
800 ac_precious_vars='build_alias
801host_alias
802target_alias
803CC
804CFLAGS
805LDFLAGS
806LIBS
807CPPFLAGS
808CPP'
809
252b5132
RH
810
811# Initialize some variables set by options.
5464f5a1
NN
812ac_init_help=
813ac_init_version=false
81ecdfbb
RW
814ac_unrecognized_opts=
815ac_unrecognized_sep=
252b5132
RH
816# The variables have the same names as the options, with
817# dashes changed to underlines.
5464f5a1 818cache_file=/dev/null
252b5132 819exec_prefix=NONE
252b5132 820no_create=
252b5132
RH
821no_recursion=
822prefix=NONE
823program_prefix=NONE
824program_suffix=NONE
825program_transform_name=s,x,x,
826silent=
827site=
828srcdir=
252b5132
RH
829verbose=
830x_includes=NONE
831x_libraries=NONE
5464f5a1
NN
832
833# Installation directory options.
834# These are left unexpanded so users can "make install exec_prefix=/foo"
835# and all the variables that are supposed to be based on exec_prefix
836# by default will actually change.
837# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 838# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
839bindir='${exec_prefix}/bin'
840sbindir='${exec_prefix}/sbin'
841libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
842datarootdir='${prefix}/share'
843datadir='${datarootdir}'
252b5132
RH
844sysconfdir='${prefix}/etc'
845sharedstatedir='${prefix}/com'
846localstatedir='${prefix}/var'
252b5132
RH
847includedir='${prefix}/include'
848oldincludedir='/usr/include'
81ecdfbb
RW
849docdir='${datarootdir}/doc/${PACKAGE}'
850infodir='${datarootdir}/info'
851htmldir='${docdir}'
852dvidir='${docdir}'
853pdfdir='${docdir}'
854psdir='${docdir}'
855libdir='${exec_prefix}/lib'
856localedir='${datarootdir}/locale'
857mandir='${datarootdir}/man'
252b5132 858
252b5132 859ac_prev=
81ecdfbb 860ac_dashdash=
252b5132
RH
861for ac_option
862do
252b5132
RH
863 # If the previous option needs an argument, assign it.
864 if test -n "$ac_prev"; then
81ecdfbb 865 eval $ac_prev=\$ac_option
252b5132
RH
866 ac_prev=
867 continue
868 fi
869
81ecdfbb
RW
870 case $ac_option in
871 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
872 *) ac_optarg=yes ;;
873 esac
252b5132
RH
874
875 # Accept the important Cygnus configure options, so we can diagnose typos.
876
81ecdfbb
RW
877 case $ac_dashdash$ac_option in
878 --)
879 ac_dashdash=yes ;;
252b5132
RH
880
881 -bindir | --bindir | --bindi | --bind | --bin | --bi)
882 ac_prev=bindir ;;
883 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
5464f5a1 884 bindir=$ac_optarg ;;
252b5132
RH
885
886 -build | --build | --buil | --bui | --bu)
5464f5a1 887 ac_prev=build_alias ;;
252b5132 888 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
5464f5a1 889 build_alias=$ac_optarg ;;
252b5132
RH
890
891 -cache-file | --cache-file | --cache-fil | --cache-fi \
892 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
893 ac_prev=cache_file ;;
894 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
895 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
5464f5a1
NN
896 cache_file=$ac_optarg ;;
897
898 --config-cache | -C)
899 cache_file=config.cache ;;
252b5132 900
81ecdfbb 901 -datadir | --datadir | --datadi | --datad)
252b5132 902 ac_prev=datadir ;;
81ecdfbb 903 -datadir=* | --datadir=* | --datadi=* | --datad=*)
5464f5a1 904 datadir=$ac_optarg ;;
252b5132 905
81ecdfbb
RW
906 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
907 | --dataroo | --dataro | --datar)
908 ac_prev=datarootdir ;;
909 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
910 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
911 datarootdir=$ac_optarg ;;
912
252b5132 913 -disable-* | --disable-*)
81ecdfbb 914 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 915 # Reject names that are not valid shell variable names.
81ecdfbb
RW
916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917 as_fn_error "invalid feature name: $ac_useropt"
918 ac_useropt_orig=$ac_useropt
919 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920 case $ac_user_opts in
921 *"
922"enable_$ac_useropt"
923"*) ;;
924 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
925 ac_unrecognized_sep=', ';;
926 esac
927 eval enable_$ac_useropt=no ;;
928
929 -docdir | --docdir | --docdi | --doc | --do)
930 ac_prev=docdir ;;
931 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932 docdir=$ac_optarg ;;
933
934 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935 ac_prev=dvidir ;;
936 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937 dvidir=$ac_optarg ;;
252b5132
RH
938
939 -enable-* | --enable-*)
81ecdfbb 940 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 941 # Reject names that are not valid shell variable names.
81ecdfbb
RW
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943 as_fn_error "invalid feature name: $ac_useropt"
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
947 *"
948"enable_$ac_useropt"
949"*) ;;
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
252b5132 952 esac
81ecdfbb 953 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
954
955 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
956 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
957 | --exec | --exe | --ex)
958 ac_prev=exec_prefix ;;
959 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
960 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
961 | --exec=* | --exe=* | --ex=*)
5464f5a1 962 exec_prefix=$ac_optarg ;;
252b5132
RH
963
964 -gas | --gas | --ga | --g)
965 # Obsolete; use --with-gas.
966 with_gas=yes ;;
967
5464f5a1
NN
968 -help | --help | --hel | --he | -h)
969 ac_init_help=long ;;
970 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
971 ac_init_help=recursive ;;
972 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
973 ac_init_help=short ;;
252b5132
RH
974
975 -host | --host | --hos | --ho)
5464f5a1 976 ac_prev=host_alias ;;
252b5132 977 -host=* | --host=* | --hos=* | --ho=*)
5464f5a1 978 host_alias=$ac_optarg ;;
252b5132 979
81ecdfbb
RW
980 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
981 ac_prev=htmldir ;;
982 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
983 | --ht=*)
984 htmldir=$ac_optarg ;;
985
252b5132
RH
986 -includedir | --includedir | --includedi | --included | --include \
987 | --includ | --inclu | --incl | --inc)
988 ac_prev=includedir ;;
989 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
990 | --includ=* | --inclu=* | --incl=* | --inc=*)
5464f5a1 991 includedir=$ac_optarg ;;
252b5132
RH
992
993 -infodir | --infodir | --infodi | --infod | --info | --inf)
994 ac_prev=infodir ;;
995 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
5464f5a1 996 infodir=$ac_optarg ;;
252b5132
RH
997
998 -libdir | --libdir | --libdi | --libd)
999 ac_prev=libdir ;;
1000 -libdir=* | --libdir=* | --libdi=* | --libd=*)
5464f5a1 1001 libdir=$ac_optarg ;;
252b5132
RH
1002
1003 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1004 | --libexe | --libex | --libe)
1005 ac_prev=libexecdir ;;
1006 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1007 | --libexe=* | --libex=* | --libe=*)
5464f5a1 1008 libexecdir=$ac_optarg ;;
252b5132 1009
81ecdfbb
RW
1010 -localedir | --localedir | --localedi | --localed | --locale)
1011 ac_prev=localedir ;;
1012 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1013 localedir=$ac_optarg ;;
1014
252b5132 1015 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1016 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
1017 ac_prev=localstatedir ;;
1018 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1019 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
5464f5a1 1020 localstatedir=$ac_optarg ;;
252b5132
RH
1021
1022 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1023 ac_prev=mandir ;;
1024 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
5464f5a1 1025 mandir=$ac_optarg ;;
252b5132
RH
1026
1027 -nfp | --nfp | --nf)
1028 # Obsolete; use --without-fp.
1029 with_fp=no ;;
1030
1031 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
5464f5a1 1032 | --no-cr | --no-c | -n)
252b5132
RH
1033 no_create=yes ;;
1034
1035 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1037 no_recursion=yes ;;
1038
1039 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1040 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1041 | --oldin | --oldi | --old | --ol | --o)
1042 ac_prev=oldincludedir ;;
1043 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1044 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1045 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
5464f5a1 1046 oldincludedir=$ac_optarg ;;
252b5132
RH
1047
1048 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1049 ac_prev=prefix ;;
1050 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
5464f5a1 1051 prefix=$ac_optarg ;;
252b5132
RH
1052
1053 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1054 | --program-pre | --program-pr | --program-p)
1055 ac_prev=program_prefix ;;
1056 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1057 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
5464f5a1 1058 program_prefix=$ac_optarg ;;
252b5132
RH
1059
1060 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1061 | --program-suf | --program-su | --program-s)
1062 ac_prev=program_suffix ;;
1063 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1064 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
5464f5a1 1065 program_suffix=$ac_optarg ;;
252b5132
RH
1066
1067 -program-transform-name | --program-transform-name \
1068 | --program-transform-nam | --program-transform-na \
1069 | --program-transform-n | --program-transform- \
1070 | --program-transform | --program-transfor \
1071 | --program-transfo | --program-transf \
1072 | --program-trans | --program-tran \
1073 | --progr-tra | --program-tr | --program-t)
1074 ac_prev=program_transform_name ;;
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=*)
5464f5a1 1082 program_transform_name=$ac_optarg ;;
252b5132 1083
81ecdfbb
RW
1084 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1085 ac_prev=pdfdir ;;
1086 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1087 pdfdir=$ac_optarg ;;
1088
1089 -psdir | --psdir | --psdi | --psd | --ps)
1090 ac_prev=psdir ;;
1091 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1092 psdir=$ac_optarg ;;
1093
252b5132
RH
1094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095 | -silent | --silent | --silen | --sile | --sil)
1096 silent=yes ;;
1097
1098 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1099 ac_prev=sbindir ;;
1100 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1101 | --sbi=* | --sb=*)
5464f5a1 1102 sbindir=$ac_optarg ;;
252b5132
RH
1103
1104 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1105 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1106 | --sharedst | --shareds | --shared | --share | --shar \
1107 | --sha | --sh)
1108 ac_prev=sharedstatedir ;;
1109 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1110 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1111 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1112 | --sha=* | --sh=*)
5464f5a1 1113 sharedstatedir=$ac_optarg ;;
252b5132
RH
1114
1115 -site | --site | --sit)
1116 ac_prev=site ;;
1117 -site=* | --site=* | --sit=*)
5464f5a1 1118 site=$ac_optarg ;;
6be7c12c 1119
252b5132
RH
1120 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1121 ac_prev=srcdir ;;
1122 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5464f5a1 1123 srcdir=$ac_optarg ;;
252b5132
RH
1124
1125 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1126 | --syscon | --sysco | --sysc | --sys | --sy)
1127 ac_prev=sysconfdir ;;
1128 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1129 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
5464f5a1 1130 sysconfdir=$ac_optarg ;;
252b5132
RH
1131
1132 -target | --target | --targe | --targ | --tar | --ta | --t)
5464f5a1 1133 ac_prev=target_alias ;;
252b5132 1134 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
5464f5a1 1135 target_alias=$ac_optarg ;;
252b5132
RH
1136
1137 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1138 verbose=yes ;;
1139
5464f5a1
NN
1140 -version | --version | --versio | --versi | --vers | -V)
1141 ac_init_version=: ;;
252b5132
RH
1142
1143 -with-* | --with-*)
81ecdfbb 1144 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1145 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147 as_fn_error "invalid package name: $ac_useropt"
1148 ac_useropt_orig=$ac_useropt
1149 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150 case $ac_user_opts in
1151 *"
1152"with_$ac_useropt"
1153"*) ;;
1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1155 ac_unrecognized_sep=', ';;
252b5132 1156 esac
81ecdfbb 1157 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1158
1159 -without-* | --without-*)
81ecdfbb 1160 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1161 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1163 as_fn_error "invalid package name: $ac_useropt"
1164 ac_useropt_orig=$ac_useropt
1165 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166 case $ac_user_opts in
1167 *"
1168"with_$ac_useropt"
1169"*) ;;
1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1171 ac_unrecognized_sep=', ';;
1172 esac
1173 eval with_$ac_useropt=no ;;
252b5132
RH
1174
1175 --x)
1176 # Obsolete; use --with-x.
1177 with_x=yes ;;
1178
1179 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1180 | --x-incl | --x-inc | --x-in | --x-i)
1181 ac_prev=x_includes ;;
1182 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1183 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
5464f5a1 1184 x_includes=$ac_optarg ;;
252b5132
RH
1185
1186 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1187 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1188 ac_prev=x_libraries ;;
1189 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1190 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
5464f5a1 1191 x_libraries=$ac_optarg ;;
252b5132 1192
81ecdfbb
RW
1193 -*) as_fn_error "unrecognized option: \`$ac_option'
1194Try \`$0 --help' for more information."
252b5132
RH
1195 ;;
1196
5464f5a1
NN
1197 *=*)
1198 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1199 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1200 case $ac_envvar in #(
1201 '' | [0-9]* | *[!_$as_cr_alnum]* )
1202 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1203 esac
1204 eval $ac_envvar=\$ac_optarg
5464f5a1
NN
1205 export $ac_envvar ;;
1206
252b5132 1207 *)
5464f5a1 1208 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1209 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
5464f5a1 1210 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1211 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
5464f5a1 1212 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
1213 ;;
1214
1215 esac
1216done
1217
1218if test -n "$ac_prev"; then
5464f5a1 1219 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1220 as_fn_error "missing argument to $ac_option"
252b5132 1221fi
252b5132 1222
81ecdfbb
RW
1223if test -n "$ac_unrecognized_opts"; then
1224 case $enable_option_checking in
1225 no) ;;
1226 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1227 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
5464f5a1 1228 esac
81ecdfbb 1229fi
6be7c12c 1230
81ecdfbb
RW
1231# Check all directory arguments for consistency.
1232for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1233 datadir sysconfdir sharedstatedir localstatedir includedir \
1234 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1235 libdir localedir mandir
252b5132 1236do
81ecdfbb
RW
1237 eval ac_val=\$$ac_var
1238 # Remove trailing slashes.
5464f5a1 1239 case $ac_val in
81ecdfbb
RW
1240 */ )
1241 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1242 eval $ac_var=\$ac_val;;
252b5132 1243 esac
81ecdfbb
RW
1244 # Be sure to have absolute directory names.
1245 case $ac_val in
1246 [\\/$]* | ?:[\\/]* ) continue;;
1247 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1248 esac
1249 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1250done
1251
5464f5a1
NN
1252# There might be people who depend on the old broken behavior: `$host'
1253# used to hold the argument of --host etc.
1254# FIXME: To remove some day.
1255build=$build_alias
1256host=$host_alias
1257target=$target_alias
1258
1259# FIXME: To remove some day.
1260if test "x$host_alias" != x; then
1261 if test "x$build_alias" = x; then
1262 cross_compiling=maybe
81ecdfbb 1263 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
5464f5a1
NN
1264 If a cross compiler is detected then cross compile mode will be used." >&2
1265 elif test "x$build_alias" != "x$host_alias"; then
1266 cross_compiling=yes
1267 fi
1268fi
252b5132 1269
5464f5a1
NN
1270ac_tool_prefix=
1271test -n "$host_alias" && ac_tool_prefix=$host_alias-
1272
1273test "$silent" = yes && exec 6>/dev/null
252b5132 1274
252b5132 1275
81ecdfbb
RW
1276ac_pwd=`pwd` && test -n "$ac_pwd" &&
1277ac_ls_di=`ls -di .` &&
1278ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1279 as_fn_error "working directory cannot be determined"
1280test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1281 as_fn_error "pwd does not report name of working directory"
1282
1283
252b5132
RH
1284# Find the source files, if location was not specified.
1285if test -z "$srcdir"; then
1286 ac_srcdir_defaulted=yes
81ecdfbb
RW
1287 # Try the directory containing this script, then the parent directory.
1288 ac_confdir=`$as_dirname -- "$as_myself" ||
1289$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1290 X"$as_myself" : 'X\(//\)[^/]' \| \
1291 X"$as_myself" : 'X\(//\)$' \| \
1292 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1293$as_echo X"$as_myself" |
1294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1295 s//\1/
1296 q
1297 }
1298 /^X\(\/\/\)[^/].*/{
1299 s//\1/
1300 q
1301 }
1302 /^X\(\/\/\)$/{
1303 s//\1/
1304 q
1305 }
1306 /^X\(\/\).*/{
1307 s//\1/
1308 q
1309 }
1310 s/.*/./; q'`
252b5132 1311 srcdir=$ac_confdir
81ecdfbb 1312 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1313 srcdir=..
1314 fi
1315else
1316 ac_srcdir_defaulted=no
1317fi
81ecdfbb
RW
1318if test ! -r "$srcdir/$ac_unique_file"; then
1319 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1320 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1321fi
1322ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1323ac_abs_confdir=`(
1324 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1325 pwd)`
1326# When building in place, set srcdir=.
1327if test "$ac_abs_confdir" = "$ac_pwd"; then
1328 srcdir=.
1329fi
1330# Remove unnecessary trailing slashes from srcdir.
1331# Double slashes in file names in object file debugging info
1332# mess up M-x gdb in Emacs.
1333case $srcdir in
1334*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1335esac
1336for ac_var in $ac_precious_vars; do
1337 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1338 eval ac_env_${ac_var}_value=\$${ac_var}
1339 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1340 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1341done
b3baf5d0 1342
5464f5a1
NN
1343#
1344# Report the --help message.
1345#
1346if test "$ac_init_help" = "long"; then
1347 # Omit some internal or obsolete options to make the list less imposing.
1348 # This message is too long to be a string in the A/UX 3.1 sh.
1349 cat <<_ACEOF
1350\`configure' configures this package to adapt to many kinds of systems.
252b5132 1351
5464f5a1 1352Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 1353
5464f5a1
NN
1354To assign environment variables (e.g., CC, CFLAGS...), specify them as
1355VAR=VALUE. See below for descriptions of some of the useful variables.
6be7c12c 1356
5464f5a1 1357Defaults for the options are specified in brackets.
6be7c12c 1358
5464f5a1
NN
1359Configuration:
1360 -h, --help display this help and exit
1361 --help=short display options specific to this package
1362 --help=recursive display the short help of all the included packages
1363 -V, --version display version information and exit
1364 -q, --quiet, --silent do not print \`checking...' messages
1365 --cache-file=FILE cache test results in FILE [disabled]
1366 -C, --config-cache alias for \`--cache-file=config.cache'
1367 -n, --no-create do not create output files
1368 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1369
5464f5a1
NN
1370Installation directories:
1371 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1372 [$ac_default_prefix]
5464f5a1 1373 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1374 [PREFIX]
6be7c12c 1375
5464f5a1
NN
1376By default, \`make install' will install all the files in
1377\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1378an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1379for instance \`--prefix=\$HOME'.
6be7c12c 1380
5464f5a1 1381For better control, use the options below.
6be7c12c 1382
5464f5a1 1383Fine tuning of the installation directories:
81ecdfbb
RW
1384 --bindir=DIR user executables [EPREFIX/bin]
1385 --sbindir=DIR system admin executables [EPREFIX/sbin]
1386 --libexecdir=DIR program executables [EPREFIX/libexec]
1387 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1388 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1389 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1390 --libdir=DIR object code libraries [EPREFIX/lib]
1391 --includedir=DIR C header files [PREFIX/include]
1392 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1393 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1394 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1395 --infodir=DIR info documentation [DATAROOTDIR/info]
1396 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1397 --mandir=DIR man documentation [DATAROOTDIR/man]
1398 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1399 --htmldir=DIR html documentation [DOCDIR]
1400 --dvidir=DIR dvi documentation [DOCDIR]
1401 --pdfdir=DIR pdf documentation [DOCDIR]
1402 --psdir=DIR ps documentation [DOCDIR]
5464f5a1 1403_ACEOF
6be7c12c 1404
5464f5a1 1405 cat <<\_ACEOF
6be7c12c 1406
5464f5a1
NN
1407Program names:
1408 --program-prefix=PREFIX prepend PREFIX to installed program names
1409 --program-suffix=SUFFIX append SUFFIX to installed program names
1410 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 1411
5464f5a1
NN
1412System types:
1413 --build=BUILD configure for building on BUILD [guessed]
1414 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1415 --target=TARGET configure for building compilers for TARGET [HOST]
1416_ACEOF
252b5132 1417fi
252b5132 1418
5464f5a1 1419if test -n "$ac_init_help"; then
6be7c12c 1420
5464f5a1 1421 cat <<\_ACEOF
252b5132 1422
5464f5a1 1423Optional Features:
81ecdfbb 1424 --disable-option-checking ignore unrecognized --enable/--with options
5464f5a1
NN
1425 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1426 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
f5385ebf
AM
1427 --disable-dependency-tracking speeds up one-time build
1428 --enable-dependency-tracking do not reject slow dependency extractors
81ecdfbb
RW
1429 --enable-shared[=PKGS] build shared libraries [default=no]
1430 --enable-static[=PKGS] build static libraries [default=yes]
d7040cdb
SE
1431 --enable-fast-install[=PKGS]
1432 optimize for fast installation [default=yes]
5464f5a1 1433 --disable-libtool-lock avoid locking (might break parallel builds)
5691d22d 1434 --enable-plugins Enable support for plugins (defaults no)
ce3c775b 1435 --disable-largefile omit support for large files
5464f5a1
NN
1436 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1437 --enable-targets alternative target configurations
6ec7057a 1438 --enable-secureplt Default to creating read-only plt entries
ef72a554
KT
1439 --enable-leading-mingw64-underscores
1440 Enable leading underscores on 64 bit mingw targets
504b7d20 1441 --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type
241a6c40
AM
1442 --enable-werror treat compile warnings as errors
1443 --enable-build-warnings enable build-time compiler warnings
f5385ebf
AM
1444 --enable-maintainer-mode enable make rules and dependencies not useful
1445 (and sometimes confusing) to the casual installer
5464f5a1
NN
1446 --enable-install-libbfd controls installation of libbfd and related headers
1447 --disable-nls do not use Native Language Support
1448
1449Optional Packages:
1450 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1451 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1452 --with-pic try to use only PIC/non-PIC objects [default=use
1453 both]
1454 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
5464f5a1 1455 --with-mmap try using mmap for BFD input files if available
0d4a1476
AS
1456 --with-separate-debug-dir=DIR
1457 Look for global separate debug info in DIR
1458 [default=LIBDIR/debug]
a1ac8190
JM
1459 --with-pkgversion=PKG Use PKG in the version string in place of "GNU
1460 Binutils"
c428fa83 1461 --with-bugurl=URL Direct users to URL to report a bug
bf993e3c 1462 --with-zlib include zlib support (auto/yes/no) default=auto
5464f5a1
NN
1463
1464Some influential environment variables:
1465 CC C compiler command
1466 CFLAGS C compiler flags
1467 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1468 nonstandard directory <lib dir>
81ecdfbb
RW
1469 LIBS libraries to pass to the linker, e.g. -l<library>
1470 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1471 you have headers in a nonstandard directory <include dir>
5464f5a1
NN
1472 CPP C preprocessor
1473
1474Use these variables to override the choices made by `configure' or to help
1475it to find libraries and programs with nonstandard names/locations.
1476
81ecdfbb 1477Report bugs to the package provider.
5464f5a1 1478_ACEOF
81ecdfbb 1479ac_status=$?
5464f5a1
NN
1480fi
1481
1482if test "$ac_init_help" = "recursive"; then
1483 # If there are subdirs, report their specific --help.
5464f5a1 1484 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1485 test -d "$ac_dir" ||
1486 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1487 continue
5464f5a1
NN
1488 ac_builddir=.
1489
81ecdfbb
RW
1490case "$ac_dir" in
1491.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492*)
1493 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1494 # A ".." for each directory in $ac_dir_suffix.
1495 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1496 case $ac_top_builddir_sub in
1497 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1499 esac ;;
1500esac
1501ac_abs_top_builddir=$ac_pwd
1502ac_abs_builddir=$ac_pwd$ac_dir_suffix
1503# for backward compatibility:
1504ac_top_builddir=$ac_top_build_prefix
5464f5a1
NN
1505
1506case $srcdir in
81ecdfbb 1507 .) # We are building in place.
5464f5a1 1508 ac_srcdir=.
81ecdfbb
RW
1509 ac_top_srcdir=$ac_top_builddir_sub
1510 ac_abs_top_srcdir=$ac_pwd ;;
1511 [\\/]* | ?:[\\/]* ) # Absolute name.
5464f5a1 1512 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1513 ac_top_srcdir=$srcdir
1514 ac_abs_top_srcdir=$srcdir ;;
1515 *) # Relative name.
1516 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1517 ac_top_srcdir=$ac_top_build_prefix$srcdir
1518 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5464f5a1 1519esac
81ecdfbb
RW
1520ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1521
1522 cd "$ac_dir" || { ac_status=$?; continue; }
1523 # Check for guested configure.
1524 if test -f "$ac_srcdir/configure.gnu"; then
1525 echo &&
1526 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1527 elif test -f "$ac_srcdir/configure"; then
1528 echo &&
1529 $SHELL "$ac_srcdir/configure" --help=recursive
5464f5a1 1530 else
81ecdfbb
RW
1531 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1532 fi || ac_status=$?
1533 cd "$ac_pwd" || { ac_status=$?; break; }
5464f5a1 1534 done
6be7c12c
AO
1535fi
1536
81ecdfbb 1537test -n "$ac_init_help" && exit $ac_status
5464f5a1
NN
1538if $ac_init_version; then
1539 cat <<\_ACEOF
81ecdfbb
RW
1540configure
1541generated by GNU Autoconf 2.64
6be7c12c 1542
81ecdfbb 1543Copyright (C) 2009 Free Software Foundation, Inc.
5464f5a1
NN
1544This configure script is free software; the Free Software Foundation
1545gives unlimited permission to copy, distribute and modify it.
1546_ACEOF
81ecdfbb 1547 exit
5464f5a1 1548fi
6be7c12c 1549
81ecdfbb
RW
1550## ------------------------ ##
1551## Autoconf initialization. ##
1552## ------------------------ ##
6be7c12c 1553
81ecdfbb
RW
1554# ac_fn_c_try_compile LINENO
1555# --------------------------
1556# Try to compile conftest.$ac_ext, and return whether this succeeded.
1557ac_fn_c_try_compile ()
5464f5a1 1558{
81ecdfbb
RW
1559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560 rm -f conftest.$ac_objext
1561 if { { ac_try="$ac_compile"
1562case "(($ac_try" in
1563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1564 *) ac_try_echo=$ac_try;;
1565esac
1566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567$as_echo "$ac_try_echo"; } >&5
1568 (eval "$ac_compile") 2>conftest.err
1569 ac_status=$?
1570 if test -s conftest.err; then
1571 grep -v '^ *+' conftest.err >conftest.er1
1572 cat conftest.er1 >&5
1573 mv -f conftest.er1 conftest.err
1574 fi
1575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576 test $ac_status = 0; } && {
1577 test -z "$ac_c_werror_flag" ||
1578 test ! -s conftest.err
1579 } && test -s conftest.$ac_objext; then :
1580 ac_retval=0
1581else
1582 $as_echo "$as_me: failed program was:" >&5
1583sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 1584
81ecdfbb
RW
1585 ac_retval=1
1586fi
1587 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1588 return $ac_retval
5464f5a1 1589
81ecdfbb 1590} # ac_fn_c_try_compile
5464f5a1 1591
81ecdfbb
RW
1592# ac_fn_c_try_link LINENO
1593# -----------------------
1594# Try to link conftest.$ac_ext, and return whether this succeeded.
1595ac_fn_c_try_link ()
1596{
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 rm -f conftest.$ac_objext conftest$ac_exeext
1599 if { { ac_try="$ac_link"
1600case "(($ac_try" in
1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602 *) ac_try_echo=$ac_try;;
1603esac
1604eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605$as_echo "$ac_try_echo"; } >&5
1606 (eval "$ac_link") 2>conftest.err
1607 ac_status=$?
1608 if test -s conftest.err; then
1609 grep -v '^ *+' conftest.err >conftest.er1
1610 cat conftest.er1 >&5
1611 mv -f conftest.er1 conftest.err
1612 fi
1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614 test $ac_status = 0; } && {
1615 test -z "$ac_c_werror_flag" ||
1616 test ! -s conftest.err
1617 } && test -s conftest$ac_exeext && {
1618 test "$cross_compiling" = yes ||
1619 $as_test_x conftest$ac_exeext
1620 }; then :
1621 ac_retval=0
1622else
1623 $as_echo "$as_me: failed program was:" >&5
1624sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 1625
81ecdfbb
RW
1626 ac_retval=1
1627fi
1628 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1629 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1630 # interfere with the next link command; also delete a directory that is
1631 # left behind by Apple's compiler. We do this before executing the actions.
1632 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1633 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1634 return $ac_retval
6be7c12c 1635
81ecdfbb 1636} # ac_fn_c_try_link
66e25bab 1637
81ecdfbb
RW
1638# ac_fn_c_try_cpp LINENO
1639# ----------------------
1640# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1641ac_fn_c_try_cpp ()
1642{
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644 if { { ac_try="$ac_cpp conftest.$ac_ext"
1645case "(($ac_try" in
1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647 *) ac_try_echo=$ac_try;;
1648esac
1649eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650$as_echo "$ac_try_echo"; } >&5
1651 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1652 ac_status=$?
1653 if test -s conftest.err; then
1654 grep -v '^ *+' conftest.err >conftest.er1
1655 cat conftest.er1 >&5
1656 mv -f conftest.er1 conftest.err
1657 fi
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; } >/dev/null && {
1660 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1661 test ! -s conftest.err
1662 }; then :
1663 ac_retval=0
1664else
1665 $as_echo "$as_me: failed program was:" >&5
1666sed 's/^/| /' conftest.$ac_ext >&5
b3baf5d0 1667
81ecdfbb
RW
1668 ac_retval=1
1669fi
1670 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1671 return $ac_retval
6be7c12c 1672
81ecdfbb 1673} # ac_fn_c_try_cpp
252b5132 1674
81ecdfbb
RW
1675# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1676# -------------------------------------------------------
1677# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1678# the include files in INCLUDES and setting the cache variable VAR
1679# accordingly.
1680ac_fn_c_check_header_mongrel ()
1681{
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1685$as_echo_n "checking for $2... " >&6; }
1686if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1687 $as_echo_n "(cached) " >&6
1688fi
1689eval ac_res=\$$3
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1691$as_echo "$ac_res" >&6; }
1692else
1693 # Is the header compilable?
1694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1695$as_echo_n "checking $2 usability... " >&6; }
1696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697/* end confdefs.h. */
1698$4
1699#include <$2>
5464f5a1 1700_ACEOF
81ecdfbb
RW
1701if ac_fn_c_try_compile "$LINENO"; then :
1702 ac_header_compiler=yes
1703else
1704 ac_header_compiler=no
1705fi
1706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1708$as_echo "$ac_header_compiler" >&6; }
c5d1701e 1709
81ecdfbb
RW
1710# Is the header present?
1711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1712$as_echo_n "checking $2 presence... " >&6; }
1713cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1714/* end confdefs.h. */
1715#include <$2>
1716_ACEOF
1717if ac_fn_c_try_cpp "$LINENO"; then :
1718 ac_header_preproc=yes
1719else
1720 ac_header_preproc=no
1721fi
1722rm -f conftest.err conftest.$ac_ext
1723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1724$as_echo "$ac_header_preproc" >&6; }
6be7c12c 1725
81ecdfbb
RW
1726# So? What about this header?
1727case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1728 yes:no: )
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1730$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1732$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1733 ;;
1734 no:yes:* )
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1736$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1738$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1740$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1742$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1744$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1745 ;;
1746esac
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748$as_echo_n "checking for $2... " >&6; }
1749if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1750 $as_echo_n "(cached) " >&6
1751else
1752 eval "$3=\$ac_header_compiler"
1753fi
1754eval ac_res=\$$3
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1756$as_echo "$ac_res" >&6; }
1757fi
1758 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
5464f5a1 1759
81ecdfbb 1760} # ac_fn_c_check_header_mongrel
5464f5a1 1761
81ecdfbb
RW
1762# ac_fn_c_try_run LINENO
1763# ----------------------
1764# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1765# that executables *can* be run.
1766ac_fn_c_try_run ()
5464f5a1 1767{
81ecdfbb
RW
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 if { { ac_try="$ac_link"
1770case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773esac
1774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775$as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_link") 2>&5
1777 ac_status=$?
1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1780 { { case "(($ac_try" in
1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782 *) ac_try_echo=$ac_try;;
1783esac
1784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785$as_echo "$ac_try_echo"; } >&5
1786 (eval "$ac_try") 2>&5
1787 ac_status=$?
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; }; }; then :
1790 ac_retval=0
1791else
1792 $as_echo "$as_me: program exited with status $ac_status" >&5
1793 $as_echo "$as_me: failed program was:" >&5
1794sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 1795
81ecdfbb
RW
1796 ac_retval=$ac_status
1797fi
1798 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1799 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1800 return $ac_retval
5464f5a1 1801
81ecdfbb 1802} # ac_fn_c_try_run
5464f5a1 1803
81ecdfbb
RW
1804# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1805# -------------------------------------------------------
1806# Tests whether HEADER exists and can be compiled using the include files in
1807# INCLUDES, setting the cache variable VAR accordingly.
1808ac_fn_c_check_header_compile ()
1809{
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812$as_echo_n "checking for $2... " >&6; }
1813if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1814 $as_echo_n "(cached) " >&6
1815else
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817/* end confdefs.h. */
1818$4
1819#include <$2>
1820_ACEOF
1821if ac_fn_c_try_compile "$LINENO"; then :
1822 eval "$3=yes"
1823else
1824 eval "$3=no"
1825fi
1826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1827fi
1828eval ac_res=\$$3
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830$as_echo "$ac_res" >&6; }
1831 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
5464f5a1 1832
81ecdfbb 1833} # ac_fn_c_check_header_compile
5464f5a1 1834
81ecdfbb
RW
1835# ac_fn_c_check_func LINENO FUNC VAR
1836# ----------------------------------
1837# Tests whether FUNC exists, setting the cache variable VAR accordingly
1838ac_fn_c_check_func ()
1839{
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842$as_echo_n "checking for $2... " >&6; }
1843if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1844 $as_echo_n "(cached) " >&6
1845else
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847/* end confdefs.h. */
1848/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1850#define $2 innocuous_$2
5464f5a1 1851
81ecdfbb
RW
1852/* System header to define __stub macros and hopefully few prototypes,
1853 which can conflict with char $2 (); below.
1854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1855 <limits.h> exists even on freestanding compilers. */
5464f5a1 1856
81ecdfbb
RW
1857#ifdef __STDC__
1858# include <limits.h>
1859#else
1860# include <assert.h>
1861#endif
5464f5a1 1862
81ecdfbb 1863#undef $2
5464f5a1 1864
81ecdfbb
RW
1865/* Override any GCC internal prototype to avoid an error.
1866 Use char because int might match the return type of a GCC
1867 builtin and then its argument prototype would still apply. */
1868#ifdef __cplusplus
1869extern "C"
1870#endif
1871char $2 ();
1872/* The GNU C library defines this for functions which it implements
1873 to always fail with ENOSYS. Some functions are actually named
1874 something starting with __ and the normal name is an alias. */
1875#if defined __stub_$2 || defined __stub___$2
1876choke me
1877#endif
5464f5a1 1878
81ecdfbb
RW
1879int
1880main ()
1881{
1882return $2 ();
1883 ;
1884 return 0;
1885}
5464f5a1 1886_ACEOF
81ecdfbb
RW
1887if ac_fn_c_try_link "$LINENO"; then :
1888 eval "$3=yes"
1889else
1890 eval "$3=no"
1891fi
1892rm -f core conftest.err conftest.$ac_objext \
1893 conftest$ac_exeext conftest.$ac_ext
1894fi
1895eval ac_res=\$$3
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897$as_echo "$ac_res" >&6; }
1898 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
5464f5a1 1899
81ecdfbb 1900} # ac_fn_c_check_func
5464f5a1 1901
81ecdfbb
RW
1902# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1903# --------------------------------------------
1904# Tries to find the compile-time value of EXPR in a program that includes
1905# INCLUDES, setting VAR accordingly. Returns whether the value could be
1906# computed
1907ac_fn_c_compute_int ()
1908{
1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910 if test "$cross_compiling" = yes; then
1911 # Depending upon the size, compute the lo and hi bounds.
1912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913/* end confdefs.h. */
1914$4
1915int
1916main ()
1917{
1918static int test_array [1 - 2 * !(($2) >= 0)];
1919test_array [0] = 0
5464f5a1 1920
81ecdfbb
RW
1921 ;
1922 return 0;
1923}
5464f5a1 1924_ACEOF
81ecdfbb
RW
1925if ac_fn_c_try_compile "$LINENO"; then :
1926 ac_lo=0 ac_mid=0
1927 while :; do
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929/* end confdefs.h. */
1930$4
1931int
1932main ()
1933{
1934static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1935test_array [0] = 0
5464f5a1 1936
81ecdfbb
RW
1937 ;
1938 return 0;
1939}
1940_ACEOF
1941if ac_fn_c_try_compile "$LINENO"; then :
1942 ac_hi=$ac_mid; break
5464f5a1 1943else
81ecdfbb
RW
1944 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1945 if test $ac_lo -le $ac_mid; then
1946 ac_lo= ac_hi=
1947 break
1948 fi
1949 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
5464f5a1 1950fi
81ecdfbb
RW
1951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1952 done
1953else
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955/* end confdefs.h. */
1956$4
1957int
1958main ()
1959{
1960static int test_array [1 - 2 * !(($2) < 0)];
1961test_array [0] = 0
5464f5a1 1962
81ecdfbb
RW
1963 ;
1964 return 0;
1965}
1966_ACEOF
1967if ac_fn_c_try_compile "$LINENO"; then :
1968 ac_hi=-1 ac_mid=-1
1969 while :; do
1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971/* end confdefs.h. */
1972$4
1973int
1974main ()
1975{
1976static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1977test_array [0] = 0
5464f5a1 1978
81ecdfbb
RW
1979 ;
1980 return 0;
1981}
1982_ACEOF
1983if ac_fn_c_try_compile "$LINENO"; then :
1984 ac_lo=$ac_mid; break
1985else
1986 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1987 if test $ac_mid -le $ac_hi; then
1988 ac_lo= ac_hi=
1989 break
1990 fi
1991 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1992fi
1993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1994 done
1995else
1996 ac_lo= ac_hi=
1997fi
1998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999fi
2000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001# Binary search between lo and hi bounds.
2002while test "x$ac_lo" != "x$ac_hi"; do
2003 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005/* end confdefs.h. */
2006$4
2007int
2008main ()
2009{
2010static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2011test_array [0] = 0
5464f5a1 2012
81ecdfbb
RW
2013 ;
2014 return 0;
2015}
2016_ACEOF
2017if ac_fn_c_try_compile "$LINENO"; then :
2018 ac_hi=$ac_mid
2019else
2020 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2021fi
2022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2023done
2024case $ac_lo in #((
2025?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2026'') ac_retval=1 ;;
2027esac
2028 else
2029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030/* end confdefs.h. */
2031$4
2032static long int longval () { return $2; }
2033static unsigned long int ulongval () { return $2; }
2034#include <stdio.h>
2035#include <stdlib.h>
2036int
2037main ()
2038{
5464f5a1 2039
81ecdfbb
RW
2040 FILE *f = fopen ("conftest.val", "w");
2041 if (! f)
2042 return 1;
2043 if (($2) < 0)
2044 {
2045 long int i = longval ();
2046 if (i != ($2))
2047 return 1;
2048 fprintf (f, "%ld", i);
2049 }
2050 else
2051 {
2052 unsigned long int i = ulongval ();
2053 if (i != ($2))
2054 return 1;
2055 fprintf (f, "%lu", i);
2056 }
2057 /* Do not output a trailing newline, as this causes \r\n confusion
2058 on some platforms. */
2059 return ferror (f) || fclose (f) != 0;
5464f5a1 2060
81ecdfbb
RW
2061 ;
2062 return 0;
2063}
2064_ACEOF
2065if ac_fn_c_try_run "$LINENO"; then :
2066 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2067else
2068 ac_retval=1
2069fi
2070rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2071 conftest.$ac_objext conftest.beam conftest.$ac_ext
2072rm -f conftest.val
7357c5b6 2073
81ecdfbb
RW
2074 fi
2075 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2076 return $ac_retval
7357c5b6 2077
81ecdfbb 2078} # ac_fn_c_compute_int
7357c5b6 2079
81ecdfbb
RW
2080# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2081# -------------------------------------------
2082# Tests whether TYPE exists after having included INCLUDES, setting cache
2083# variable VAR accordingly.
2084ac_fn_c_check_type ()
2085{
2086 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2088$as_echo_n "checking for $2... " >&6; }
2089if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2090 $as_echo_n "(cached) " >&6
2091else
2092 eval "$3=no"
2093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094/* end confdefs.h. */
2095$4
2096int
2097main ()
2098{
2099if (sizeof ($2))
2100 return 0;
2101 ;
2102 return 0;
2103}
2104_ACEOF
2105if ac_fn_c_try_compile "$LINENO"; then :
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107/* end confdefs.h. */
2108$4
2109int
2110main ()
2111{
2112if (sizeof (($2)))
2113 return 0;
2114 ;
2115 return 0;
2116}
2117_ACEOF
2118if ac_fn_c_try_compile "$LINENO"; then :
5464f5a1 2119
81ecdfbb
RW
2120else
2121 eval "$3=yes"
2122fi
2123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124fi
2125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126fi
2127eval ac_res=\$$3
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2129$as_echo "$ac_res" >&6; }
2130 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
5464f5a1 2131
81ecdfbb 2132} # ac_fn_c_check_type
5464f5a1 2133
81ecdfbb
RW
2134# ac_fn_c_check_decl LINENO SYMBOL VAR
2135# ------------------------------------
2136# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2137ac_fn_c_check_decl ()
2138{
2139 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2141$as_echo_n "checking whether $2 is declared... " >&6; }
2142if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2143 $as_echo_n "(cached) " >&6
2144else
2145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146/* end confdefs.h. */
2147$4
2148int
2149main ()
2150{
2151#ifndef $2
2152 (void) $2;
2153#endif
5464f5a1 2154
81ecdfbb
RW
2155 ;
2156 return 0;
2157}
2158_ACEOF
2159if ac_fn_c_try_compile "$LINENO"; then :
2160 eval "$3=yes"
2161else
2162 eval "$3=no"
5464f5a1 2163fi
81ecdfbb
RW
2164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165fi
2166eval ac_res=\$$3
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2168$as_echo "$ac_res" >&6; }
2169 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
5464f5a1 2170
81ecdfbb
RW
2171} # ac_fn_c_check_decl
2172cat >config.log <<_ACEOF
2173This file contains any messages produced by compilers while
2174running configure, to aid debugging if configure makes a mistake.
5464f5a1 2175
81ecdfbb
RW
2176It was created by $as_me, which was
2177generated by GNU Autoconf 2.64. Invocation command line was
5464f5a1 2178
81ecdfbb 2179 $ $0 $@
5464f5a1 2180
81ecdfbb
RW
2181_ACEOF
2182exec 5>>config.log
2183{
2184cat <<_ASUNAME
2185## --------- ##
2186## Platform. ##
2187## --------- ##
5464f5a1 2188
81ecdfbb
RW
2189hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2190uname -m = `(uname -m) 2>/dev/null || echo unknown`
2191uname -r = `(uname -r) 2>/dev/null || echo unknown`
2192uname -s = `(uname -s) 2>/dev/null || echo unknown`
2193uname -v = `(uname -v) 2>/dev/null || echo unknown`
5464f5a1 2194
81ecdfbb
RW
2195/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2196/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
5464f5a1 2197
81ecdfbb
RW
2198/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2199/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2200/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2201/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2202/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2203/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2204/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
5464f5a1 2205
81ecdfbb 2206_ASUNAME
5464f5a1 2207
5464f5a1
NN
2208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2209for as_dir in $PATH
2210do
2211 IFS=$as_save_IFS
2212 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2213 $as_echo "PATH: $as_dir"
2214 done
2215IFS=$as_save_IFS
5464f5a1 2216
81ecdfbb 2217} >&5
5464f5a1 2218
81ecdfbb 2219cat >&5 <<_ACEOF
5464f5a1 2220
5464f5a1 2221
81ecdfbb
RW
2222## ----------- ##
2223## Core tests. ##
2224## ----------- ##
5464f5a1 2225
81ecdfbb
RW
2226_ACEOF
2227
2228
2229# Keep a trace of the command line.
2230# Strip out --no-create and --no-recursion so they do not pile up.
2231# Strip out --silent because we don't want to record it for future runs.
2232# Also quote any args containing shell meta-characters.
2233# Make two passes to allow for proper duplicate-argument suppression.
2234ac_configure_args=
2235ac_configure_args0=
2236ac_configure_args1=
2237ac_must_keep_next=false
2238for ac_pass in 1 2
2239do
2240 for ac_arg
2241 do
2242 case $ac_arg in
2243 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2244 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2245 | -silent | --silent | --silen | --sile | --sil)
2246 continue ;;
2247 *\'*)
2248 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2249 esac
2250 case $ac_pass in
2251 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2252 2)
2253 as_fn_append ac_configure_args1 " '$ac_arg'"
2254 if test $ac_must_keep_next = true; then
2255 ac_must_keep_next=false # Got value, back to normal.
2256 else
2257 case $ac_arg in
2258 *=* | --config-cache | -C | -disable-* | --disable-* \
2259 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2260 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2261 | -with-* | --with-* | -without-* | --without-* | --x)
2262 case "$ac_configure_args0 " in
2263 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2264 esac
2265 ;;
2266 -* ) ac_must_keep_next=true ;;
2267 esac
2268 fi
2269 as_fn_append ac_configure_args " '$ac_arg'"
2270 ;;
2271 esac
2272 done
2273done
2274{ ac_configure_args0=; unset ac_configure_args0;}
2275{ ac_configure_args1=; unset ac_configure_args1;}
2276
2277# When interrupted or exit'd, cleanup temporary files, and complete
2278# config.log. We remove comments because anyway the quotes in there
2279# would cause problems or look ugly.
2280# WARNING: Use '\'' to represent an apostrophe within the trap.
2281# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2282trap 'exit_status=$?
2283 # Save into config.log some information that might help in debugging.
2284 {
2285 echo
2286
2287 cat <<\_ASBOX
2288## ---------------- ##
2289## Cache variables. ##
2290## ---------------- ##
2291_ASBOX
2292 echo
2293 # The following way of writing the cache mishandles newlines in values,
2294(
2295 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2296 eval ac_val=\$$ac_var
2297 case $ac_val in #(
2298 *${as_nl}*)
2299 case $ac_var in #(
2300 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2301$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2302 esac
2303 case $ac_var in #(
2304 _ | IFS | as_nl) ;; #(
2305 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2306 *) { eval $ac_var=; unset $ac_var;} ;;
2307 esac ;;
2308 esac
2309 done
2310 (set) 2>&1 |
2311 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2312 *${as_nl}ac_space=\ *)
2313 sed -n \
2314 "s/'\''/'\''\\\\'\'''\''/g;
2315 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2316 ;; #(
2317 *)
2318 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2319 ;;
2320 esac |
2321 sort
2322)
2323 echo
2324
2325 cat <<\_ASBOX
2326## ----------------- ##
2327## Output variables. ##
2328## ----------------- ##
2329_ASBOX
2330 echo
2331 for ac_var in $ac_subst_vars
2332 do
2333 eval ac_val=\$$ac_var
2334 case $ac_val in
2335 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2336 esac
2337 $as_echo "$ac_var='\''$ac_val'\''"
2338 done | sort
2339 echo
2340
2341 if test -n "$ac_subst_files"; then
2342 cat <<\_ASBOX
2343## ------------------- ##
2344## File substitutions. ##
2345## ------------------- ##
2346_ASBOX
2347 echo
2348 for ac_var in $ac_subst_files
2349 do
2350 eval ac_val=\$$ac_var
2351 case $ac_val in
2352 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2353 esac
2354 $as_echo "$ac_var='\''$ac_val'\''"
2355 done | sort
2356 echo
2357 fi
2358
2359 if test -s confdefs.h; then
2360 cat <<\_ASBOX
2361## ----------- ##
2362## confdefs.h. ##
2363## ----------- ##
2364_ASBOX
2365 echo
2366 cat confdefs.h
2367 echo
2368 fi
2369 test "$ac_signal" != 0 &&
2370 $as_echo "$as_me: caught signal $ac_signal"
2371 $as_echo "$as_me: exit $exit_status"
2372 } >&5
2373 rm -f core *.core core.conftest.* &&
2374 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2375 exit $exit_status
2376' 0
2377for ac_signal in 1 2 13 15; do
2378 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2379done
2380ac_signal=0
2381
2382# confdefs.h avoids OS command line length limits that DEFS can exceed.
2383rm -f -r conftest* confdefs.h
2384
2385$as_echo "/* confdefs.h */" > confdefs.h
2386
2387# Predefined preprocessor variables.
2388
2389cat >>confdefs.h <<_ACEOF
2390#define PACKAGE_NAME "$PACKAGE_NAME"
2391_ACEOF
2392
2393cat >>confdefs.h <<_ACEOF
2394#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2395_ACEOF
2396
2397cat >>confdefs.h <<_ACEOF
2398#define PACKAGE_VERSION "$PACKAGE_VERSION"
2399_ACEOF
2400
2401cat >>confdefs.h <<_ACEOF
2402#define PACKAGE_STRING "$PACKAGE_STRING"
2403_ACEOF
2404
2405cat >>confdefs.h <<_ACEOF
2406#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2407_ACEOF
2408
2409cat >>confdefs.h <<_ACEOF
2410#define PACKAGE_URL "$PACKAGE_URL"
2411_ACEOF
2412
2413
2414# Let the site file select an alternate cache file if it wants to.
2415# Prefer an explicitly selected file to automatically selected ones.
2416ac_site_file1=NONE
2417ac_site_file2=NONE
2418if test -n "$CONFIG_SITE"; then
2419 ac_site_file1=$CONFIG_SITE
2420elif test "x$prefix" != xNONE; then
2421 ac_site_file1=$prefix/share/config.site
2422 ac_site_file2=$prefix/etc/config.site
2423else
2424 ac_site_file1=$ac_default_prefix/share/config.site
2425 ac_site_file2=$ac_default_prefix/etc/config.site
2426fi
2427for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2428do
2429 test "x$ac_site_file" = xNONE && continue
2430 if test -r "$ac_site_file"; then
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2432$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2433 sed 's/^/| /' "$ac_site_file" >&5
2434 . "$ac_site_file"
2435 fi
2436done
2437
2438if test -r "$cache_file"; then
2439 # Some versions of bash will fail to source /dev/null (special
2440 # files actually), so we avoid doing that.
2441 if test -f "$cache_file"; then
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2443$as_echo "$as_me: loading cache $cache_file" >&6;}
2444 case $cache_file in
2445 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2446 *) . "./$cache_file";;
2447 esac
2448 fi
2449else
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2451$as_echo "$as_me: creating cache $cache_file" >&6;}
2452 >$cache_file
2453fi
2454
2455# Check that the precious variables saved in the cache have kept the same
2456# value.
2457ac_cache_corrupted=false
2458for ac_var in $ac_precious_vars; do
2459 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2460 eval ac_new_set=\$ac_env_${ac_var}_set
2461 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2462 eval ac_new_val=\$ac_env_${ac_var}_value
2463 case $ac_old_set,$ac_new_set in
2464 set,)
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2466$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2467 ac_cache_corrupted=: ;;
2468 ,set)
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2470$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2471 ac_cache_corrupted=: ;;
2472 ,);;
2473 *)
2474 if test "x$ac_old_val" != "x$ac_new_val"; then
2475 # differences in whitespace do not lead to failure.
2476 ac_old_val_w=`echo x $ac_old_val`
2477 ac_new_val_w=`echo x $ac_new_val`
2478 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2480$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2481 ac_cache_corrupted=:
2482 else
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2484$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2485 eval $ac_var=\$ac_old_val
2486 fi
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2488$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2490$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2491 fi;;
2492 esac
2493 # Pass precious variables to config.status.
2494 if test "$ac_new_set" = set; then
2495 case $ac_new_val in
2496 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2497 *) ac_arg=$ac_var=$ac_new_val ;;
2498 esac
2499 case " $ac_configure_args " in
2500 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2501 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2502 esac
5464f5a1
NN
2503 fi
2504done
81ecdfbb
RW
2505if $ac_cache_corrupted; then
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2507$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2509$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2510 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2511fi
2512## -------------------- ##
2513## Main body of script. ##
2514## -------------------- ##
2515
2516ac_ext=c
2517ac_cpp='$CPP $CPPFLAGS'
2518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2520ac_compiler_gnu=$ac_cv_c_compiler_gnu
2521
2522
2523
2524
2525
2526
2527
2528ac_aux_dir=
2529for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2530 for ac_t in install-sh install.sh shtool; do
2531 if test -f "$ac_dir/$ac_t"; then
2532 ac_aux_dir=$ac_dir
2533 ac_install_sh="$ac_aux_dir/$ac_t -c"
2534 break 2
2535 fi
2536 done
5464f5a1 2537done
81ecdfbb
RW
2538if test -z "$ac_aux_dir"; then
2539 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2540fi
2541
2542# These three variables are undocumented and unsupported,
2543# and are intended to be withdrawn in a future Autoconf release.
2544# They can cause serious problems if a builder's source tree is in a directory
2545# whose full name contains unusual characters.
2546ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2547ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2548ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2549
2550
2551# Make sure we can run config.sub.
2552$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2553 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2554
2555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2556$as_echo_n "checking build system type... " >&6; }
2557if test "${ac_cv_build+set}" = set; then :
2558 $as_echo_n "(cached) " >&6
2559else
2560 ac_build_alias=$build_alias
2561test "x$ac_build_alias" = x &&
2562 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2563test "x$ac_build_alias" = x &&
2564 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2565ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2566 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2567
2568fi
2569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2570$as_echo "$ac_cv_build" >&6; }
2571case $ac_cv_build in
2572*-*-*) ;;
2573*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2574esac
2575build=$ac_cv_build
2576ac_save_IFS=$IFS; IFS='-'
2577set x $ac_cv_build
2578shift
2579build_cpu=$1
2580build_vendor=$2
2581shift; shift
2582# Remember, the first character of IFS is used to create $*,
2583# except with old shells:
2584build_os=$*
2585IFS=$ac_save_IFS
2586case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5464f5a1 2587
81ecdfbb
RW
2588
2589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2590$as_echo_n "checking host system type... " >&6; }
2591if test "${ac_cv_host+set}" = set; then :
2592 $as_echo_n "(cached) " >&6
2593else
2594 if test "x$host_alias" = x; then
2595 ac_cv_host=$ac_cv_build
2596else
2597 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2598 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5464f5a1 2599fi
81ecdfbb 2600
5464f5a1 2601fi
81ecdfbb
RW
2602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2603$as_echo "$ac_cv_host" >&6; }
2604case $ac_cv_host in
2605*-*-*) ;;
2606*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2607esac
2608host=$ac_cv_host
2609ac_save_IFS=$IFS; IFS='-'
2610set x $ac_cv_host
2611shift
2612host_cpu=$1
2613host_vendor=$2
2614shift; shift
2615# Remember, the first character of IFS is used to create $*,
2616# except with old shells:
2617host_os=$*
2618IFS=$ac_save_IFS
2619case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2620
2621
2622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2623$as_echo_n "checking target system type... " >&6; }
2624if test "${ac_cv_target+set}" = set; then :
2625 $as_echo_n "(cached) " >&6
5464f5a1 2626else
81ecdfbb
RW
2627 if test "x$target_alias" = x; then
2628 ac_cv_target=$ac_cv_host
2629else
2630 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2631 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5464f5a1
NN
2632fi
2633
2634fi
81ecdfbb
RW
2635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2636$as_echo "$ac_cv_target" >&6; }
2637case $ac_cv_target in
2638*-*-*) ;;
2639*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2640esac
2641target=$ac_cv_target
2642ac_save_IFS=$IFS; IFS='-'
2643set x $ac_cv_target
2644shift
2645target_cpu=$1
2646target_vendor=$2
2647shift; shift
2648# Remember, the first character of IFS is used to create $*,
2649# except with old shells:
2650target_os=$*
2651IFS=$ac_save_IFS
2652case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2653
2654
2655# The aliases save the names the user supplied, while $host etc.
2656# will get canonicalized.
2657test -n "$target_alias" &&
2658 test "$program_prefix$program_suffix$program_transform_name" = \
2659 NONENONEs,x,x, &&
2660 program_prefix=${target_alias}-
2661ac_ext=c
2662ac_cpp='$CPP $CPPFLAGS'
2663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2665ac_compiler_gnu=$ac_cv_c_compiler_gnu
2666if test -n "$ac_tool_prefix"; then
2667 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2668set dummy ${ac_tool_prefix}gcc; ac_word=$2
2669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2670$as_echo_n "checking for $ac_word... " >&6; }
2671if test "${ac_cv_prog_CC+set}" = set; then :
2672 $as_echo_n "(cached) " >&6
5464f5a1 2673else
81ecdfbb
RW
2674 if test -n "$CC"; then
2675 ac_cv_prog_CC="$CC" # Let the user override the test.
5464f5a1
NN
2676else
2677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678for as_dir in $PATH
2679do
2680 IFS=$as_save_IFS
2681 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2682 for ac_exec_ext in '' $ac_executable_extensions; do
2683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2684 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
2686 break 2
2687 fi
2688done
81ecdfbb
RW
2689 done
2690IFS=$as_save_IFS
5464f5a1
NN
2691
2692fi
2693fi
81ecdfbb
RW
2694CC=$ac_cv_prog_CC
2695if test -n "$CC"; then
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2697$as_echo "$CC" >&6; }
5464f5a1 2698else
81ecdfbb
RW
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2700$as_echo "no" >&6; }
5464f5a1
NN
2701fi
2702
81ecdfbb
RW
2703
2704fi
2705if test -z "$ac_cv_prog_CC"; then
2706 ac_ct_CC=$CC
2707 # Extract the first word of "gcc", so it can be a program name with args.
2708set dummy gcc; ac_word=$2
2709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2710$as_echo_n "checking for $ac_word... " >&6; }
2711if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2712 $as_echo_n "(cached) " >&6
2713else
2714 if test -n "$ac_ct_CC"; then
2715 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2716else
2717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718for as_dir in $PATH
2719do
2720 IFS=$as_save_IFS
2721 test -z "$as_dir" && as_dir=.
2722 for ac_exec_ext in '' $ac_executable_extensions; do
2723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2724 ac_cv_prog_ac_ct_CC="gcc"
2725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2726 break 2
2727 fi
2728done
2729 done
2730IFS=$as_save_IFS
2731
2732fi
2733fi
2734ac_ct_CC=$ac_cv_prog_ac_ct_CC
2735if test -n "$ac_ct_CC"; then
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2737$as_echo "$ac_ct_CC" >&6; }
2738else
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2740$as_echo "no" >&6; }
2741fi
2742
2743 if test "x$ac_ct_CC" = x; then
2744 CC=""
2745 else
2746 case $cross_compiling:$ac_tool_warned in
2747yes:)
2748{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2749$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2750ac_tool_warned=yes ;;
2751esac
2752 CC=$ac_ct_CC
2753 fi
2754else
2755 CC="$ac_cv_prog_CC"
2756fi
2757
2758if test -z "$CC"; then
2759 if test -n "$ac_tool_prefix"; then
2760 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2761set dummy ${ac_tool_prefix}cc; ac_word=$2
2762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2763$as_echo_n "checking for $ac_word... " >&6; }
2764if test "${ac_cv_prog_CC+set}" = set; then :
2765 $as_echo_n "(cached) " >&6
2766else
2767 if test -n "$CC"; then
2768 ac_cv_prog_CC="$CC" # Let the user override the test.
2769else
2770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771for as_dir in $PATH
2772do
2773 IFS=$as_save_IFS
2774 test -z "$as_dir" && as_dir=.
2775 for ac_exec_ext in '' $ac_executable_extensions; do
2776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2777 ac_cv_prog_CC="${ac_tool_prefix}cc"
2778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2779 break 2
2780 fi
2781done
2782 done
2783IFS=$as_save_IFS
2784
5464f5a1 2785fi
81ecdfbb
RW
2786fi
2787CC=$ac_cv_prog_CC
2788if test -n "$CC"; then
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2790$as_echo "$CC" >&6; }
2791else
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2793$as_echo "no" >&6; }
2794fi
2795
5464f5a1 2796
81ecdfbb 2797 fi
5464f5a1
NN
2798fi
2799if test -z "$CC"; then
2800 # Extract the first word of "cc", so it can be a program name with args.
2801set dummy cc; ac_word=$2
81ecdfbb
RW
2802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2803$as_echo_n "checking for $ac_word... " >&6; }
2804if test "${ac_cv_prog_CC+set}" = set; then :
2805 $as_echo_n "(cached) " >&6
5464f5a1
NN
2806else
2807 if test -n "$CC"; then
2808 ac_cv_prog_CC="$CC" # Let the user override the test.
2809else
2810 ac_prog_rejected=no
2811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812for as_dir in $PATH
2813do
2814 IFS=$as_save_IFS
2815 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2816 for ac_exec_ext in '' $ac_executable_extensions; do
2817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464f5a1
NN
2818 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2819 ac_prog_rejected=yes
2820 continue
2821 fi
2822 ac_cv_prog_CC="cc"
81ecdfbb 2823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
2824 break 2
2825 fi
2826done
81ecdfbb
RW
2827 done
2828IFS=$as_save_IFS
5464f5a1
NN
2829
2830if test $ac_prog_rejected = yes; then
2831 # We found a bogon in the path, so make sure we never use it.
2832 set dummy $ac_cv_prog_CC
2833 shift
2834 if test $# != 0; then
2835 # We chose a different compiler from the bogus one.
2836 # However, it has the same basename, so the bogon will be chosen
2837 # first if we set CC to just the basename; use the full file name.
2838 shift
2839 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2840 fi
2841fi
2842fi
2843fi
2844CC=$ac_cv_prog_CC
2845if test -n "$CC"; then
81ecdfbb
RW
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2847$as_echo "$CC" >&6; }
5464f5a1 2848else
81ecdfbb
RW
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2850$as_echo "no" >&6; }
5464f5a1
NN
2851fi
2852
81ecdfbb 2853
5464f5a1
NN
2854fi
2855if test -z "$CC"; then
2856 if test -n "$ac_tool_prefix"; then
81ecdfbb 2857 for ac_prog in cl.exe
5464f5a1
NN
2858 do
2859 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2860set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2862$as_echo_n "checking for $ac_word... " >&6; }
2863if test "${ac_cv_prog_CC+set}" = set; then :
2864 $as_echo_n "(cached) " >&6
5464f5a1
NN
2865else
2866 if test -n "$CC"; then
2867 ac_cv_prog_CC="$CC" # Let the user override the test.
2868else
2869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870for as_dir in $PATH
2871do
2872 IFS=$as_save_IFS
2873 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2874 for ac_exec_ext in '' $ac_executable_extensions; do
2875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464f5a1 2876 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
2878 break 2
2879 fi
2880done
81ecdfbb
RW
2881 done
2882IFS=$as_save_IFS
5464f5a1
NN
2883
2884fi
2885fi
2886CC=$ac_cv_prog_CC
2887if test -n "$CC"; then
81ecdfbb
RW
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2889$as_echo "$CC" >&6; }
5464f5a1 2890else
81ecdfbb
RW
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2892$as_echo "no" >&6; }
5464f5a1
NN
2893fi
2894
81ecdfbb 2895
5464f5a1
NN
2896 test -n "$CC" && break
2897 done
2898fi
2899if test -z "$CC"; then
2900 ac_ct_CC=$CC
81ecdfbb 2901 for ac_prog in cl.exe
5464f5a1
NN
2902do
2903 # Extract the first word of "$ac_prog", so it can be a program name with args.
2904set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2906$as_echo_n "checking for $ac_word... " >&6; }
2907if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2908 $as_echo_n "(cached) " >&6
5464f5a1
NN
2909else
2910 if test -n "$ac_ct_CC"; then
2911 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2912else
2913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914for as_dir in $PATH
2915do
2916 IFS=$as_save_IFS
2917 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464f5a1 2920 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
2922 break 2
2923 fi
2924done
81ecdfbb
RW
2925 done
2926IFS=$as_save_IFS
5464f5a1
NN
2927
2928fi
2929fi
2930ac_ct_CC=$ac_cv_prog_ac_ct_CC
2931if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2933$as_echo "$ac_ct_CC" >&6; }
5464f5a1 2934else
81ecdfbb
RW
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936$as_echo "no" >&6; }
5464f5a1
NN
2937fi
2938
81ecdfbb 2939
5464f5a1
NN
2940 test -n "$ac_ct_CC" && break
2941done
2942
81ecdfbb
RW
2943 if test "x$ac_ct_CC" = x; then
2944 CC=""
2945 else
2946 case $cross_compiling:$ac_tool_warned in
2947yes:)
2948{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2949$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2950ac_tool_warned=yes ;;
2951esac
2952 CC=$ac_ct_CC
2953 fi
5464f5a1
NN
2954fi
2955
2956fi
2957
2958
81ecdfbb
RW
2959test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2960$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2961as_fn_error "no acceptable C compiler found in \$PATH
2962See \`config.log' for more details." "$LINENO" 5; }
5464f5a1
NN
2963
2964# Provide some information about the compiler.
81ecdfbb
RW
2965$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2966set X $ac_compile
2967ac_compiler=$2
2968for ac_option in --version -v -V -qversion; do
2969 { { ac_try="$ac_compiler $ac_option >&5"
2970case "(($ac_try" in
2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972 *) ac_try_echo=$ac_try;;
2973esac
2974eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2975$as_echo "$ac_try_echo"; } >&5
2976 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5464f5a1 2977 ac_status=$?
81ecdfbb
RW
2978 if test -s conftest.err; then
2979 sed '10a\
2980... rest of stderr output deleted ...
2981 10q' conftest.err >conftest.er1
2982 cat conftest.er1 >&5
2983 rm -f conftest.er1 conftest.err
2984 fi
2985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2986 test $ac_status = 0; }
2987done
5464f5a1 2988
81ecdfbb 2989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464f5a1
NN
2990/* end confdefs.h. */
2991
2992int
2993main ()
2994{
2995
2996 ;
2997 return 0;
2998}
2999_ACEOF
3000ac_clean_files_save=$ac_clean_files
81ecdfbb 3001ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
5464f5a1
NN
3002# Try to create an executable without -o first, disregard a.out.
3003# It will help us diagnose broken compilers, and finding out an intuition
3004# of exeext.
81ecdfbb
RW
3005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3006$as_echo_n "checking for C compiler default output file name... " >&6; }
3007ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3008
3009# The possible output files:
3010ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3011
3012ac_rmfiles=
3013for ac_file in $ac_files
3014do
3015 case $ac_file in
3016 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3017 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3018 esac
3019done
3020rm -f $ac_rmfiles
3021
3022if { { ac_try="$ac_link_default"
3023case "(($ac_try" in
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3026esac
3027eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3028$as_echo "$ac_try_echo"; } >&5
3029 (eval "$ac_link_default") 2>&5
3030 ac_status=$?
3031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3032 test $ac_status = 0; }; then :
3033 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3034# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3035# in a Makefile. We should not override ac_cv_exeext if it was cached,
3036# so that the user can short-circuit this test for compilers unknown to
3037# Autoconf.
3038for ac_file in $ac_files ''
5464f5a1
NN
3039do
3040 test -f "$ac_file" || continue
3041 case $ac_file in
81ecdfbb 3042 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5464f5a1
NN
3043 ;;
3044 [ab].out )
3045 # We found the default executable, but exeext='' is most
3046 # certainly right.
3047 break;;
3048 *.* )
81ecdfbb
RW
3049 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3050 then :; else
3051 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3052 fi
3053 # We set ac_cv_exeext here because the later test for it is not
3054 # safe: cross compilers may not add the suffix if given an `-o'
3055 # argument, so we may need to know it at that point already.
3056 # Even if this section looks crufty: it has the advantage of
3057 # actually working.
5464f5a1
NN
3058 break;;
3059 * )
3060 break;;
3061 esac
3062done
81ecdfbb
RW
3063test "$ac_cv_exeext" = no && ac_cv_exeext=
3064
5464f5a1 3065else
81ecdfbb
RW
3066 ac_file=''
3067fi
3068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3069$as_echo "$ac_file" >&6; }
3070if test -z "$ac_file"; then :
3071 $as_echo "$as_me: failed program was:" >&5
5464f5a1
NN
3072sed 's/^/| /' conftest.$ac_ext >&5
3073
81ecdfbb
RW
3074{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3075$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3076{ as_fn_set_status 77
3077as_fn_error "C compiler cannot create executables
3078See \`config.log' for more details." "$LINENO" 5; }; }
5464f5a1 3079fi
5464f5a1 3080ac_exeext=$ac_cv_exeext
5464f5a1 3081
81ecdfbb 3082# Check that the compiler produces executables we can run. If not, either
5464f5a1 3083# the compiler is broken, or we cross compile.
81ecdfbb
RW
3084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3085$as_echo_n "checking whether the C compiler works... " >&6; }
5464f5a1
NN
3086# If not cross compiling, check that we can run a simple program.
3087if test "$cross_compiling" != yes; then
3088 if { ac_try='./$ac_file'
81ecdfbb
RW
3089 { { case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092esac
3093eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3094$as_echo "$ac_try_echo"; } >&5
3095 (eval "$ac_try") 2>&5
5464f5a1 3096 ac_status=$?
81ecdfbb
RW
3097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3098 test $ac_status = 0; }; }; then
5464f5a1
NN
3099 cross_compiling=no
3100 else
3101 if test "$cross_compiling" = maybe; then
3102 cross_compiling=yes
3103 else
81ecdfbb
RW
3104 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3105$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3106as_fn_error "cannot run C compiled programs.
5464f5a1 3107If you meant to cross compile, use \`--host'.
81ecdfbb 3108See \`config.log' for more details." "$LINENO" 5; }
5464f5a1
NN
3109 fi
3110 fi
3111fi
81ecdfbb
RW
3112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3113$as_echo "yes" >&6; }
5464f5a1 3114
81ecdfbb 3115rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
5464f5a1 3116ac_clean_files=$ac_clean_files_save
81ecdfbb 3117# Check that the compiler produces executables we can run. If not, either
5464f5a1 3118# the compiler is broken, or we cross compile.
81ecdfbb
RW
3119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3120$as_echo_n "checking whether we are cross compiling... " >&6; }
3121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3122$as_echo "$cross_compiling" >&6; }
3123
3124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3125$as_echo_n "checking for suffix of executables... " >&6; }
3126if { { ac_try="$ac_link"
3127case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130esac
3131eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3132$as_echo "$ac_try_echo"; } >&5
3133 (eval "$ac_link") 2>&5
5464f5a1 3134 ac_status=$?
81ecdfbb
RW
3135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3136 test $ac_status = 0; }; then :
5464f5a1
NN
3137 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3138# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3139# work properly (i.e., refer to `conftest.exe'), while it won't with
3140# `rm'.
3141for ac_file in conftest.exe conftest conftest.*; do
3142 test -f "$ac_file" || continue
3143 case $ac_file in
81ecdfbb 3144 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5464f5a1 3145 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5464f5a1
NN
3146 break;;
3147 * ) break;;
3148 esac
3149done
3150else
81ecdfbb
RW
3151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3152$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3153as_fn_error "cannot compute suffix of executables: cannot compile and link
3154See \`config.log' for more details." "$LINENO" 5; }
5464f5a1 3155fi
5464f5a1 3156rm -f conftest$ac_cv_exeext
81ecdfbb
RW
3157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3158$as_echo "$ac_cv_exeext" >&6; }
5464f5a1
NN
3159
3160rm -f conftest.$ac_ext
3161EXEEXT=$ac_cv_exeext
3162ac_exeext=$EXEEXT
81ecdfbb
RW
3163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3164$as_echo_n "checking for suffix of object files... " >&6; }
3165if test "${ac_cv_objext+set}" = set; then :
3166 $as_echo_n "(cached) " >&6
5464f5a1 3167else
81ecdfbb 3168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464f5a1
NN
3169/* end confdefs.h. */
3170
3171int
3172main ()
3173{
3174
3175 ;
3176 return 0;
3177}
3178_ACEOF
3179rm -f conftest.o conftest.obj
81ecdfbb
RW
3180if { { ac_try="$ac_compile"
3181case "(($ac_try" in
3182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183 *) ac_try_echo=$ac_try;;
3184esac
3185eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3186$as_echo "$ac_try_echo"; } >&5
3187 (eval "$ac_compile") 2>&5
3188 ac_status=$?
3189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3190 test $ac_status = 0; }; then :
3191 for ac_file in conftest.o conftest.obj conftest.*; do
3192 test -f "$ac_file" || continue;
5464f5a1 3193 case $ac_file in
81ecdfbb 3194 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5464f5a1
NN
3195 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3196 break;;
3197 esac
3198done
3199else
81ecdfbb 3200 $as_echo "$as_me: failed program was:" >&5
5464f5a1
NN
3201sed 's/^/| /' conftest.$ac_ext >&5
3202
81ecdfbb
RW
3203{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3204$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3205as_fn_error "cannot compute suffix of object files: cannot compile
3206See \`config.log' for more details." "$LINENO" 5; }
5464f5a1 3207fi
5464f5a1
NN
3208rm -f conftest.$ac_cv_objext conftest.$ac_ext
3209fi
81ecdfbb
RW
3210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3211$as_echo "$ac_cv_objext" >&6; }
5464f5a1
NN
3212OBJEXT=$ac_cv_objext
3213ac_objext=$OBJEXT
81ecdfbb
RW
3214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3215$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3216if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3217 $as_echo_n "(cached) " >&6
5464f5a1 3218else
81ecdfbb 3219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464f5a1
NN
3220/* end confdefs.h. */
3221
3222int
3223main ()
3224{
3225#ifndef __GNUC__
3226 choke me
3227#endif
3228
3229 ;
3230 return 0;
3231}
3232_ACEOF
81ecdfbb 3233if ac_fn_c_try_compile "$LINENO"; then :
5464f5a1
NN
3234 ac_compiler_gnu=yes
3235else
81ecdfbb 3236 ac_compiler_gnu=no
5464f5a1 3237fi
81ecdfbb 3238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5464f5a1
NN
3239ac_cv_c_compiler_gnu=$ac_compiler_gnu
3240
3241fi
81ecdfbb
RW
3242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3243$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3244if test $ac_compiler_gnu = yes; then
3245 GCC=yes
3246else
3247 GCC=
3248fi
5464f5a1
NN
3249ac_test_CFLAGS=${CFLAGS+set}
3250ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3252$as_echo_n "checking whether $CC accepts -g... " >&6; }
3253if test "${ac_cv_prog_cc_g+set}" = set; then :
3254 $as_echo_n "(cached) " >&6
3255else
3256 ac_save_c_werror_flag=$ac_c_werror_flag
3257 ac_c_werror_flag=yes
3258 ac_cv_prog_cc_g=no
3259 CFLAGS="-g"
3260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464f5a1
NN
3261/* end confdefs.h. */
3262
3263int
3264main ()
3265{
3266
3267 ;
3268 return 0;
3269}
3270_ACEOF
81ecdfbb 3271if ac_fn_c_try_compile "$LINENO"; then :
5464f5a1
NN
3272 ac_cv_prog_cc_g=yes
3273else
81ecdfbb
RW
3274 CFLAGS=""
3275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3276/* end confdefs.h. */
5464f5a1 3277
81ecdfbb
RW
3278int
3279main ()
3280{
3281
3282 ;
3283 return 0;
3284}
3285_ACEOF
3286if ac_fn_c_try_compile "$LINENO"; then :
3287
3288else
3289 ac_c_werror_flag=$ac_save_c_werror_flag
3290 CFLAGS="-g"
3291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3292/* end confdefs.h. */
3293
3294int
3295main ()
3296{
3297
3298 ;
3299 return 0;
3300}
3301_ACEOF
3302if ac_fn_c_try_compile "$LINENO"; then :
3303 ac_cv_prog_cc_g=yes
3304fi
3305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5464f5a1 3306fi
81ecdfbb 3307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5464f5a1 3308fi
81ecdfbb
RW
3309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3310 ac_c_werror_flag=$ac_save_c_werror_flag
3311fi
3312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3313$as_echo "$ac_cv_prog_cc_g" >&6; }
5464f5a1
NN
3314if test "$ac_test_CFLAGS" = set; then
3315 CFLAGS=$ac_save_CFLAGS
3316elif test $ac_cv_prog_cc_g = yes; then
3317 if test "$GCC" = yes; then
3318 CFLAGS="-g -O2"
3319 else
3320 CFLAGS="-g"
3321 fi
3322else
3323 if test "$GCC" = yes; then
3324 CFLAGS="-O2"
3325 else
3326 CFLAGS=
3327 fi
3328fi
81ecdfbb
RW
3329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3330$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3331if test "${ac_cv_prog_cc_c89+set}" = set; then :
3332 $as_echo_n "(cached) " >&6
5464f5a1 3333else
81ecdfbb 3334 ac_cv_prog_cc_c89=no
5464f5a1 3335ac_save_CC=$CC
81ecdfbb 3336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464f5a1
NN
3337/* end confdefs.h. */
3338#include <stdarg.h>
3339#include <stdio.h>
3340#include <sys/types.h>
3341#include <sys/stat.h>
3342/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3343struct buf { int x; };
3344FILE * (*rcsopen) (struct buf *, struct stat *, int);
3345static char *e (p, i)
3346 char **p;
3347 int i;
3348{
3349 return p[i];
3350}
3351static char *f (char * (*g) (char **, int), char **p, ...)
3352{
3353 char *s;
3354 va_list v;
3355 va_start (v,p);
3356 s = g (p, va_arg (v,int));
3357 va_end (v);
3358 return s;
3359}
3360
3361/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3362 function prototypes and stuff, but not '\xHH' hex character constants.
3363 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3364 as 'x'. The following induces an error, until -std is added to get
5464f5a1
NN
3365 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3366 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3367 that's true only with -std. */
5464f5a1
NN
3368int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3369
81ecdfbb
RW
3370/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3371 inside strings and character constants. */
3372#define FOO(x) 'x'
3373int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3374
5464f5a1
NN
3375int test (int i, double x);
3376struct s1 {int (*f) (int a);};
3377struct s2 {int (*f) (double a);};
3378int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3379int argc;
3380char **argv;
3381int
3382main ()
3383{
3384return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3385 ;
3386 return 0;
3387}
3388_ACEOF
81ecdfbb
RW
3389for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3390 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5464f5a1
NN
3391do
3392 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3393 if ac_fn_c_try_compile "$LINENO"; then :
3394 ac_cv_prog_cc_c89=$ac_arg
5464f5a1 3395fi
81ecdfbb
RW
3396rm -f core conftest.err conftest.$ac_objext
3397 test "x$ac_cv_prog_cc_c89" != "xno" && break
5464f5a1 3398done
81ecdfbb 3399rm -f conftest.$ac_ext
5464f5a1
NN
3400CC=$ac_save_CC
3401
3402fi
81ecdfbb
RW
3403# AC_CACHE_VAL
3404case "x$ac_cv_prog_cc_c89" in
3405 x)
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3407$as_echo "none needed" >&6; } ;;
3408 xno)
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3410$as_echo "unsupported" >&6; } ;;
5464f5a1 3411 *)
81ecdfbb
RW
3412 CC="$CC $ac_cv_prog_cc_c89"
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3414$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5464f5a1 3415esac
81ecdfbb 3416if test "x$ac_cv_prog_cc_c89" != xno; then :
5464f5a1
NN
3417
3418fi
5464f5a1 3419
5464f5a1
NN
3420ac_ext=c
3421ac_cpp='$CPP $CPPFLAGS'
3422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3424ac_compiler_gnu=$ac_cv_c_compiler_gnu
3425
3426
81ecdfbb
RW
3427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3428$as_echo_n "checking for library containing strerror... " >&6; }
3429if test "${ac_cv_search_strerror+set}" = set; then :
3430 $as_echo_n "(cached) " >&6
5464f5a1 3431else
f5385ebf 3432 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464f5a1
NN
3434/* end confdefs.h. */
3435
81ecdfbb
RW
3436/* Override any GCC internal prototype to avoid an error.
3437 Use char because int might match the return type of a GCC
3438 builtin and then its argument prototype would still apply. */
5464f5a1
NN
3439#ifdef __cplusplus
3440extern "C"
3441#endif
5464f5a1
NN
3442char strerror ();
3443int
3444main ()
3445{
81ecdfbb 3446return strerror ();
5464f5a1
NN
3447 ;
3448 return 0;
3449}
3450_ACEOF
81ecdfbb
RW
3451for ac_lib in '' cposix; do
3452 if test -z "$ac_lib"; then
3453 ac_res="none required"
3454 else
3455 ac_res=-l$ac_lib
f5385ebf 3456 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3457 fi
3458 if ac_fn_c_try_link "$LINENO"; then :
3459 ac_cv_search_strerror=$ac_res
3460fi
3461rm -f core conftest.err conftest.$ac_objext \
3462 conftest$ac_exeext
3463 if test "${ac_cv_search_strerror+set}" = set; then :
3464 break
3465fi
3466done
3467if test "${ac_cv_search_strerror+set}" = set; then :
f5385ebf 3468
f5385ebf 3469else
81ecdfbb 3470 ac_cv_search_strerror=no
5464f5a1 3471fi
81ecdfbb 3472rm conftest.$ac_ext
f5385ebf
AM
3473LIBS=$ac_func_search_save_LIBS
3474fi
81ecdfbb
RW
3475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3476$as_echo "$ac_cv_search_strerror" >&6; }
3477ac_res=$ac_cv_search_strerror
3478if test "$ac_res" != no; then :
3479 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5464f5a1 3480
f5385ebf 3481fi
5464f5a1
NN
3482
3483
81ecdfbb
RW
3484am__api_version='1.11'
3485
5464f5a1
NN
3486# Find a good install program. We prefer a C program (faster),
3487# so one script is as good as another. But avoid the broken or
3488# incompatible versions:
3489# SysV /etc/install, /usr/sbin/install
3490# SunOS /usr/etc/install
3491# IRIX /sbin/install
3492# AIX /bin/install
3493# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
3494# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3495# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3496# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5464f5a1 3497# OS/2's system install, which has a completely different semantic
252b5132 3498# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3499# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3501$as_echo_n "checking for a BSD-compatible install... " >&6; }
252b5132 3502if test -z "$INSTALL"; then
81ecdfbb
RW
3503if test "${ac_cv_path_install+set}" = set; then :
3504 $as_echo_n "(cached) " >&6
252b5132 3505else
5464f5a1
NN
3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507for as_dir in $PATH
3508do
3509 IFS=$as_save_IFS
3510 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3511 # Account for people who put trailing slashes in PATH elements.
3512case $as_dir/ in #((
3513 ./ | .// | /[cC]/* | \
5464f5a1 3514 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3515 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5464f5a1
NN
3516 /usr/ucb/* ) ;;
3517 *)
3518 # OSF1 and SCO ODT 3.0 have their own names for install.
3519 # Don't use installbsd from OSF since it installs stuff as root
3520 # by default.
3521 for ac_prog in ginstall scoinst install; do
3522 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3523 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
252b5132 3524 if test $ac_prog = install &&
5464f5a1 3525 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
3526 # AIX install. It has an incompatible calling convention.
3527 :
5464f5a1
NN
3528 elif test $ac_prog = install &&
3529 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3530 # program-specific install script used by HP pwplus--don't use.
3531 :
252b5132 3532 else
58c85be7
RW
3533 rm -rf conftest.one conftest.two conftest.dir
3534 echo one > conftest.one
3535 echo two > conftest.two
3536 mkdir conftest.dir
3537 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3538 test -s conftest.one && test -s conftest.two &&
3539 test -s conftest.dir/conftest.one &&
3540 test -s conftest.dir/conftest.two
3541 then
3542 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3543 break 3
3544 fi
252b5132
RH
3545 fi
3546 fi
3547 done
5464f5a1
NN
3548 done
3549 ;;
3550esac
81ecdfbb
RW
3551
3552 done
3553IFS=$as_save_IFS
5464f5a1 3554
58c85be7 3555rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3556
3557fi
3558 if test "${ac_cv_path_install+set}" = set; then
5464f5a1 3559 INSTALL=$ac_cv_path_install
252b5132 3560 else
58c85be7
RW
3561 # As a last resort, use the slow shell script. Don't cache a
3562 # value for INSTALL within a source directory, because that will
252b5132 3563 # break other packages using the cache if that directory is
58c85be7 3564 # removed, or if the value is a relative name.
5464f5a1 3565 INSTALL=$ac_install_sh
252b5132
RH
3566 fi
3567fi
81ecdfbb
RW
3568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3569$as_echo "$INSTALL" >&6; }
252b5132
RH
3570
3571# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3572# It thinks the first close brace ends the variable substitution.
3573test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3574
5464f5a1 3575test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3576
3577test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3578
81ecdfbb
RW
3579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3580$as_echo_n "checking whether build environment is sane... " >&6; }
252b5132
RH
3581# Just in case
3582sleep 1
f5385ebf 3583echo timestamp > conftest.file
81ecdfbb
RW
3584# Reject unsafe characters in $srcdir or the absolute working directory
3585# name. Accept space and tab only in the latter.
3586am_lf='
3587'
3588case `pwd` in
3589 *[\\\"\#\$\&\'\`$am_lf]*)
3590 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3591esac
3592case $srcdir in
3593 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3594 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3595esac
3596
252b5132
RH
3597# Do `set' in a subshell so we don't clobber the current shell's
3598# arguments. Must try -L first in case configure is actually a
3599# symlink; some systems play weird games with the mod time of symlinks
3600# (eg FreeBSD returns the mod time of the symlink's containing
3601# directory).
3602if (
81ecdfbb 3603 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
252b5132
RH
3604 if test "$*" = "X"; then
3605 # -L didn't work.
81ecdfbb 3606 set X `ls -t "$srcdir/configure" conftest.file`
252b5132 3607 fi
f5385ebf
AM
3608 rm -f conftest.file
3609 if test "$*" != "X $srcdir/configure conftest.file" \
3610 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
3611
3612 # If neither matched, then we have a broken ls. This can happen
3613 # if, for instance, CONFIG_SHELL is bash and it inherits a
3614 # broken ls alias from the environment. This has actually
3615 # happened. Such a system could not be considered "sane".
81ecdfbb
RW
3616 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3617alias in your environment" "$LINENO" 5
252b5132
RH
3618 fi
3619
f5385ebf 3620 test "$2" = conftest.file
252b5132
RH
3621 )
3622then
3623 # Ok.
3624 :
3625else
81ecdfbb
RW
3626 as_fn_error "newly created file is older than distributed files!
3627Check your system clock" "$LINENO" 5
252b5132 3628fi
81ecdfbb
RW
3629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3630$as_echo "yes" >&6; }
252b5132 3631test "$program_prefix" != NONE &&
81ecdfbb 3632 program_transform_name="s&^&$program_prefix&;$program_transform_name"
252b5132
RH
3633# Use a double $ so make ignores it.
3634test "$program_suffix" != NONE &&
81ecdfbb
RW
3635 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3636# Double any \ or $.
5464f5a1 3637# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3638ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3639program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5464f5a1 3640
f5385ebf
AM
3641# expand $ac_aux_dir to an absolute path
3642am_aux_dir=`cd $ac_aux_dir && pwd`
3643
81ecdfbb
RW
3644if test x"${MISSING+set}" != xset; then
3645 case $am_aux_dir in
3646 *\ * | *\ *)
3647 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3648 *)
3649 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3650 esac
3651fi
f5385ebf
AM
3652# Use eval to expand $SHELL
3653if eval "$MISSING --run true"; then
3654 am_missing_run="$MISSING --run "
3655else
3656 am_missing_run=
81ecdfbb
RW
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3658$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3659fi
3660
3661if test x"${install_sh}" != xset; then
3662 case $am_aux_dir in
3663 *\ * | *\ *)
3664 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3665 *)
3666 install_sh="\${SHELL} $am_aux_dir/install-sh"
3667 esac
3668fi
3669
3670# Installed binaries are usually stripped using `strip' when the user
3671# run `make install-strip'. However `strip' might not be the right
3672# tool to use in cross-compilation environments, therefore Automake
3673# will honor the `STRIP' environment variable to overrule this program.
3674if test "$cross_compiling" != no; then
3675 if test -n "$ac_tool_prefix"; then
3676 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3677set dummy ${ac_tool_prefix}strip; ac_word=$2
3678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3679$as_echo_n "checking for $ac_word... " >&6; }
3680if test "${ac_cv_prog_STRIP+set}" = set; then :
3681 $as_echo_n "(cached) " >&6
3682else
3683 if test -n "$STRIP"; then
3684 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3685else
3686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3687for as_dir in $PATH
3688do
3689 IFS=$as_save_IFS
3690 test -z "$as_dir" && as_dir=.
3691 for ac_exec_ext in '' $ac_executable_extensions; do
3692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3693 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3695 break 2
3696 fi
3697done
3698 done
3699IFS=$as_save_IFS
3700
3701fi
3702fi
3703STRIP=$ac_cv_prog_STRIP
3704if test -n "$STRIP"; then
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3706$as_echo "$STRIP" >&6; }
3707else
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3709$as_echo "no" >&6; }
3710fi
3711
3712
3713fi
3714if test -z "$ac_cv_prog_STRIP"; then
3715 ac_ct_STRIP=$STRIP
3716 # Extract the first word of "strip", so it can be a program name with args.
3717set dummy strip; ac_word=$2
3718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3719$as_echo_n "checking for $ac_word... " >&6; }
3720if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3721 $as_echo_n "(cached) " >&6
3722else
3723 if test -n "$ac_ct_STRIP"; then
3724 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3725else
3726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727for as_dir in $PATH
3728do
3729 IFS=$as_save_IFS
3730 test -z "$as_dir" && as_dir=.
3731 for ac_exec_ext in '' $ac_executable_extensions; do
3732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3733 ac_cv_prog_ac_ct_STRIP="strip"
3734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3735 break 2
3736 fi
3737done
3738 done
3739IFS=$as_save_IFS
3740
3741fi
3742fi
3743ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3744if test -n "$ac_ct_STRIP"; then
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3746$as_echo "$ac_ct_STRIP" >&6; }
3747else
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3749$as_echo "no" >&6; }
3750fi
3751
3752 if test "x$ac_ct_STRIP" = x; then
3753 STRIP=":"
3754 else
3755 case $cross_compiling:$ac_tool_warned in
3756yes:)
3757{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3758$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3759ac_tool_warned=yes ;;
3760esac
3761 STRIP=$ac_ct_STRIP
3762 fi
3763else
3764 STRIP="$ac_cv_prog_STRIP"
3765fi
3766
3767fi
3768INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3769
3770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3771$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3772if test -z "$MKDIR_P"; then
3773 if test "${ac_cv_path_mkdir+set}" = set; then :
3774 $as_echo_n "(cached) " >&6
3775else
3776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3778do
3779 IFS=$as_save_IFS
3780 test -z "$as_dir" && as_dir=.
3781 for ac_prog in mkdir gmkdir; do
3782 for ac_exec_ext in '' $ac_executable_extensions; do
3783 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3784 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3785 'mkdir (GNU coreutils) '* | \
3786 'mkdir (coreutils) '* | \
3787 'mkdir (fileutils) '4.1*)
3788 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3789 break 3;;
3790 esac
3791 done
3792 done
f5385ebf 3793 done
81ecdfbb
RW
3794IFS=$as_save_IFS
3795
3796fi
3797
3798 if test "${ac_cv_path_mkdir+set}" = set; then
3799 MKDIR_P="$ac_cv_path_mkdir -p"
f5385ebf 3800 else
81ecdfbb
RW
3801 # As a last resort, use the slow shell script. Don't cache a
3802 # value for MKDIR_P within a source directory, because that will
3803 # break other packages using the cache if that directory is
3804 # removed, or if the value is a relative name.
3805 test -d ./--version && rmdir ./--version
3806 MKDIR_P="$ac_install_sh -d"
f5385ebf
AM
3807 fi
3808fi
81ecdfbb
RW
3809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3810$as_echo "$MKDIR_P" >&6; }
3811
3812mkdir_p="$MKDIR_P"
3813case $mkdir_p in
3814 [\\/$]* | ?:[\\/]*) ;;
3815 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3816esac
f5385ebf
AM
3817
3818for ac_prog in gawk mawk nawk awk
3819do
3820 # Extract the first word of "$ac_prog", so it can be a program name with args.
3821set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3823$as_echo_n "checking for $ac_word... " >&6; }
3824if test "${ac_cv_prog_AWK+set}" = set; then :
3825 $as_echo_n "(cached) " >&6
f5385ebf
AM
3826else
3827 if test -n "$AWK"; then
3828 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3829else
3830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3831for as_dir in $PATH
3832do
3833 IFS=$as_save_IFS
3834 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3835 for ac_exec_ext in '' $ac_executable_extensions; do
3836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f5385ebf 3837 ac_cv_prog_AWK="$ac_prog"
81ecdfbb 3838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f5385ebf
AM
3839 break 2
3840 fi
3841done
81ecdfbb
RW
3842 done
3843IFS=$as_save_IFS
f5385ebf
AM
3844
3845fi
3846fi
3847AWK=$ac_cv_prog_AWK
3848if test -n "$AWK"; then
81ecdfbb
RW
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3850$as_echo "$AWK" >&6; }
f5385ebf 3851else
81ecdfbb
RW
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3853$as_echo "no" >&6; }
f5385ebf
AM
3854fi
3855
81ecdfbb 3856
f5385ebf
AM
3857 test -n "$AWK" && break
3858done
3859
81ecdfbb
RW
3860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3861$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3862set x ${MAKE-make}
3863ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3864if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3865 $as_echo_n "(cached) " >&6
5464f5a1
NN
3866else
3867 cat >conftest.make <<\_ACEOF
81ecdfbb 3868SHELL = /bin/sh
252b5132 3869all:
81ecdfbb 3870 @echo '@@@%%%=$(MAKE)=@@@%%%'
5464f5a1 3871_ACEOF
252b5132 3872# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
81ecdfbb
RW
3873case `${MAKE-make} -f conftest.make 2>/dev/null` in
3874 *@@@%%%=?*=@@@%%%*)
3875 eval ac_cv_prog_make_${ac_make}_set=yes;;
3876 *)
3877 eval ac_cv_prog_make_${ac_make}_set=no;;
3878esac
5464f5a1 3879rm -f conftest.make
252b5132 3880fi
81ecdfbb
RW
3881if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3883$as_echo "yes" >&6; }
252b5132
RH
3884 SET_MAKE=
3885else
81ecdfbb
RW
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3887$as_echo "no" >&6; }
252b5132
RH
3888 SET_MAKE="MAKE=${MAKE-make}"
3889fi
3890
f5385ebf
AM
3891rm -rf .tst 2>/dev/null
3892mkdir .tst 2>/dev/null
3893if test -d .tst; then
3894 am__leading_dot=.
3895else
3896 am__leading_dot=_
3897fi
3898rmdir .tst 2>/dev/null
3899
3900DEPDIR="${am__leading_dot}deps"
3901
81ecdfbb 3902ac_config_commands="$ac_config_commands depfiles"
f5385ebf
AM
3903
3904
3905am_make=${MAKE-make}
3906cat > confinc << 'END'
3907am__doit:
81ecdfbb 3908 @echo this is the am__doit target
f5385ebf
AM
3909.PHONY: am__doit
3910END
3911# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
3912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3913$as_echo_n "checking for style of include used by $am_make... " >&6; }
f5385ebf
AM
3914am__include="#"
3915am__quote=
3916_am_result=none
3917# First try GNU make style include.
3918echo "include confinc" > confmf
81ecdfbb
RW
3919# Ignore all kinds of additional output from `make'.
3920case `$am_make -s -f confmf 2> /dev/null` in #(
3921*the\ am__doit\ target*)
3922 am__include=include
3923 am__quote=
3924 _am_result=GNU
3925 ;;
3926esac
f5385ebf
AM
3927# Now try BSD make style include.
3928if test "$am__include" = "#"; then
3929 echo '.include "confinc"' > confmf
81ecdfbb
RW
3930 case `$am_make -s -f confmf 2> /dev/null` in #(
3931 *the\ am__doit\ target*)
3932 am__include=.include
3933 am__quote="\""
3934 _am_result=BSD
3935 ;;
3936 esac
f5385ebf
AM
3937fi
3938
3939
81ecdfbb
RW
3940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3941$as_echo "$_am_result" >&6; }
f5385ebf
AM
3942rm -f confinc confmf
3943
81ecdfbb
RW
3944# Check whether --enable-dependency-tracking was given.
3945if test "${enable_dependency_tracking+set}" = set; then :
3946 enableval=$enable_dependency_tracking;
3947fi
f5385ebf 3948
f5385ebf
AM
3949if test "x$enable_dependency_tracking" != xno; then
3950 am_depcomp="$ac_aux_dir/depcomp"
3951 AMDEPBACKSLASH='\'
3952fi
81ecdfbb 3953 if test "x$enable_dependency_tracking" != xno; then
f5385ebf
AM
3954 AMDEP_TRUE=
3955 AMDEP_FALSE='#'
3956else
3957 AMDEP_TRUE='#'
3958 AMDEP_FALSE=
3959fi
6be7c12c 3960
252b5132 3961
81ecdfbb
RW
3962if test "`cd $srcdir && pwd`" != "`pwd`"; then
3963 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3964 # is not polluted with repeated "-I."
3965 am__isrc=' -I$(srcdir)'
3966 # test to see if srcdir already configured
3967 if test -f $srcdir/config.status; then
3968 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3969 fi
252b5132 3970fi
5464f5a1 3971
f5385ebf
AM
3972# test whether we have cygpath
3973if test -z "$CYGPATH_W"; then
3974 if (cygpath --version) >/dev/null 2>/dev/null; then
3975 CYGPATH_W='cygpath -w'
3976 else
3977 CYGPATH_W=echo
3978 fi
3979fi
3980
3981
3982# Define the identity of the package.
3983 PACKAGE=bfd
df7e4f42 3984 VERSION=2.20.51
f5385ebf
AM
3985
3986
5464f5a1 3987cat >>confdefs.h <<_ACEOF
252b5132 3988#define PACKAGE "$PACKAGE"
5464f5a1 3989_ACEOF
252b5132 3990
5464f5a1
NN
3991
3992cat >>confdefs.h <<_ACEOF
252b5132 3993#define VERSION "$VERSION"
5464f5a1 3994_ACEOF
252b5132 3995
f5385ebf
AM
3996# Some tools Automake needs.
3997
3998ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3999
4000
4001AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4002
4003
4004AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4005
4006
4007AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4008
4009
4010MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6be7c12c 4011
f5385ebf
AM
4012# We need awk for the "check" target. The system "awk" is bad on
4013# some platforms.
4014# Always define AMTAR for backward compatibility.
4015
4016AMTAR=${AMTAR-"${am_missing_run}tar"}
4017
4018am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4019
252b5132 4020
f5385ebf
AM
4021
4022
4023depcc="$CC" am_compiler_list=
4024
81ecdfbb
RW
4025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4026$as_echo_n "checking dependency style of $depcc... " >&6; }
4027if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4028 $as_echo_n "(cached) " >&6
252b5132 4029else
f5385ebf
AM
4030 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4031 # We make a subdir and do the tests there. Otherwise we can end up
4032 # making bogus files that we don't know about and never remove. For
4033 # instance it was reported that on HP-UX the gcc test will end up
4034 # making a dummy file named `D' -- because `-MD' means `put the output
4035 # in D'.
4036 mkdir conftest.dir
4037 # Copy depcomp to subdir because otherwise we won't find it if we're
4038 # using a relative directory.
4039 cp "$am_depcomp" conftest.dir
4040 cd conftest.dir
4041 # We will build objects and dependencies in a subdirectory because
4042 # it helps to detect inapplicable dependency modes. For instance
4043 # both Tru64's cc and ICC support -MD to output dependencies as a
4044 # side effect of compilation, but ICC will put the dependencies in
4045 # the current directory while Tru64 will put them in the object
4046 # directory.
4047 mkdir sub
4048
4049 am_cv_CC_dependencies_compiler_type=none
4050 if test "$am_compiler_list" = ""; then
4051 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4052 fi
81ecdfbb
RW
4053 am__universal=false
4054 case " $depcc " in #(
4055 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4056 esac
4057
f5385ebf
AM
4058 for depmode in $am_compiler_list; do
4059 # Setup a source with many dependencies, because some compilers
4060 # like to wrap large dependency lists on column 80 (with \), and
4061 # we should not choose a depcomp mode which is confused by this.
4062 #
4063 # We need to recreate these files for each test, as the compiler may
4064 # overwrite some of them when testing with obscure command lines.
4065 # This happens at least with the AIX C compiler.
4066 : > sub/conftest.c
4067 for i in 1 2 3 4 5 6; do
4068 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4069 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4070 # Solaris 8's {/usr,}/bin/sh.
4071 touch sub/conftst$i.h
4072 done
4073 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4074
81ecdfbb
RW
4075 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4076 # mode. It turns out that the SunPro C++ compiler does not properly
4077 # handle `-M -o', and we need to detect this. Also, some Intel
4078 # versions had trouble with output in subdirs
4079 am__obj=sub/conftest.${OBJEXT-o}
4080 am__minus_obj="-o $am__obj"
f5385ebf 4081 case $depmode in
81ecdfbb
RW
4082 gcc)
4083 # This depmode causes a compiler race in universal mode.
4084 test "$am__universal" = false || continue
4085 ;;
f5385ebf
AM
4086 nosideeffect)
4087 # after this tag, mechanisms are not by side-effect, so they'll
4088 # only be used when explicitly requested
4089 if test "x$enable_dependency_tracking" = xyes; then
4090 continue
4091 else
4092 break
4093 fi
4094 ;;
81ecdfbb
RW
4095 msvisualcpp | msvcmsys)
4096 # This compiler won't grok `-c -o', but also, the minuso test has
4097 # not run yet. These depmodes are late enough in the game, and
4098 # so weak that their functioning should not be impacted.
4099 am__obj=conftest.${OBJEXT-o}
4100 am__minus_obj=
4101 ;;
f5385ebf
AM
4102 none) break ;;
4103 esac
f5385ebf 4104 if depmode=$depmode \
81ecdfbb 4105 source=sub/conftest.c object=$am__obj \
f5385ebf 4106 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 4107 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
f5385ebf 4108 >/dev/null 2>conftest.err &&
81ecdfbb 4109 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
f5385ebf 4110 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 4111 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
f5385ebf
AM
4112 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4113 # icc doesn't choke on unknown options, it will just issue warnings
4114 # or remarks (even with -Werror). So we grep stderr for any message
4115 # that says an option was ignored or not supported.
4116 # When given -MP, icc 7.0 and 7.1 complain thusly:
4117 # icc: Command line warning: ignoring option '-M'; no argument required
4118 # The diagnosis changed in icc 8.0:
4119 # icc: Command line remark: option '-MP' not supported
4120 if (grep 'ignoring option' conftest.err ||
4121 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4122 am_cv_CC_dependencies_compiler_type=$depmode
4123 break
4124 fi
4125 fi
4126 done
4127
4128 cd ..
4129 rm -rf conftest.dir
4130else
4131 am_cv_CC_dependencies_compiler_type=none
4132fi
4133
252b5132 4134fi
81ecdfbb
RW
4135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4136$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
f5385ebf 4137CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 4138
81ecdfbb 4139 if
f5385ebf
AM
4140 test "x$enable_dependency_tracking" != xno \
4141 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4142 am__fastdepCC_TRUE=
4143 am__fastdepCC_FALSE='#'
252b5132 4144else
f5385ebf
AM
4145 am__fastdepCC_TRUE='#'
4146 am__fastdepCC_FALSE=
252b5132
RH
4147fi
4148
6be7c12c 4149
e43d48cc 4150
f5385ebf 4151
5464f5a1
NN
4152if test -n "$ac_tool_prefix"; then
4153 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
252b5132 4154set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
4155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4156$as_echo_n "checking for $ac_word... " >&6; }
4157if test "${ac_cv_prog_AR+set}" = set; then :
4158 $as_echo_n "(cached) " >&6
252b5132
RH
4159else
4160 if test -n "$AR"; then
4161 ac_cv_prog_AR="$AR" # Let the user override the test.
4162else
5464f5a1
NN
4163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164for as_dir in $PATH
4165do
4166 IFS=$as_save_IFS
4167 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4168 for ac_exec_ext in '' $ac_executable_extensions; do
4169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464f5a1 4170 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 4171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
4172 break 2
4173 fi
4174done
81ecdfbb
RW
4175 done
4176IFS=$as_save_IFS
5464f5a1 4177
252b5132
RH
4178fi
4179fi
5464f5a1 4180AR=$ac_cv_prog_AR
252b5132 4181if test -n "$AR"; then
81ecdfbb
RW
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4183$as_echo "$AR" >&6; }
252b5132 4184else
81ecdfbb
RW
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4186$as_echo "no" >&6; }
5464f5a1
NN
4187fi
4188
81ecdfbb 4189
252b5132 4190fi
5464f5a1
NN
4191if test -z "$ac_cv_prog_AR"; then
4192 ac_ct_AR=$AR
4193 # Extract the first word of "ar", so it can be a program name with args.
4194set dummy ar; ac_word=$2
81ecdfbb
RW
4195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4196$as_echo_n "checking for $ac_word... " >&6; }
4197if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4198 $as_echo_n "(cached) " >&6
5464f5a1
NN
4199else
4200 if test -n "$ac_ct_AR"; then
4201 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4202else
4203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204for as_dir in $PATH
4205do
4206 IFS=$as_save_IFS
4207 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4208 for ac_exec_ext in '' $ac_executable_extensions; do
4209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464f5a1 4210 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 4211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
4212 break 2
4213 fi
4214done
81ecdfbb
RW
4215 done
4216IFS=$as_save_IFS
252b5132 4217
5464f5a1
NN
4218fi
4219fi
4220ac_ct_AR=$ac_cv_prog_ac_ct_AR
4221if test -n "$ac_ct_AR"; then
81ecdfbb
RW
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4223$as_echo "$ac_ct_AR" >&6; }
5464f5a1 4224else
81ecdfbb
RW
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4226$as_echo "no" >&6; }
5464f5a1 4227fi
252b5132 4228
81ecdfbb
RW
4229 if test "x$ac_ct_AR" = x; then
4230 AR=""
4231 else
4232 case $cross_compiling:$ac_tool_warned in
4233yes:)
4234{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4235$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4236ac_tool_warned=yes ;;
4237esac
4238 AR=$ac_ct_AR
4239 fi
5464f5a1
NN
4240else
4241 AR="$ac_cv_prog_AR"
4242fi
6be7c12c 4243
5464f5a1
NN
4244if test -n "$ac_tool_prefix"; then
4245 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
252b5132 4246set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
4247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4248$as_echo_n "checking for $ac_word... " >&6; }
4249if test "${ac_cv_prog_RANLIB+set}" = set; then :
4250 $as_echo_n "(cached) " >&6
252b5132
RH
4251else
4252 if test -n "$RANLIB"; then
4253 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4254else
5464f5a1
NN
4255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256for as_dir in $PATH
4257do
4258 IFS=$as_save_IFS
4259 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4260 for ac_exec_ext in '' $ac_executable_extensions; do
4261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464f5a1 4262 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 4263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
4264 break 2
4265 fi
4266done
81ecdfbb
RW
4267 done
4268IFS=$as_save_IFS
5464f5a1 4269
252b5132
RH
4270fi
4271fi
5464f5a1 4272RANLIB=$ac_cv_prog_RANLIB
252b5132 4273if test -n "$RANLIB"; then
81ecdfbb
RW
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4275$as_echo "$RANLIB" >&6; }
252b5132 4276else
81ecdfbb
RW
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4278$as_echo "no" >&6; }
252b5132
RH
4279fi
4280
81ecdfbb 4281
5464f5a1 4282fi
252b5132 4283if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 4284 ac_ct_RANLIB=$RANLIB
252b5132
RH
4285 # Extract the first word of "ranlib", so it can be a program name with args.
4286set dummy ranlib; ac_word=$2
81ecdfbb
RW
4287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4288$as_echo_n "checking for $ac_word... " >&6; }
4289if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4290 $as_echo_n "(cached) " >&6
6be7c12c 4291else
5464f5a1
NN
4292 if test -n "$ac_ct_RANLIB"; then
4293 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 4294else
5464f5a1
NN
4295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296for as_dir in $PATH
4297do
4298 IFS=$as_save_IFS
4299 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4300 for ac_exec_ext in '' $ac_executable_extensions; do
4301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464f5a1 4302 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 4303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
4304 break 2
4305 fi
4306done
81ecdfbb
RW
4307 done
4308IFS=$as_save_IFS
5464f5a1 4309
252b5132
RH
4310fi
4311fi
5464f5a1
NN
4312ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4313if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4315$as_echo "$ac_ct_RANLIB" >&6; }
252b5132 4316else
81ecdfbb
RW
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4318$as_echo "no" >&6; }
252b5132
RH
4319fi
4320
81ecdfbb
RW
4321 if test "x$ac_ct_RANLIB" = x; then
4322 RANLIB=":"
4323 else
4324 case $cross_compiling:$ac_tool_warned in
4325yes:)
4326{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4327$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4328ac_tool_warned=yes ;;
4329esac
4330 RANLIB=$ac_ct_RANLIB
4331 fi
252b5132 4332else
5464f5a1 4333 RANLIB="$ac_cv_prog_RANLIB"
6be7c12c
AO
4334fi
4335
252b5132 4336
81ecdfbb
RW
4337# Check whether --enable-shared was given.
4338if test "${enable_shared+set}" = set; then :
4339 enableval=$enable_shared; p=${PACKAGE-default}
d7040cdb
SE
4340 case $enableval in
4341 yes) enable_shared=yes ;;
4342 no) enable_shared=no ;;
4343 *)
4344 enable_shared=no
4345 # Look at the argument we got. We use all the common list separators.
4346 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4347 for pkg in $enableval; do
4348 IFS="$lt_save_ifs"
4349 if test "X$pkg" = "X$p"; then
4350 enable_shared=yes
4351 fi
4352 done
4353 IFS="$lt_save_ifs"
4354 ;;
4355 esac
252b5132
RH
4356else
4357 enable_shared=no
81ecdfbb
RW
4358fi
4359
252b5132 4360
d7040cdb
SE
4361
4362
4363
4364
4365
4366
4367
4368
cfbc9945
SE
4369ac_ext=c
4370ac_cpp='$CPP $CPPFLAGS'
4371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4373ac_compiler_gnu=$ac_cv_c_compiler_gnu
4374if test -n "$ac_tool_prefix"; then
4375 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4376set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
4377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4378$as_echo_n "checking for $ac_word... " >&6; }
4379if test "${ac_cv_prog_CC+set}" = set; then :
4380 $as_echo_n "(cached) " >&6
252b5132 4381else
cfbc9945
SE
4382 if test -n "$CC"; then
4383 ac_cv_prog_CC="$CC" # Let the user override the test.
b2ef150d 4384else
cfbc9945
SE
4385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4386for as_dir in $PATH
4387do
4388 IFS=$as_save_IFS
4389 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4390 for ac_exec_ext in '' $ac_executable_extensions; do
4391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945 4392 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 4393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cfbc9945
SE
4394 break 2
4395 fi
4396done
81ecdfbb
RW
4397 done
4398IFS=$as_save_IFS
c5d1701e 4399
cfbc9945
SE
4400fi
4401fi
4402CC=$ac_cv_prog_CC
4403if test -n "$CC"; then
81ecdfbb
RW
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4405$as_echo "$CC" >&6; }
252b5132 4406else
81ecdfbb
RW
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4408$as_echo "no" >&6; }
252b5132 4409fi
cfbc9945 4410
81ecdfbb 4411
cfbc9945
SE
4412fi
4413if test -z "$ac_cv_prog_CC"; then
4414 ac_ct_CC=$CC
4415 # Extract the first word of "gcc", so it can be a program name with args.
4416set dummy gcc; ac_word=$2
81ecdfbb
RW
4417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4418$as_echo_n "checking for $ac_word... " >&6; }
4419if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4420 $as_echo_n "(cached) " >&6
252b5132 4421else
cfbc9945
SE
4422 if test -n "$ac_ct_CC"; then
4423 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 4424else
cfbc9945
SE
4425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426for as_dir in $PATH
4427do
4428 IFS=$as_save_IFS
4429 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4430 for ac_exec_ext in '' $ac_executable_extensions; do
4431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945 4432 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cfbc9945
SE
4434 break 2
4435 fi
4436done
81ecdfbb
RW
4437 done
4438IFS=$as_save_IFS
cfbc9945 4439
252b5132
RH
4440fi
4441fi
cfbc9945
SE
4442ac_ct_CC=$ac_cv_prog_ac_ct_CC
4443if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4445$as_echo "$ac_ct_CC" >&6; }
252b5132 4446else
81ecdfbb
RW
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4448$as_echo "no" >&6; }
252b5132 4449fi
cfbc9945 4450
81ecdfbb
RW
4451 if test "x$ac_ct_CC" = x; then
4452 CC=""
4453 else
4454 case $cross_compiling:$ac_tool_warned in
4455yes:)
4456{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4457$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4458ac_tool_warned=yes ;;
4459esac
4460 CC=$ac_ct_CC
4461 fi
cfbc9945
SE
4462else
4463 CC="$ac_cv_prog_CC"
4464fi
4465
4466if test -z "$CC"; then
81ecdfbb
RW
4467 if test -n "$ac_tool_prefix"; then
4468 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
cfbc9945 4469set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4471$as_echo_n "checking for $ac_word... " >&6; }
4472if test "${ac_cv_prog_CC+set}" = set; then :
4473 $as_echo_n "(cached) " >&6
252b5132 4474else
cfbc9945
SE
4475 if test -n "$CC"; then
4476 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4477else
cfbc9945
SE
4478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479for as_dir in $PATH
4480do
4481 IFS=$as_save_IFS
4482 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4483 for ac_exec_ext in '' $ac_executable_extensions; do
4484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945 4485 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cfbc9945
SE
4487 break 2
4488 fi
4489done
81ecdfbb
RW
4490 done
4491IFS=$as_save_IFS
cfbc9945 4492
252b5132
RH
4493fi
4494fi
cfbc9945
SE
4495CC=$ac_cv_prog_CC
4496if test -n "$CC"; then
81ecdfbb
RW
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4498$as_echo "$CC" >&6; }
ac48eca1 4499else
81ecdfbb
RW
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4501$as_echo "no" >&6; }
ac48eca1 4502fi
ac48eca1 4503
81ecdfbb
RW
4504
4505 fi
cfbc9945 4506fi
81ecdfbb 4507if test -z "$CC"; then
cfbc9945
SE
4508 # Extract the first word of "cc", so it can be a program name with args.
4509set dummy cc; ac_word=$2
81ecdfbb
RW
4510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4511$as_echo_n "checking for $ac_word... " >&6; }
4512if test "${ac_cv_prog_CC+set}" = set; then :
4513 $as_echo_n "(cached) " >&6
252b5132 4514else
81ecdfbb
RW
4515 if test -n "$CC"; then
4516 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4517else
81ecdfbb 4518 ac_prog_rejected=no
cfbc9945
SE
4519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520for as_dir in $PATH
4521do
4522 IFS=$as_save_IFS
4523 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945
SE
4526 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4527 ac_prog_rejected=yes
4528 continue
4529 fi
4530 ac_cv_prog_CC="cc"
81ecdfbb 4531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cfbc9945
SE
4532 break 2
4533 fi
4534done
81ecdfbb
RW
4535 done
4536IFS=$as_save_IFS
cfbc9945
SE
4537
4538if test $ac_prog_rejected = yes; then
4539 # We found a bogon in the path, so make sure we never use it.
4540 set dummy $ac_cv_prog_CC
4541 shift
4542 if test $# != 0; then
4543 # We chose a different compiler from the bogus one.
4544 # However, it has the same basename, so the bogon will be chosen
4545 # first if we set CC to just the basename; use the full file name.
4546 shift
4547 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4548 fi
4549fi
4550fi
4551fi
4552CC=$ac_cv_prog_CC
4553if test -n "$CC"; then
81ecdfbb
RW
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4555$as_echo "$CC" >&6; }
cfbc9945 4556else
81ecdfbb
RW
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4558$as_echo "no" >&6; }
252b5132
RH
4559fi
4560
81ecdfbb 4561
cfbc9945
SE
4562fi
4563if test -z "$CC"; then
4564 if test -n "$ac_tool_prefix"; then
81ecdfbb 4565 for ac_prog in cl.exe
cfbc9945
SE
4566 do
4567 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4568set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4570$as_echo_n "checking for $ac_word... " >&6; }
4571if test "${ac_cv_prog_CC+set}" = set; then :
4572 $as_echo_n "(cached) " >&6
ac48eca1 4573else
cfbc9945
SE
4574 if test -n "$CC"; then
4575 ac_cv_prog_CC="$CC" # Let the user override the test.
4576else
4577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578for as_dir in $PATH
4579do
4580 IFS=$as_save_IFS
4581 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4582 for ac_exec_ext in '' $ac_executable_extensions; do
4583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945 4584 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cfbc9945
SE
4586 break 2
4587 fi
4588done
81ecdfbb
RW
4589 done
4590IFS=$as_save_IFS
ac48eca1 4591
cfbc9945
SE
4592fi
4593fi
4594CC=$ac_cv_prog_CC
4595if test -n "$CC"; then
81ecdfbb
RW
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4597$as_echo "$CC" >&6; }
cfbc9945 4598else
81ecdfbb
RW
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4600$as_echo "no" >&6; }
cfbc9945 4601fi
ac48eca1 4602
81ecdfbb 4603
cfbc9945
SE
4604 test -n "$CC" && break
4605 done
4606fi
4607if test -z "$CC"; then
4608 ac_ct_CC=$CC
81ecdfbb 4609 for ac_prog in cl.exe
cfbc9945
SE
4610do
4611 # Extract the first word of "$ac_prog", so it can be a program name with args.
4612set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4614$as_echo_n "checking for $ac_word... " >&6; }
4615if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4616 $as_echo_n "(cached) " >&6
cfbc9945
SE
4617else
4618 if test -n "$ac_ct_CC"; then
4619 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4620else
4621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622for as_dir in $PATH
4623do
4624 IFS=$as_save_IFS
4625 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4626 for ac_exec_ext in '' $ac_executable_extensions; do
4627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945 4628 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cfbc9945
SE
4630 break 2
4631 fi
4632done
81ecdfbb
RW
4633 done
4634IFS=$as_save_IFS
ac48eca1 4635
cfbc9945
SE
4636fi
4637fi
4638ac_ct_CC=$ac_cv_prog_ac_ct_CC
4639if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4641$as_echo "$ac_ct_CC" >&6; }
cfbc9945 4642else
81ecdfbb
RW
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4644$as_echo "no" >&6; }
cfbc9945 4645fi
ac48eca1 4646
81ecdfbb 4647
cfbc9945
SE
4648 test -n "$ac_ct_CC" && break
4649done
ac48eca1 4650
81ecdfbb
RW
4651 if test "x$ac_ct_CC" = x; then
4652 CC=""
4653 else
4654 case $cross_compiling:$ac_tool_warned in
4655yes:)
4656{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4657$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4658ac_tool_warned=yes ;;
4659esac
4660 CC=$ac_ct_CC
4661 fi
cfbc9945 4662fi
55c80943 4663
cfbc9945 4664fi
ac48eca1 4665
ac48eca1 4666
81ecdfbb
RW
4667test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4668$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4669as_fn_error "no acceptable C compiler found in \$PATH
4670See \`config.log' for more details." "$LINENO" 5; }
ac48eca1 4671
cfbc9945 4672# Provide some information about the compiler.
81ecdfbb
RW
4673$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4674set X $ac_compile
4675ac_compiler=$2
4676for ac_option in --version -v -V -qversion; do
4677 { { ac_try="$ac_compiler $ac_option >&5"
4678case "(($ac_try" in
4679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680 *) ac_try_echo=$ac_try;;
4681esac
4682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4683$as_echo "$ac_try_echo"; } >&5
4684 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cfbc9945 4685 ac_status=$?
81ecdfbb
RW
4686 if test -s conftest.err; then
4687 sed '10a\
4688... rest of stderr output deleted ...
4689 10q' conftest.err >conftest.er1
4690 cat conftest.er1 >&5
4691 rm -f conftest.er1 conftest.err
4692 fi
4693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4694 test $ac_status = 0; }
4695done
ac48eca1 4696
81ecdfbb
RW
4697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4698$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4699if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4700 $as_echo_n "(cached) " >&6
ac48eca1 4701else
81ecdfbb 4702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cfbc9945 4703/* end confdefs.h. */
ac48eca1 4704
cfbc9945
SE
4705int
4706main ()
4707{
4708#ifndef __GNUC__
4709 choke me
4710#endif
5464f5a1 4711
cfbc9945
SE
4712 ;
4713 return 0;
4714}
4715_ACEOF
81ecdfbb 4716if ac_fn_c_try_compile "$LINENO"; then :
cfbc9945 4717 ac_compiler_gnu=yes
ac48eca1 4718else
81ecdfbb 4719 ac_compiler_gnu=no
ac48eca1 4720fi
81ecdfbb 4721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cfbc9945 4722ac_cv_c_compiler_gnu=$ac_compiler_gnu
ac48eca1 4723
5464f5a1 4724fi
81ecdfbb
RW
4725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4726$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4727if test $ac_compiler_gnu = yes; then
4728 GCC=yes
4729else
4730 GCC=
4731fi
cfbc9945
SE
4732ac_test_CFLAGS=${CFLAGS+set}
4733ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4735$as_echo_n "checking whether $CC accepts -g... " >&6; }
4736if test "${ac_cv_prog_cc_g+set}" = set; then :
4737 $as_echo_n "(cached) " >&6
4738else
4739 ac_save_c_werror_flag=$ac_c_werror_flag
4740 ac_c_werror_flag=yes
4741 ac_cv_prog_cc_g=no
4742 CFLAGS="-g"
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cfbc9945
SE
4744/* end confdefs.h. */
4745
4746int
4747main ()
4748{
4749
4750 ;
4751 return 0;
4752}
4753_ACEOF
81ecdfbb 4754if ac_fn_c_try_compile "$LINENO"; then :
cfbc9945 4755 ac_cv_prog_cc_g=yes
6be7c12c 4756else
81ecdfbb
RW
4757 CFLAGS=""
4758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4759/* end confdefs.h. */
4760
4761int
4762main ()
4763{
4764
4765 ;
4766 return 0;
4767}
4768_ACEOF
4769if ac_fn_c_try_compile "$LINENO"; then :
4770
4771else
4772 ac_c_werror_flag=$ac_save_c_werror_flag
4773 CFLAGS="-g"
4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775/* end confdefs.h. */
4776
4777int
4778main ()
4779{
5464f5a1 4780
81ecdfbb
RW
4781 ;
4782 return 0;
4783}
4784_ACEOF
4785if ac_fn_c_try_compile "$LINENO"; then :
4786 ac_cv_prog_cc_g=yes
4787fi
4788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 4789fi
81ecdfbb 4790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 4791fi
81ecdfbb
RW
4792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4793 ac_c_werror_flag=$ac_save_c_werror_flag
4794fi
4795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4796$as_echo "$ac_cv_prog_cc_g" >&6; }
cfbc9945
SE
4797if test "$ac_test_CFLAGS" = set; then
4798 CFLAGS=$ac_save_CFLAGS
4799elif test $ac_cv_prog_cc_g = yes; then
4800 if test "$GCC" = yes; then
4801 CFLAGS="-g -O2"
4802 else
4803 CFLAGS="-g"
4804 fi
ac48eca1 4805else
cfbc9945
SE
4806 if test "$GCC" = yes; then
4807 CFLAGS="-O2"
4808 else
4809 CFLAGS=
4810 fi
ac48eca1 4811fi
81ecdfbb
RW
4812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4813$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4814if test "${ac_cv_prog_cc_c89+set}" = set; then :
4815 $as_echo_n "(cached) " >&6
ac48eca1 4816else
81ecdfbb 4817 ac_cv_prog_cc_c89=no
cfbc9945 4818ac_save_CC=$CC
81ecdfbb 4819cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cfbc9945
SE
4820/* end confdefs.h. */
4821#include <stdarg.h>
4822#include <stdio.h>
4823#include <sys/types.h>
4824#include <sys/stat.h>
4825/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4826struct buf { int x; };
4827FILE * (*rcsopen) (struct buf *, struct stat *, int);
4828static char *e (p, i)
4829 char **p;
4830 int i;
4831{
4832 return p[i];
4833}
4834static char *f (char * (*g) (char **, int), char **p, ...)
4835{
4836 char *s;
4837 va_list v;
4838 va_start (v,p);
4839 s = g (p, va_arg (v,int));
4840 va_end (v);
4841 return s;
4842}
5464f5a1 4843
cfbc9945
SE
4844/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4845 function prototypes and stuff, but not '\xHH' hex character constants.
4846 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4847 as 'x'. The following induces an error, until -std is added to get
cfbc9945
SE
4848 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4849 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4850 that's true only with -std. */
cfbc9945
SE
4851int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4852
81ecdfbb
RW
4853/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4854 inside strings and character constants. */
4855#define FOO(x) 'x'
4856int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4857
cfbc9945
SE
4858int test (int i, double x);
4859struct s1 {int (*f) (int a);};
4860struct s2 {int (*f) (double a);};
4861int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4862int argc;
4863char **argv;
4864int
4865main ()
4866{
4867return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4868 ;
4869 return 0;
4870}
4871_ACEOF
81ecdfbb
RW
4872for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4873 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
cfbc9945
SE
4874do
4875 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4876 if ac_fn_c_try_compile "$LINENO"; then :
4877 ac_cv_prog_cc_c89=$ac_arg
5464f5a1 4878fi
81ecdfbb
RW
4879rm -f core conftest.err conftest.$ac_objext
4880 test "x$ac_cv_prog_cc_c89" != "xno" && break
5464f5a1 4881done
81ecdfbb 4882rm -f conftest.$ac_ext
cfbc9945 4883CC=$ac_save_CC
5464f5a1 4884
ac48eca1 4885fi
81ecdfbb
RW
4886# AC_CACHE_VAL
4887case "x$ac_cv_prog_cc_c89" in
4888 x)
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4890$as_echo "none needed" >&6; } ;;
4891 xno)
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4893$as_echo "unsupported" >&6; } ;;
cfbc9945 4894 *)
81ecdfbb
RW
4895 CC="$CC $ac_cv_prog_cc_c89"
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4897$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
cfbc9945 4898esac
81ecdfbb 4899if test "x$ac_cv_prog_cc_c89" != xno; then :
6be7c12c 4900
6ec7057a 4901fi
cfbc9945 4902
cfbc9945
SE
4903ac_ext=c
4904ac_cpp='$CPP $CPPFLAGS'
4905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4907ac_compiler_gnu=$ac_cv_c_compiler_gnu
92f01d61 4908
7357c5b6
AM
4909ac_ext=c
4910ac_cpp='$CPP $CPPFLAGS'
4911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4913ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
4914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4915$as_echo_n "checking how to run the C preprocessor... " >&6; }
7357c5b6
AM
4916# On Suns, sometimes $CPP names a directory.
4917if test -n "$CPP" && test -d "$CPP"; then
4918 CPP=
4919fi
4920if test -z "$CPP"; then
81ecdfbb
RW
4921 if test "${ac_cv_prog_CPP+set}" = set; then :
4922 $as_echo_n "(cached) " >&6
7357c5b6
AM
4923else
4924 # Double quotes because CPP needs to be expanded
4925 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4926 do
4927 ac_preproc_ok=false
4928for ac_c_preproc_warn_flag in '' yes
4929do
4930 # Use a header file that comes with gcc, so configuring glibc
4931 # with a fresh cross-compiler works.
4932 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4933 # <limits.h> exists even on freestanding compilers.
4934 # On the NeXT, cc -E runs the code through the compiler's parser,
4935 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4937/* end confdefs.h. */
4938#ifdef __STDC__
4939# include <limits.h>
4940#else
4941# include <assert.h>
4942#endif
4943 Syntax error
4944_ACEOF
81ecdfbb 4945if ac_fn_c_try_cpp "$LINENO"; then :
cfbc9945 4946
81ecdfbb 4947else
7357c5b6
AM
4948 # Broken: fails on valid input.
4949continue
4950fi
4951rm -f conftest.err conftest.$ac_ext
d7040cdb 4952
81ecdfbb 4953 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4954 # can be detected and how.
81ecdfbb 4955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4956/* end confdefs.h. */
4957#include <ac_nonexistent.h>
4958_ACEOF
81ecdfbb 4959if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4960 # Broken: success on invalid input.
4961continue
4962else
7357c5b6
AM
4963 # Passes both tests.
4964ac_preproc_ok=:
4965break
4966fi
4967rm -f conftest.err conftest.$ac_ext
d7040cdb 4968
7357c5b6
AM
4969done
4970# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4971rm -f conftest.err conftest.$ac_ext
81ecdfbb 4972if $ac_preproc_ok; then :
7357c5b6
AM
4973 break
4974fi
d7040cdb 4975
7357c5b6
AM
4976 done
4977 ac_cv_prog_CPP=$CPP
d7040cdb 4978
7357c5b6
AM
4979fi
4980 CPP=$ac_cv_prog_CPP
4981else
4982 ac_cv_prog_CPP=$CPP
4983fi
81ecdfbb
RW
4984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4985$as_echo "$CPP" >&6; }
7357c5b6
AM
4986ac_preproc_ok=false
4987for ac_c_preproc_warn_flag in '' yes
4988do
4989 # Use a header file that comes with gcc, so configuring glibc
4990 # with a fresh cross-compiler works.
4991 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4992 # <limits.h> exists even on freestanding compilers.
4993 # On the NeXT, cc -E runs the code through the compiler's parser,
4994 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4996/* end confdefs.h. */
4997#ifdef __STDC__
4998# include <limits.h>
4999#else
5000# include <assert.h>
5001#endif
5002 Syntax error
5003_ACEOF
81ecdfbb 5004if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 5005
81ecdfbb 5006else
7357c5b6
AM
5007 # Broken: fails on valid input.
5008continue
5009fi
5010rm -f conftest.err conftest.$ac_ext
d7040cdb 5011
81ecdfbb 5012 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 5013 # can be detected and how.
81ecdfbb 5014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5015/* end confdefs.h. */
5016#include <ac_nonexistent.h>
5017_ACEOF
81ecdfbb 5018if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
5019 # Broken: success on invalid input.
5020continue
5021else
7357c5b6
AM
5022 # Passes both tests.
5023ac_preproc_ok=:
5024break
5025fi
5026rm -f conftest.err conftest.$ac_ext
d7040cdb 5027
7357c5b6
AM
5028done
5029# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5030rm -f conftest.err conftest.$ac_ext
81ecdfbb
RW
5031if $ac_preproc_ok; then :
5032
7357c5b6 5033else
81ecdfbb
RW
5034 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5035$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5036as_fn_error "C preprocessor \"$CPP\" fails sanity check
5037See \`config.log' for more details." "$LINENO" 5; }
7357c5b6 5038fi
d7040cdb 5039
7357c5b6
AM
5040ac_ext=c
5041ac_cpp='$CPP $CPPFLAGS'
5042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5044ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 5045
d7040cdb 5046
81ecdfbb
RW
5047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5048$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5049if test "${ac_cv_path_GREP+set}" = set; then :
5050 $as_echo_n "(cached) " >&6
5051else
5052 if test -z "$GREP"; then
5053 ac_path_GREP_found=false
5054 # Loop through the user's path and test for each of PROGNAME-LIST
5055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5057do
5058 IFS=$as_save_IFS
5059 test -z "$as_dir" && as_dir=.
5060 for ac_prog in grep ggrep; do
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5063 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5064# Check for GNU ac_path_GREP and select it if it is found.
5065 # Check for GNU $ac_path_GREP
5066case `"$ac_path_GREP" --version 2>&1` in
5067*GNU*)
5068 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5069*)
5070 ac_count=0
5071 $as_echo_n 0123456789 >"conftest.in"
5072 while :
5073 do
5074 cat "conftest.in" "conftest.in" >"conftest.tmp"
5075 mv "conftest.tmp" "conftest.in"
5076 cp "conftest.in" "conftest.nl"
5077 $as_echo 'GREP' >> "conftest.nl"
5078 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5079 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5080 as_fn_arith $ac_count + 1 && ac_count=$as_val
5081 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5082 # Best one so far, save it but keep looking for a better one
5083 ac_cv_path_GREP="$ac_path_GREP"
5084 ac_path_GREP_max=$ac_count
5085 fi
5086 # 10*(2^10) chars as input seems more than enough
5087 test $ac_count -gt 10 && break
5088 done
5089 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5090esac
5091
5092 $ac_path_GREP_found && break 3
5093 done
5094 done
5095 done
5096IFS=$as_save_IFS
5097 if test -z "$ac_cv_path_GREP"; then
5098 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5099 fi
5100else
5101 ac_cv_path_GREP=$GREP
5102fi
5103
5104fi
5105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5106$as_echo "$ac_cv_path_GREP" >&6; }
5107 GREP="$ac_cv_path_GREP"
5108
5109
5110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5111$as_echo_n "checking for egrep... " >&6; }
5112if test "${ac_cv_path_EGREP+set}" = set; then :
5113 $as_echo_n "(cached) " >&6
7357c5b6 5114else
81ecdfbb
RW
5115 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5116 then ac_cv_path_EGREP="$GREP -E"
5117 else
5118 if test -z "$EGREP"; then
5119 ac_path_EGREP_found=false
5120 # Loop through the user's path and test for each of PROGNAME-LIST
5121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5123do
5124 IFS=$as_save_IFS
5125 test -z "$as_dir" && as_dir=.
5126 for ac_prog in egrep; do
5127 for ac_exec_ext in '' $ac_executable_extensions; do
5128 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5129 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5130# Check for GNU ac_path_EGREP and select it if it is found.
5131 # Check for GNU $ac_path_EGREP
5132case `"$ac_path_EGREP" --version 2>&1` in
5133*GNU*)
5134 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5135*)
5136 ac_count=0
5137 $as_echo_n 0123456789 >"conftest.in"
5138 while :
5139 do
5140 cat "conftest.in" "conftest.in" >"conftest.tmp"
5141 mv "conftest.tmp" "conftest.in"
5142 cp "conftest.in" "conftest.nl"
5143 $as_echo 'EGREP' >> "conftest.nl"
5144 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5145 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5146 as_fn_arith $ac_count + 1 && ac_count=$as_val
5147 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5148 # Best one so far, save it but keep looking for a better one
5149 ac_cv_path_EGREP="$ac_path_EGREP"
5150 ac_path_EGREP_max=$ac_count
7357c5b6 5151 fi
81ecdfbb
RW
5152 # 10*(2^10) chars as input seems more than enough
5153 test $ac_count -gt 10 && break
5154 done
5155 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5156esac
5157
5158 $ac_path_EGREP_found && break 3
5159 done
5160 done
5161 done
5162IFS=$as_save_IFS
5163 if test -z "$ac_cv_path_EGREP"; then
5164 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5165 fi
5166else
5167 ac_cv_path_EGREP=$EGREP
5168fi
5169
5170 fi
7357c5b6 5171fi
81ecdfbb
RW
5172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5173$as_echo "$ac_cv_path_EGREP" >&6; }
5174 EGREP="$ac_cv_path_EGREP"
d7040cdb
SE
5175
5176
81ecdfbb
RW
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5178$as_echo_n "checking for ANSI C header files... " >&6; }
5179if test "${ac_cv_header_stdc+set}" = set; then :
5180 $as_echo_n "(cached) " >&6
7357c5b6 5181else
81ecdfbb 5182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5183/* end confdefs.h. */
5184#include <stdlib.h>
5185#include <stdarg.h>
5186#include <string.h>
5187#include <float.h>
d7040cdb 5188
7357c5b6
AM
5189int
5190main ()
5191{
d7040cdb 5192
7357c5b6
AM
5193 ;
5194 return 0;
5195}
5196_ACEOF
81ecdfbb 5197if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6 5198 ac_cv_header_stdc=yes
c428fa83 5199else
81ecdfbb 5200 ac_cv_header_stdc=no
7357c5b6 5201fi
81ecdfbb 5202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 5203
7357c5b6
AM
5204if test $ac_cv_header_stdc = yes; then
5205 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 5206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5207/* end confdefs.h. */
5208#include <string.h>
d7040cdb 5209
7357c5b6
AM
5210_ACEOF
5211if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
5212 $EGREP "memchr" >/dev/null 2>&1; then :
5213
7357c5b6
AM
5214else
5215 ac_cv_header_stdc=no
5216fi
5217rm -f conftest*
d7040cdb 5218
7357c5b6 5219fi
d7040cdb 5220
7357c5b6
AM
5221if test $ac_cv_header_stdc = yes; then
5222 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 5223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5224/* end confdefs.h. */
5225#include <stdlib.h>
d7040cdb 5226
7357c5b6
AM
5227_ACEOF
5228if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
5229 $EGREP "free" >/dev/null 2>&1; then :
5230
7357c5b6
AM
5231else
5232 ac_cv_header_stdc=no
5233fi
5234rm -f conftest*
d7040cdb 5235
7357c5b6 5236fi
d7040cdb 5237
7357c5b6
AM
5238if test $ac_cv_header_stdc = yes; then
5239 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 5240 if test "$cross_compiling" = yes; then :
7357c5b6
AM
5241 :
5242else
81ecdfbb 5243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5244/* end confdefs.h. */
5245#include <ctype.h>
81ecdfbb 5246#include <stdlib.h>
7357c5b6
AM
5247#if ((' ' & 0x0FF) == 0x020)
5248# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5249# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5250#else
5251# define ISLOWER(c) \
5252 (('a' <= (c) && (c) <= 'i') \
5253 || ('j' <= (c) && (c) <= 'r') \
5254 || ('s' <= (c) && (c) <= 'z'))
5255# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5256#endif
d7040cdb 5257
7357c5b6
AM
5258#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5259int
5260main ()
5261{
5262 int i;
5263 for (i = 0; i < 256; i++)
5264 if (XOR (islower (i), ISLOWER (i))
5265 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
5266 return 2;
5267 return 0;
7357c5b6
AM
5268}
5269_ACEOF
81ecdfbb 5270if ac_fn_c_try_run "$LINENO"; then :
d7040cdb 5271
81ecdfbb
RW
5272else
5273 ac_cv_header_stdc=no
7357c5b6 5274fi
81ecdfbb
RW
5275rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5276 conftest.$ac_objext conftest.beam conftest.$ac_ext
7357c5b6 5277fi
81ecdfbb 5278
7357c5b6
AM
5279fi
5280fi
81ecdfbb
RW
5281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5282$as_echo "$ac_cv_header_stdc" >&6; }
7357c5b6 5283if test $ac_cv_header_stdc = yes; then
d7040cdb 5284
81ecdfbb 5285$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d7040cdb 5286
7357c5b6 5287fi
d7040cdb 5288
7357c5b6 5289# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7357c5b6
AM
5290for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5291 inttypes.h stdint.h unistd.h
81ecdfbb
RW
5292do :
5293 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5295"
5296eval as_val=\$$as_ac_Header
5297 if test "x$as_val" = x""yes; then :
7357c5b6 5298 cat >>confdefs.h <<_ACEOF
81ecdfbb 5299#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7357c5b6 5300_ACEOF
d7040cdb 5301
7357c5b6
AM
5302fi
5303
5304done
5305
5306
5307
81ecdfbb
RW
5308 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5309if test "x$ac_cv_header_minix_config_h" = x""yes; then :
7357c5b6
AM
5310 MINIX=yes
5311else
5312 MINIX=
5313fi
d7040cdb
SE
5314
5315
7357c5b6 5316 if test "$MINIX" = yes; then
d7040cdb 5317
81ecdfbb 5318$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
d7040cdb
SE
5319
5320
81ecdfbb 5321$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
d7040cdb
SE
5322
5323
81ecdfbb 5324$as_echo "#define _MINIX 1" >>confdefs.h
d7040cdb 5325
7357c5b6 5326 fi
d7040cdb
SE
5327
5328
81ecdfbb
RW
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5330$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5331if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5332 $as_echo_n "(cached) " >&6
d053aef8 5333else
81ecdfbb 5334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8 5335/* end confdefs.h. */
ce3c775b
NC
5336
5337# define __EXTENSIONS__ 1
5338 $ac_includes_default
d053aef8
JK
5339int
5340main ()
5341{
5342
5343 ;
5344 return 0;
5345}
5346_ACEOF
81ecdfbb 5347if ac_fn_c_try_compile "$LINENO"; then :
ce3c775b 5348 ac_cv_safe_to_define___extensions__=yes
d053aef8 5349else
81ecdfbb 5350 ac_cv_safe_to_define___extensions__=no
d053aef8 5351fi
81ecdfbb 5352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce3c775b 5353fi
81ecdfbb
RW
5354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5355$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
ce3c775b 5356 test $ac_cv_safe_to_define___extensions__ = yes &&
81ecdfbb 5357 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
d053aef8 5358
81ecdfbb 5359 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
d053aef8 5360
81ecdfbb
RW
5361 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5362
5363 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5364
5365 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
d053aef8 5366
ce3c775b 5367
d053aef8 5368
d053aef8 5369
d7040cdb 5370
718a6fd8
SE
5371case `pwd` in
5372 *\ * | *\ *)
81ecdfbb
RW
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5374$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
718a6fd8 5375esac
d7040cdb
SE
5376
5377
7357c5b6 5378
3725885a
RW
5379macro_version='2.2.7a'
5380macro_revision='1.3134'
7357c5b6
AM
5381
5382
5383
5384
5385
5386
7357c5b6
AM
5387
5388
5389
5390
5391
5392
5393
718a6fd8 5394ltmain="$ac_aux_dir/ltmain.sh"
7357c5b6 5395
3725885a
RW
5396# Backslashify metacharacters that are still active within
5397# double-quoted strings.
5398sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5399
5400# Same as above, but do not quote variable references.
5401double_quote_subst='s/\(["`\\]\)/\\\1/g'
5402
5403# Sed substitution to delay expansion of an escaped shell variable in a
5404# double_quote_subst'ed string.
5405delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5406
5407# Sed substitution to delay expansion of an escaped single quote.
5408delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5409
5410# Sed substitution to avoid accidental globbing in evaled expressions
5411no_glob_subst='s/\*/\\\*/g'
5412
5413ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5414ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5415ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5416
5417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5418$as_echo_n "checking how to print strings... " >&6; }
5419# Test print first, because it will be a builtin if present.
5420if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5421 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5422 ECHO='print -r --'
5423elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5424 ECHO='printf %s\n'
5425else
5426 # Use this function as a fallback that always works.
5427 func_fallback_echo ()
5428 {
5429 eval 'cat <<_LTECHO_EOF
5430$1
5431_LTECHO_EOF'
5432 }
5433 ECHO='func_fallback_echo'
5434fi
5435
5436# func_echo_all arg...
5437# Invoke $ECHO with all args, space-separated.
5438func_echo_all ()
5439{
5440 $ECHO ""
5441}
5442
5443case "$ECHO" in
5444 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5445$as_echo "printf" >&6; } ;;
5446 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5447$as_echo "print -r" >&6; } ;;
5448 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5449$as_echo "cat" >&6; } ;;
5450esac
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
81ecdfbb
RW
5465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5466$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5467if test "${ac_cv_path_SED+set}" = set; then :
5468 $as_echo_n "(cached) " >&6
7357c5b6 5469else
81ecdfbb
RW
5470 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5471 for ac_i in 1 2 3 4 5 6 7; do
5472 ac_script="$ac_script$as_nl$ac_script"
5473 done
5474 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5475 { ac_script=; unset ac_script;}
5476 if test -z "$SED"; then
5477 ac_path_SED_found=false
5478 # Loop through the user's path and test for each of PROGNAME-LIST
5479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
5480for as_dir in $PATH
5481do
5482 IFS=$as_save_IFS
5483 test -z "$as_dir" && as_dir=.
81ecdfbb 5484 for ac_prog in sed gsed; do
7357c5b6 5485 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb
RW
5486 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5487 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5488# Check for GNU ac_path_SED and select it if it is found.
5489 # Check for GNU $ac_path_SED
5490case `"$ac_path_SED" --version 2>&1` in
5491*GNU*)
5492 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5493*)
5494 ac_count=0
5495 $as_echo_n 0123456789 >"conftest.in"
5496 while :
5497 do
5498 cat "conftest.in" "conftest.in" >"conftest.tmp"
5499 mv "conftest.tmp" "conftest.in"
5500 cp "conftest.in" "conftest.nl"
5501 $as_echo '' >> "conftest.nl"
5502 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5503 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5504 as_fn_arith $ac_count + 1 && ac_count=$as_val
5505 if test $ac_count -gt ${ac_path_SED_max-0}; then
5506 # Best one so far, save it but keep looking for a better one
5507 ac_cv_path_SED="$ac_path_SED"
5508 ac_path_SED_max=$ac_count
5509 fi
5510 # 10*(2^10) chars as input seems more than enough
5511 test $ac_count -gt 10 && break
5512 done
5513 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5514esac
5515
5516 $ac_path_SED_found && break 3
7357c5b6
AM
5517 done
5518 done
81ecdfbb 5519 done
7357c5b6 5520IFS=$as_save_IFS
81ecdfbb
RW
5521 if test -z "$ac_cv_path_SED"; then
5522 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7357c5b6 5523 fi
81ecdfbb
RW
5524else
5525 ac_cv_path_SED=$SED
7357c5b6
AM
5526fi
5527
81ecdfbb
RW
5528fi
5529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5530$as_echo "$ac_cv_path_SED" >&6; }
5531 SED="$ac_cv_path_SED"
5532 rm -f conftest.sed
7357c5b6
AM
5533
5534test -z "$SED" && SED=sed
5535Xsed="$SED -e 1s/^X//"
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
81ecdfbb
RW
5547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5548$as_echo_n "checking for fgrep... " >&6; }
5549if test "${ac_cv_path_FGREP+set}" = set; then :
5550 $as_echo_n "(cached) " >&6
7357c5b6 5551else
81ecdfbb
RW
5552 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5553 then ac_cv_path_FGREP="$GREP -F"
5554 else
5555 if test -z "$FGREP"; then
5556 ac_path_FGREP_found=false
5557 # Loop through the user's path and test for each of PROGNAME-LIST
5558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5560do
5561 IFS=$as_save_IFS
5562 test -z "$as_dir" && as_dir=.
5563 for ac_prog in fgrep; do
5564 for ac_exec_ext in '' $ac_executable_extensions; do
5565 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5566 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5567# Check for GNU ac_path_FGREP and select it if it is found.
5568 # Check for GNU $ac_path_FGREP
5569case `"$ac_path_FGREP" --version 2>&1` in
5570*GNU*)
5571 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5572*)
5573 ac_count=0
5574 $as_echo_n 0123456789 >"conftest.in"
5575 while :
5576 do
5577 cat "conftest.in" "conftest.in" >"conftest.tmp"
5578 mv "conftest.tmp" "conftest.in"
5579 cp "conftest.in" "conftest.nl"
5580 $as_echo 'FGREP' >> "conftest.nl"
5581 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5582 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5583 as_fn_arith $ac_count + 1 && ac_count=$as_val
5584 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5585 # Best one so far, save it but keep looking for a better one
5586 ac_cv_path_FGREP="$ac_path_FGREP"
5587 ac_path_FGREP_max=$ac_count
7357c5b6 5588 fi
81ecdfbb
RW
5589 # 10*(2^10) chars as input seems more than enough
5590 test $ac_count -gt 10 && break
5591 done
5592 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5593esac
5594
5595 $ac_path_FGREP_found && break 3
5596 done
5597 done
5598 done
5599IFS=$as_save_IFS
5600 if test -z "$ac_cv_path_FGREP"; then
5601 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5602 fi
5603else
5604 ac_cv_path_FGREP=$FGREP
7357c5b6 5605fi
81ecdfbb
RW
5606
5607 fi
5608fi
5609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5610$as_echo "$ac_cv_path_FGREP" >&6; }
5611 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
5612
5613
5614test -z "$GREP" && GREP=grep
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
81ecdfbb
RW
5634# Check whether --with-gnu-ld was given.
5635if test "${with_gnu_ld+set}" = set; then :
5636 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
5637else
5638 with_gnu_ld=no
81ecdfbb
RW
5639fi
5640
7357c5b6
AM
5641ac_prog=ld
5642if test "$GCC" = yes; then
5643 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5645$as_echo_n "checking for ld used by $CC... " >&6; }
7357c5b6
AM
5646 case $host in
5647 *-*-mingw*)
5648 # gcc leaves a trailing carriage return which upsets mingw
5649 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5650 *)
5651 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5652 esac
5653 case $ac_prog in
5654 # Accept absolute paths.
5655 [\\/]* | ?:[\\/]*)
5656 re_direlt='/[^/][^/]*/\.\./'
5657 # Canonicalize the pathname of ld
5658 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5659 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
d7040cdb 5660 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
cfbc9945
SE
5661 done
5662 test -z "$LD" && LD="$ac_prog"
5663 ;;
5bd8253d 5664 "")
cfbc9945
SE
5665 # If it fails, then pretend we aren't using GCC.
5666 ac_prog=ld
5bd8253d
L
5667 ;;
5668 *)
cfbc9945
SE
5669 # If it is relative, then search for the first ld in PATH.
5670 with_gnu_ld=unknown
5bd8253d 5671 ;;
cfbc9945
SE
5672 esac
5673elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5675$as_echo_n "checking for GNU ld... " >&6; }
cfbc9945 5676else
81ecdfbb
RW
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5678$as_echo_n "checking for non-GNU ld... " >&6; }
cfbc9945 5679fi
81ecdfbb
RW
5680if test "${lt_cv_path_LD+set}" = set; then :
5681 $as_echo_n "(cached) " >&6
cfbc9945
SE
5682else
5683 if test -z "$LD"; then
d7040cdb 5684 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cfbc9945 5685 for ac_dir in $PATH; do
d7040cdb 5686 IFS="$lt_save_ifs"
cfbc9945
SE
5687 test -z "$ac_dir" && ac_dir=.
5688 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5689 lt_cv_path_LD="$ac_dir/$ac_prog"
5690 # Check to see if the program is GNU ld. I'd rather use --version,
d7040cdb 5691 # but apparently some variants of GNU ld only accept -v.
cfbc9945 5692 # Break only if it was the GNU/non-GNU ld that we prefer.
d7040cdb
SE
5693 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5694 *GNU* | *'with BFD'*)
cfbc9945 5695 test "$with_gnu_ld" != no && break
d7040cdb
SE
5696 ;;
5697 *)
cfbc9945 5698 test "$with_gnu_ld" != yes && break
d7040cdb
SE
5699 ;;
5700 esac
cfbc9945
SE
5701 fi
5702 done
d7040cdb 5703 IFS="$lt_save_ifs"
cfbc9945
SE
5704else
5705 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9e9b66a9 5706fi
1ad12f97
NC
5707fi
5708
cfbc9945
SE
5709LD="$lt_cv_path_LD"
5710if test -n "$LD"; then
81ecdfbb
RW
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5712$as_echo "$LD" >&6; }
cfbc9945 5713else
81ecdfbb
RW
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5715$as_echo "no" >&6; }
cfbc9945 5716fi
81ecdfbb
RW
5717test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5719$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5720if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5721 $as_echo_n "(cached) " >&6
cfbc9945 5722else
d7040cdb
SE
5723 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5724case `$LD -v 2>&1 </dev/null` in
5725*GNU* | *'with BFD'*)
cfbc9945 5726 lt_cv_prog_gnu_ld=yes
d7040cdb
SE
5727 ;;
5728*)
cfbc9945 5729 lt_cv_prog_gnu_ld=no
d7040cdb
SE
5730 ;;
5731esac
49c96104 5732fi
81ecdfbb
RW
5733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5734$as_echo "$lt_cv_prog_gnu_ld" >&6; }
cfbc9945 5735with_gnu_ld=$lt_cv_prog_gnu_ld
49c96104 5736
9e9b66a9 5737
cfbc9945 5738
d7040cdb
SE
5739
5740
5741
5742
5743
5744
81ecdfbb
RW
5745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5746$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5747if test "${lt_cv_path_NM+set}" = set; then :
5748 $as_echo_n "(cached) " >&6
cfbc9945
SE
5749else
5750 if test -n "$NM"; then
5751 # Let the user override the test.
5752 lt_cv_path_NM="$NM"
5753else
d7040cdb
SE
5754 lt_nm_to_check="${ac_tool_prefix}nm"
5755 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5756 lt_nm_to_check="$lt_nm_to_check nm"
5757 fi
5758 for lt_tmp_nm in $lt_nm_to_check; do
5759 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5760 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5761 IFS="$lt_save_ifs"
5762 test -z "$ac_dir" && ac_dir=.
5763 tmp_nm="$ac_dir/$lt_tmp_nm"
5764 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5765 # Check to see if the nm accepts a BSD-compat flag.
5766 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5767 # nm: unknown option "B" ignored
5768 # Tru64's nm complains that /dev/null is an invalid object file
5769 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5770 */dev/null* | *'Invalid file or object type'*)
5771 lt_cv_path_NM="$tmp_nm -B"
5772 break
5773 ;;
5774 *)
5775 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5776 */dev/null*)
5777 lt_cv_path_NM="$tmp_nm -p"
5778 break
5779 ;;
5780 *)
5781 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5782 continue # so that we can try to find one that supports BSD flags
5783 ;;
5784 esac
5785 ;;
5786 esac
cfbc9945 5787 fi
d7040cdb
SE
5788 done
5789 IFS="$lt_save_ifs"
cfbc9945 5790 done
d7040cdb 5791 : ${lt_cv_path_NM=no}
cfbc9945 5792fi
a2d91340 5793fi
81ecdfbb
RW
5794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5795$as_echo "$lt_cv_path_NM" >&6; }
d7040cdb
SE
5796if test "$lt_cv_path_NM" != "no"; then
5797 NM="$lt_cv_path_NM"
cfbc9945 5798else
d7040cdb 5799 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
5800 if test -n "$DUMPBIN"; then :
5801 # Let the user override the test.
5802 else
5803 if test -n "$ac_tool_prefix"; then
5804 for ac_prog in dumpbin "link -dump"
d7040cdb
SE
5805 do
5806 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5807set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5809$as_echo_n "checking for $ac_word... " >&6; }
5810if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5811 $as_echo_n "(cached) " >&6
252b5132 5812else
d7040cdb
SE
5813 if test -n "$DUMPBIN"; then
5814 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5815else
5816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817for as_dir in $PATH
5818do
5819 IFS=$as_save_IFS
5820 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5821 for ac_exec_ext in '' $ac_executable_extensions; do
5822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 5823 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 5824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
5825 break 2
5826 fi
5827done
81ecdfbb
RW
5828 done
5829IFS=$as_save_IFS
5464f5a1 5830
d7040cdb
SE
5831fi
5832fi
5833DUMPBIN=$ac_cv_prog_DUMPBIN
5834if test -n "$DUMPBIN"; then
81ecdfbb
RW
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5836$as_echo "$DUMPBIN" >&6; }
d7040cdb 5837else
81ecdfbb
RW
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5839$as_echo "no" >&6; }
d7040cdb 5840fi
d5fbea21 5841
81ecdfbb 5842
d7040cdb
SE
5843 test -n "$DUMPBIN" && break
5844 done
5845fi
5846if test -z "$DUMPBIN"; then
5847 ac_ct_DUMPBIN=$DUMPBIN
3725885a 5848 for ac_prog in dumpbin "link -dump"
d7040cdb
SE
5849do
5850 # Extract the first word of "$ac_prog", so it can be a program name with args.
5851set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5853$as_echo_n "checking for $ac_word... " >&6; }
5854if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5855 $as_echo_n "(cached) " >&6
d7040cdb
SE
5856else
5857 if test -n "$ac_ct_DUMPBIN"; then
5858 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5859else
5860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861for as_dir in $PATH
5862do
5863 IFS=$as_save_IFS
5864 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5865 for ac_exec_ext in '' $ac_executable_extensions; do
5866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 5867 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 5868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 5869 break 2
cfbc9945 5870 fi
d7040cdb 5871done
81ecdfbb
RW
5872 done
5873IFS=$as_save_IFS
d5fbea21 5874
d7040cdb
SE
5875fi
5876fi
5877ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5878if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5880$as_echo "$ac_ct_DUMPBIN" >&6; }
d7040cdb 5881else
81ecdfbb
RW
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5883$as_echo "no" >&6; }
d7040cdb 5884fi
d5fbea21 5885
81ecdfbb 5886
d7040cdb
SE
5887 test -n "$ac_ct_DUMPBIN" && break
5888done
24443139 5889
81ecdfbb
RW
5890 if test "x$ac_ct_DUMPBIN" = x; then
5891 DUMPBIN=":"
5892 else
5893 case $cross_compiling:$ac_tool_warned in
5894yes:)
5895{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5896$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5897ac_tool_warned=yes ;;
5898esac
5899 DUMPBIN=$ac_ct_DUMPBIN
5900 fi
d7040cdb 5901fi
24443139 5902
3725885a
RW
5903 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5904 *COFF*)
5905 DUMPBIN="$DUMPBIN -symbols"
5906 ;;
5907 *)
5908 DUMPBIN=:
5909 ;;
5910 esac
5911 fi
24443139 5912
d7040cdb
SE
5913 if test "$DUMPBIN" != ":"; then
5914 NM="$DUMPBIN"
cfbc9945 5915 fi
d7040cdb
SE
5916fi
5917test -z "$NM" && NM=nm
a703a6ea 5918
f5385ebf 5919
cfbc9945 5920
24443139
AS
5921
5922
5923
81ecdfbb
RW
5924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5925$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5926if test "${lt_cv_nm_interface+set}" = set; then :
5927 $as_echo_n "(cached) " >&6
d7040cdb
SE
5928else
5929 lt_cv_nm_interface="BSD nm"
5930 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 5931 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
d7040cdb
SE
5932 (eval "$ac_compile" 2>conftest.err)
5933 cat conftest.err >&5
3725885a 5934 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
d7040cdb
SE
5935 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5936 cat conftest.err >&5
3725885a 5937 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
d7040cdb
SE
5938 cat conftest.out >&5
5939 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5940 lt_cv_nm_interface="MS dumpbin"
5941 fi
5942 rm -f conftest*
cfbc9945 5943fi
81ecdfbb
RW
5944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5945$as_echo "$lt_cv_nm_interface" >&6; }
a703a6ea 5946
81ecdfbb
RW
5947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5948$as_echo_n "checking whether ln -s works... " >&6; }
d7040cdb
SE
5949LN_S=$as_ln_s
5950if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5952$as_echo "yes" >&6; }
d7040cdb 5953else
81ecdfbb
RW
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5955$as_echo "no, using $LN_S" >&6; }
d7040cdb 5956fi
252b5132 5957
cfbc9945 5958# find the maximum length of command line arguments
81ecdfbb
RW
5959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5960$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5961if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5962 $as_echo_n "(cached) " >&6
cfbc9945
SE
5963else
5964 i=0
5965 teststring="ABCD"
5464f5a1 5966
cfbc9945
SE
5967 case $build_os in
5968 msdosdjgpp*)
5969 # On DJGPP, this test can blow up pretty badly due to problems in libc
5970 # (any single argument exceeding 2000 bytes causes a buffer overrun
5971 # during glob expansion). Even if it were fixed, the result of this
5972 # check would be larger than it should be.
5973 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5974 ;;
5464f5a1 5975
d7040cdb
SE
5976 gnu*)
5977 # Under GNU Hurd, this test is not required because there is
5978 # no limit to the length of command line arguments.
5979 # Libtool will interpret -1 as no limit whatsoever
5980 lt_cv_sys_max_cmd_len=-1;
5981 ;;
5982
718a6fd8 5983 cygwin* | mingw* | cegcc*)
cfbc9945
SE
5984 # On Win9x/ME, this test blows up -- it succeeds, but takes
5985 # about 5 minutes as the teststring grows exponentially.
5986 # Worse, since 9x/ME are not pre-emptively multitasking,
5987 # you end up with a "frozen" computer, even though with patience
5988 # the test eventually succeeds (with a max line length of 256k).
5989 # Instead, let's just punt: use the minimum linelength reported by
5990 # all of the supported platforms: 8192 (on NT/2K/XP).
5991 lt_cv_sys_max_cmd_len=8192;
5992 ;;
5464f5a1 5993
3725885a
RW
5994 mint*)
5995 # On MiNT this can take a long time and run out of memory.
5996 lt_cv_sys_max_cmd_len=8192;
5997 ;;
5998
cfbc9945
SE
5999 amigaos*)
6000 # On AmigaOS with pdksh, this test takes hours, literally.
6001 # So we just punt and use a minimum line length of 8192.
6002 lt_cv_sys_max_cmd_len=8192;
6003 ;;
5464f5a1 6004
cfbc9945
SE
6005 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6006 # This has been around since 386BSD, at least. Likely further.
6007 if test -x /sbin/sysctl; then
6008 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6009 elif test -x /usr/sbin/sysctl; then
6010 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6011 else
d7040cdb 6012 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
cfbc9945
SE
6013 fi
6014 # And add a safety zone
6015 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6016 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6017 ;;
d7040cdb
SE
6018
6019 interix*)
6020 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6021 lt_cv_sys_max_cmd_len=196608
6022 ;;
6023
6024 osf*)
6025 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6026 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6027 # nice to cause kernel panics so lets avoid the loop below.
6028 # First set a reasonable default.
6029 lt_cv_sys_max_cmd_len=16384
6030 #
6031 if test -x /sbin/sysconfig; then
6032 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6033 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6034 esac
6035 fi
6036 ;;
6037 sco3.2v5*)
6038 lt_cv_sys_max_cmd_len=102400
6039 ;;
6040 sysv5* | sco5v6* | sysv4.2uw2*)
6041 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6042 if test -n "$kargmax"; then
6043 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6044 else
6045 lt_cv_sys_max_cmd_len=32768
6046 fi
6047 ;;
6048 *)
718a6fd8
SE
6049 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6050 if test -n "$lt_cv_sys_max_cmd_len"; then
79887925
L
6051 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6052 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6053 else
6054 # Make teststring a little bigger before we do anything with it.
6055 # a 1K string should be a reasonable start.
6056 for i in 1 2 3 4 5 6 7 8 ; do
6057 teststring=$teststring$teststring
6058 done
6059 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6060 # If test is not a shell built-in, we'll probably end up computing a
6061 # maximum length that is only half of the actual maximum length, but
6062 # we can't tell.
3725885a
RW
6063 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6064 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
79887925
L
6065 test $i != 17 # 1/2 MB should be enough
6066 do
6067 i=`expr $i + 1`
6068 teststring=$teststring$teststring
6069 done
6070 # Only check the string length outside the loop.
6071 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6072 teststring=
6073 # Add a significant safety factor because C++ compilers can tack on
6074 # massive amounts of additional arguments before passing them to the
6075 # linker. It appears as though 1/2 is a usable value.
6076 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6077 fi
d7040cdb 6078 ;;
cfbc9945 6079 esac
5464f5a1 6080
252b5132 6081fi
cfbc9945 6082
d7040cdb 6083if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6085$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5464f5a1 6086else
81ecdfbb
RW
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6088$as_echo "none" >&6; }
5464f5a1 6089fi
d7040cdb 6090max_cmd_len=$lt_cv_sys_max_cmd_len
252b5132 6091
cfbc9945 6092
252b5132 6093
cfbc9945 6094
cfbc9945 6095
d7040cdb 6096
d7040cdb
SE
6097: ${CP="cp -f"}
6098: ${MV="mv -f"}
6099: ${RM="rm -f"}
6100
81ecdfbb
RW
6101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6102$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
d7040cdb
SE
6103# Try some XSI features
6104xsi_shell=no
6105( _lt_dummy="a/b/c"
6106 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
718a6fd8
SE
6107 = c,a/b,, \
6108 && eval 'test $(( 1 + 1 )) -eq 2 \
6109 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
d7040cdb 6110 && xsi_shell=yes
81ecdfbb
RW
6111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6112$as_echo "$xsi_shell" >&6; }
d7040cdb
SE
6113
6114
81ecdfbb
RW
6115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6116$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
d7040cdb
SE
6117lt_shell_append=no
6118( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6119 >/dev/null 2>&1 \
6120 && lt_shell_append=yes
81ecdfbb
RW
6121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6122$as_echo "$lt_shell_append" >&6; }
d7040cdb
SE
6123
6124
6125if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6126 lt_unset=unset
5464f5a1 6127else
d7040cdb 6128 lt_unset=false
5464f5a1 6129fi
252b5132 6130
d7040cdb
SE
6131
6132
6133
6134
6135# test EBCDIC or ASCII
6136case `echo X|tr X '\101'` in
6137 A) # ASCII based system
6138 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6139 lt_SP2NL='tr \040 \012'
6140 lt_NL2SP='tr \015\012 \040\040'
6141 ;;
6142 *) # EBCDIC based system
6143 lt_SP2NL='tr \100 \n'
6144 lt_NL2SP='tr \r\n \100\100'
6145 ;;
6146esac
6147
6148
6149
6150
6151
6152
6153
6154
6155
81ecdfbb
RW
6156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6157$as_echo_n "checking for $LD option to reload object files... " >&6; }
6158if test "${lt_cv_ld_reload_flag+set}" = set; then :
6159 $as_echo_n "(cached) " >&6
5464f5a1 6160else
d7040cdb
SE
6161 lt_cv_ld_reload_flag='-r'
6162fi
81ecdfbb
RW
6163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6164$as_echo "$lt_cv_ld_reload_flag" >&6; }
d7040cdb
SE
6165reload_flag=$lt_cv_ld_reload_flag
6166case $reload_flag in
6167"" | " "*) ;;
6168*) reload_flag=" $reload_flag" ;;
6169esac
6170reload_cmds='$LD$reload_flag -o $output$reload_objs'
6171case $host_os in
6172 darwin*)
6173 if test "$GCC" = yes; then
6174 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6175 else
6176 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6177 fi
6178 ;;
6179esac
6180
6181
6182
6183
6184
6185
6186
6187
6188
718a6fd8
SE
6189if test -n "$ac_tool_prefix"; then
6190 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6191set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
6192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6193$as_echo_n "checking for $ac_word... " >&6; }
6194if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6195 $as_echo_n "(cached) " >&6
718a6fd8
SE
6196else
6197 if test -n "$OBJDUMP"; then
6198 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6199else
6200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201for as_dir in $PATH
6202do
6203 IFS=$as_save_IFS
6204 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6205 for ac_exec_ext in '' $ac_executable_extensions; do
6206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 6207 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 6208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6209 break 2
6210 fi
6211done
81ecdfbb
RW
6212 done
6213IFS=$as_save_IFS
718a6fd8
SE
6214
6215fi
6216fi
6217OBJDUMP=$ac_cv_prog_OBJDUMP
6218if test -n "$OBJDUMP"; then
81ecdfbb
RW
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6220$as_echo "$OBJDUMP" >&6; }
718a6fd8 6221else
81ecdfbb
RW
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6223$as_echo "no" >&6; }
718a6fd8
SE
6224fi
6225
81ecdfbb 6226
718a6fd8
SE
6227fi
6228if test -z "$ac_cv_prog_OBJDUMP"; then
6229 ac_ct_OBJDUMP=$OBJDUMP
6230 # Extract the first word of "objdump", so it can be a program name with args.
6231set dummy objdump; ac_word=$2
81ecdfbb
RW
6232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6233$as_echo_n "checking for $ac_word... " >&6; }
6234if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6235 $as_echo_n "(cached) " >&6
718a6fd8
SE
6236else
6237 if test -n "$ac_ct_OBJDUMP"; then
6238 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6239else
6240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241for as_dir in $PATH
6242do
6243 IFS=$as_save_IFS
6244 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6245 for ac_exec_ext in '' $ac_executable_extensions; do
6246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 6247 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 6248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6249 break 2
6250 fi
6251done
81ecdfbb
RW
6252 done
6253IFS=$as_save_IFS
718a6fd8 6254
718a6fd8
SE
6255fi
6256fi
6257ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6258if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6260$as_echo "$ac_ct_OBJDUMP" >&6; }
718a6fd8 6261else
81ecdfbb
RW
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6263$as_echo "no" >&6; }
718a6fd8
SE
6264fi
6265
81ecdfbb
RW
6266 if test "x$ac_ct_OBJDUMP" = x; then
6267 OBJDUMP="false"
6268 else
6269 case $cross_compiling:$ac_tool_warned in
6270yes:)
6271{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6272$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6273ac_tool_warned=yes ;;
6274esac
6275 OBJDUMP=$ac_ct_OBJDUMP
6276 fi
718a6fd8
SE
6277else
6278 OBJDUMP="$ac_cv_prog_OBJDUMP"
6279fi
6280
6281test -z "$OBJDUMP" && OBJDUMP=objdump
6282
6283
6284
6285
6286
6287
6288
6289
d7040cdb 6290
81ecdfbb
RW
6291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6292$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6293if test "${lt_cv_deplibs_check_method+set}" = set; then :
6294 $as_echo_n "(cached) " >&6
d7040cdb
SE
6295else
6296 lt_cv_file_magic_cmd='$MAGIC_CMD'
6297lt_cv_file_magic_test_file=
6298lt_cv_deplibs_check_method='unknown'
6299# Need to set the preceding variable on all platforms that support
6300# interlibrary dependencies.
6301# 'none' -- dependencies not supported.
6302# `unknown' -- same as none, but documents that we really don't know.
6303# 'pass_all' -- all dependencies passed with no checks.
6304# 'test_compile' -- check by making test program.
6305# 'file_magic [[regex]]' -- check by looking for files in library path
6306# which responds to the $file_magic_cmd with a given extended regex.
6307# If you have `file' or equivalent on your system and you're not sure
6308# whether `pass_all' will *always* work, you probably want this one.
6309
6310case $host_os in
e81819a5 6311aix[4-9]*)
d7040cdb
SE
6312 lt_cv_deplibs_check_method=pass_all
6313 ;;
6314
6315beos*)
6316 lt_cv_deplibs_check_method=pass_all
6317 ;;
6318
6319bsdi[45]*)
6320 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6321 lt_cv_file_magic_cmd='/usr/bin/file -L'
6322 lt_cv_file_magic_test_file=/shlib/libc.so
6323 ;;
6324
6325cygwin*)
6326 # func_win32_libid is a shell function defined in ltmain.sh
6327 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6328 lt_cv_file_magic_cmd='func_win32_libid'
6329 ;;
6330
6331mingw* | pw32*)
6332 # Base MSYS/MinGW do not provide the 'file' command needed by
6333 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6334 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
6335 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6336 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
d7040cdb
SE
6337 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6338 lt_cv_file_magic_cmd='func_win32_libid'
6339 else
6340 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6341 lt_cv_file_magic_cmd='$OBJDUMP -f'
6342 fi
6343 ;;
6344
3725885a 6345cegcc*)
718a6fd8
SE
6346 # use the weaker test based on 'objdump'. See mingw*.
6347 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6348 lt_cv_file_magic_cmd='$OBJDUMP -f'
6349 ;;
6350
d7040cdb
SE
6351darwin* | rhapsody*)
6352 lt_cv_deplibs_check_method=pass_all
cfbc9945 6353 ;;
d7040cdb
SE
6354
6355freebsd* | dragonfly*)
6356 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6357 case $host_cpu in
6358 i*86 )
6359 # Not sure whether the presence of OpenBSD here was a mistake.
6360 # Let's accept both of them until this is cleared up.
6361 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6362 lt_cv_file_magic_cmd=/usr/bin/file
6363 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6364 ;;
6365 esac
6366 else
6367 lt_cv_deplibs_check_method=pass_all
6368 fi
6369 ;;
6370
6371gnu*)
6372 lt_cv_deplibs_check_method=pass_all
cfbc9945 6373 ;;
d7040cdb 6374
3725885a
RW
6375haiku*)
6376 lt_cv_deplibs_check_method=pass_all
6377 ;;
6378
d7040cdb
SE
6379hpux10.20* | hpux11*)
6380 lt_cv_file_magic_cmd=/usr/bin/file
6381 case $host_cpu in
6382 ia64*)
6383 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6384 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6385 ;;
6386 hppa*64*)
3725885a 6387 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
6388 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6389 ;;
cfbc9945 6390 *)
3725885a 6391 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
d7040cdb
SE
6392 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6393 ;;
6394 esac
6395 ;;
6be7c12c 6396
d7040cdb
SE
6397interix[3-9]*)
6398 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6399 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6400 ;;
cfbc9945 6401
d7040cdb
SE
6402irix5* | irix6* | nonstopux*)
6403 case $LD in
6404 *-32|*"-32 ") libmagic=32-bit;;
6405 *-n32|*"-n32 ") libmagic=N32;;
6406 *-64|*"-64 ") libmagic=64-bit;;
6407 *) libmagic=never-match;;
6408 esac
6409 lt_cv_deplibs_check_method=pass_all
cfbc9945 6410 ;;
cfbc9945 6411
d7040cdb 6412# This must be Linux ELF.
58e24671 6413linux* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb
SE
6414 lt_cv_deplibs_check_method=pass_all
6415 ;;
5464f5a1 6416
d7040cdb
SE
6417netbsd*)
6418 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6419 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cfbc9945 6420 else
d7040cdb 6421 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
cfbc9945 6422 fi
d7040cdb
SE
6423 ;;
6424
6425newos6*)
6426 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6427 lt_cv_file_magic_cmd=/usr/bin/file
6428 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6429 ;;
6430
6431*nto* | *qnx*)
6432 lt_cv_deplibs_check_method=pass_all
6433 ;;
cfbc9945 6434
d7040cdb
SE
6435openbsd*)
6436 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6437 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6438 else
6439 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cfbc9945
SE
6440 fi
6441 ;;
d7040cdb
SE
6442
6443osf3* | osf4* | osf5*)
6444 lt_cv_deplibs_check_method=pass_all
6445 ;;
6446
6447rdos*)
6448 lt_cv_deplibs_check_method=pass_all
6449 ;;
6450
6451solaris*)
6452 lt_cv_deplibs_check_method=pass_all
6453 ;;
6454
6455sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6456 lt_cv_deplibs_check_method=pass_all
6457 ;;
6458
6459sysv4 | sysv4.3*)
6460 case $host_vendor in
6461 motorola)
6462 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]'
6463 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6464 ;;
6465 ncr)
6466 lt_cv_deplibs_check_method=pass_all
6467 ;;
6468 sequent)
6469 lt_cv_file_magic_cmd='/bin/file'
6470 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6471 ;;
6472 sni)
6473 lt_cv_file_magic_cmd='/bin/file'
6474 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6475 lt_cv_file_magic_test_file=/lib/libc.so
6476 ;;
6477 siemens)
6478 lt_cv_deplibs_check_method=pass_all
6479 ;;
6480 pc)
6481 lt_cv_deplibs_check_method=pass_all
6482 ;;
6483 esac
6484 ;;
6485
6486tpf*)
6487 lt_cv_deplibs_check_method=pass_all
6488 ;;
cfbc9945
SE
6489esac
6490
d7040cdb 6491fi
81ecdfbb
RW
6492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6493$as_echo "$lt_cv_deplibs_check_method" >&6; }
d7040cdb
SE
6494file_magic_cmd=$lt_cv_file_magic_cmd
6495deplibs_check_method=$lt_cv_deplibs_check_method
6496test -z "$deplibs_check_method" && deplibs_check_method=unknown
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
cfbc9945 6509if test -n "$ac_tool_prefix"; then
d7040cdb
SE
6510 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6511set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
6512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6513$as_echo_n "checking for $ac_word... " >&6; }
6514if test "${ac_cv_prog_AR+set}" = set; then :
6515 $as_echo_n "(cached) " >&6
5464f5a1 6516else
d7040cdb
SE
6517 if test -n "$AR"; then
6518 ac_cv_prog_AR="$AR" # Let the user override the test.
5464f5a1
NN
6519else
6520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521for as_dir in $PATH
6522do
6523 IFS=$as_save_IFS
6524 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6525 for ac_exec_ext in '' $ac_executable_extensions; do
6526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 6527 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 6528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
6529 break 2
6530 fi
6531done
81ecdfbb
RW
6532 done
6533IFS=$as_save_IFS
5464f5a1
NN
6534
6535fi
6536fi
d7040cdb
SE
6537AR=$ac_cv_prog_AR
6538if test -n "$AR"; then
81ecdfbb
RW
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6540$as_echo "$AR" >&6; }
5464f5a1 6541else
81ecdfbb
RW
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6543$as_echo "no" >&6; }
5464f5a1
NN
6544fi
6545
81ecdfbb 6546
5464f5a1 6547fi
d7040cdb
SE
6548if test -z "$ac_cv_prog_AR"; then
6549 ac_ct_AR=$AR
6550 # Extract the first word of "ar", so it can be a program name with args.
6551set dummy ar; ac_word=$2
81ecdfbb
RW
6552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6553$as_echo_n "checking for $ac_word... " >&6; }
6554if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6555 $as_echo_n "(cached) " >&6
252b5132 6556else
d7040cdb
SE
6557 if test -n "$ac_ct_AR"; then
6558 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
252b5132 6559else
5464f5a1
NN
6560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561for as_dir in $PATH
6562do
6563 IFS=$as_save_IFS
6564 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6565 for ac_exec_ext in '' $ac_executable_extensions; do
6566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 6567 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 6568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
6569 break 2
6570 fi
6571done
81ecdfbb
RW
6572 done
6573IFS=$as_save_IFS
5464f5a1 6574
5464f5a1
NN
6575fi
6576fi
d7040cdb
SE
6577ac_ct_AR=$ac_cv_prog_ac_ct_AR
6578if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6580$as_echo "$ac_ct_AR" >&6; }
d7040cdb 6581else
81ecdfbb
RW
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6583$as_echo "no" >&6; }
5464f5a1
NN
6584fi
6585
81ecdfbb
RW
6586 if test "x$ac_ct_AR" = x; then
6587 AR="false"
6588 else
6589 case $cross_compiling:$ac_tool_warned in
6590yes:)
6591{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6592$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6593ac_tool_warned=yes ;;
6594esac
6595 AR=$ac_ct_AR
6596 fi
cfbc9945 6597else
d7040cdb 6598 AR="$ac_cv_prog_AR"
5464f5a1 6599fi
cfbc9945 6600
d7040cdb
SE
6601test -z "$AR" && AR=ar
6602test -z "$AR_FLAGS" && AR_FLAGS=cru
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
cfbc9945
SE
6614if test -n "$ac_tool_prefix"; then
6615 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6616set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6618$as_echo_n "checking for $ac_word... " >&6; }
6619if test "${ac_cv_prog_STRIP+set}" = set; then :
6620 $as_echo_n "(cached) " >&6
5464f5a1 6621else
cfbc9945
SE
6622 if test -n "$STRIP"; then
6623 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5464f5a1
NN
6624else
6625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626for as_dir in $PATH
6627do
6628 IFS=$as_save_IFS
6629 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6630 for ac_exec_ext in '' $ac_executable_extensions; do
6631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945 6632 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
6634 break 2
6635 fi
6636done
81ecdfbb
RW
6637 done
6638IFS=$as_save_IFS
5464f5a1
NN
6639
6640fi
6641fi
cfbc9945
SE
6642STRIP=$ac_cv_prog_STRIP
6643if test -n "$STRIP"; then
81ecdfbb
RW
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6645$as_echo "$STRIP" >&6; }
5464f5a1 6646else
81ecdfbb
RW
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6648$as_echo "no" >&6; }
5464f5a1
NN
6649fi
6650
81ecdfbb 6651
252b5132 6652fi
cfbc9945
SE
6653if test -z "$ac_cv_prog_STRIP"; then
6654 ac_ct_STRIP=$STRIP
6655 # Extract the first word of "strip", so it can be a program name with args.
6656set dummy strip; ac_word=$2
81ecdfbb
RW
6657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6658$as_echo_n "checking for $ac_word... " >&6; }
6659if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6660 $as_echo_n "(cached) " >&6
5464f5a1 6661else
cfbc9945
SE
6662 if test -n "$ac_ct_STRIP"; then
6663 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5464f5a1
NN
6664else
6665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666for as_dir in $PATH
6667do
6668 IFS=$as_save_IFS
6669 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6670 for ac_exec_ext in '' $ac_executable_extensions; do
6671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945 6672 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
6674 break 2
6675 fi
6676done
81ecdfbb
RW
6677 done
6678IFS=$as_save_IFS
5464f5a1
NN
6679
6680fi
6681fi
cfbc9945
SE
6682ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6683if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6685$as_echo "$ac_ct_STRIP" >&6; }
5464f5a1 6686else
81ecdfbb
RW
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6688$as_echo "no" >&6; }
5464f5a1
NN
6689fi
6690
81ecdfbb
RW
6691 if test "x$ac_ct_STRIP" = x; then
6692 STRIP=":"
6693 else
6694 case $cross_compiling:$ac_tool_warned in
6695yes:)
6696{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6697$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6698ac_tool_warned=yes ;;
6699esac
6700 STRIP=$ac_ct_STRIP
6701 fi
cfbc9945
SE
6702else
6703 STRIP="$ac_cv_prog_STRIP"
5464f5a1
NN
6704fi
6705
d7040cdb 6706test -z "$STRIP" && STRIP=:
5464f5a1 6707
cfbc9945
SE
6708
6709
cfbc9945 6710
cfbc9945
SE
6711
6712
d7040cdb
SE
6713if test -n "$ac_tool_prefix"; then
6714 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6715set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6717$as_echo_n "checking for $ac_word... " >&6; }
6718if test "${ac_cv_prog_RANLIB+set}" = set; then :
6719 $as_echo_n "(cached) " >&6
cfbc9945 6720else
d7040cdb
SE
6721 if test -n "$RANLIB"; then
6722 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6723else
6724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725for as_dir in $PATH
6726do
6727 IFS=$as_save_IFS
6728 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6729 for ac_exec_ext in '' $ac_executable_extensions; do
6730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 6731 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 6732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 6733 break 2
cfbc9945 6734 fi
d7040cdb 6735done
81ecdfbb
RW
6736 done
6737IFS=$as_save_IFS
cfbc9945 6738
d7040cdb
SE
6739fi
6740fi
6741RANLIB=$ac_cv_prog_RANLIB
6742if test -n "$RANLIB"; then
81ecdfbb
RW
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6744$as_echo "$RANLIB" >&6; }
d7040cdb 6745else
81ecdfbb
RW
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6747$as_echo "no" >&6; }
d7040cdb 6748fi
cfbc9945 6749
81ecdfbb 6750
d7040cdb
SE
6751fi
6752if test -z "$ac_cv_prog_RANLIB"; then
6753 ac_ct_RANLIB=$RANLIB
6754 # Extract the first word of "ranlib", so it can be a program name with args.
6755set dummy ranlib; ac_word=$2
81ecdfbb
RW
6756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6757$as_echo_n "checking for $ac_word... " >&6; }
6758if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6759 $as_echo_n "(cached) " >&6
d7040cdb
SE
6760else
6761 if test -n "$ac_ct_RANLIB"; then
6762 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6763else
6764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765for as_dir in $PATH
6766do
6767 IFS=$as_save_IFS
6768 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6769 for ac_exec_ext in '' $ac_executable_extensions; do
6770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 6771 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 6772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 6773 break 2
cfbc9945 6774 fi
d7040cdb 6775done
81ecdfbb
RW
6776 done
6777IFS=$as_save_IFS
cfbc9945 6778
d7040cdb
SE
6779fi
6780fi
6781ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6782if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6784$as_echo "$ac_ct_RANLIB" >&6; }
cfbc9945 6785else
81ecdfbb
RW
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6787$as_echo "no" >&6; }
d7040cdb 6788fi
5464f5a1 6789
81ecdfbb
RW
6790 if test "x$ac_ct_RANLIB" = x; then
6791 RANLIB=":"
6792 else
6793 case $cross_compiling:$ac_tool_warned in
6794yes:)
6795{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6796$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6797ac_tool_warned=yes ;;
6798esac
6799 RANLIB=$ac_ct_RANLIB
6800 fi
d7040cdb
SE
6801else
6802 RANLIB="$ac_cv_prog_RANLIB"
6803fi
5464f5a1 6804
d7040cdb 6805test -z "$RANLIB" && RANLIB=:
5464f5a1 6806
5464f5a1 6807
5464f5a1 6808
cfbc9945 6809
cfbc9945 6810
d7040cdb
SE
6811
6812# Determine commands to create old-style static archives.
718a6fd8 6813old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
d7040cdb
SE
6814old_postinstall_cmds='chmod 644 $oldlib'
6815old_postuninstall_cmds=
6816
6817if test -n "$RANLIB"; then
6818 case $host_os in
6819 openbsd*)
6820 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6821 ;;
6822 *)
6823 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6824 ;;
6825 esac
6826 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
cfbc9945 6827fi
cfbc9945 6828
3725885a
RW
6829case $host_os in
6830 darwin*)
6831 lock_old_archive_extraction=yes ;;
6832 *)
6833 lock_old_archive_extraction=no ;;
6834esac
6835
6836
6837
6838
6839
6840
cfbc9945 6841
cfbc9945
SE
6842
6843
cfbc9945 6844
cfbc9945 6845
cfbc9945 6846
cfbc9945 6847
cfbc9945
SE
6848
6849
cfbc9945 6850
cfbc9945 6851
cfbc9945
SE
6852
6853
6854
6855
6856
6857
6858
5464f5a1 6859
5464f5a1 6860
cfbc9945
SE
6861
6862
6863
5464f5a1 6864
5464f5a1 6865
cfbc9945
SE
6866
6867
6868
5464f5a1 6869
cfbc9945
SE
6870
6871
6872
6873
d7040cdb
SE
6874# If no C compiler was specified, use CC.
6875LTCC=${LTCC-"$CC"}
cfbc9945 6876
d7040cdb
SE
6877# If no C compiler flags were specified, use CFLAGS.
6878LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
cfbc9945 6879
d7040cdb
SE
6880# Allow CC to be a program name with arguments.
6881compiler=$CC
cfbc9945 6882
cfbc9945 6883
d7040cdb 6884# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
6885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6886$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6887if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6888 $as_echo_n "(cached) " >&6
d7040cdb 6889else
5464f5a1 6890
d7040cdb
SE
6891# These are sane defaults that work on at least a few old systems.
6892# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5464f5a1 6893
d7040cdb
SE
6894# Character class describing NM global symbol codes.
6895symcode='[BCDEGRST]'
6896
6897# Regexp to match symbols that can be accessed directly from C.
6898sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6899
6900# Define system-specific variables.
6901case $host_os in
6902aix*)
6903 symcode='[BCDT]'
6904 ;;
718a6fd8 6905cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
6906 symcode='[ABCDGISTW]'
6907 ;;
6908hpux*)
6909 if test "$host_cpu" = ia64; then
6910 symcode='[ABCDEGRST]'
6911 fi
6912 ;;
6913irix* | nonstopux*)
6914 symcode='[BCDEGRST]'
6915 ;;
6916osf*)
6917 symcode='[BCDEGQRST]'
6918 ;;
6919solaris*)
6920 symcode='[BDRT]'
6921 ;;
6922sco3.2v5*)
6923 symcode='[DT]'
6924 ;;
6925sysv4.2uw2*)
6926 symcode='[DT]'
6927 ;;
6928sysv5* | sco5v6* | unixware* | OpenUNIX*)
6929 symcode='[ABDT]'
6930 ;;
6931sysv4)
6932 symcode='[DFNSTU]'
6933 ;;
cfbc9945 6934esac
5464f5a1 6935
d7040cdb
SE
6936# If we're using GNU nm, then use its standard symbol codes.
6937case `$NM -V 2>&1` in
6938*GNU* | *'with BFD'*)
6939 symcode='[ABCDGIRSTW]' ;;
6940esac
5464f5a1 6941
d7040cdb
SE
6942# Transform an extracted symbol line into a proper C declaration.
6943# Some systems (esp. on ia64) link data and code symbols differently,
6944# so use this general approach.
6945lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5464f5a1 6946
d7040cdb
SE
6947# Transform an extracted symbol line into symbol name and symbol address
6948lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
718a6fd8 6949lt_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 6950
d7040cdb
SE
6951# Handle CRLF in mingw tool chain
6952opt_cr=
6953case $build_os in
6954mingw*)
6955 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6956 ;;
6957esac
5464f5a1 6958
d7040cdb
SE
6959# Try without a prefix underscore, then with it.
6960for ac_symprfx in "" "_"; do
6961
6962 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6963 symxfrm="\\1 $ac_symprfx\\2 \\2"
6964
6965 # Write the raw and C identifiers.
6966 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6967 # Fake it for dumpbin and say T for any non-static function
6968 # and D for any global variable.
6969 # Also find C++ and __fastcall symbols from MSVC++,
6970 # which start with @ or ?.
6971 lt_cv_sys_global_symbol_pipe="$AWK '"\
6972" {last_section=section; section=\$ 3};"\
6973" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6974" \$ 0!~/External *\|/{next};"\
6975" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6976" {if(hide[section]) next};"\
6977" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6978" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6979" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6980" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6981" ' prfx=^$ac_symprfx"
6982 else
6983 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6984 fi
cfbc9945 6985
d7040cdb
SE
6986 # Check to see that the pipe works correctly.
6987 pipe_works=no
cfbc9945 6988
d7040cdb
SE
6989 rm -f conftest*
6990 cat > conftest.$ac_ext <<_LT_EOF
6991#ifdef __cplusplus
6992extern "C" {
6993#endif
6994char nm_test_var;
6995void nm_test_func(void);
6996void nm_test_func(void){}
6997#ifdef __cplusplus
6998}
6999#endif
7000int main(){nm_test_var='a';nm_test_func();return(0);}
7001_LT_EOF
cfbc9945 7002
81ecdfbb 7003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d7040cdb
SE
7004 (eval $ac_compile) 2>&5
7005 ac_status=$?
81ecdfbb
RW
7006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7007 test $ac_status = 0; }; then
d7040cdb
SE
7008 # Now try to grab the symbols.
7009 nlist=conftest.nm
3725885a
RW
7010 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7011 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
d7040cdb 7012 ac_status=$?
81ecdfbb
RW
7013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7014 test $ac_status = 0; } && test -s "$nlist"; then
d7040cdb
SE
7015 # Try sorting and uniquifying the output.
7016 if sort "$nlist" | uniq > "$nlist"T; then
7017 mv -f "$nlist"T "$nlist"
7018 else
7019 rm -f "$nlist"T
7020 fi
cfbc9945 7021
d7040cdb
SE
7022 # Make sure that we snagged all the symbols we need.
7023 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7024 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7025 cat <<_LT_EOF > conftest.$ac_ext
7026#ifdef __cplusplus
7027extern "C" {
7028#endif
cfbc9945 7029
d7040cdb
SE
7030_LT_EOF
7031 # Now generate the symbol file.
7032 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5464f5a1 7033
d7040cdb 7034 cat <<_LT_EOF >> conftest.$ac_ext
cfbc9945 7035
d7040cdb
SE
7036/* The mapping between symbol names and symbols. */
7037const struct {
7038 const char *name;
7039 void *address;
7040}
7041lt__PROGRAM__LTX_preloaded_symbols[] =
7042{
7043 { "@PROGRAM@", (void *) 0 },
7044_LT_EOF
7045 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7046 cat <<\_LT_EOF >> conftest.$ac_ext
7047 {0, (void *) 0}
7048};
7049
7050/* This works around a problem in FreeBSD linker */
7051#ifdef FREEBSD_WORKAROUND
7052static const void *lt_preloaded_setup() {
7053 return lt__PROGRAM__LTX_preloaded_symbols;
7054}
7055#endif
cfbc9945 7056
d7040cdb
SE
7057#ifdef __cplusplus
7058}
7059#endif
7060_LT_EOF
7061 # Now try linking the two files.
7062 mv conftest.$ac_objext conftstm.$ac_objext
7063 lt_save_LIBS="$LIBS"
7064 lt_save_CFLAGS="$CFLAGS"
7065 LIBS="conftstm.$ac_objext"
7066 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 7067 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
7068 (eval $ac_link) 2>&5
7069 ac_status=$?
81ecdfbb
RW
7070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7071 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
d7040cdb
SE
7072 pipe_works=yes
7073 fi
7074 LIBS="$lt_save_LIBS"
7075 CFLAGS="$lt_save_CFLAGS"
7076 else
7077 echo "cannot find nm_test_func in $nlist" >&5
7078 fi
7079 else
7080 echo "cannot find nm_test_var in $nlist" >&5
7081 fi
7082 else
7083 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7084 fi
7085 else
7086 echo "$progname: failed program was:" >&5
7087 cat conftest.$ac_ext >&5
7088 fi
718a6fd8 7089 rm -rf conftest* conftst*
cfbc9945 7090
d7040cdb
SE
7091 # Do not use the global_symbol_pipe unless it works.
7092 if test "$pipe_works" = yes; then
7093 break
7094 else
7095 lt_cv_sys_global_symbol_pipe=
7096 fi
7097done
cfbc9945 7098
252b5132 7099fi
5464f5a1 7100
d7040cdb
SE
7101if test -z "$lt_cv_sys_global_symbol_pipe"; then
7102 lt_cv_sys_global_symbol_to_cdecl=
7103fi
7104if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7106$as_echo "failed" >&6; }
b3baf5d0 7107else
81ecdfbb
RW
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7109$as_echo "ok" >&6; }
d7040cdb 7110fi
5464f5a1 7111
cfbc9945 7112
b3baf5d0 7113
cfbc9945
SE
7114
7115
7116
7117
5464f5a1 7118
4a2a2686
HPN
7119
7120
7121
cfbc9945
SE
7122
7123
cfbc9945 7124
cfbc9945 7125
718a6fd8
SE
7126
7127
7128
7129
7130
9d7cbccd 7131
20e95c23 7132
81ecdfbb
RW
7133# Check whether --enable-libtool-lock was given.
7134if test "${enable_libtool_lock+set}" = set; then :
7135 enableval=$enable_libtool_lock;
7136fi
20e95c23 7137
d7040cdb 7138test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
20e95c23 7139
d7040cdb
SE
7140# Some flags need to be propagated to the compiler or linker for good
7141# libtool support.
7142case $host in
7143ia64-*-hpux*)
7144 # Find out which ABI we are using.
7145 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7146 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d7040cdb
SE
7147 (eval $ac_compile) 2>&5
7148 ac_status=$?
81ecdfbb
RW
7149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7150 test $ac_status = 0; }; then
d7040cdb
SE
7151 case `/usr/bin/file conftest.$ac_objext` in
7152 *ELF-32*)
7153 HPUX_IA64_MODE="32"
7154 ;;
7155 *ELF-64*)
7156 HPUX_IA64_MODE="64"
7157 ;;
20e95c23 7158 esac
d7040cdb
SE
7159 fi
7160 rm -rf conftest*
7161 ;;
7162*-*-irix6*)
7163 # Find out which ABI we are using.
3725885a 7164 echo '#line '$LINENO' "configure"' > 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 if test "$lt_cv_prog_gnu_ld" = yes; then
7171 case `/usr/bin/file conftest.$ac_objext` in
7172 *32-bit*)
7173 LD="${LD-ld} -melf32bsmip"
7174 ;;
7175 *N32*)
7176 LD="${LD-ld} -melf32bmipn32"
7177 ;;
7178 *64-bit*)
7179 LD="${LD-ld} -melf64bmip"
7180 ;;
7181 esac
20e95c23 7182 else
d7040cdb
SE
7183 case `/usr/bin/file conftest.$ac_objext` in
7184 *32-bit*)
7185 LD="${LD-ld} -32"
7186 ;;
7187 *N32*)
7188 LD="${LD-ld} -n32"
7189 ;;
7190 *64-bit*)
7191 LD="${LD-ld} -64"
7192 ;;
20e95c23
DJ
7193 esac
7194 fi
d7040cdb
SE
7195 fi
7196 rm -rf conftest*
7197 ;;
20e95c23 7198
d7040cdb
SE
7199x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7200s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7201 # Find out which ABI we are using.
7202 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7203 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d7040cdb
SE
7204 (eval $ac_compile) 2>&5
7205 ac_status=$?
81ecdfbb
RW
7206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7207 test $ac_status = 0; }; then
d7040cdb
SE
7208 case `/usr/bin/file conftest.o` in
7209 *32-bit*)
7210 case $host in
7211 x86_64-*kfreebsd*-gnu)
7212 LD="${LD-ld} -m elf_i386_fbsd"
7213 ;;
7214 x86_64-*linux*)
7215 LD="${LD-ld} -m elf_i386"
7216 ;;
7217 ppc64-*linux*|powerpc64-*linux*)
7218 LD="${LD-ld} -m elf32ppclinux"
7219 ;;
7220 s390x-*linux*)
7221 LD="${LD-ld} -m elf_s390"
7222 ;;
7223 sparc64-*linux*)
7224 LD="${LD-ld} -m elf32_sparc"
7225 ;;
7226 esac
7227 ;;
7228 *64-bit*)
7229 case $host in
7230 x86_64-*kfreebsd*-gnu)
7231 LD="${LD-ld} -m elf_x86_64_fbsd"
7232 ;;
7233 x86_64-*linux*)
7234 LD="${LD-ld} -m elf_x86_64"
7235 ;;
7236 ppc*-*linux*|powerpc*-*linux*)
7237 LD="${LD-ld} -m elf64ppc"
7238 ;;
7239 s390*-*linux*|s390*-*tpf*)
7240 LD="${LD-ld} -m elf64_s390"
7241 ;;
7242 sparc*-*linux*)
7243 LD="${LD-ld} -m elf64_sparc"
7244 ;;
7245 esac
7246 ;;
20e95c23
DJ
7247 esac
7248 fi
d7040cdb 7249 rm -rf conftest*
7357c5b6 7250 ;;
d7040cdb 7251
7357c5b6
AM
7252*-*-sco3.2v5*)
7253 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7254 SAVE_CFLAGS="$CFLAGS"
7255 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7257$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7258if test "${lt_cv_cc_needs_belf+set}" = set; then :
7259 $as_echo_n "(cached) " >&6
d7040cdb 7260else
7357c5b6
AM
7261 ac_ext=c
7262ac_cpp='$CPP $CPPFLAGS'
7263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7265ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 7266
81ecdfbb 7267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 7268/* end confdefs.h. */
d7040cdb 7269
d7040cdb
SE
7270int
7271main ()
7272{
7357c5b6
AM
7273
7274 ;
7275 return 0;
d7040cdb
SE
7276}
7277_ACEOF
81ecdfbb 7278if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 7279 lt_cv_cc_needs_belf=yes
d7040cdb 7280else
81ecdfbb 7281 lt_cv_cc_needs_belf=no
d7040cdb 7282fi
81ecdfbb
RW
7283rm -f core conftest.err conftest.$ac_objext \
7284 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
7285 ac_ext=c
7286ac_cpp='$CPP $CPPFLAGS'
7287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7289ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
7290
7291fi
81ecdfbb
RW
7292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7293$as_echo "$lt_cv_cc_needs_belf" >&6; }
7357c5b6
AM
7294 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7295 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7296 CFLAGS="$SAVE_CFLAGS"
7297 fi
7298 ;;
7299sparc*-*solaris*)
7300 # Find out which ABI we are using.
7301 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7302 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7303 (eval $ac_compile) 2>&5
7304 ac_status=$?
81ecdfbb
RW
7305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7306 test $ac_status = 0; }; then
7357c5b6
AM
7307 case `/usr/bin/file conftest.o` in
7308 *64-bit*)
7309 case $lt_cv_prog_gnu_ld in
7310 yes*) LD="${LD-ld} -m elf64_sparc" ;;
718a6fd8
SE
7311 *)
7312 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7313 LD="${LD-ld} -64"
7314 fi
7315 ;;
7357c5b6
AM
7316 esac
7317 ;;
7318 esac
7319 fi
7320 rm -rf conftest*
7321 ;;
7322esac
d7040cdb 7323
7357c5b6 7324need_locks="$enable_libtool_lock"
d7040cdb
SE
7325
7326
718a6fd8
SE
7327 case $host_os in
7328 rhapsody* | darwin*)
7329 if test -n "$ac_tool_prefix"; then
7330 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7331set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
7332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7333$as_echo_n "checking for $ac_word... " >&6; }
7334if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7335 $as_echo_n "(cached) " >&6
718a6fd8
SE
7336else
7337 if test -n "$DSYMUTIL"; then
7338 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7339else
7340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341for as_dir in $PATH
7342do
7343 IFS=$as_save_IFS
7344 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7345 for ac_exec_ext in '' $ac_executable_extensions; do
7346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7347 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 7348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7349 break 2
7350 fi
7351done
81ecdfbb
RW
7352 done
7353IFS=$as_save_IFS
718a6fd8
SE
7354
7355fi
7356fi
7357DSYMUTIL=$ac_cv_prog_DSYMUTIL
7358if test -n "$DSYMUTIL"; then
81ecdfbb
RW
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7360$as_echo "$DSYMUTIL" >&6; }
718a6fd8 7361else
81ecdfbb
RW
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7363$as_echo "no" >&6; }
718a6fd8
SE
7364fi
7365
81ecdfbb 7366
718a6fd8
SE
7367fi
7368if test -z "$ac_cv_prog_DSYMUTIL"; then
7369 ac_ct_DSYMUTIL=$DSYMUTIL
7370 # Extract the first word of "dsymutil", so it can be a program name with args.
7371set dummy dsymutil; ac_word=$2
81ecdfbb
RW
7372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7373$as_echo_n "checking for $ac_word... " >&6; }
7374if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7375 $as_echo_n "(cached) " >&6
718a6fd8
SE
7376else
7377 if test -n "$ac_ct_DSYMUTIL"; then
7378 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7379else
7380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381for as_dir in $PATH
7382do
7383 IFS=$as_save_IFS
7384 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7385 for ac_exec_ext in '' $ac_executable_extensions; do
7386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7387 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 7388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7389 break 2
7390 fi
7391done
81ecdfbb
RW
7392 done
7393IFS=$as_save_IFS
718a6fd8 7394
718a6fd8
SE
7395fi
7396fi
7397ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7398if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7400$as_echo "$ac_ct_DSYMUTIL" >&6; }
718a6fd8 7401else
81ecdfbb
RW
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7403$as_echo "no" >&6; }
718a6fd8
SE
7404fi
7405
81ecdfbb
RW
7406 if test "x$ac_ct_DSYMUTIL" = x; then
7407 DSYMUTIL=":"
7408 else
7409 case $cross_compiling:$ac_tool_warned in
7410yes:)
7411{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7412$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7413ac_tool_warned=yes ;;
7414esac
7415 DSYMUTIL=$ac_ct_DSYMUTIL
7416 fi
718a6fd8
SE
7417else
7418 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7419fi
7420
7421 if test -n "$ac_tool_prefix"; then
7422 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7423set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
7424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7425$as_echo_n "checking for $ac_word... " >&6; }
7426if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7427 $as_echo_n "(cached) " >&6
718a6fd8
SE
7428else
7429 if test -n "$NMEDIT"; then
7430 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7431else
7432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7433for as_dir in $PATH
7434do
7435 IFS=$as_save_IFS
7436 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7437 for ac_exec_ext in '' $ac_executable_extensions; do
7438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7439 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 7440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7441 break 2
7442 fi
7443done
81ecdfbb
RW
7444 done
7445IFS=$as_save_IFS
718a6fd8
SE
7446
7447fi
7448fi
7449NMEDIT=$ac_cv_prog_NMEDIT
7450if test -n "$NMEDIT"; then
81ecdfbb
RW
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7452$as_echo "$NMEDIT" >&6; }
718a6fd8 7453else
81ecdfbb
RW
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7455$as_echo "no" >&6; }
718a6fd8
SE
7456fi
7457
81ecdfbb 7458
718a6fd8
SE
7459fi
7460if test -z "$ac_cv_prog_NMEDIT"; then
7461 ac_ct_NMEDIT=$NMEDIT
7462 # Extract the first word of "nmedit", so it can be a program name with args.
7463set dummy nmedit; ac_word=$2
81ecdfbb
RW
7464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7465$as_echo_n "checking for $ac_word... " >&6; }
7466if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7467 $as_echo_n "(cached) " >&6
718a6fd8
SE
7468else
7469 if test -n "$ac_ct_NMEDIT"; then
7470 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7471else
7472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473for as_dir in $PATH
7474do
7475 IFS=$as_save_IFS
7476 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7477 for ac_exec_ext in '' $ac_executable_extensions; do
7478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7479 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 7480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7481 break 2
7482 fi
7483done
81ecdfbb
RW
7484 done
7485IFS=$as_save_IFS
718a6fd8 7486
718a6fd8
SE
7487fi
7488fi
7489ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7490if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7492$as_echo "$ac_ct_NMEDIT" >&6; }
718a6fd8 7493else
81ecdfbb
RW
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7495$as_echo "no" >&6; }
718a6fd8
SE
7496fi
7497
81ecdfbb
RW
7498 if test "x$ac_ct_NMEDIT" = x; then
7499 NMEDIT=":"
7500 else
7501 case $cross_compiling:$ac_tool_warned in
7502yes:)
7503{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7504$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7505ac_tool_warned=yes ;;
7506esac
7507 NMEDIT=$ac_ct_NMEDIT
7508 fi
718a6fd8
SE
7509else
7510 NMEDIT="$ac_cv_prog_NMEDIT"
7511fi
7512
7513 if test -n "$ac_tool_prefix"; then
7514 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7515set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
7516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7517$as_echo_n "checking for $ac_word... " >&6; }
7518if test "${ac_cv_prog_LIPO+set}" = set; then :
7519 $as_echo_n "(cached) " >&6
718a6fd8
SE
7520else
7521 if test -n "$LIPO"; then
7522 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7523else
7524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525for as_dir in $PATH
7526do
7527 IFS=$as_save_IFS
7528 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7531 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 7532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7533 break 2
7534 fi
7535done
81ecdfbb
RW
7536 done
7537IFS=$as_save_IFS
718a6fd8
SE
7538
7539fi
7540fi
7541LIPO=$ac_cv_prog_LIPO
7542if test -n "$LIPO"; then
81ecdfbb
RW
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7544$as_echo "$LIPO" >&6; }
718a6fd8 7545else
81ecdfbb
RW
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7547$as_echo "no" >&6; }
718a6fd8
SE
7548fi
7549
81ecdfbb 7550
718a6fd8
SE
7551fi
7552if test -z "$ac_cv_prog_LIPO"; then
7553 ac_ct_LIPO=$LIPO
7554 # Extract the first word of "lipo", so it can be a program name with args.
7555set dummy lipo; ac_word=$2
81ecdfbb
RW
7556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7557$as_echo_n "checking for $ac_word... " >&6; }
7558if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7559 $as_echo_n "(cached) " >&6
718a6fd8
SE
7560else
7561 if test -n "$ac_ct_LIPO"; then
7562 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7563else
7564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565for as_dir in $PATH
7566do
7567 IFS=$as_save_IFS
7568 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7569 for ac_exec_ext in '' $ac_executable_extensions; do
7570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7571 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7573 break 2
7574 fi
7575done
81ecdfbb
RW
7576 done
7577IFS=$as_save_IFS
718a6fd8 7578
718a6fd8
SE
7579fi
7580fi
7581ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7582if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7584$as_echo "$ac_ct_LIPO" >&6; }
718a6fd8 7585else
81ecdfbb
RW
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7587$as_echo "no" >&6; }
718a6fd8
SE
7588fi
7589
81ecdfbb
RW
7590 if test "x$ac_ct_LIPO" = x; then
7591 LIPO=":"
7592 else
7593 case $cross_compiling:$ac_tool_warned in
7594yes:)
7595{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7596$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7597ac_tool_warned=yes ;;
7598esac
7599 LIPO=$ac_ct_LIPO
7600 fi
7601else
718a6fd8
SE
7602 LIPO="$ac_cv_prog_LIPO"
7603fi
7604
7605 if test -n "$ac_tool_prefix"; then
7606 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7607set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7609$as_echo_n "checking for $ac_word... " >&6; }
7610if test "${ac_cv_prog_OTOOL+set}" = set; then :
7611 $as_echo_n "(cached) " >&6
718a6fd8
SE
7612else
7613 if test -n "$OTOOL"; then
7614 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7615else
7616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617for as_dir in $PATH
7618do
7619 IFS=$as_save_IFS
7620 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7621 for ac_exec_ext in '' $ac_executable_extensions; do
7622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7623 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7625 break 2
7626 fi
7627done
81ecdfbb
RW
7628 done
7629IFS=$as_save_IFS
718a6fd8
SE
7630
7631fi
7632fi
7633OTOOL=$ac_cv_prog_OTOOL
7634if test -n "$OTOOL"; then
81ecdfbb
RW
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7636$as_echo "$OTOOL" >&6; }
718a6fd8 7637else
81ecdfbb
RW
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7639$as_echo "no" >&6; }
718a6fd8
SE
7640fi
7641
81ecdfbb 7642
718a6fd8
SE
7643fi
7644if test -z "$ac_cv_prog_OTOOL"; then
7645 ac_ct_OTOOL=$OTOOL
7646 # Extract the first word of "otool", so it can be a program name with args.
7647set dummy otool; ac_word=$2
81ecdfbb
RW
7648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7649$as_echo_n "checking for $ac_word... " >&6; }
7650if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7651 $as_echo_n "(cached) " >&6
718a6fd8
SE
7652else
7653 if test -n "$ac_ct_OTOOL"; then
7654 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7655else
7656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657for as_dir in $PATH
7658do
7659 IFS=$as_save_IFS
7660 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7661 for ac_exec_ext in '' $ac_executable_extensions; do
7662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7663 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7665 break 2
7666 fi
7667done
81ecdfbb
RW
7668 done
7669IFS=$as_save_IFS
718a6fd8 7670
718a6fd8
SE
7671fi
7672fi
7673ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7674if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7676$as_echo "$ac_ct_OTOOL" >&6; }
718a6fd8 7677else
81ecdfbb
RW
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7679$as_echo "no" >&6; }
718a6fd8
SE
7680fi
7681
81ecdfbb
RW
7682 if test "x$ac_ct_OTOOL" = x; then
7683 OTOOL=":"
7684 else
7685 case $cross_compiling:$ac_tool_warned in
7686yes:)
7687{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7688$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7689ac_tool_warned=yes ;;
7690esac
7691 OTOOL=$ac_ct_OTOOL
7692 fi
718a6fd8
SE
7693else
7694 OTOOL="$ac_cv_prog_OTOOL"
7695fi
7696
7697 if test -n "$ac_tool_prefix"; then
7698 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7699set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7701$as_echo_n "checking for $ac_word... " >&6; }
7702if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7703 $as_echo_n "(cached) " >&6
718a6fd8
SE
7704else
7705 if test -n "$OTOOL64"; then
7706 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7707else
7708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709for as_dir in $PATH
7710do
7711 IFS=$as_save_IFS
7712 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7713 for ac_exec_ext in '' $ac_executable_extensions; do
7714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7715 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 7716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7717 break 2
7718 fi
7719done
81ecdfbb
RW
7720 done
7721IFS=$as_save_IFS
718a6fd8
SE
7722
7723fi
7724fi
7725OTOOL64=$ac_cv_prog_OTOOL64
7726if test -n "$OTOOL64"; then
81ecdfbb
RW
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7728$as_echo "$OTOOL64" >&6; }
718a6fd8 7729else
81ecdfbb
RW
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7731$as_echo "no" >&6; }
718a6fd8
SE
7732fi
7733
81ecdfbb 7734
718a6fd8
SE
7735fi
7736if test -z "$ac_cv_prog_OTOOL64"; then
7737 ac_ct_OTOOL64=$OTOOL64
7738 # Extract the first word of "otool64", so it can be a program name with args.
7739set dummy otool64; ac_word=$2
81ecdfbb
RW
7740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7741$as_echo_n "checking for $ac_word... " >&6; }
7742if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7743 $as_echo_n "(cached) " >&6
718a6fd8
SE
7744else
7745 if test -n "$ac_ct_OTOOL64"; then
7746 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7747else
7748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749for as_dir in $PATH
7750do
7751 IFS=$as_save_IFS
7752 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7753 for ac_exec_ext in '' $ac_executable_extensions; do
7754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7755 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 7756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7757 break 2
7758 fi
7759done
81ecdfbb
RW
7760 done
7761IFS=$as_save_IFS
718a6fd8 7762
718a6fd8
SE
7763fi
7764fi
7765ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7766if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7768$as_echo "$ac_ct_OTOOL64" >&6; }
718a6fd8 7769else
81ecdfbb
RW
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7771$as_echo "no" >&6; }
718a6fd8
SE
7772fi
7773
81ecdfbb
RW
7774 if test "x$ac_ct_OTOOL64" = x; then
7775 OTOOL64=":"
7776 else
7777 case $cross_compiling:$ac_tool_warned in
7778yes:)
7779{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7780$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7781ac_tool_warned=yes ;;
7782esac
7783 OTOOL64=$ac_ct_OTOOL64
7784 fi
718a6fd8
SE
7785else
7786 OTOOL64="$ac_cv_prog_OTOOL64"
7787fi
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
81ecdfbb
RW
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7816$as_echo_n "checking for -single_module linker flag... " >&6; }
7817if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7818 $as_echo_n "(cached) " >&6
718a6fd8
SE
7819else
7820 lt_cv_apple_cc_single_mod=no
7821 if test -z "${LT_MULTI_MODULE}"; then
7822 # By default we will add the -single_module flag. You can override
7823 # by either setting the environment variable LT_MULTI_MODULE
7824 # non-empty at configure time, or by adding -multi_module to the
7825 # link flags.
7826 rm -rf libconftest.dylib*
7827 echo "int foo(void){return 1;}" > conftest.c
7828 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7829-dynamiclib -Wl,-single_module conftest.c" >&5
7830 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7831 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7832 _lt_result=$?
7833 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7834 lt_cv_apple_cc_single_mod=yes
7835 else
7836 cat conftest.err >&5
7837 fi
7838 rm -rf libconftest.dylib*
7839 rm -f conftest.*
7840 fi
7841fi
81ecdfbb
RW
7842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7843$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7845$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7846if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7847 $as_echo_n "(cached) " >&6
718a6fd8
SE
7848else
7849 lt_cv_ld_exported_symbols_list=no
7850 save_LDFLAGS=$LDFLAGS
7851 echo "_main" > conftest.sym
7852 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 7853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
718a6fd8
SE
7854/* end confdefs.h. */
7855
7856int
7857main ()
7858{
7859
7860 ;
7861 return 0;
7862}
7863_ACEOF
81ecdfbb 7864if ac_fn_c_try_link "$LINENO"; then :
718a6fd8
SE
7865 lt_cv_ld_exported_symbols_list=yes
7866else
81ecdfbb 7867 lt_cv_ld_exported_symbols_list=no
718a6fd8 7868fi
81ecdfbb
RW
7869rm -f core conftest.err conftest.$ac_objext \
7870 conftest$ac_exeext conftest.$ac_ext
718a6fd8
SE
7871 LDFLAGS="$save_LDFLAGS"
7872
7873fi
81ecdfbb
RW
7874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7875$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7877$as_echo_n "checking for -force_load linker flag... " >&6; }
7878if test "${lt_cv_ld_force_load+set}" = set; then :
7879 $as_echo_n "(cached) " >&6
7880else
7881 lt_cv_ld_force_load=no
7882 cat > conftest.c << _LT_EOF
7883int forced_loaded() { return 2;}
7884_LT_EOF
7885 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7886 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7887 echo "$AR cru libconftest.a conftest.o" >&5
7888 $AR cru libconftest.a conftest.o 2>&5
7889 cat > conftest.c << _LT_EOF
7890int main() { return 0;}
7891_LT_EOF
7892 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7893 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7894 _lt_result=$?
7895 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7896 lt_cv_ld_force_load=yes
7897 else
7898 cat conftest.err >&5
7899 fi
7900 rm -f conftest.err libconftest.a conftest conftest.c
7901 rm -rf conftest.dSYM
7902
7903fi
7904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7905$as_echo "$lt_cv_ld_force_load" >&6; }
718a6fd8
SE
7906 case $host_os in
7907 rhapsody* | darwin1.[012])
7908 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7909 darwin1.*)
7910 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7911 darwin*) # darwin 5.x on
7912 # if running on 10.5 or later, the deployment target defaults
7913 # to the OS version, if on x86, and 10.4, the deployment
7914 # target defaults to 10.4. Don't you love it?
7915 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7916 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7917 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7918 10.[012]*)
7919 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7920 10.*)
7921 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7922 esac
7923 ;;
7924 esac
7925 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7926 _lt_dar_single_mod='$single_module'
7927 fi
7928 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7929 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7930 else
7931 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7932 fi
3725885a 7933 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
718a6fd8
SE
7934 _lt_dsymutil='~$DSYMUTIL $lib || :'
7935 else
7936 _lt_dsymutil=
7937 fi
7938 ;;
7939 esac
7940
d7040cdb 7941for ac_header in dlfcn.h
81ecdfbb
RW
7942do :
7943 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7944"
7945if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
d7040cdb 7946 cat >>confdefs.h <<_ACEOF
81ecdfbb 7947#define HAVE_DLFCN_H 1
d7040cdb
SE
7948_ACEOF
7949
7950fi
7951
7952done
7953
7954
7955
3725885a
RW
7956
7957
718a6fd8 7958# Set options
ce3c775b 7959enable_dlopen=yes
718a6fd8
SE
7960
7961
7962
718a6fd8
SE
7963
7964 enable_win32_dll=no
7965
7966
7967
81ecdfbb
RW
7968 # Check whether --enable-static was given.
7969if test "${enable_static+set}" = set; then :
7970 enableval=$enable_static; p=${PACKAGE-default}
718a6fd8
SE
7971 case $enableval in
7972 yes) enable_static=yes ;;
7973 no) enable_static=no ;;
7974 *)
7975 enable_static=no
7976 # Look at the argument we got. We use all the common list separators.
7977 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7978 for pkg in $enableval; do
7979 IFS="$lt_save_ifs"
7980 if test "X$pkg" = "X$p"; then
7981 enable_static=yes
7982 fi
7983 done
7984 IFS="$lt_save_ifs"
7985 ;;
7986 esac
7987else
7988 enable_static=yes
81ecdfbb 7989fi
718a6fd8
SE
7990
7991
7992
7993
7994
7995
7996
7997
7998
81ecdfbb
RW
7999
8000# Check whether --with-pic was given.
8001if test "${with_pic+set}" = set; then :
8002 withval=$with_pic; pic_mode="$withval"
718a6fd8
SE
8003else
8004 pic_mode=default
81ecdfbb
RW
8005fi
8006
718a6fd8
SE
8007
8008test -z "$pic_mode" && pic_mode=default
8009
8010
8011
8012
8013
8014
8015
81ecdfbb
RW
8016 # Check whether --enable-fast-install was given.
8017if test "${enable_fast_install+set}" = set; then :
8018 enableval=$enable_fast_install; p=${PACKAGE-default}
718a6fd8
SE
8019 case $enableval in
8020 yes) enable_fast_install=yes ;;
8021 no) enable_fast_install=no ;;
8022 *)
8023 enable_fast_install=no
8024 # Look at the argument we got. We use all the common list separators.
8025 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8026 for pkg in $enableval; do
8027 IFS="$lt_save_ifs"
8028 if test "X$pkg" = "X$p"; then
8029 enable_fast_install=yes
8030 fi
8031 done
8032 IFS="$lt_save_ifs"
8033 ;;
8034 esac
8035else
8036 enable_fast_install=yes
81ecdfbb
RW
8037fi
8038
718a6fd8
SE
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
d7040cdb
SE
8049# This can be used to rebuild libtool when needed
8050LIBTOOL_DEPS="$ltmain"
8051
8052# Always use our own libtool.
8053LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
3725885a 8077
d7040cdb
SE
8078
8079
8080test -z "$LN_S" && LN_S="ln -s"
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095if test -n "${ZSH_VERSION+set}" ; then
8096 setopt NO_GLOB_SUBST
8097fi
8098
81ecdfbb
RW
8099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8100$as_echo_n "checking for objdir... " >&6; }
8101if test "${lt_cv_objdir+set}" = set; then :
8102 $as_echo_n "(cached) " >&6
d7040cdb
SE
8103else
8104 rm -f .libs 2>/dev/null
8105mkdir .libs 2>/dev/null
8106if test -d .libs; then
8107 lt_cv_objdir=.libs
8108else
8109 # MS-DOS does not allow filenames that begin with a dot.
8110 lt_cv_objdir=_libs
8111fi
8112rmdir .libs 2>/dev/null
8113fi
81ecdfbb
RW
8114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8115$as_echo "$lt_cv_objdir" >&6; }
d7040cdb
SE
8116objdir=$lt_cv_objdir
8117
8118
8119
8120
8121
8122cat >>confdefs.h <<_ACEOF
8123#define LT_OBJDIR "$lt_cv_objdir/"
8124_ACEOF
8125
8126
8127
8128
d7040cdb
SE
8129case $host_os in
8130aix3*)
8131 # AIX sometimes has problems with the GCC collect2 program. For some
8132 # reason, if we set the COLLECT_NAMES environment variable, the problems
8133 # vanish in a puff of smoke.
8134 if test "X${COLLECT_NAMES+set}" != Xset; then
8135 COLLECT_NAMES=
8136 export COLLECT_NAMES
8137 fi
8138 ;;
8139esac
8140
d7040cdb
SE
8141# Global variables:
8142ofile=libtool
8143can_build_shared=yes
8144
8145# All known linkers require a `.a' archive for static linking (except MSVC,
8146# which needs '.lib').
8147libext=a
8148
8149with_gnu_ld="$lt_cv_prog_gnu_ld"
8150
8151old_CC="$CC"
8152old_CFLAGS="$CFLAGS"
8153
8154# Set sane defaults for various variables
8155test -z "$CC" && CC=cc
8156test -z "$LTCC" && LTCC=$CC
8157test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8158test -z "$LD" && LD=ld
8159test -z "$ac_objext" && ac_objext=o
8160
8161for cc_temp in $compiler""; do
8162 case $cc_temp in
8163 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8164 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8165 \-*) ;;
8166 *) break;;
8167 esac
8168done
3725885a 8169cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d7040cdb
SE
8170
8171
8172# Only perform the check for file, if the check method requires it
8173test -z "$MAGIC_CMD" && MAGIC_CMD=file
8174case $deplibs_check_method in
8175file_magic*)
8176 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8178$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8179if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8180 $as_echo_n "(cached) " >&6
d7040cdb
SE
8181else
8182 case $MAGIC_CMD in
8183[\\/*] | ?:[\\/]*)
8184 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8185 ;;
8186*)
8187 lt_save_MAGIC_CMD="$MAGIC_CMD"
8188 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8189 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8190 for ac_dir in $ac_dummy; do
8191 IFS="$lt_save_ifs"
8192 test -z "$ac_dir" && ac_dir=.
8193 if test -f $ac_dir/${ac_tool_prefix}file; then
8194 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8195 if test -n "$file_magic_test_file"; then
8196 case $deplibs_check_method in
8197 "file_magic "*)
8198 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8199 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8200 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8201 $EGREP "$file_magic_regex" > /dev/null; then
8202 :
8203 else
8204 cat <<_LT_EOF 1>&2
8205
8206*** Warning: the command libtool uses to detect shared libraries,
8207*** $file_magic_cmd, produces output that libtool cannot recognize.
8208*** The result is that libtool may fail to recognize shared libraries
8209*** as such. This will affect the creation of libtool libraries that
8210*** depend on shared libraries, but programs linked with such libtool
8211*** libraries will work regardless of this problem. Nevertheless, you
8212*** may want to report the problem to your system manager and/or to
8213*** bug-libtool@gnu.org
8214
8215_LT_EOF
8216 fi ;;
8217 esac
8218 fi
8219 break
8220 fi
8221 done
8222 IFS="$lt_save_ifs"
8223 MAGIC_CMD="$lt_save_MAGIC_CMD"
8224 ;;
8225esac
8226fi
8227
8228MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8229if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8231$as_echo "$MAGIC_CMD" >&6; }
d7040cdb 8232else
81ecdfbb
RW
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8234$as_echo "no" >&6; }
d7040cdb
SE
8235fi
8236
8237
8238
8239
8240
8241if test -z "$lt_cv_path_MAGIC_CMD"; then
8242 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8244$as_echo_n "checking for file... " >&6; }
8245if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8246 $as_echo_n "(cached) " >&6
d7040cdb
SE
8247else
8248 case $MAGIC_CMD in
8249[\\/*] | ?:[\\/]*)
8250 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8251 ;;
8252*)
8253 lt_save_MAGIC_CMD="$MAGIC_CMD"
8254 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8255 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8256 for ac_dir in $ac_dummy; do
8257 IFS="$lt_save_ifs"
8258 test -z "$ac_dir" && ac_dir=.
8259 if test -f $ac_dir/file; then
8260 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8261 if test -n "$file_magic_test_file"; then
8262 case $deplibs_check_method in
8263 "file_magic "*)
8264 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8265 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8266 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8267 $EGREP "$file_magic_regex" > /dev/null; then
8268 :
8269 else
8270 cat <<_LT_EOF 1>&2
8271
8272*** Warning: the command libtool uses to detect shared libraries,
8273*** $file_magic_cmd, produces output that libtool cannot recognize.
8274*** The result is that libtool may fail to recognize shared libraries
8275*** as such. This will affect the creation of libtool libraries that
8276*** depend on shared libraries, but programs linked with such libtool
8277*** libraries will work regardless of this problem. Nevertheless, you
8278*** may want to report the problem to your system manager and/or to
8279*** bug-libtool@gnu.org
8280
8281_LT_EOF
8282 fi ;;
8283 esac
8284 fi
8285 break
8286 fi
8287 done
8288 IFS="$lt_save_ifs"
8289 MAGIC_CMD="$lt_save_MAGIC_CMD"
8290 ;;
8291esac
8292fi
8293
8294MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8295if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8297$as_echo "$MAGIC_CMD" >&6; }
d7040cdb 8298else
81ecdfbb
RW
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8300$as_echo "no" >&6; }
d7040cdb
SE
8301fi
8302
8303
8304 else
8305 MAGIC_CMD=:
8306 fi
8307fi
8308
8309 fi
8310 ;;
8311esac
8312
8313# Use C for the default configuration in the libtool script
8314
8315lt_save_CC="$CC"
8316ac_ext=c
8317ac_cpp='$CPP $CPPFLAGS'
8318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8320ac_compiler_gnu=$ac_cv_c_compiler_gnu
8321
8322
8323# Source file extension for C test sources.
8324ac_ext=c
8325
8326# Object file extension for compiled C test sources.
8327objext=o
8328objext=$objext
8329
8330# Code to be used in simple compile tests
8331lt_simple_compile_test_code="int some_variable = 0;"
8332
8333# Code to be used in simple link tests
8334lt_simple_link_test_code='int main(){return(0);}'
8335
8336
8337
8338
8339
8340
8341
8342# If no C compiler was specified, use CC.
8343LTCC=${LTCC-"$CC"}
8344
8345# If no C compiler flags were specified, use CFLAGS.
8346LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8347
8348# Allow CC to be a program name with arguments.
8349compiler=$CC
8350
8351# Save the default compiler, since it gets overwritten when the other
8352# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8353compiler_DEFAULT=$CC
8354
8355# save warnings/boilerplate of simple test code
8356ac_outfile=conftest.$ac_objext
8357echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8358eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8359_lt_compiler_boilerplate=`cat conftest.err`
8360$RM conftest*
8361
8362ac_outfile=conftest.$ac_objext
8363echo "$lt_simple_link_test_code" >conftest.$ac_ext
8364eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8365_lt_linker_boilerplate=`cat conftest.err`
718a6fd8 8366$RM -r conftest*
d7040cdb
SE
8367
8368
8369## CAVEAT EMPTOR:
8370## There is no encapsulation within the following macros, do not change
8371## the running order or otherwise move them around unless you know exactly
8372## what you are doing...
8373if test -n "$compiler"; then
8374
8375lt_prog_compiler_no_builtin_flag=
8376
8377if test "$GCC" = yes; then
3725885a
RW
8378 case $cc_basename in
8379 nvcc*)
8380 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8381 *)
8382 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8383 esac
d7040cdb 8384
81ecdfbb
RW
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8386$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8387if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8388 $as_echo_n "(cached) " >&6
d7040cdb
SE
8389else
8390 lt_cv_prog_compiler_rtti_exceptions=no
8391 ac_outfile=conftest.$ac_objext
8392 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8393 lt_compiler_flag="-fno-rtti -fno-exceptions"
8394 # Insert the option either (1) after the last *FLAGS variable, or
8395 # (2) before a word containing "conftest.", or (3) at the end.
8396 # Note that $ac_compile itself does not contain backslashes and begins
8397 # with a dollar sign (not a hyphen), so the echo should work correctly.
8398 # The option is referenced via a variable to avoid confusing sed.
8399 lt_compile=`echo "$ac_compile" | $SED \
8400 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8401 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8402 -e 's:$: $lt_compiler_flag:'`
3725885a 8403 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7040cdb
SE
8404 (eval "$lt_compile" 2>conftest.err)
8405 ac_status=$?
8406 cat conftest.err >&5
3725885a 8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8408 if (exit $ac_status) && test -s "$ac_outfile"; then
8409 # The compiler can only warn and ignore the option if not recognized
8410 # So say no if there are warnings other than the usual output.
3725885a 8411 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
d7040cdb
SE
8412 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8413 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8414 lt_cv_prog_compiler_rtti_exceptions=yes
8415 fi
8416 fi
8417 $RM conftest*
8418
8419fi
81ecdfbb
RW
8420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8421$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d7040cdb
SE
8422
8423if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8424 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8425else
8426 :
8427fi
8428
8429fi
8430
8431
8432
8433
8434
8435
8436 lt_prog_compiler_wl=
8437lt_prog_compiler_pic=
8438lt_prog_compiler_static=
8439
81ecdfbb
RW
8440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8441$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d7040cdb
SE
8442
8443 if test "$GCC" = yes; then
8444 lt_prog_compiler_wl='-Wl,'
8445 lt_prog_compiler_static='-static'
8446
8447 case $host_os in
8448 aix*)
8449 # All AIX code is PIC.
8450 if test "$host_cpu" = ia64; then
8451 # AIX 5 now supports IA64 processor
8452 lt_prog_compiler_static='-Bstatic'
8453 fi
8454 ;;
8455
8456 amigaos*)
718a6fd8
SE
8457 case $host_cpu in
8458 powerpc)
8459 # see comment about AmigaOS4 .so support
8460 lt_prog_compiler_pic='-fPIC'
8461 ;;
8462 m68k)
8463 # FIXME: we need at least 68020 code to build shared libraries, but
8464 # adding the `-m68020' flag to GCC prevents building anything better,
8465 # like `-m68040'.
8466 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8467 ;;
8468 esac
d7040cdb
SE
8469 ;;
8470
8471 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8472 # PIC is the default for these OSes.
8473 ;;
8474
718a6fd8 8475 mingw* | cygwin* | pw32* | os2* | cegcc*)
d7040cdb
SE
8476 # This hack is so that the source file can tell whether it is being
8477 # built for inclusion in a dll (and should export symbols for example).
8478 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8479 # (--disable-auto-import) libraries
8480 lt_prog_compiler_pic='-DDLL_EXPORT'
8481 ;;
8482
8483 darwin* | rhapsody*)
8484 # PIC is the default on this platform
8485 # Common symbols not allowed in MH_DYLIB files
8486 lt_prog_compiler_pic='-fno-common'
8487 ;;
8488
3725885a
RW
8489 haiku*)
8490 # PIC is the default for Haiku.
8491 # The "-static" flag exists, but is broken.
8492 lt_prog_compiler_static=
8493 ;;
8494
d7040cdb 8495 hpux*)
718a6fd8
SE
8496 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8497 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8498 # sets the default TLS model and affects inlining.
d7040cdb 8499 case $host_cpu in
718a6fd8 8500 hppa*64*)
d7040cdb
SE
8501 # +Z the default
8502 ;;
8503 *)
8504 lt_prog_compiler_pic='-fPIC'
8505 ;;
8506 esac
8507 ;;
8508
8509 interix[3-9]*)
8510 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8511 # Instead, we relocate shared libraries at runtime.
8512 ;;
8513
8514 msdosdjgpp*)
8515 # Just because we use GCC doesn't mean we suddenly get shared libraries
8516 # on systems that don't support them.
8517 lt_prog_compiler_can_build_shared=no
8518 enable_shared=no
8519 ;;
8520
8521 *nto* | *qnx*)
8522 # QNX uses GNU C++, but need to define -shared option too, otherwise
8523 # it will coredump.
8524 lt_prog_compiler_pic='-fPIC -shared'
8525 ;;
8526
8527 sysv4*MP*)
8528 if test -d /usr/nec; then
8529 lt_prog_compiler_pic=-Kconform_pic
8530 fi
8531 ;;
8532
8533 *)
8534 lt_prog_compiler_pic='-fPIC'
8535 ;;
8536 esac
3725885a
RW
8537
8538 case $cc_basename in
8539 nvcc*) # Cuda Compiler Driver 2.2
8540 lt_prog_compiler_wl='-Xlinker '
8541 lt_prog_compiler_pic='-Xcompiler -fPIC'
8542 ;;
8543 esac
d7040cdb
SE
8544 else
8545 # PORTME Check for flag to pass linker flags through the system compiler.
8546 case $host_os in
8547 aix*)
8548 lt_prog_compiler_wl='-Wl,'
8549 if test "$host_cpu" = ia64; then
8550 # AIX 5 now supports IA64 processor
8551 lt_prog_compiler_static='-Bstatic'
8552 else
8553 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8554 fi
8555 ;;
d7040cdb 8556
718a6fd8 8557 mingw* | cygwin* | pw32* | os2* | cegcc*)
d7040cdb
SE
8558 # This hack is so that the source file can tell whether it is being
8559 # built for inclusion in a dll (and should export symbols for example).
8560 lt_prog_compiler_pic='-DDLL_EXPORT'
8561 ;;
8562
8563 hpux9* | hpux10* | hpux11*)
8564 lt_prog_compiler_wl='-Wl,'
8565 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8566 # not for PA HP-UX.
8567 case $host_cpu in
8568 hppa*64*|ia64*)
8569 # +Z the default
8570 ;;
8571 *)
8572 lt_prog_compiler_pic='+Z'
8573 ;;
8574 esac
8575 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8576 lt_prog_compiler_static='${wl}-a ${wl}archive'
8577 ;;
8578
8579 irix5* | irix6* | nonstopux*)
8580 lt_prog_compiler_wl='-Wl,'
8581 # PIC (with -KPIC) is the default.
8582 lt_prog_compiler_static='-non_shared'
8583 ;;
8584
58e24671 8585 linux* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb 8586 case $cc_basename in
718a6fd8
SE
8587 # old Intel for x86_64 which still supported -KPIC.
8588 ecc*)
d7040cdb
SE
8589 lt_prog_compiler_wl='-Wl,'
8590 lt_prog_compiler_pic='-KPIC'
8591 lt_prog_compiler_static='-static'
8592 ;;
718a6fd8
SE
8593 # icc used to be incompatible with GCC.
8594 # ICC 10 doesn't accept -KPIC any more.
8595 icc* | ifort*)
8596 lt_prog_compiler_wl='-Wl,'
8597 lt_prog_compiler_pic='-fPIC'
8598 lt_prog_compiler_static='-static'
8599 ;;
8600 # Lahey Fortran 8.1.
8601 lf95*)
8602 lt_prog_compiler_wl='-Wl,'
8603 lt_prog_compiler_pic='--shared'
8604 lt_prog_compiler_static='--static'
8605 ;;
3725885a 8606 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
d7040cdb
SE
8607 # Portland Group compilers (*not* the Pentium gcc compiler,
8608 # which looks to be a dead project)
8609 lt_prog_compiler_wl='-Wl,'
8610 lt_prog_compiler_pic='-fpic'
8611 lt_prog_compiler_static='-Bstatic'
8612 ;;
8613 ccc*)
8614 lt_prog_compiler_wl='-Wl,'
8615 # All Alpha code is PIC.
8616 lt_prog_compiler_static='-non_shared'
8617 ;;
3725885a
RW
8618 xl* | bgxl* | bgf* | mpixl*)
8619 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
718a6fd8
SE
8620 lt_prog_compiler_wl='-Wl,'
8621 lt_prog_compiler_pic='-qpic'
8622 lt_prog_compiler_static='-qstaticlink'
8623 ;;
d7040cdb
SE
8624 *)
8625 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
8626 *Sun\ F* | *Sun*Fortran*)
8627 # Sun Fortran 8.3 passes all unrecognized flags to the linker
d7040cdb
SE
8628 lt_prog_compiler_pic='-KPIC'
8629 lt_prog_compiler_static='-Bstatic'
3725885a 8630 lt_prog_compiler_wl=''
d7040cdb 8631 ;;
3725885a
RW
8632 *Sun\ C*)
8633 # Sun C 5.9
d7040cdb
SE
8634 lt_prog_compiler_pic='-KPIC'
8635 lt_prog_compiler_static='-Bstatic'
3725885a 8636 lt_prog_compiler_wl='-Wl,'
d7040cdb
SE
8637 ;;
8638 esac
8639 ;;
8640 esac
8641 ;;
8642
8643 newsos6)
8644 lt_prog_compiler_pic='-KPIC'
8645 lt_prog_compiler_static='-Bstatic'
8646 ;;
8647
8648 *nto* | *qnx*)
8649 # QNX uses GNU C++, but need to define -shared option too, otherwise
8650 # it will coredump.
8651 lt_prog_compiler_pic='-fPIC -shared'
8652 ;;
8653
8654 osf3* | osf4* | osf5*)
8655 lt_prog_compiler_wl='-Wl,'
8656 # All OSF/1 code is PIC.
8657 lt_prog_compiler_static='-non_shared'
8658 ;;
8659
8660 rdos*)
8661 lt_prog_compiler_static='-non_shared'
8662 ;;
8663
8664 solaris*)
8665 lt_prog_compiler_pic='-KPIC'
8666 lt_prog_compiler_static='-Bstatic'
8667 case $cc_basename in
8668 f77* | f90* | f95*)
8669 lt_prog_compiler_wl='-Qoption ld ';;
8670 *)
8671 lt_prog_compiler_wl='-Wl,';;
8672 esac
8673 ;;
8674
8675 sunos4*)
8676 lt_prog_compiler_wl='-Qoption ld '
8677 lt_prog_compiler_pic='-PIC'
8678 lt_prog_compiler_static='-Bstatic'
8679 ;;
8680
8681 sysv4 | sysv4.2uw2* | sysv4.3*)
8682 lt_prog_compiler_wl='-Wl,'
8683 lt_prog_compiler_pic='-KPIC'
8684 lt_prog_compiler_static='-Bstatic'
8685 ;;
8686
8687 sysv4*MP*)
8688 if test -d /usr/nec ;then
8689 lt_prog_compiler_pic='-Kconform_pic'
8690 lt_prog_compiler_static='-Bstatic'
8691 fi
8692 ;;
8693
8694 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8695 lt_prog_compiler_wl='-Wl,'
8696 lt_prog_compiler_pic='-KPIC'
8697 lt_prog_compiler_static='-Bstatic'
8698 ;;
8699
8700 unicos*)
8701 lt_prog_compiler_wl='-Wl,'
8702 lt_prog_compiler_can_build_shared=no
8703 ;;
8704
8705 uts4*)
8706 lt_prog_compiler_pic='-pic'
8707 lt_prog_compiler_static='-Bstatic'
8708 ;;
8709
8710 *)
8711 lt_prog_compiler_can_build_shared=no
8712 ;;
8713 esac
8714 fi
8715
8716case $host_os in
8717 # For platforms which do not support PIC, -DPIC is meaningless:
8718 *djgpp*)
8719 lt_prog_compiler_pic=
8720 ;;
8721 *)
8722 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8723 ;;
8724esac
81ecdfbb
RW
8725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8726$as_echo "$lt_prog_compiler_pic" >&6; }
d7040cdb
SE
8727
8728
8729
8730
8731
8732
8733#
8734# Check to make sure the PIC flag actually works.
8735#
8736if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8738$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8739if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8740 $as_echo_n "(cached) " >&6
d7040cdb 8741else
718a6fd8 8742 lt_cv_prog_compiler_pic_works=no
d7040cdb
SE
8743 ac_outfile=conftest.$ac_objext
8744 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8745 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8746 # Insert the option either (1) after the last *FLAGS variable, or
8747 # (2) before a word containing "conftest.", or (3) at the end.
8748 # Note that $ac_compile itself does not contain backslashes and begins
8749 # with a dollar sign (not a hyphen), so the echo should work correctly.
8750 # The option is referenced via a variable to avoid confusing sed.
8751 lt_compile=`echo "$ac_compile" | $SED \
8752 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8753 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8754 -e 's:$: $lt_compiler_flag:'`
3725885a 8755 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7040cdb
SE
8756 (eval "$lt_compile" 2>conftest.err)
8757 ac_status=$?
8758 cat conftest.err >&5
3725885a 8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8760 if (exit $ac_status) && test -s "$ac_outfile"; then
8761 # The compiler can only warn and ignore the option if not recognized
8762 # So say no if there are warnings other than the usual output.
3725885a 8763 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
d7040cdb
SE
8764 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8765 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8766 lt_cv_prog_compiler_pic_works=yes
d7040cdb
SE
8767 fi
8768 fi
8769 $RM conftest*
8770
8771fi
81ecdfbb
RW
8772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8773$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d7040cdb 8774
718a6fd8 8775if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
d7040cdb
SE
8776 case $lt_prog_compiler_pic in
8777 "" | " "*) ;;
8778 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8779 esac
8780else
8781 lt_prog_compiler_pic=
8782 lt_prog_compiler_can_build_shared=no
8783fi
8784
8785fi
8786
8787
8788
8789
8790
8791
8792#
8793# Check to make sure the static flag actually works.
8794#
8795wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
8796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8797$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8798if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8799 $as_echo_n "(cached) " >&6
d7040cdb 8800else
718a6fd8 8801 lt_cv_prog_compiler_static_works=no
d7040cdb
SE
8802 save_LDFLAGS="$LDFLAGS"
8803 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8804 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8805 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8806 # The linker can only warn and ignore the option if not recognized
8807 # So say no if there are warnings
8808 if test -s conftest.err; then
8809 # Append any errors to the config.log.
8810 cat conftest.err 1>&5
3725885a 8811 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
d7040cdb
SE
8812 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8813 if diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8814 lt_cv_prog_compiler_static_works=yes
d7040cdb
SE
8815 fi
8816 else
718a6fd8 8817 lt_cv_prog_compiler_static_works=yes
d7040cdb
SE
8818 fi
8819 fi
718a6fd8 8820 $RM -r conftest*
d7040cdb
SE
8821 LDFLAGS="$save_LDFLAGS"
8822
8823fi
81ecdfbb
RW
8824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8825$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 8826
718a6fd8 8827if test x"$lt_cv_prog_compiler_static_works" = xyes; then
d7040cdb
SE
8828 :
8829else
8830 lt_prog_compiler_static=
8831fi
8832
8833
8834
8835
8836
8837
8838
81ecdfbb
RW
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8840$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8841if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8842 $as_echo_n "(cached) " >&6
d7040cdb
SE
8843else
8844 lt_cv_prog_compiler_c_o=no
8845 $RM -r conftest 2>/dev/null
8846 mkdir conftest
8847 cd conftest
8848 mkdir out
8849 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8850
8851 lt_compiler_flag="-o out/conftest2.$ac_objext"
8852 # Insert the option either (1) after the last *FLAGS variable, or
8853 # (2) before a word containing "conftest.", or (3) at the end.
8854 # Note that $ac_compile itself does not contain backslashes and begins
8855 # with a dollar sign (not a hyphen), so the echo should work correctly.
8856 lt_compile=`echo "$ac_compile" | $SED \
8857 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8858 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8859 -e 's:$: $lt_compiler_flag:'`
3725885a 8860 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7040cdb
SE
8861 (eval "$lt_compile" 2>out/conftest.err)
8862 ac_status=$?
8863 cat out/conftest.err >&5
3725885a 8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8865 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8866 then
8867 # The compiler can only warn and ignore the option if not recognized
8868 # So say no if there are warnings
3725885a 8869 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
d7040cdb
SE
8870 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8871 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8872 lt_cv_prog_compiler_c_o=yes
8873 fi
8874 fi
8875 chmod u+w . 2>&5
8876 $RM conftest*
8877 # SGI C++ compiler will create directory out/ii_files/ for
8878 # template instantiation
8879 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8880 $RM out/* && rmdir out
8881 cd ..
8882 $RM -r conftest
8883 $RM conftest*
8884
8885fi
81ecdfbb
RW
8886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8887$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8888
8889
8890
8891
8892
8893
81ecdfbb
RW
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8895$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8896if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8897 $as_echo_n "(cached) " >&6
d7040cdb
SE
8898else
8899 lt_cv_prog_compiler_c_o=no
8900 $RM -r conftest 2>/dev/null
8901 mkdir conftest
8902 cd conftest
8903 mkdir out
8904 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8905
8906 lt_compiler_flag="-o out/conftest2.$ac_objext"
8907 # Insert the option either (1) after the last *FLAGS variable, or
8908 # (2) before a word containing "conftest.", or (3) at the end.
8909 # Note that $ac_compile itself does not contain backslashes and begins
8910 # with a dollar sign (not a hyphen), so the echo should work correctly.
8911 lt_compile=`echo "$ac_compile" | $SED \
8912 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8913 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8914 -e 's:$: $lt_compiler_flag:'`
3725885a 8915 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7040cdb
SE
8916 (eval "$lt_compile" 2>out/conftest.err)
8917 ac_status=$?
8918 cat out/conftest.err >&5
3725885a 8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8920 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8921 then
8922 # The compiler can only warn and ignore the option if not recognized
8923 # So say no if there are warnings
3725885a 8924 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
d7040cdb
SE
8925 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8926 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8927 lt_cv_prog_compiler_c_o=yes
8928 fi
8929 fi
8930 chmod u+w . 2>&5
8931 $RM conftest*
8932 # SGI C++ compiler will create directory out/ii_files/ for
8933 # template instantiation
8934 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8935 $RM out/* && rmdir out
8936 cd ..
8937 $RM -r conftest
8938 $RM conftest*
8939
8940fi
81ecdfbb
RW
8941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8942$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8943
8944
8945
8946
8947hard_links="nottested"
8948if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8949 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8951$as_echo_n "checking if we can lock with hard links... " >&6; }
d7040cdb
SE
8952 hard_links=yes
8953 $RM conftest*
8954 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8955 touch conftest.a
8956 ln conftest.a conftest.b 2>&5 || hard_links=no
8957 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8959$as_echo "$hard_links" >&6; }
d7040cdb 8960 if test "$hard_links" = no; then
81ecdfbb
RW
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8962$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
d7040cdb
SE
8963 need_locks=warn
8964 fi
8965else
8966 need_locks=no
8967fi
8968
8969
8970
8971
8972
8973
81ecdfbb
RW
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8975$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb
SE
8976
8977 runpath_var=
8978 allow_undefined_flag=
8979 always_export_symbols=no
8980 archive_cmds=
8981 archive_expsym_cmds=
8982 compiler_needs_object=no
8983 enable_shared_with_static_runtimes=no
8984 export_dynamic_flag_spec=
8985 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8986 hardcode_automatic=no
8987 hardcode_direct=no
8988 hardcode_direct_absolute=no
8989 hardcode_libdir_flag_spec=
8990 hardcode_libdir_flag_spec_ld=
8991 hardcode_libdir_separator=
8992 hardcode_minus_L=no
8993 hardcode_shlibpath_var=unsupported
8994 inherit_rpath=no
8995 link_all_deplibs=unknown
8996 module_cmds=
8997 module_expsym_cmds=
8998 old_archive_from_new_cmds=
8999 old_archive_from_expsyms_cmds=
9000 thread_safe_flag_spec=
9001 whole_archive_flag_spec=
9002 # include_expsyms should be a list of space-separated symbols to be *always*
9003 # included in the symbol list
9004 include_expsyms=
9005 # exclude_expsyms can be an extended regexp of symbols to exclude
9006 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9007 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9008 # as well as any symbol that contains `d'.
718a6fd8 9009 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
d7040cdb
SE
9010 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9011 # platforms (ab)use it in PIC code, but their linkers get confused if
9012 # the symbol is explicitly referenced. Since portable code cannot
9013 # rely on this symbol name, it's probably fine to never include it in
9014 # preloaded symbol tables.
718a6fd8 9015 # Exclude shared library initialization/finalization symbols.
d7040cdb
SE
9016 extract_expsyms_cmds=
9017
9018 case $host_os in
718a6fd8 9019 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
9020 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9021 # When not using gcc, we currently assume that we are using
9022 # Microsoft Visual C++.
9023 if test "$GCC" != yes; then
9024 with_gnu_ld=no
9025 fi
9026 ;;
9027 interix*)
9028 # we just hope/assume this is gcc and not c89 (= MSVC++)
9029 with_gnu_ld=yes
9030 ;;
9031 openbsd*)
9032 with_gnu_ld=no
9033 ;;
9034 esac
9035
9036 ld_shlibs=yes
3725885a
RW
9037
9038 # On some targets, GNU ld is compatible enough with the native linker
9039 # that we're better off using the native interface for both.
9040 lt_use_gnu_ld_interface=no
d7040cdb 9041 if test "$with_gnu_ld" = yes; then
3725885a
RW
9042 case $host_os in
9043 aix*)
9044 # The AIX port of GNU ld has always aspired to compatibility
9045 # with the native linker. However, as the warning in the GNU ld
9046 # block says, versions before 2.19.5* couldn't really create working
9047 # shared libraries, regardless of the interface used.
9048 case `$LD -v 2>&1` in
9049 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9050 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9051 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9052 *)
9053 lt_use_gnu_ld_interface=yes
9054 ;;
9055 esac
9056 ;;
9057 *)
9058 lt_use_gnu_ld_interface=yes
9059 ;;
9060 esac
9061 fi
9062
9063 if test "$lt_use_gnu_ld_interface" = yes; then
d7040cdb
SE
9064 # If archive_cmds runs LD, not CC, wlarc should be empty
9065 wlarc='${wl}'
9066
9067 # Set some defaults for GNU ld with shared library support. These
9068 # are reset later if shared libraries are not supported. Putting them
9069 # here allows them to be overridden if necessary.
9070 runpath_var=LD_RUN_PATH
9071 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9072 export_dynamic_flag_spec='${wl}--export-dynamic'
9073 # ancient GNU ld didn't support --whole-archive et. al.
9074 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9075 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9076 else
9077 whole_archive_flag_spec=
9078 fi
9079 supports_anon_versioning=no
9080 case `$LD -v 2>&1` in
3725885a 9081 *GNU\ gold*) supports_anon_versioning=yes ;;
d7040cdb
SE
9082 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9083 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9084 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9085 *\ 2.11.*) ;; # other 2.11 versions
9086 *) supports_anon_versioning=yes ;;
9087 esac
9088
9089 # See if GNU ld supports shared libraries.
9090 case $host_os in
e81819a5 9091 aix[3-9]*)
d7040cdb
SE
9092 # On AIX/PPC, the GNU linker is very broken
9093 if test "$host_cpu" != ia64; then
9094 ld_shlibs=no
9095 cat <<_LT_EOF 1>&2
9096
3725885a 9097*** Warning: the GNU linker, at least up to release 2.19, is reported
d7040cdb
SE
9098*** to be unable to reliably create shared libraries on AIX.
9099*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
9100*** really care for shared libraries, you may want to install binutils
9101*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9102*** You will then need to restart the configuration process.
d7040cdb
SE
9103
9104_LT_EOF
9105 fi
9106 ;;
9107
9108 amigaos*)
718a6fd8
SE
9109 case $host_cpu in
9110 powerpc)
9111 # see comment about AmigaOS4 .so support
9112 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9113 archive_expsym_cmds=''
9114 ;;
9115 m68k)
9116 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)'
9117 hardcode_libdir_flag_spec='-L$libdir'
9118 hardcode_minus_L=yes
9119 ;;
9120 esac
d7040cdb
SE
9121 ;;
9122
9123 beos*)
9124 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9125 allow_undefined_flag=unsupported
9126 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9127 # support --undefined. This deserves some investigation. FIXME
9128 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9129 else
9130 ld_shlibs=no
9131 fi
9132 ;;
9133
718a6fd8 9134 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
9135 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9136 # as there is no search path for DLLs.
9137 hardcode_libdir_flag_spec='-L$libdir'
3725885a 9138 export_dynamic_flag_spec='${wl}--export-all-symbols'
d7040cdb
SE
9139 allow_undefined_flag=unsupported
9140 always_export_symbols=no
9141 enable_shared_with_static_runtimes=yes
9142 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9143
9144 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9145 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9146 # If the export-symbols file already is a .def file (1st line
9147 # is EXPORTS), use it as is; otherwise, prepend...
9148 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9149 cp $export_symbols $output_objdir/$soname.def;
9150 else
9151 echo EXPORTS > $output_objdir/$soname.def;
9152 cat $export_symbols >> $output_objdir/$soname.def;
9153 fi~
9154 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9155 else
9156 ld_shlibs=no
9157 fi
9158 ;;
9159
3725885a
RW
9160 haiku*)
9161 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9162 link_all_deplibs=yes
9163 ;;
9164
d7040cdb
SE
9165 interix[3-9]*)
9166 hardcode_direct=no
9167 hardcode_shlibpath_var=no
9168 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9169 export_dynamic_flag_spec='${wl}-E'
9170 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9171 # Instead, shared libraries are loaded at an image base (0x10000000 by
9172 # default) and relocated if they conflict, which is a slow very memory
9173 # consuming and fragmenting process. To avoid this, we pick a random,
9174 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9175 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9176 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9177 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'
9178 ;;
9179
58e24671 9180 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb
SE
9181 tmp_diet=no
9182 if test "$host_os" = linux-dietlibc; then
9183 case $cc_basename in
9184 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9185 esac
9186 fi
9187 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9188 && test "$tmp_diet" = no
9189 then
9190 tmp_addflag=
718a6fd8 9191 tmp_sharedflag='-shared'
d7040cdb
SE
9192 case $cc_basename,$host_cpu in
9193 pgcc*) # Portland Group C compiler
3725885a 9194 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
9195 tmp_addflag=' $pic_flag'
9196 ;;
3725885a
RW
9197 pgf77* | pgf90* | pgf95* | pgfortran*)
9198 # Portland Group f77 and f90 compilers
9199 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
9200 tmp_addflag=' $pic_flag -Mnomain' ;;
9201 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9202 tmp_addflag=' -i_dynamic' ;;
9203 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9204 tmp_addflag=' -i_dynamic -nofor_main' ;;
9205 ifc* | ifort*) # Intel Fortran compiler
9206 tmp_addflag=' -nofor_main' ;;
718a6fd8
SE
9207 lf95*) # Lahey Fortran 8.1
9208 whole_archive_flag_spec=
9209 tmp_sharedflag='--shared' ;;
3725885a 9210 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
718a6fd8
SE
9211 tmp_sharedflag='-qmkshrobj'
9212 tmp_addflag= ;;
3725885a
RW
9213 nvcc*) # Cuda Compiler Driver 2.2
9214 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'
9215 compiler_needs_object=yes
9216 ;;
d7040cdb
SE
9217 esac
9218 case `$CC -V 2>&1 | sed 5q` in
9219 *Sun\ C*) # Sun C 5.9
3725885a 9220 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
9221 compiler_needs_object=yes
9222 tmp_sharedflag='-G' ;;
9223 *Sun\ F*) # Sun Fortran 8.3
9224 tmp_sharedflag='-G' ;;
d7040cdb
SE
9225 esac
9226 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9227
9228 if test "x$supports_anon_versioning" = xyes; then
9229 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9230 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9231 echo "local: *; };" >> $output_objdir/$libname.ver~
9232 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9233 fi
718a6fd8
SE
9234
9235 case $cc_basename in
3725885a 9236 xlf* | bgf* | bgxlf* | mpixlf*)
718a6fd8
SE
9237 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9238 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9239 hardcode_libdir_flag_spec=
9240 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9241 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9242 if test "x$supports_anon_versioning" = xyes; then
9243 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9244 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9245 echo "local: *; };" >> $output_objdir/$libname.ver~
9246 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9247 fi
9248 ;;
9249 esac
d7040cdb
SE
9250 else
9251 ld_shlibs=no
9252 fi
9253 ;;
9254
9255 netbsd*)
9256 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9257 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9258 wlarc=
9259 else
9260 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9261 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9262 fi
9263 ;;
9264
9265 solaris*)
9266 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9267 ld_shlibs=no
9268 cat <<_LT_EOF 1>&2
9269
9270*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9271*** create shared libraries on Solaris systems. Therefore, libtool
9272*** is disabling shared libraries support. We urge you to upgrade GNU
9273*** binutils to release 2.9.1 or newer. Another option is to modify
9274*** your PATH or compiler configuration so that the native linker is
9275*** used, and then restart.
9276
9277_LT_EOF
9278 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9279 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9280 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9281 else
9282 ld_shlibs=no
9283 fi
9284 ;;
9285
9286 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9287 case `$LD -v 2>&1` in
9288 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9289 ld_shlibs=no
9290 cat <<_LT_EOF 1>&2
9291
9292*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9293*** reliably create shared libraries on SCO systems. Therefore, libtool
9294*** is disabling shared libraries support. We urge you to upgrade GNU
9295*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9296*** your PATH or compiler configuration so that the native linker is
9297*** used, and then restart.
9298
9299_LT_EOF
9300 ;;
9301 *)
9302 # For security reasons, it is highly recommended that you always
9303 # use absolute paths for naming shared libraries, and exclude the
9304 # DT_RUNPATH tag from executables and libraries. But doing so
9305 # requires that you compile everything twice, which is a pain.
9306 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9307 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9308 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9309 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9310 else
9311 ld_shlibs=no
9312 fi
9313 ;;
9314 esac
9315 ;;
9316
9317 sunos4*)
9318 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9319 wlarc=
9320 hardcode_direct=yes
9321 hardcode_shlibpath_var=no
9322 ;;
9323
9324 *)
9325 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9326 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9327 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9328 else
9329 ld_shlibs=no
9330 fi
9331 ;;
9332 esac
9333
9334 if test "$ld_shlibs" = no; then
9335 runpath_var=
9336 hardcode_libdir_flag_spec=
9337 export_dynamic_flag_spec=
9338 whole_archive_flag_spec=
9339 fi
9340 else
9341 # PORTME fill in a description of your system's linker (not GNU ld)
9342 case $host_os in
9343 aix3*)
9344 allow_undefined_flag=unsupported
9345 always_export_symbols=yes
9346 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'
9347 # Note: this linker hardcodes the directories in LIBPATH if there
9348 # are no directories specified by -L.
9349 hardcode_minus_L=yes
9350 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9351 # Neither direct hardcoding nor static linking is supported with a
9352 # broken collect2.
9353 hardcode_direct=unsupported
9354 fi
9355 ;;
9356
e81819a5 9357 aix[4-9]*)
d7040cdb
SE
9358 if test "$host_cpu" = ia64; then
9359 # On IA64, the linker does run time linking by default, so we don't
9360 # have to do anything special.
9361 aix_use_runtimelinking=no
9362 exp_sym_flag='-Bexport'
9363 no_entry_flag=""
9364 else
9365 # If we're using GNU nm, then we don't want the "-C" option.
9366 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
9367 # Also, AIX nm treats weak defined symbols like other global
9368 # defined symbols, whereas GNU nm marks them as "W".
d7040cdb 9369 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 9370 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
SE
9371 else
9372 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9373 fi
9374 aix_use_runtimelinking=no
9375
9376 # Test if we are trying to use run time linking or normal
9377 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9378 # need to do runtime linking.
e81819a5 9379 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
d7040cdb
SE
9380 for ld_flag in $LDFLAGS; do
9381 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9382 aix_use_runtimelinking=yes
9383 break
9384 fi
9385 done
9386 ;;
9387 esac
9388
9389 exp_sym_flag='-bexport'
9390 no_entry_flag='-bnoentry'
9391 fi
9392
9393 # When large executables or shared objects are built, AIX ld can
9394 # have problems creating the table of contents. If linking a library
9395 # or program results in "error TOC overflow" add -mminimal-toc to
9396 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9397 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9398
9399 archive_cmds=''
9400 hardcode_direct=yes
9401 hardcode_direct_absolute=yes
9402 hardcode_libdir_separator=':'
9403 link_all_deplibs=yes
9404 file_list_spec='${wl}-f,'
9405
9406 if test "$GCC" = yes; then
9407 case $host_os in aix4.[012]|aix4.[012].*)
9408 # We only want to do this on AIX 4.2 and lower, the check
9409 # below for broken collect2 doesn't work under 4.3+
9410 collect2name=`${CC} -print-prog-name=collect2`
9411 if test -f "$collect2name" &&
9412 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9413 then
9414 # We have reworked collect2
9415 :
9416 else
9417 # We have old collect2
9418 hardcode_direct=unsupported
9419 # It fails to find uninstalled libraries when the uninstalled
9420 # path is not listed in the libpath. Setting hardcode_minus_L
9421 # to unsupported forces relinking
9422 hardcode_minus_L=yes
9423 hardcode_libdir_flag_spec='-L$libdir'
9424 hardcode_libdir_separator=
9425 fi
9426 ;;
9427 esac
9428 shared_flag='-shared'
9429 if test "$aix_use_runtimelinking" = yes; then
9430 shared_flag="$shared_flag "'${wl}-G'
9431 fi
9432 else
9433 # not using gcc
9434 if test "$host_cpu" = ia64; then
9435 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9436 # chokes on -Wl,-G. The following line is correct:
9437 shared_flag='-G'
9438 else
9439 if test "$aix_use_runtimelinking" = yes; then
9440 shared_flag='${wl}-G'
9441 else
9442 shared_flag='${wl}-bM:SRE'
9443 fi
9444 fi
9445 fi
9446
718a6fd8 9447 export_dynamic_flag_spec='${wl}-bexpall'
d7040cdb
SE
9448 # It seems that -bexpall does not export symbols beginning with
9449 # underscore (_), so it is better to generate a list of symbols to export.
9450 always_export_symbols=yes
9451 if test "$aix_use_runtimelinking" = yes; then
9452 # Warning - without using the other runtime loading flags (-brtl),
9453 # -berok will link without error, but may produce a broken library.
9454 allow_undefined_flag='-berok'
9455 # Determine the default libpath from the value encoded in an
9456 # empty executable.
81ecdfbb 9457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
9458/* end confdefs.h. */
9459
9460int
9461main ()
9462{
9463
9464 ;
9465 return 0;
9466}
9467_ACEOF
81ecdfbb 9468if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
9469
9470lt_aix_libpath_sed='
9471 /Import File Strings/,/^$/ {
9472 /^0/ {
9473 s/^0 *\(.*\)$/\1/
9474 p
9475 }
9476 }'
9477aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9478# Check for a 64-bit object if we didn't find anything.
9479if test -z "$aix_libpath"; then
9480 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9481fi
d7040cdb 9482fi
81ecdfbb
RW
9483rm -f core conftest.err conftest.$ac_objext \
9484 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
9485if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9486
9487 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 9488 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
9489 else
9490 if test "$host_cpu" = ia64; then
9491 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9492 allow_undefined_flag="-z nodefs"
9493 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"
9494 else
9495 # Determine the default libpath from the value encoded in an
9496 # empty executable.
81ecdfbb 9497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
9498/* end confdefs.h. */
9499
9500int
9501main ()
9502{
9503
9504 ;
9505 return 0;
9506}
9507_ACEOF
81ecdfbb 9508if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
9509
9510lt_aix_libpath_sed='
9511 /Import File Strings/,/^$/ {
9512 /^0/ {
9513 s/^0 *\(.*\)$/\1/
9514 p
9515 }
9516 }'
9517aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9518# Check for a 64-bit object if we didn't find anything.
9519if test -z "$aix_libpath"; then
9520 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9521fi
d7040cdb 9522fi
81ecdfbb
RW
9523rm -f core conftest.err conftest.$ac_objext \
9524 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
9525if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9526
9527 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9528 # Warning - without using the other run time loading flags,
9529 # -berok will link without error, but may produce a broken library.
9530 no_undefined_flag=' ${wl}-bernotok'
9531 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
9532 if test "$with_gnu_ld" = yes; then
9533 # We only use this code for GNU lds that support --whole-archive.
9534 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9535 else
9536 # Exported symbols can be pulled into shared objects from archives
9537 whole_archive_flag_spec='$convenience'
9538 fi
d7040cdb
SE
9539 archive_cmds_need_lc=yes
9540 # This is similar to how AIX traditionally builds its shared libraries.
9541 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'
9542 fi
9543 fi
9544 ;;
9545
9546 amigaos*)
718a6fd8
SE
9547 case $host_cpu in
9548 powerpc)
9549 # see comment about AmigaOS4 .so support
9550 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9551 archive_expsym_cmds=''
9552 ;;
9553 m68k)
9554 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)'
9555 hardcode_libdir_flag_spec='-L$libdir'
9556 hardcode_minus_L=yes
9557 ;;
9558 esac
d7040cdb
SE
9559 ;;
9560
9561 bsdi[45]*)
9562 export_dynamic_flag_spec=-rdynamic
9563 ;;
9564
718a6fd8 9565 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
9566 # When not using gcc, we currently assume that we are using
9567 # Microsoft Visual C++.
9568 # hardcode_libdir_flag_spec is actually meaningless, as there is
9569 # no search path for DLLs.
9570 hardcode_libdir_flag_spec=' '
9571 allow_undefined_flag=unsupported
9572 # Tell ltmain to make .lib files, not .a files.
9573 libext=lib
9574 # Tell ltmain to make .dll files, not .so files.
9575 shrext_cmds=".dll"
9576 # FIXME: Setting linknames here is a bad hack.
3725885a 9577 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
d7040cdb
SE
9578 # The linker will automatically build a .lib file if we build a DLL.
9579 old_archive_from_new_cmds='true'
9580 # FIXME: Should let the user specify the lib program.
9581 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9582 fix_srcfile_path='`cygpath -w "$srcfile"`'
9583 enable_shared_with_static_runtimes=yes
9584 ;;
9585
9586 darwin* | rhapsody*)
d7040cdb 9587
718a6fd8
SE
9588
9589 archive_cmds_need_lc=no
9590 hardcode_direct=no
9591 hardcode_automatic=yes
9592 hardcode_shlibpath_var=unsupported
3725885a
RW
9593 if test "$lt_cv_ld_force_load" = "yes"; then
9594 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\"`'
9595 else
9596 whole_archive_flag_spec=''
9597 fi
718a6fd8
SE
9598 link_all_deplibs=yes
9599 allow_undefined_flag="$_lt_dar_allow_undefined"
9600 case $cc_basename in
9601 ifort*) _lt_dar_can_shared=yes ;;
9602 *) _lt_dar_can_shared=$GCC ;;
9603 esac
9604 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 9605 output_verbose_link_cmd=func_echo_all
718a6fd8
SE
9606 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9607 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9608 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}"
9609 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}"
9610
9611 else
9612 ld_shlibs=no
9613 fi
9614
d7040cdb
SE
9615 ;;
9616
9617 dgux*)
9618 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9619 hardcode_libdir_flag_spec='-L$libdir'
9620 hardcode_shlibpath_var=no
9621 ;;
9622
9623 freebsd1*)
9624 ld_shlibs=no
9625 ;;
9626
9627 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9628 # support. Future versions do this automatically, but an explicit c++rt0.o
9629 # does not break anything, and helps significantly (at the cost of a little
9630 # extra space).
9631 freebsd2.2*)
9632 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9633 hardcode_libdir_flag_spec='-R$libdir'
9634 hardcode_direct=yes
9635 hardcode_shlibpath_var=no
9636 ;;
9637
9638 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9639 freebsd2*)
9640 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9641 hardcode_direct=yes
9642 hardcode_minus_L=yes
9643 hardcode_shlibpath_var=no
9644 ;;
9645
9646 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9647 freebsd* | dragonfly*)
9648 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9649 hardcode_libdir_flag_spec='-R$libdir'
9650 hardcode_direct=yes
9651 hardcode_shlibpath_var=no
9652 ;;
9653
9654 hpux9*)
9655 if test "$GCC" = yes; then
9656 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'
9657 else
9658 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'
9659 fi
9660 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9661 hardcode_libdir_separator=:
9662 hardcode_direct=yes
9663
9664 # hardcode_minus_L: Not really in the search PATH,
9665 # but as the default location of the library.
9666 hardcode_minus_L=yes
9667 export_dynamic_flag_spec='${wl}-E'
9668 ;;
9669
9670 hpux10*)
3725885a 9671 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
d7040cdb
SE
9672 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9673 else
9674 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9675 fi
9676 if test "$with_gnu_ld" = no; then
9677 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9678 hardcode_libdir_flag_spec_ld='+b $libdir'
9679 hardcode_libdir_separator=:
9680 hardcode_direct=yes
9681 hardcode_direct_absolute=yes
9682 export_dynamic_flag_spec='${wl}-E'
9683 # hardcode_minus_L: Not really in the search PATH,
9684 # but as the default location of the library.
9685 hardcode_minus_L=yes
9686 fi
9687 ;;
9688
9689 hpux11*)
3725885a 9690 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
d7040cdb
SE
9691 case $host_cpu in
9692 hppa*64*)
9693 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9694 ;;
9695 ia64*)
718a6fd8 9696 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb
SE
9697 ;;
9698 *)
9699 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9700 ;;
9701 esac
9702 else
9703 case $host_cpu in
9704 hppa*64*)
9705 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9706 ;;
9707 ia64*)
9708 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9709 ;;
9710 *)
3725885a
RW
9711
9712 # Older versions of the 11.00 compiler do not understand -b yet
9713 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9715$as_echo_n "checking if $CC understands -b... " >&6; }
9716if test "${lt_cv_prog_compiler__b+set}" = set; then :
9717 $as_echo_n "(cached) " >&6
9718else
9719 lt_cv_prog_compiler__b=no
9720 save_LDFLAGS="$LDFLAGS"
9721 LDFLAGS="$LDFLAGS -b"
9722 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9723 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9724 # The linker can only warn and ignore the option if not recognized
9725 # So say no if there are warnings
9726 if test -s conftest.err; then
9727 # Append any errors to the config.log.
9728 cat conftest.err 1>&5
9729 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9730 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9731 if diff conftest.exp conftest.er2 >/dev/null; then
9732 lt_cv_prog_compiler__b=yes
9733 fi
9734 else
9735 lt_cv_prog_compiler__b=yes
9736 fi
9737 fi
9738 $RM -r conftest*
9739 LDFLAGS="$save_LDFLAGS"
9740
9741fi
9742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9743$as_echo "$lt_cv_prog_compiler__b" >&6; }
9744
9745if test x"$lt_cv_prog_compiler__b" = xyes; then
9746 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9747else
9748 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9749fi
9750
d7040cdb
SE
9751 ;;
9752 esac
9753 fi
9754 if test "$with_gnu_ld" = no; then
9755 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9756 hardcode_libdir_separator=:
9757
9758 case $host_cpu in
9759 hppa*64*|ia64*)
9760 hardcode_direct=no
9761 hardcode_shlibpath_var=no
9762 ;;
9763 *)
9764 hardcode_direct=yes
9765 hardcode_direct_absolute=yes
9766 export_dynamic_flag_spec='${wl}-E'
9767
9768 # hardcode_minus_L: Not really in the search PATH,
9769 # but as the default location of the library.
9770 hardcode_minus_L=yes
9771 ;;
9772 esac
9773 fi
9774 ;;
9775
9776 irix5* | irix6* | nonstopux*)
9777 if test "$GCC" = yes; then
3725885a 9778 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
9779 # Try to use the -exported_symbol ld option, if it does not
9780 # work, assume that -exports_file does not work either and
9781 # implicitly export all symbols.
9782 save_LDFLAGS="$LDFLAGS"
9783 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
81ecdfbb
RW
9784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9785/* end confdefs.h. */
d7040cdb
SE
9786int foo(void) {}
9787_ACEOF
81ecdfbb 9788if ac_fn_c_try_link "$LINENO"; then :
3725885a 9789 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 9790
d7040cdb 9791fi
81ecdfbb
RW
9792rm -f core conftest.err conftest.$ac_objext \
9793 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
9794 LDFLAGS="$save_LDFLAGS"
9795 else
3725885a
RW
9796 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'
9797 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
9798 fi
9799 archive_cmds_need_lc='no'
9800 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9801 hardcode_libdir_separator=:
9802 inherit_rpath=yes
9803 link_all_deplibs=yes
9804 ;;
9805
9806 netbsd*)
9807 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9808 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9809 else
9810 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9811 fi
9812 hardcode_libdir_flag_spec='-R$libdir'
9813 hardcode_direct=yes
9814 hardcode_shlibpath_var=no
9815 ;;
9816
9817 newsos6)
9818 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9819 hardcode_direct=yes
9820 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9821 hardcode_libdir_separator=:
9822 hardcode_shlibpath_var=no
9823 ;;
9824
9825 *nto* | *qnx*)
9826 ;;
9827
9828 openbsd*)
718a6fd8
SE
9829 if test -f /usr/libexec/ld.so; then
9830 hardcode_direct=yes
9831 hardcode_shlibpath_var=no
9832 hardcode_direct_absolute=yes
9833 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
d7040cdb 9834 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
718a6fd8 9835 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
d7040cdb 9836 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
718a6fd8
SE
9837 export_dynamic_flag_spec='${wl}-E'
9838 else
9839 case $host_os in
9840 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9841 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9842 hardcode_libdir_flag_spec='-R$libdir'
9843 ;;
9844 *)
9845 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9846 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9847 ;;
9848 esac
9849 fi
9850 else
9851 ld_shlibs=no
d7040cdb
SE
9852 fi
9853 ;;
9854
9855 os2*)
9856 hardcode_libdir_flag_spec='-L$libdir'
9857 hardcode_minus_L=yes
9858 allow_undefined_flag=unsupported
3725885a 9859 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
9860 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9861 ;;
9862
9863 osf3*)
9864 if test "$GCC" = yes; then
9865 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 9866 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
9867 else
9868 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9869 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
9870 fi
9871 archive_cmds_need_lc='no'
9872 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9873 hardcode_libdir_separator=:
9874 ;;
9875
9876 osf4* | osf5*) # as osf3* with the addition of -msym flag
9877 if test "$GCC" = yes; then
9878 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 9879 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
9880 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9881 else
9882 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9883 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 9884 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 9885 $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
9886
9887 # Both c and cxx compiler support -rpath directly
9888 hardcode_libdir_flag_spec='-rpath $libdir'
9889 fi
9890 archive_cmds_need_lc='no'
9891 hardcode_libdir_separator=:
9892 ;;
9893
9894 solaris*)
9895 no_undefined_flag=' -z defs'
9896 if test "$GCC" = yes; then
9897 wlarc='${wl}'
9898 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9899 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9900 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9901 else
9902 case `$CC -V 2>&1` in
9903 *"Compilers 5.0"*)
9904 wlarc=''
9905 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9906 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9907 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9908 ;;
9909 *)
9910 wlarc='${wl}'
9911 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9912 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9913 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9914 ;;
9915 esac
9916 fi
9917 hardcode_libdir_flag_spec='-R$libdir'
9918 hardcode_shlibpath_var=no
9919 case $host_os in
9920 solaris2.[0-5] | solaris2.[0-5].*) ;;
9921 *)
9922 # The compiler driver will combine and reorder linker options,
9923 # but understands `-z linker_flag'. GCC discards it without `$wl',
9924 # but is careful enough not to reorder.
9925 # Supported since Solaris 2.6 (maybe 2.5.1?)
9926 if test "$GCC" = yes; then
9927 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9928 else
9929 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9930 fi
9931 ;;
9932 esac
9933 link_all_deplibs=yes
9934 ;;
9935
9936 sunos4*)
9937 if test "x$host_vendor" = xsequent; then
9938 # Use $CC to link under sequent, because it throws in some extra .o
9939 # files that make .init and .fini sections work.
9940 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9941 else
9942 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9943 fi
9944 hardcode_libdir_flag_spec='-L$libdir'
9945 hardcode_direct=yes
9946 hardcode_minus_L=yes
9947 hardcode_shlibpath_var=no
9948 ;;
9949
9950 sysv4)
9951 case $host_vendor in
9952 sni)
9953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9954 hardcode_direct=yes # is this really true???
9955 ;;
9956 siemens)
9957 ## LD is ld it makes a PLAMLIB
9958 ## CC just makes a GrossModule.
9959 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9960 reload_cmds='$CC -r -o $output$reload_objs'
9961 hardcode_direct=no
9962 ;;
9963 motorola)
9964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9965 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9966 ;;
9967 esac
9968 runpath_var='LD_RUN_PATH'
9969 hardcode_shlibpath_var=no
9970 ;;
9971
9972 sysv4.3*)
9973 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9974 hardcode_shlibpath_var=no
9975 export_dynamic_flag_spec='-Bexport'
9976 ;;
9977
9978 sysv4*MP*)
9979 if test -d /usr/nec; then
9980 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9981 hardcode_shlibpath_var=no
9982 runpath_var=LD_RUN_PATH
9983 hardcode_runpath_var=yes
9984 ld_shlibs=yes
9985 fi
9986 ;;
9987
9988 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9989 no_undefined_flag='${wl}-z,text'
9990 archive_cmds_need_lc=no
9991 hardcode_shlibpath_var=no
9992 runpath_var='LD_RUN_PATH'
9993
9994 if test "$GCC" = yes; then
9995 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9996 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9997 else
9998 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9999 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10000 fi
10001 ;;
10002
10003 sysv5* | sco3.2v5* | sco5v6*)
10004 # Note: We can NOT use -z defs as we might desire, because we do not
10005 # link with -lc, and that would cause any symbols used from libc to
10006 # always be unresolved, which means just about no library would
10007 # ever link correctly. If we're not using GNU ld we use -z text
10008 # though, which does catch some bad symbols but isn't as heavy-handed
10009 # as -z defs.
10010 no_undefined_flag='${wl}-z,text'
10011 allow_undefined_flag='${wl}-z,nodefs'
10012 archive_cmds_need_lc=no
10013 hardcode_shlibpath_var=no
10014 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10015 hardcode_libdir_separator=':'
10016 link_all_deplibs=yes
10017 export_dynamic_flag_spec='${wl}-Bexport'
10018 runpath_var='LD_RUN_PATH'
10019
10020 if test "$GCC" = yes; then
10021 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10022 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10023 else
10024 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10025 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10026 fi
10027 ;;
10028
10029 uts4*)
10030 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10031 hardcode_libdir_flag_spec='-L$libdir'
10032 hardcode_shlibpath_var=no
10033 ;;
10034
10035 *)
10036 ld_shlibs=no
10037 ;;
10038 esac
10039
10040 if test x$host_vendor = xsni; then
10041 case $host in
10042 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10043 export_dynamic_flag_spec='${wl}-Blargedynsym'
10044 ;;
10045 esac
10046 fi
10047 fi
10048
81ecdfbb
RW
10049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10050$as_echo "$ld_shlibs" >&6; }
d7040cdb
SE
10051test "$ld_shlibs" = no && can_build_shared=no
10052
10053with_gnu_ld=$with_gnu_ld
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069#
10070# Do we need to explicitly link libc?
10071#
10072case "x$archive_cmds_need_lc" in
10073x|xyes)
10074 # Assume -lc should be added
10075 archive_cmds_need_lc=yes
10076
10077 if test "$enable_shared" = yes && test "$GCC" = yes; then
10078 case $archive_cmds in
10079 *'~'*)
10080 # FIXME: we may have to deal with multi-command sequences.
10081 ;;
10082 '$CC '*)
10083 # Test whether the compiler implicitly links with -lc since on some
10084 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10085 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10087$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10088if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10089 $as_echo_n "(cached) " >&6
39144654
RW
10090else
10091 $RM conftest*
10092 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 10093
81ecdfbb 10094 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d7040cdb
SE
10095 (eval $ac_compile) 2>&5
10096 ac_status=$?
81ecdfbb
RW
10097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10098 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
10099 soname=conftest
10100 lib=conftest
10101 libobjs=conftest.$ac_objext
10102 deplibs=
10103 wl=$lt_prog_compiler_wl
10104 pic_flag=$lt_prog_compiler_pic
10105 compiler_flags=-v
10106 linker_flags=-v
10107 verstring=
10108 output_objdir=.
10109 libname=conftest
10110 lt_save_allow_undefined_flag=$allow_undefined_flag
10111 allow_undefined_flag=
81ecdfbb 10112 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
d7040cdb
SE
10113 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10114 ac_status=$?
81ecdfbb
RW
10115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10116 test $ac_status = 0; }
39144654
RW
10117 then
10118 lt_cv_archive_cmds_need_lc=no
10119 else
10120 lt_cv_archive_cmds_need_lc=yes
10121 fi
10122 allow_undefined_flag=$lt_save_allow_undefined_flag
10123 else
10124 cat conftest.err 1>&5
10125 fi
10126 $RM conftest*
10127
10128fi
81ecdfbb
RW
10129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10130$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 10131 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
d7040cdb
SE
10132 ;;
10133 esac
10134 fi
10135 ;;
10136esac
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
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
81ecdfbb
RW
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10295$as_echo_n "checking dynamic linker characteristics... " >&6; }
718a6fd8
SE
10296
10297if test "$GCC" = yes; then
d7040cdb
SE
10298 case $host_os in
10299 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10300 *) lt_awk_arg="/^libraries:/" ;;
10301 esac
3725885a
RW
10302 case $host_os in
10303 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10304 *) lt_sed_strip_eq="s,=/,/,g" ;;
10305 esac
10306 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10307 case $lt_search_path_spec in
10308 *\;*)
d7040cdb
SE
10309 # if the path contains ";" then we assume it to be the separator
10310 # otherwise default to the standard path separator (i.e. ":") - it is
10311 # assumed that no part of a normal pathname contains ";" but that should
10312 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
10313 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10314 ;;
10315 *)
10316 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10317 ;;
10318 esac
d7040cdb
SE
10319 # Ok, now we have the path, separated by spaces, we can step through it
10320 # and add multilib dir if necessary.
10321 lt_tmp_lt_search_path_spec=
10322 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10323 for lt_sys_path in $lt_search_path_spec; do
10324 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10325 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10326 else
10327 test -d "$lt_sys_path" && \
10328 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10329 fi
10330 done
3725885a 10331 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
d7040cdb
SE
10332BEGIN {RS=" "; FS="/|\n";} {
10333 lt_foo="";
10334 lt_count=0;
10335 for (lt_i = NF; lt_i > 0; lt_i--) {
10336 if ($lt_i != "" && $lt_i != ".") {
10337 if ($lt_i == "..") {
10338 lt_count++;
10339 } else {
10340 if (lt_count == 0) {
10341 lt_foo="/" $lt_i lt_foo;
10342 } else {
10343 lt_count--;
10344 }
10345 }
10346 }
10347 }
10348 if (lt_foo != "") { lt_freq[lt_foo]++; }
10349 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10350}'`
3725885a
RW
10351 # AWK program above erroneously prepends '/' to C:/dos/paths
10352 # for these hosts.
10353 case $host_os in
10354 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10355 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10356 esac
10357 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7040cdb
SE
10358else
10359 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10360fi
10361library_names_spec=
10362libname_spec='lib$name'
10363soname_spec=
10364shrext_cmds=".so"
10365postinstall_cmds=
10366postuninstall_cmds=
10367finish_cmds=
10368finish_eval=
10369shlibpath_var=
10370shlibpath_overrides_runpath=unknown
10371version_type=none
10372dynamic_linker="$host_os ld.so"
10373sys_lib_dlsearch_path_spec="/lib /usr/lib"
10374need_lib_prefix=unknown
10375hardcode_into_libs=no
10376
10377# when you set need_version to no, make sure it does not cause -set_version
10378# flags to be left without arguments
10379need_version=unknown
10380
10381case $host_os in
10382aix3*)
10383 version_type=linux
10384 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10385 shlibpath_var=LIBPATH
10386
10387 # AIX 3 has no versioning support, so we append a major version to the name.
10388 soname_spec='${libname}${release}${shared_ext}$major'
10389 ;;
10390
e81819a5 10391aix[4-9]*)
d7040cdb
SE
10392 version_type=linux
10393 need_lib_prefix=no
10394 need_version=no
10395 hardcode_into_libs=yes
10396 if test "$host_cpu" = ia64; then
10397 # AIX 5 supports IA64
10398 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10399 shlibpath_var=LD_LIBRARY_PATH
10400 else
10401 # With GCC up to 2.95.x, collect2 would create an import file
10402 # for dependence libraries. The import file would start with
10403 # the line `#! .'. This would cause the generated library to
10404 # depend on `.', always an invalid library. This was fixed in
10405 # development snapshots of GCC prior to 3.0.
10406 case $host_os in
10407 aix4 | aix4.[01] | aix4.[01].*)
10408 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10409 echo ' yes '
10410 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10411 :
10412 else
10413 can_build_shared=no
10414 fi
10415 ;;
10416 esac
10417 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10418 # soname into executable. Probably we can add versioning support to
10419 # collect2, so additional links can be useful in future.
10420 if test "$aix_use_runtimelinking" = yes; then
10421 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10422 # instead of lib<name>.a to let people know that these are not
10423 # typical AIX shared libraries.
10424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10425 else
10426 # We preserve .a as extension for shared libraries through AIX4.2
10427 # and later when we are not doing run time linking.
10428 library_names_spec='${libname}${release}.a $libname.a'
10429 soname_spec='${libname}${release}${shared_ext}$major'
10430 fi
10431 shlibpath_var=LIBPATH
10432 fi
10433 ;;
10434
10435amigaos*)
718a6fd8
SE
10436 case $host_cpu in
10437 powerpc)
10438 # Since July 2007 AmigaOS4 officially supports .so libraries.
10439 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10441 ;;
10442 m68k)
d7040cdb
SE
10443 library_names_spec='$libname.ixlibrary $libname.a'
10444 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 10445 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
10446 ;;
10447 esac
d7040cdb
SE
10448 ;;
10449
10450beos*)
10451 library_names_spec='${libname}${shared_ext}'
10452 dynamic_linker="$host_os ld.so"
10453 shlibpath_var=LIBRARY_PATH
10454 ;;
10455
10456bsdi[45]*)
10457 version_type=linux
10458 need_version=no
10459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10460 soname_spec='${libname}${release}${shared_ext}$major'
10461 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10462 shlibpath_var=LD_LIBRARY_PATH
10463 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10464 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10465 # the default ld.so.conf also contains /usr/contrib/lib and
10466 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10467 # libtool to hard-code these into programs
10468 ;;
10469
718a6fd8 10470cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
10471 version_type=windows
10472 shrext_cmds=".dll"
10473 need_version=no
10474 need_lib_prefix=no
10475
718a6fd8
SE
10476 case $GCC,$host_os in
10477 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
d7040cdb
SE
10478 library_names_spec='$libname.dll.a'
10479 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10480 postinstall_cmds='base_file=`basename \${file}`~
10481 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10482 dldir=$destdir/`dirname \$dlpath`~
10483 test -d \$dldir || mkdir -p \$dldir~
10484 $install_prog $dir/$dlname \$dldir/$dlname~
10485 chmod a+x \$dldir/$dlname~
10486 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10487 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10488 fi'
10489 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10490 dlpath=$dir/\$dldll~
10491 $RM \$dlpath'
10492 shlibpath_overrides_runpath=yes
10493
10494 case $host_os in
10495 cygwin*)
10496 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10497 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
10498
10499 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
d7040cdb 10500 ;;
718a6fd8 10501 mingw* | cegcc*)
d7040cdb
SE
10502 # MinGW DLLs use traditional 'lib' prefix
10503 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
d7040cdb
SE
10504 ;;
10505 pw32*)
10506 # pw32 DLLs use 'pw' prefix rather than 'lib'
10507 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10508 ;;
10509 esac
10510 ;;
10511
10512 *)
10513 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10514 ;;
10515 esac
10516 dynamic_linker='Win32 ld.exe'
10517 # FIXME: first we should search . and the directory the executable is in
10518 shlibpath_var=PATH
10519 ;;
10520
10521darwin* | rhapsody*)
10522 dynamic_linker="$host_os dyld"
10523 version_type=darwin
10524 need_lib_prefix=no
10525 need_version=no
10526 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10527 soname_spec='${libname}${release}${major}$shared_ext'
10528 shlibpath_overrides_runpath=yes
10529 shlibpath_var=DYLD_LIBRARY_PATH
10530 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10531
10532 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10533 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10534 ;;
10535
10536dgux*)
10537 version_type=linux
10538 need_lib_prefix=no
10539 need_version=no
10540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10541 soname_spec='${libname}${release}${shared_ext}$major'
10542 shlibpath_var=LD_LIBRARY_PATH
10543 ;;
10544
10545freebsd1*)
10546 dynamic_linker=no
10547 ;;
10548
10549freebsd* | dragonfly*)
10550 # DragonFly does not have aout. When/if they implement a new
10551 # versioning mechanism, adjust this.
10552 if test -x /usr/bin/objformat; then
10553 objformat=`/usr/bin/objformat`
10554 else
10555 case $host_os in
10556 freebsd[123]*) objformat=aout ;;
10557 *) objformat=elf ;;
10558 esac
10559 fi
10560 version_type=freebsd-$objformat
10561 case $version_type in
10562 freebsd-elf*)
10563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10564 need_version=no
10565 need_lib_prefix=no
10566 ;;
10567 freebsd-*)
10568 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10569 need_version=yes
10570 ;;
10571 esac
10572 shlibpath_var=LD_LIBRARY_PATH
10573 case $host_os in
10574 freebsd2*)
10575 shlibpath_overrides_runpath=yes
10576 ;;
10577 freebsd3.[01]* | freebsdelf3.[01]*)
10578 shlibpath_overrides_runpath=yes
10579 hardcode_into_libs=yes
10580 ;;
10581 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10582 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10583 shlibpath_overrides_runpath=no
10584 hardcode_into_libs=yes
10585 ;;
10586 *) # from 4.6 on, and DragonFly
10587 shlibpath_overrides_runpath=yes
10588 hardcode_into_libs=yes
10589 ;;
10590 esac
10591 ;;
10592
10593gnu*)
10594 version_type=linux
10595 need_lib_prefix=no
10596 need_version=no
10597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10598 soname_spec='${libname}${release}${shared_ext}$major'
10599 shlibpath_var=LD_LIBRARY_PATH
10600 hardcode_into_libs=yes
10601 ;;
10602
3725885a
RW
10603haiku*)
10604 version_type=linux
10605 need_lib_prefix=no
10606 need_version=no
10607 dynamic_linker="$host_os runtime_loader"
10608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10609 soname_spec='${libname}${release}${shared_ext}$major'
10610 shlibpath_var=LIBRARY_PATH
10611 shlibpath_overrides_runpath=yes
10612 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10613 hardcode_into_libs=yes
10614 ;;
10615
d7040cdb
SE
10616hpux9* | hpux10* | hpux11*)
10617 # Give a soname corresponding to the major version so that dld.sl refuses to
10618 # link against other versions.
10619 version_type=sunos
10620 need_lib_prefix=no
10621 need_version=no
10622 case $host_cpu in
10623 ia64*)
10624 shrext_cmds='.so'
10625 hardcode_into_libs=yes
10626 dynamic_linker="$host_os dld.so"
10627 shlibpath_var=LD_LIBRARY_PATH
10628 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10630 soname_spec='${libname}${release}${shared_ext}$major'
10631 if test "X$HPUX_IA64_MODE" = X32; then
10632 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10633 else
10634 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10635 fi
10636 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10637 ;;
10638 hppa*64*)
10639 shrext_cmds='.sl'
10640 hardcode_into_libs=yes
10641 dynamic_linker="$host_os dld.sl"
10642 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10643 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10645 soname_spec='${libname}${release}${shared_ext}$major'
10646 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10647 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10648 ;;
10649 *)
10650 shrext_cmds='.sl'
10651 dynamic_linker="$host_os dld.sl"
10652 shlibpath_var=SHLIB_PATH
10653 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
10657 esac
3725885a 10658 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
d7040cdb 10659 postinstall_cmds='chmod 555 $lib'
3725885a
RW
10660 # or fails outright, so override atomically:
10661 install_override_mode=555
d7040cdb
SE
10662 ;;
10663
10664interix[3-9]*)
10665 version_type=linux
10666 need_lib_prefix=no
10667 need_version=no
10668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10669 soname_spec='${libname}${release}${shared_ext}$major'
10670 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10671 shlibpath_var=LD_LIBRARY_PATH
10672 shlibpath_overrides_runpath=no
10673 hardcode_into_libs=yes
10674 ;;
10675
10676irix5* | irix6* | nonstopux*)
10677 case $host_os in
10678 nonstopux*) version_type=nonstopux ;;
10679 *)
10680 if test "$lt_cv_prog_gnu_ld" = yes; then
10681 version_type=linux
10682 else
10683 version_type=irix
10684 fi ;;
10685 esac
10686 need_lib_prefix=no
10687 need_version=no
10688 soname_spec='${libname}${release}${shared_ext}$major'
10689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10690 case $host_os in
10691 irix5* | nonstopux*)
10692 libsuff= shlibsuff=
10693 ;;
10694 *)
10695 case $LD in # libtool.m4 will add one of these switches to LD
10696 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10697 libsuff= shlibsuff= libmagic=32-bit;;
10698 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10699 libsuff=32 shlibsuff=N32 libmagic=N32;;
10700 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10701 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10702 *) libsuff= shlibsuff= libmagic=never-match;;
10703 esac
10704 ;;
10705 esac
10706 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10707 shlibpath_overrides_runpath=no
10708 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10709 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10710 hardcode_into_libs=yes
10711 ;;
10712
10713# No shared lib support for Linux oldld, aout, or coff.
10714linux*oldld* | linux*aout* | linux*coff*)
10715 dynamic_linker=no
10716 ;;
10717
10718# This must be Linux ELF.
58e24671 10719linux* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb
SE
10720 version_type=linux
10721 need_lib_prefix=no
10722 need_version=no
10723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10724 soname_spec='${libname}${release}${shared_ext}$major'
10725 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10726 shlibpath_var=LD_LIBRARY_PATH
10727 shlibpath_overrides_runpath=no
39144654 10728
d7040cdb 10729 # Some binutils ld are patched to set DT_RUNPATH
81ecdfbb
RW
10730 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10731 $as_echo_n "(cached) " >&6
39144654
RW
10732else
10733 lt_cv_shlibpath_overrides_runpath=no
10734 save_LDFLAGS=$LDFLAGS
10735 save_libdir=$libdir
10736 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10737 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 10738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10739/* end confdefs.h. */
10740
10741int
10742main ()
10743{
10744
10745 ;
10746 return 0;
10747}
10748_ACEOF
81ecdfbb
RW
10749if ac_fn_c_try_link "$LINENO"; then :
10750 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 10751 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb 10752fi
d7040cdb 10753fi
81ecdfbb
RW
10754rm -f core conftest.err conftest.$ac_objext \
10755 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10756 LDFLAGS=$save_LDFLAGS
10757 libdir=$save_libdir
10758
10759fi
10760
10761 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb
SE
10762
10763 # This implies no fast_install, which is unacceptable.
10764 # Some rework will be needed to allow for fast_install
10765 # before this can be enabled.
10766 hardcode_into_libs=yes
10767
10768 # Append ld.so.conf contents to the search path
10769 if test -f /etc/ld.so.conf; then
3725885a 10770 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
10771 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10772 fi
10773
10774 # We used to test for /lib/ld.so.1 and disable shared libraries on
10775 # powerpc, because MkLinux only supported shared libraries with the
10776 # GNU dynamic linker. Since this was broken with cross compilers,
10777 # most powerpc-linux boxes support dynamic linking these days and
10778 # people can always --disable-shared, the test was removed, and we
10779 # assume the GNU/Linux dynamic linker is in use.
10780 dynamic_linker='GNU/Linux ld.so'
10781 ;;
10782
10783netbsd*)
10784 version_type=sunos
10785 need_lib_prefix=no
10786 need_version=no
10787 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10789 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10790 dynamic_linker='NetBSD (a.out) ld.so'
10791 else
10792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10793 soname_spec='${libname}${release}${shared_ext}$major'
10794 dynamic_linker='NetBSD ld.elf_so'
10795 fi
10796 shlibpath_var=LD_LIBRARY_PATH
10797 shlibpath_overrides_runpath=yes
10798 hardcode_into_libs=yes
10799 ;;
10800
10801newsos6)
10802 version_type=linux
10803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10804 shlibpath_var=LD_LIBRARY_PATH
10805 shlibpath_overrides_runpath=yes
10806 ;;
10807
10808*nto* | *qnx*)
10809 version_type=qnx
10810 need_lib_prefix=no
10811 need_version=no
10812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10813 soname_spec='${libname}${release}${shared_ext}$major'
10814 shlibpath_var=LD_LIBRARY_PATH
10815 shlibpath_overrides_runpath=no
10816 hardcode_into_libs=yes
10817 dynamic_linker='ldqnx.so'
10818 ;;
10819
10820openbsd*)
10821 version_type=sunos
10822 sys_lib_dlsearch_path_spec="/usr/lib"
10823 need_lib_prefix=no
10824 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10825 case $host_os in
10826 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10827 *) need_version=no ;;
10828 esac
10829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10830 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10831 shlibpath_var=LD_LIBRARY_PATH
10832 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10833 case $host_os in
10834 openbsd2.[89] | openbsd2.[89].*)
10835 shlibpath_overrides_runpath=no
10836 ;;
10837 *)
10838 shlibpath_overrides_runpath=yes
10839 ;;
10840 esac
10841 else
10842 shlibpath_overrides_runpath=yes
10843 fi
10844 ;;
10845
10846os2*)
10847 libname_spec='$name'
10848 shrext_cmds=".dll"
10849 need_lib_prefix=no
10850 library_names_spec='$libname${shared_ext} $libname.a'
10851 dynamic_linker='OS/2 ld.exe'
10852 shlibpath_var=LIBPATH
10853 ;;
10854
10855osf3* | osf4* | osf5*)
10856 version_type=osf
10857 need_lib_prefix=no
10858 need_version=no
10859 soname_spec='${libname}${release}${shared_ext}$major'
10860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10861 shlibpath_var=LD_LIBRARY_PATH
10862 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10863 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10864 ;;
10865
10866rdos*)
10867 dynamic_linker=no
10868 ;;
10869
10870solaris*)
10871 version_type=linux
10872 need_lib_prefix=no
10873 need_version=no
10874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10875 soname_spec='${libname}${release}${shared_ext}$major'
10876 shlibpath_var=LD_LIBRARY_PATH
10877 shlibpath_overrides_runpath=yes
10878 hardcode_into_libs=yes
10879 # ldd complains unless libraries are executable
10880 postinstall_cmds='chmod +x $lib'
10881 ;;
10882
10883sunos4*)
10884 version_type=sunos
10885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10886 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10887 shlibpath_var=LD_LIBRARY_PATH
10888 shlibpath_overrides_runpath=yes
10889 if test "$with_gnu_ld" = yes; then
10890 need_lib_prefix=no
10891 fi
10892 need_version=yes
10893 ;;
10894
10895sysv4 | sysv4.3*)
10896 version_type=linux
10897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10898 soname_spec='${libname}${release}${shared_ext}$major'
10899 shlibpath_var=LD_LIBRARY_PATH
10900 case $host_vendor in
10901 sni)
10902 shlibpath_overrides_runpath=no
10903 need_lib_prefix=no
10904 runpath_var=LD_RUN_PATH
10905 ;;
10906 siemens)
10907 need_lib_prefix=no
10908 ;;
10909 motorola)
10910 need_lib_prefix=no
10911 need_version=no
10912 shlibpath_overrides_runpath=no
10913 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10914 ;;
10915 esac
10916 ;;
10917
10918sysv4*MP*)
10919 if test -d /usr/nec ;then
10920 version_type=linux
10921 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10922 soname_spec='$libname${shared_ext}.$major'
10923 shlibpath_var=LD_LIBRARY_PATH
10924 fi
10925 ;;
10926
10927sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10928 version_type=freebsd-elf
10929 need_lib_prefix=no
10930 need_version=no
10931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10932 soname_spec='${libname}${release}${shared_ext}$major'
10933 shlibpath_var=LD_LIBRARY_PATH
10934 shlibpath_overrides_runpath=yes
10935 hardcode_into_libs=yes
10936 if test "$with_gnu_ld" = yes; then
10937 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10938 else
10939 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10940 case $host_os in
10941 sco3.2v5*)
10942 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10943 ;;
10944 esac
10945 fi
10946 sys_lib_dlsearch_path_spec='/usr/lib'
10947 ;;
10948
10949tpf*)
10950 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10951 version_type=linux
10952 need_lib_prefix=no
10953 need_version=no
718a6fd8 10954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
d7040cdb
SE
10955 shlibpath_var=LD_LIBRARY_PATH
10956 shlibpath_overrides_runpath=no
10957 hardcode_into_libs=yes
10958 ;;
10959
10960uts4*)
10961 version_type=linux
10962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10963 soname_spec='${libname}${release}${shared_ext}$major'
10964 shlibpath_var=LD_LIBRARY_PATH
10965 ;;
10966
10967*)
10968 dynamic_linker=no
10969 ;;
10970esac
81ecdfbb
RW
10971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10972$as_echo "$dynamic_linker" >&6; }
d7040cdb
SE
10973test "$dynamic_linker" = no && can_build_shared=no
10974
10975variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10976if test "$GCC" = yes; then
10977 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10978fi
10979
718a6fd8
SE
10980if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10981 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10982fi
10983if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10984 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10985fi
10986
d7040cdb
SE
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
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
3725885a
RW
11067
11068
11069
11070
11071
d7040cdb
SE
11072
11073
11074
11075
11076
11077
81ecdfbb
RW
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11079$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
d7040cdb
SE
11080hardcode_action=
11081if test -n "$hardcode_libdir_flag_spec" ||
11082 test -n "$runpath_var" ||
11083 test "X$hardcode_automatic" = "Xyes" ; then
11084
11085 # We can hardcode non-existent directories.
11086 if test "$hardcode_direct" != no &&
11087 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11088 # have to relink, otherwise we might link with an installed library
11089 # when we should be linking with a yet-to-be-installed one
11090 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11091 test "$hardcode_minus_L" != no; then
11092 # Linking always hardcodes the temporary library directory.
11093 hardcode_action=relink
11094 else
11095 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11096 hardcode_action=immediate
11097 fi
11098else
11099 # We cannot hardcode anything, or else we can only hardcode existing
11100 # directories.
11101 hardcode_action=unsupported
11102fi
81ecdfbb
RW
11103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11104$as_echo "$hardcode_action" >&6; }
d7040cdb
SE
11105
11106if test "$hardcode_action" = relink ||
11107 test "$inherit_rpath" = yes; then
11108 # Fast installation is not supported
11109 enable_fast_install=no
11110elif test "$shlibpath_overrides_runpath" = yes ||
11111 test "$enable_shared" = no; then
11112 # Fast installation is not necessary
11113 enable_fast_install=needless
11114fi
11115
11116
11117
11118
11119
11120
11121 if test "x$enable_dlopen" != xyes; then
11122 enable_dlopen=unknown
11123 enable_dlopen_self=unknown
11124 enable_dlopen_self_static=unknown
11125else
11126 lt_cv_dlopen=no
11127 lt_cv_dlopen_libs=
11128
11129 case $host_os in
11130 beos*)
11131 lt_cv_dlopen="load_add_on"
11132 lt_cv_dlopen_libs=
11133 lt_cv_dlopen_self=yes
11134 ;;
11135
718a6fd8 11136 mingw* | pw32* | cegcc*)
d7040cdb
SE
11137 lt_cv_dlopen="LoadLibrary"
11138 lt_cv_dlopen_libs=
11139 ;;
11140
11141 cygwin*)
11142 lt_cv_dlopen="dlopen"
11143 lt_cv_dlopen_libs=
11144 ;;
11145
11146 darwin*)
11147 # if libdl is installed we need to link against it
81ecdfbb
RW
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11149$as_echo_n "checking for dlopen in -ldl... " >&6; }
11150if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11151 $as_echo_n "(cached) " >&6
d7040cdb
SE
11152else
11153 ac_check_lib_save_LIBS=$LIBS
11154LIBS="-ldl $LIBS"
81ecdfbb 11155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11156/* end confdefs.h. */
11157
81ecdfbb
RW
11158/* Override any GCC internal prototype to avoid an error.
11159 Use char because int might match the return type of a GCC
11160 builtin and then its argument prototype would still apply. */
d7040cdb
SE
11161#ifdef __cplusplus
11162extern "C"
11163#endif
d7040cdb
SE
11164char dlopen ();
11165int
11166main ()
11167{
81ecdfbb 11168return dlopen ();
d7040cdb
SE
11169 ;
11170 return 0;
11171}
11172_ACEOF
81ecdfbb 11173if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
11174 ac_cv_lib_dl_dlopen=yes
11175else
81ecdfbb 11176 ac_cv_lib_dl_dlopen=no
d7040cdb 11177fi
81ecdfbb
RW
11178rm -f core conftest.err conftest.$ac_objext \
11179 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
11180LIBS=$ac_check_lib_save_LIBS
11181fi
81ecdfbb
RW
11182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11183$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11184if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
d7040cdb
SE
11185 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11186else
11187
11188 lt_cv_dlopen="dyld"
11189 lt_cv_dlopen_libs=
11190 lt_cv_dlopen_self=yes
11191
11192fi
11193
11194 ;;
11195
11196 *)
81ecdfbb
RW
11197 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11198if test "x$ac_cv_func_shl_load" = x""yes; then :
d7040cdb
SE
11199 lt_cv_dlopen="shl_load"
11200else
81ecdfbb
RW
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11202$as_echo_n "checking for shl_load in -ldld... " >&6; }
11203if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11204 $as_echo_n "(cached) " >&6
d7040cdb
SE
11205else
11206 ac_check_lib_save_LIBS=$LIBS
11207LIBS="-ldld $LIBS"
81ecdfbb 11208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11209/* end confdefs.h. */
11210
81ecdfbb
RW
11211/* Override any GCC internal prototype to avoid an error.
11212 Use char because int might match the return type of a GCC
11213 builtin and then its argument prototype would still apply. */
d7040cdb
SE
11214#ifdef __cplusplus
11215extern "C"
11216#endif
d7040cdb
SE
11217char shl_load ();
11218int
11219main ()
11220{
81ecdfbb 11221return shl_load ();
d7040cdb
SE
11222 ;
11223 return 0;
11224}
11225_ACEOF
81ecdfbb 11226if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
11227 ac_cv_lib_dld_shl_load=yes
11228else
81ecdfbb 11229 ac_cv_lib_dld_shl_load=no
d7040cdb 11230fi
81ecdfbb
RW
11231rm -f core conftest.err conftest.$ac_objext \
11232 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
11233LIBS=$ac_check_lib_save_LIBS
11234fi
81ecdfbb
RW
11235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11236$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11237if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
718a6fd8 11238 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
d7040cdb 11239else
81ecdfbb
RW
11240 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11241if test "x$ac_cv_func_dlopen" = x""yes; then :
d7040cdb
SE
11242 lt_cv_dlopen="dlopen"
11243else
81ecdfbb
RW
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11245$as_echo_n "checking for dlopen in -ldl... " >&6; }
11246if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11247 $as_echo_n "(cached) " >&6
d7040cdb
SE
11248else
11249 ac_check_lib_save_LIBS=$LIBS
11250LIBS="-ldl $LIBS"
81ecdfbb 11251cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11252/* end confdefs.h. */
11253
81ecdfbb
RW
11254/* Override any GCC internal prototype to avoid an error.
11255 Use char because int might match the return type of a GCC
11256 builtin and then its argument prototype would still apply. */
d7040cdb
SE
11257#ifdef __cplusplus
11258extern "C"
11259#endif
d7040cdb
SE
11260char dlopen ();
11261int
11262main ()
11263{
81ecdfbb 11264return dlopen ();
d7040cdb
SE
11265 ;
11266 return 0;
11267}
11268_ACEOF
81ecdfbb 11269if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
11270 ac_cv_lib_dl_dlopen=yes
11271else
81ecdfbb 11272 ac_cv_lib_dl_dlopen=no
d7040cdb 11273fi
81ecdfbb
RW
11274rm -f core conftest.err conftest.$ac_objext \
11275 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
11276LIBS=$ac_check_lib_save_LIBS
11277fi
81ecdfbb
RW
11278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11279$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11280if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
d7040cdb
SE
11281 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11282else
81ecdfbb
RW
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11284$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11285if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11286 $as_echo_n "(cached) " >&6
d7040cdb
SE
11287else
11288 ac_check_lib_save_LIBS=$LIBS
11289LIBS="-lsvld $LIBS"
81ecdfbb 11290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11291/* end confdefs.h. */
11292
81ecdfbb
RW
11293/* Override any GCC internal prototype to avoid an error.
11294 Use char because int might match the return type of a GCC
11295 builtin and then its argument prototype would still apply. */
d7040cdb
SE
11296#ifdef __cplusplus
11297extern "C"
11298#endif
d7040cdb
SE
11299char dlopen ();
11300int
11301main ()
11302{
81ecdfbb 11303return dlopen ();
d7040cdb
SE
11304 ;
11305 return 0;
11306}
11307_ACEOF
81ecdfbb 11308if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
11309 ac_cv_lib_svld_dlopen=yes
11310else
81ecdfbb 11311 ac_cv_lib_svld_dlopen=no
d7040cdb 11312fi
81ecdfbb
RW
11313rm -f core conftest.err conftest.$ac_objext \
11314 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
11315LIBS=$ac_check_lib_save_LIBS
11316fi
81ecdfbb
RW
11317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11318$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11319if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
d7040cdb
SE
11320 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11321else
81ecdfbb
RW
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11323$as_echo_n "checking for dld_link in -ldld... " >&6; }
11324if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11325 $as_echo_n "(cached) " >&6
d7040cdb
SE
11326else
11327 ac_check_lib_save_LIBS=$LIBS
11328LIBS="-ldld $LIBS"
81ecdfbb 11329cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11330/* end confdefs.h. */
11331
81ecdfbb
RW
11332/* Override any GCC internal prototype to avoid an error.
11333 Use char because int might match the return type of a GCC
11334 builtin and then its argument prototype would still apply. */
d7040cdb
SE
11335#ifdef __cplusplus
11336extern "C"
11337#endif
d7040cdb
SE
11338char dld_link ();
11339int
11340main ()
11341{
81ecdfbb 11342return dld_link ();
d7040cdb
SE
11343 ;
11344 return 0;
11345}
11346_ACEOF
81ecdfbb 11347if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
11348 ac_cv_lib_dld_dld_link=yes
11349else
81ecdfbb 11350 ac_cv_lib_dld_dld_link=no
d7040cdb 11351fi
81ecdfbb
RW
11352rm -f core conftest.err conftest.$ac_objext \
11353 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
11354LIBS=$ac_check_lib_save_LIBS
11355fi
81ecdfbb
RW
11356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11357$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11358if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
718a6fd8 11359 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
d7040cdb
SE
11360fi
11361
11362
11363fi
11364
11365
11366fi
11367
11368
11369fi
11370
11371
11372fi
11373
11374
11375fi
11376
11377 ;;
11378 esac
11379
11380 if test "x$lt_cv_dlopen" != xno; then
11381 enable_dlopen=yes
20e95c23 11382 else
d7040cdb 11383 enable_dlopen=no
252b5132 11384 fi
5464f5a1 11385
d7040cdb
SE
11386 case $lt_cv_dlopen in
11387 dlopen)
11388 save_CPPFLAGS="$CPPFLAGS"
11389 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11390
11391 save_LDFLAGS="$LDFLAGS"
11392 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11393
11394 save_LIBS="$LIBS"
11395 LIBS="$lt_cv_dlopen_libs $LIBS"
11396
81ecdfbb
RW
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11398$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11399if test "${lt_cv_dlopen_self+set}" = set; then :
11400 $as_echo_n "(cached) " >&6
20e95c23 11401else
d7040cdb
SE
11402 if test "$cross_compiling" = yes; then :
11403 lt_cv_dlopen_self=cross
11404else
11405 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11406 lt_status=$lt_dlunknown
11407 cat > conftest.$ac_ext <<_LT_EOF
ef72a554 11408#line 11408 "configure"
d7040cdb
SE
11409#include "confdefs.h"
11410
11411#if HAVE_DLFCN_H
11412#include <dlfcn.h>
11413#endif
11414
11415#include <stdio.h>
11416
11417#ifdef RTLD_GLOBAL
11418# define LT_DLGLOBAL RTLD_GLOBAL
11419#else
11420# ifdef DL_GLOBAL
11421# define LT_DLGLOBAL DL_GLOBAL
11422# else
11423# define LT_DLGLOBAL 0
11424# endif
11425#endif
11426
11427/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11428 find out it does not work in some platform. */
11429#ifndef LT_DLLAZY_OR_NOW
11430# ifdef RTLD_LAZY
11431# define LT_DLLAZY_OR_NOW RTLD_LAZY
11432# else
11433# ifdef DL_LAZY
11434# define LT_DLLAZY_OR_NOW DL_LAZY
11435# else
11436# ifdef RTLD_NOW
11437# define LT_DLLAZY_OR_NOW RTLD_NOW
11438# else
11439# ifdef DL_NOW
11440# define LT_DLLAZY_OR_NOW DL_NOW
11441# else
11442# define LT_DLLAZY_OR_NOW 0
11443# endif
11444# endif
11445# endif
11446# endif
11447#endif
11448
3725885a
RW
11449/* When -fvisbility=hidden is used, assume the code has been annotated
11450 correspondingly for the symbols needed. */
11451#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11452void fnord () __attribute__((visibility("default")));
11453#endif
11454
11455void fnord () { int i=42; }
d7040cdb
SE
11456int main ()
11457{
11458 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11459 int status = $lt_dlunknown;
11460
11461 if (self)
11462 {
11463 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11464 else
11465 {
11466 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11467 else puts (dlerror ());
11468 }
d7040cdb
SE
11469 /* dlclose (self); */
11470 }
11471 else
11472 puts (dlerror ());
11473
718a6fd8 11474 return status;
d7040cdb
SE
11475}
11476_LT_EOF
81ecdfbb 11477 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
11478 (eval $ac_link) 2>&5
11479 ac_status=$?
81ecdfbb
RW
11480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11481 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
d7040cdb
SE
11482 (./conftest; exit; ) >&5 2>/dev/null
11483 lt_status=$?
11484 case x$lt_status in
11485 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11486 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11487 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11488 esac
11489 else :
11490 # compilation failed
11491 lt_cv_dlopen_self=no
11492 fi
252b5132 11493fi
d7040cdb 11494rm -fr conftest*
20e95c23 11495
d7040cdb
SE
11496
11497fi
81ecdfbb
RW
11498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11499$as_echo "$lt_cv_dlopen_self" >&6; }
d7040cdb
SE
11500
11501 if test "x$lt_cv_dlopen_self" = xyes; then
11502 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11504$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11505if test "${lt_cv_dlopen_self_static+set}" = set; then :
11506 $as_echo_n "(cached) " >&6
20e95c23 11507else
d7040cdb
SE
11508 if test "$cross_compiling" = yes; then :
11509 lt_cv_dlopen_self_static=cross
11510else
11511 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11512 lt_status=$lt_dlunknown
11513 cat > conftest.$ac_ext <<_LT_EOF
ef72a554 11514#line 11514 "configure"
d7040cdb
SE
11515#include "confdefs.h"
11516
11517#if HAVE_DLFCN_H
11518#include <dlfcn.h>
11519#endif
11520
11521#include <stdio.h>
11522
11523#ifdef RTLD_GLOBAL
11524# define LT_DLGLOBAL RTLD_GLOBAL
11525#else
11526# ifdef DL_GLOBAL
11527# define LT_DLGLOBAL DL_GLOBAL
11528# else
11529# define LT_DLGLOBAL 0
11530# endif
11531#endif
11532
11533/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11534 find out it does not work in some platform. */
11535#ifndef LT_DLLAZY_OR_NOW
11536# ifdef RTLD_LAZY
11537# define LT_DLLAZY_OR_NOW RTLD_LAZY
11538# else
11539# ifdef DL_LAZY
11540# define LT_DLLAZY_OR_NOW DL_LAZY
11541# else
11542# ifdef RTLD_NOW
11543# define LT_DLLAZY_OR_NOW RTLD_NOW
11544# else
11545# ifdef DL_NOW
11546# define LT_DLLAZY_OR_NOW DL_NOW
11547# else
11548# define LT_DLLAZY_OR_NOW 0
11549# endif
11550# endif
11551# endif
11552# endif
11553#endif
11554
3725885a
RW
11555/* When -fvisbility=hidden is used, assume the code has been annotated
11556 correspondingly for the symbols needed. */
11557#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11558void fnord () __attribute__((visibility("default")));
11559#endif
11560
11561void fnord () { int i=42; }
d7040cdb
SE
11562int main ()
11563{
11564 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11565 int status = $lt_dlunknown;
11566
11567 if (self)
11568 {
11569 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11570 else
11571 {
11572 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11573 else puts (dlerror ());
11574 }
d7040cdb
SE
11575 /* dlclose (self); */
11576 }
11577 else
11578 puts (dlerror ());
11579
718a6fd8 11580 return status;
d7040cdb
SE
11581}
11582_LT_EOF
81ecdfbb 11583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
11584 (eval $ac_link) 2>&5
11585 ac_status=$?
81ecdfbb
RW
11586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11587 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
d7040cdb
SE
11588 (./conftest; exit; ) >&5 2>/dev/null
11589 lt_status=$?
11590 case x$lt_status in
11591 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11592 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11593 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11594 esac
11595 else :
11596 # compilation failed
11597 lt_cv_dlopen_self_static=no
11598 fi
11599fi
11600rm -fr conftest*
11601
11602
11603fi
81ecdfbb
RW
11604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11605$as_echo "$lt_cv_dlopen_self_static" >&6; }
d7040cdb
SE
11606 fi
11607
11608 CPPFLAGS="$save_CPPFLAGS"
11609 LDFLAGS="$save_LDFLAGS"
11610 LIBS="$save_LIBS"
11611 ;;
11612 esac
11613
11614 case $lt_cv_dlopen_self in
11615 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11616 *) enable_dlopen_self=unknown ;;
11617 esac
11618
11619 case $lt_cv_dlopen_self_static in
11620 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11621 *) enable_dlopen_self_static=unknown ;;
11622 esac
11623fi
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641striplib=
11642old_striplib=
81ecdfbb
RW
11643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11644$as_echo_n "checking whether stripping libraries is possible... " >&6; }
d7040cdb
SE
11645if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11646 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11647 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
81ecdfbb
RW
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11649$as_echo "yes" >&6; }
d7040cdb
SE
11650else
11651# FIXME - insert some real tests, host_os isn't really good enough
11652 case $host_os in
11653 darwin*)
11654 if test -n "$STRIP" ; then
11655 striplib="$STRIP -x"
11656 old_striplib="$STRIP -S"
81ecdfbb
RW
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11658$as_echo "yes" >&6; }
d7040cdb 11659 else
81ecdfbb
RW
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11661$as_echo "no" >&6; }
d7040cdb 11662 fi
20e95c23
DJ
11663 ;;
11664 *)
81ecdfbb
RW
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11666$as_echo "no" >&6; }
d7040cdb
SE
11667 ;;
11668 esac
11669fi
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682 # Report which library types will actually be built
81ecdfbb
RW
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11684$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11686$as_echo "$can_build_shared" >&6; }
d7040cdb 11687
81ecdfbb
RW
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11689$as_echo_n "checking whether to build shared libraries... " >&6; }
d7040cdb
SE
11690 test "$can_build_shared" = "no" && enable_shared=no
11691
11692 # On AIX, shared libraries and static libraries use the same namespace, and
11693 # are all built from PIC.
11694 case $host_os in
11695 aix3*)
11696 test "$enable_shared" = yes && enable_static=no
11697 if test -n "$RANLIB"; then
11698 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11699 postinstall_cmds='$RANLIB $lib'
11700 fi
11701 ;;
11702
e81819a5 11703 aix[4-9]*)
d7040cdb
SE
11704 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11705 test "$enable_shared" = yes && enable_static=no
11706 fi
20e95c23 11707 ;;
d7040cdb 11708 esac
81ecdfbb
RW
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11710$as_echo "$enable_shared" >&6; }
d7040cdb 11711
81ecdfbb
RW
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11713$as_echo_n "checking whether to build static libraries... " >&6; }
d7040cdb
SE
11714 # Make sure either enable_shared or enable_static is yes.
11715 test "$enable_shared" = yes || enable_static=yes
81ecdfbb
RW
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11717$as_echo "$enable_static" >&6; }
d7040cdb
SE
11718
11719
11720
11721
11722fi
11723ac_ext=c
11724ac_cpp='$CPP $CPPFLAGS'
11725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11727ac_compiler_gnu=$ac_cv_c_compiler_gnu
11728
11729CC="$lt_save_CC"
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
81ecdfbb 11743 ac_config_commands="$ac_config_commands libtool"
ce3c775b
NC
11744
11745
11746
11747
11748# Only expand once:
11749
11750
11751
da2f07f1
JK
11752# AC_PLUGINS setting $plugins is called by ACX_LARGEFILE.
11753
3388710e
JM
11754# The tests for host and target for $enable_largefile require
11755# canonical names.
11756
11757
11758
da2f07f1
JK
11759# As the $enable_largefile decision depends on --enable-plugins we must set it
11760# even in directories otherwise not depending on the $plugins option.
11761
5691d22d 11762
81ecdfbb
RW
11763# Check whether --enable-plugins was given.
11764if test "${enable_plugins+set}" = set; then :
11765 enableval=$enable_plugins; case "${enableval}" in
ce3c775b
NC
11766 yes | "") plugins=yes ;;
11767 no) plugins=no ;;
11768 *) plugins=yes ;;
11769 esac
11770else
11771 plugins=no
81ecdfbb 11772fi
ce3c775b
NC
11773
11774
5691d22d 11775
da2f07f1 11776case "${host}" in
ce3c775b
NC
11777 sparc-*-solaris*|i[3-7]86-*-solaris*)
11778 # On native 32bit sparc and ia32 solaris, large-file and procfs support
da2f07f1 11779 # are mutually exclusive; and without procfs support, the bfd/ elf module
ce3c775b
NC
11780 # cannot provide certain routines such as elfcore_write_prpsinfo
11781 # or elfcore_write_prstatus. So unless the user explicitly requested
11782 # large-file support through the --enable-largefile switch, disable
11783 # large-file support in favor of procfs support.
da2f07f1
JK
11784 test "${target}" = "${host}" -a "x$plugins" = xno \
11785 && : ${enable_largefile="no"}
ce3c775b
NC
11786 ;;
11787esac
11788
81ecdfbb
RW
11789# Check whether --enable-largefile was given.
11790if test "${enable_largefile+set}" = set; then :
11791 enableval=$enable_largefile;
11792fi
ce3c775b 11793
ce3c775b
NC
11794if test "$enable_largefile" != no; then
11795
81ecdfbb
RW
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11797$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11798if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11799 $as_echo_n "(cached) " >&6
ce3c775b
NC
11800else
11801 ac_cv_sys_largefile_CC=no
11802 if test "$GCC" != yes; then
11803 ac_save_CC=$CC
11804 while :; do
81ecdfbb
RW
11805 # IRIX 6.2 and later do not support large files by default,
11806 # so use the C compiler's -n32 option if that helps.
11807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce3c775b
NC
11808/* end confdefs.h. */
11809#include <sys/types.h>
11810 /* Check that off_t can represent 2**63 - 1 correctly.
11811 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11812 since some C++ compilers masquerading as C compilers
11813 incorrectly reject 9223372036854775807. */
11814#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11815 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11816 && LARGE_OFF_T % 2147483647 == 1)
11817 ? 1 : -1];
11818int
11819main ()
11820{
11821
11822 ;
11823 return 0;
11824}
11825_ACEOF
81ecdfbb 11826 if ac_fn_c_try_compile "$LINENO"; then :
ce3c775b 11827 break
ce3c775b 11828fi
81ecdfbb
RW
11829rm -f core conftest.err conftest.$ac_objext
11830 CC="$CC -n32"
11831 if ac_fn_c_try_compile "$LINENO"; then :
ce3c775b 11832 ac_cv_sys_largefile_CC=' -n32'; break
ce3c775b 11833fi
81ecdfbb 11834rm -f core conftest.err conftest.$ac_objext
ce3c775b
NC
11835 break
11836 done
11837 CC=$ac_save_CC
11838 rm -f conftest.$ac_ext
11839 fi
11840fi
81ecdfbb
RW
11841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11842$as_echo "$ac_cv_sys_largefile_CC" >&6; }
ce3c775b
NC
11843 if test "$ac_cv_sys_largefile_CC" != no; then
11844 CC=$CC$ac_cv_sys_largefile_CC
11845 fi
11846
81ecdfbb
RW
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11848$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11849if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11850 $as_echo_n "(cached) " >&6
ce3c775b
NC
11851else
11852 while :; do
81ecdfbb 11853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce3c775b
NC
11854/* end confdefs.h. */
11855#include <sys/types.h>
11856 /* Check that off_t can represent 2**63 - 1 correctly.
11857 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11858 since some C++ compilers masquerading as C compilers
11859 incorrectly reject 9223372036854775807. */
11860#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11861 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11862 && LARGE_OFF_T % 2147483647 == 1)
11863 ? 1 : -1];
11864int
11865main ()
11866{
11867
11868 ;
11869 return 0;
11870}
11871_ACEOF
81ecdfbb
RW
11872if ac_fn_c_try_compile "$LINENO"; then :
11873 ac_cv_sys_file_offset_bits=no; break
ce3c775b 11874fi
81ecdfbb
RW
11875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce3c775b
NC
11877/* end confdefs.h. */
11878#define _FILE_OFFSET_BITS 64
11879#include <sys/types.h>
11880 /* Check that off_t can represent 2**63 - 1 correctly.
11881 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11882 since some C++ compilers masquerading as C compilers
11883 incorrectly reject 9223372036854775807. */
11884#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11885 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11886 && LARGE_OFF_T % 2147483647 == 1)
11887 ? 1 : -1];
11888int
11889main ()
11890{
11891
11892 ;
11893 return 0;
11894}
11895_ACEOF
81ecdfbb 11896if ac_fn_c_try_compile "$LINENO"; then :
ce3c775b 11897 ac_cv_sys_file_offset_bits=64; break
ce3c775b 11898fi
81ecdfbb
RW
11899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11900 ac_cv_sys_file_offset_bits=unknown
ce3c775b
NC
11901 break
11902done
11903fi
81ecdfbb
RW
11904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11905$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11906case $ac_cv_sys_file_offset_bits in #(
11907 no | unknown) ;;
11908 *)
ce3c775b
NC
11909cat >>confdefs.h <<_ACEOF
11910#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11911_ACEOF
81ecdfbb
RW
11912;;
11913esac
11914rm -rf conftest*
11915 if test $ac_cv_sys_file_offset_bits = unknown; then
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11917$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11918if test "${ac_cv_sys_large_files+set}" = set; then :
11919 $as_echo_n "(cached) " >&6
ce3c775b
NC
11920else
11921 while :; do
81ecdfbb 11922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce3c775b
NC
11923/* end confdefs.h. */
11924#include <sys/types.h>
11925 /* Check that off_t can represent 2**63 - 1 correctly.
11926 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11927 since some C++ compilers masquerading as C compilers
11928 incorrectly reject 9223372036854775807. */
11929#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11930 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11931 && LARGE_OFF_T % 2147483647 == 1)
11932 ? 1 : -1];
11933int
11934main ()
11935{
11936
11937 ;
11938 return 0;
11939}
11940_ACEOF
81ecdfbb
RW
11941if ac_fn_c_try_compile "$LINENO"; then :
11942 ac_cv_sys_large_files=no; break
ce3c775b 11943fi
81ecdfbb
RW
11944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce3c775b
NC
11946/* end confdefs.h. */
11947#define _LARGE_FILES 1
11948#include <sys/types.h>
11949 /* Check that off_t can represent 2**63 - 1 correctly.
11950 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11951 since some C++ compilers masquerading as C compilers
11952 incorrectly reject 9223372036854775807. */
11953#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11954 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11955 && LARGE_OFF_T % 2147483647 == 1)
11956 ? 1 : -1];
11957int
11958main ()
11959{
d7040cdb 11960
ce3c775b
NC
11961 ;
11962 return 0;
11963}
11964_ACEOF
81ecdfbb 11965if ac_fn_c_try_compile "$LINENO"; then :
ce3c775b 11966 ac_cv_sys_large_files=1; break
ce3c775b 11967fi
81ecdfbb
RW
11968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11969 ac_cv_sys_large_files=unknown
ce3c775b
NC
11970 break
11971done
11972fi
81ecdfbb
RW
11973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11974$as_echo "$ac_cv_sys_large_files" >&6; }
11975case $ac_cv_sys_large_files in #(
11976 no | unknown) ;;
11977 *)
ce3c775b
NC
11978cat >>confdefs.h <<_ACEOF
11979#define _LARGE_FILES $ac_cv_sys_large_files
11980_ACEOF
81ecdfbb
RW
11981;;
11982esac
11983rm -rf conftest*
11984 fi
ce3c775b 11985fi
d7040cdb
SE
11986
11987
da2f07f1
JK
11988
11989 if test "$plugins" = "yes"; then
11990 PLUGINS_TRUE=
11991 PLUGINS_FALSE='#'
11992else
11993 PLUGINS_TRUE='#'
11994 PLUGINS_FALSE=
11995fi
11996
11997
11998if test "$plugins" = "yes"; then
11999 if test "$enable_dlopen" != "yes" ; then
12000 as_fn_error "
12001 Building BFD with plugin support requires a host that supports -ldl." "$LINENO" 5
12002 fi
12003 enable_targets="$enable_targets plugin"
12004fi
12005
81ecdfbb
RW
12006# Check whether --enable-64-bit-bfd was given.
12007if test "${enable_64_bit_bfd+set}" = set; then :
12008 enableval=$enable_64_bit_bfd; case "${enableval}" in
d7040cdb
SE
12009 yes) want64=true ;;
12010 no) want64=false ;;
81ecdfbb 12011 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
d7040cdb
SE
12012esac
12013else
12014 want64=false
81ecdfbb
RW
12015fi
12016
12017# Check whether --enable-targets was given.
12018if test "${enable_targets+set}" = set; then :
12019 enableval=$enable_targets; case "${enableval}" in
12020 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
d7040cdb
SE
12021 ;;
12022 no) enable_targets= ;;
12023 *) enable_targets=$enableval ;;
12024esac
81ecdfbb 12025fi
504b7d20 12026
81ecdfbb
RW
12027
12028# Check whether --with-mmap was given.
12029if test "${with_mmap+set}" = set; then :
12030 withval=$with_mmap; case "${withval}" in
d7040cdb
SE
12031 yes) want_mmap=true ;;
12032 no) want_mmap=false ;;
81ecdfbb 12033 *) as_fn_error "bad value ${withval} for BFD with-mmap option" "$LINENO" 5 ;;
20e95c23 12034esac
252b5132 12035else
d7040cdb 12036 want_mmap=false
81ecdfbb
RW
12037fi
12038
12039# Check whether --enable-secureplt was given.
12040if test "${enable_secureplt+set}" = set; then :
12041 enableval=$enable_secureplt; case "${enableval}" in
d7040cdb
SE
12042 yes) use_secureplt=true ;;
12043 no) use_secureplt=false ;;
81ecdfbb 12044 *) as_fn_error "bad value ${enableval} for secureplt option" "$LINENO" 5 ;;
d7040cdb 12045esac
252b5132 12046else
d7040cdb 12047 use_secureplt=false
81ecdfbb
RW
12048fi
12049if test $use_secureplt = true; then
d7040cdb 12050
81ecdfbb 12051$as_echo "#define USE_SECUREPLT 1" >>confdefs.h
5464f5a1 12052
252b5132 12053fi
20e95c23 12054
ef72a554
KT
12055# Check whether --enable-leading-mingw64-underscores was given.
12056if test "${enable_leading_mingw64_underscores+set}" = set; then :
12057 enableval=$enable_leading_mingw64_underscores;
12058fi
12059
12060if test x"$enable_leading_mingw64_underscores" = xyes ; then :
12061
12062$as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12063
12064fi
12065
0d4a1476
AS
12066DEBUGDIR=${libdir}/debug
12067
81ecdfbb
RW
12068# Check whether --with-separate-debug-dir was given.
12069if test "${with_separate_debug_dir+set}" = set; then :
12070 withval=$with_separate_debug_dir; DEBUGDIR="${withval}"
12071fi
12072
0d4a1476
AS
12073
12074
504b7d20
NC
12075# Check to see if we should allow the generation of
12076# symbols with the ELF standard's STT_COMMON type.
81ecdfbb
RW
12077# Check whether --enable-elf-stt-common was given.
12078if test "${enable_elf_stt_common+set}" = set; then :
12079 enableval=$enable_elf_stt_common; case "${enableval}" in
504b7d20
NC
12080 yes) want_elf_stt_common=true ;;
12081 no) want_elf_stt_common=false ;;
81ecdfbb 12082 *) as_fn_error "bad value ${enableval} for ELF STT_COMMON option" "$LINENO" 5 ;;
504b7d20
NC
12083 esac
12084else
12085 # We have to choose a default behaviour. For native builds we could
8bc9c892
NC
12086# test whether the loader supports the STT_COMMON type, but that would
12087# mean that built binaries could not be exported to older systems where
12088# the loader does not support it. So by default we always choose to
12089# disable this feature.
504b7d20 12090 want_elf_stt_common=false
81ecdfbb
RW
12091fi
12092if test $want_elf_stt_common = true; then
504b7d20 12093
81ecdfbb 12094$as_echo "#define USE_STT_COMMON 1" >>confdefs.h
504b7d20
NC
12095
12096fi
12097
12098
d7040cdb 12099
81ecdfbb
RW
12100# Check whether --with-pkgversion was given.
12101if test "${with_pkgversion+set}" = set; then :
12102 withval=$with_pkgversion; case "$withval" in
12103 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
d7040cdb
SE
12104 no) PKGVERSION= ;;
12105 *) PKGVERSION="($withval) " ;;
12106 esac
252b5132 12107else
d7040cdb 12108 PKGVERSION="(GNU Binutils) "
252b5132 12109
81ecdfbb
RW
12110fi
12111
20e95c23
DJ
12112
12113
5464f5a1 12114
20e95c23 12115
81ecdfbb
RW
12116# Check whether --with-bugurl was given.
12117if test "${with_bugurl+set}" = set; then :
12118 withval=$with_bugurl; case "$withval" in
12119 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
d7040cdb
SE
12120 no) BUGURL=
12121 ;;
12122 *) BUGURL="$withval"
12123 ;;
12124 esac
252b5132 12125else
d7040cdb
SE
12126 BUGURL="http://www.sourceware.org/bugzilla/"
12127
81ecdfbb
RW
12128fi
12129
d7040cdb
SE
12130 case ${BUGURL} in
12131 "")
12132 REPORT_BUGS_TO=
12133 REPORT_BUGS_TEXI=
20e95c23
DJ
12134 ;;
12135 *)
d7040cdb
SE
12136 REPORT_BUGS_TO="<$BUGURL>"
12137 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
20e95c23 12138 ;;
d7040cdb
SE
12139 esac;
12140
12141
12142
12143
12144
d1a98e0c
AM
12145GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12147/* end confdefs.h. */
12148__GNUC__
12149_ACEOF
12150if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12151 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
12152
12153else
12154 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
12155fi
12156rm -f conftest*
12157
d7040cdb 12158
81ecdfbb
RW
12159# Check whether --enable-werror was given.
12160if test "${enable_werror+set}" = set; then :
12161 enableval=$enable_werror; case "${enableval}" in
d7040cdb
SE
12162 yes | y) ERROR_ON_WARNING="yes" ;;
12163 no | n) ERROR_ON_WARNING="no" ;;
81ecdfbb 12164 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
d7040cdb 12165 esac
81ecdfbb
RW
12166fi
12167
d7040cdb 12168
d1a98e0c 12169# Disable -Wformat by default when using gcc on mingw
bb8541b9
L
12170case "${host}" in
12171 *-*-mingw32*)
12172 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12173 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
12174 fi
12175 ;;
12176 *) ;;
12177esac
12178
d7040cdb
SE
12179# Enable -Werror by default when using gcc
12180if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12181 ERROR_ON_WARNING=yes
12182fi
12183
12184NO_WERROR=
12185if test "${ERROR_ON_WARNING}" = yes ; then
12186 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
12187 NO_WERROR="-Wno-error"
12188fi
12189
12190if test "${GCC}" = yes ; then
12191 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12192fi
12193
81ecdfbb
RW
12194# Check whether --enable-build-warnings was given.
12195if test "${enable_build_warnings+set}" = set; then :
12196 enableval=$enable_build_warnings; case "${enableval}" in
d7040cdb
SE
12197 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
12198 no) if test "${GCC}" = yes ; then
12199 WARN_CFLAGS="-w"
12200 fi;;
12201 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12202 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
12203 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12204 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
12205 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20e95c23 12206esac
81ecdfbb
RW
12207fi
12208
d7040cdb
SE
12209
12210if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12211 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
20e95c23 12212fi
d7040cdb
SE
12213
12214
12215
12216
12217
81ecdfbb 12218ac_config_headers="$ac_config_headers config.h:config.in"
d7040cdb
SE
12219
12220
12221if test -z "$target" ; then
81ecdfbb 12222 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
20e95c23
DJ
12223fi
12224
81ecdfbb
RW
12225
12226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12227$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12228 # Check whether --enable-maintainer-mode was given.
12229if test "${enable_maintainer_mode+set}" = set; then :
12230 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
d7040cdb
SE
12231else
12232 USE_MAINTAINER_MODE=no
81ecdfbb 12233fi
20e95c23 12234
81ecdfbb
RW
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12236$as_echo "$USE_MAINTAINER_MODE" >&6; }
12237 if test $USE_MAINTAINER_MODE = yes; then
d7040cdb
SE
12238 MAINTAINER_MODE_TRUE=
12239 MAINTAINER_MODE_FALSE='#'
12240else
12241 MAINTAINER_MODE_TRUE='#'
12242 MAINTAINER_MODE_FALSE=
6be7c12c 12243fi
5464f5a1 12244
d7040cdb
SE
12245 MAINT=$MAINTAINER_MODE_TRUE
12246
12247
81ecdfbb 12248 if false; then
d7040cdb
SE
12249 GENINSRC_NEVER_TRUE=
12250 GENINSRC_NEVER_FALSE='#'
20e95c23 12251else
d7040cdb
SE
12252 GENINSRC_NEVER_TRUE='#'
12253 GENINSRC_NEVER_FALSE=
5464f5a1 12254fi
5464f5a1 12255
d7040cdb
SE
12256 case ${build_alias} in
12257 "") build_noncanonical=${build} ;;
12258 *) build_noncanonical=${build_alias} ;;
20e95c23 12259esac
d7040cdb
SE
12260
12261 case ${host_alias} in
12262 "") host_noncanonical=${build_noncanonical} ;;
12263 *) host_noncanonical=${host_alias} ;;
12264esac
12265
12266 case ${target_alias} in
12267 "") target_noncanonical=${host_noncanonical} ;;
12268 *) target_noncanonical=${target_alias} ;;
12269esac
12270
81ecdfbb
RW
12271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5
12272$as_echo_n "checking whether to install libbfd... " >&6; }
12273 # Check whether --enable-install-libbfd was given.
12274if test "${enable_install_libbfd+set}" = set; then :
12275 enableval=$enable_install_libbfd; install_libbfd_p=$enableval
252b5132 12276else
d7040cdb
SE
12277 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
12278 install_libbfd_p=yes
12279 else
12280 install_libbfd_p=no
12281 fi
81ecdfbb 12282fi
d7040cdb 12283
81ecdfbb
RW
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5
12285$as_echo "$install_libbfd_p" >&6; }
12286 if test $install_libbfd_p = yes; then
d7040cdb
SE
12287 INSTALL_LIBBFD_TRUE=
12288 INSTALL_LIBBFD_FALSE='#'
12289else
12290 INSTALL_LIBBFD_TRUE='#'
12291 INSTALL_LIBBFD_FALSE=
5464f5a1 12292fi
5464f5a1 12293
d7040cdb 12294 # Need _noncanonical variables for this.
5464f5a1 12295
5464f5a1 12296
d7040cdb
SE
12297
12298
12299 # libbfd.a is a host library containing target dependent code
12300 bfdlibdir='$(libdir)'
12301 bfdincludedir='$(includedir)'
12302 if test "${host}" != "${target}"; then
12303 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
12304 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
20e95c23 12305 fi
6be7c12c 12306
5464f5a1 12307
5464f5a1
NN
12308
12309
5464f5a1 12310
ac48eca1 12311
573e8a1c
RW
12312
12313
d7040cdb
SE
12314host64=false
12315target64=false
12316bfd_default_target_size=32
252b5132 12317
d7040cdb 12318# host stuff:
20e95c23 12319
ec68b083 12320ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi id ru"
d7040cdb
SE
12321# If we haven't got the data from the intl directory,
12322# assume NLS is disabled.
12323USE_NLS=no
12324LIBINTL=
12325LIBINTL_DEP=
12326INCINTL=
12327XGETTEXT=
12328GMSGFMT=
12329POSUB=
12330
12331if test -f ../intl/config.intl; then
12332 . ../intl/config.intl
252b5132 12333fi
81ecdfbb
RW
12334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12335$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 12336if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12338$as_echo "no" >&6; }
d7040cdb 12339else
81ecdfbb
RW
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12341$as_echo "yes" >&6; }
5464f5a1 12342
81ecdfbb 12343$as_echo "#define ENABLE_NLS 1" >>confdefs.h
252b5132 12344
6be7c12c 12345
81ecdfbb
RW
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12347$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
12348 # Look for .po and .gmo files in the source directory.
12349 CATALOGS=
12350 XLINGUAS=
12351 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12352 # If there aren't any .gmo files the shell will give us the
12353 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12354 # weeded out.
12355 case "$cat" in *\**)
12356 continue;;
12357 esac
12358 # The quadruple backslash is collapsed to a double backslash
12359 # by the backticks, then collapsed again by the double quotes,
12360 # leaving us with one backslash in the sed expression (right
12361 # before the dot that mustn't act as a wildcard).
12362 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12363 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12364 # The user is allowed to set LINGUAS to a list of languages to
12365 # install catalogs for. If it's empty that means "all of them."
12366 if test "x$LINGUAS" = x; then
12367 CATALOGS="$CATALOGS $cat"
12368 XLINGUAS="$XLINGUAS $lang"
12369 else
12370 case "$LINGUAS" in *$lang*)
12371 CATALOGS="$CATALOGS $cat"
12372 XLINGUAS="$XLINGUAS $lang"
12373 ;;
12374 esac
12375 fi
12376 done
12377 LINGUAS="$XLINGUAS"
81ecdfbb
RW
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12379$as_echo "$LINGUAS" >&6; }
d7040cdb 12380
252b5132 12381
d7040cdb 12382 DATADIRNAME=share
252b5132 12383
d7040cdb 12384 INSTOBJEXT=.mo
5464f5a1 12385
d7040cdb 12386 GENCAT=gencat
20e95c23 12387
d7040cdb 12388 CATOBJEXT=.gmo
5464f5a1 12389
20e95c23 12390fi
5464f5a1 12391
d7040cdb
SE
12392 MKINSTALLDIRS=
12393 if test -n "$ac_aux_dir"; then
12394 case "$ac_aux_dir" in
12395 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12396 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12397 esac
12398 fi
12399 if test -z "$MKINSTALLDIRS"; then
12400 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5464f5a1 12401 fi
5464f5a1 12402
5464f5a1 12403
d7040cdb 12404
81ecdfbb
RW
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12406$as_echo_n "checking whether NLS is requested... " >&6; }
12407 # Check whether --enable-nls was given.
12408if test "${enable_nls+set}" = set; then :
12409 enableval=$enable_nls; USE_NLS=$enableval
252b5132 12410else
d7040cdb 12411 USE_NLS=yes
81ecdfbb
RW
12412fi
12413
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12415$as_echo "$USE_NLS" >&6; }
5464f5a1 12416
252b5132 12417
5464f5a1 12418
252b5132 12419
d7040cdb
SE
12420
12421
12422# Prepare PATH_SEPARATOR.
12423# The user is always right.
12424if test "${PATH_SEPARATOR+set}" != set; then
12425 echo "#! /bin/sh" >conf$$.sh
12426 echo "exit 0" >>conf$$.sh
12427 chmod +x conf$$.sh
12428 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12429 PATH_SEPARATOR=';'
20e95c23 12430 else
d7040cdb 12431 PATH_SEPARATOR=:
20e95c23 12432 fi
d7040cdb
SE
12433 rm -f conf$$.sh
12434fi
12435
12436# Find out how to test for executable files. Don't use a zero-byte file,
12437# as systems may use methods other than mode bits to determine executability.
12438cat >conf$$.file <<_ASEOF
12439#! /bin/sh
12440exit 0
12441_ASEOF
12442chmod +x conf$$.file
12443if test -x conf$$.file >/dev/null 2>&1; then
12444 ac_executable_p="test -x"
20e95c23 12445else
d7040cdb 12446 ac_executable_p="test -f"
20e95c23 12447fi
d7040cdb 12448rm -f conf$$.file
5464f5a1 12449
d7040cdb
SE
12450# Extract the first word of "msgfmt", so it can be a program name with args.
12451set dummy msgfmt; ac_word=$2
81ecdfbb
RW
12452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12453$as_echo_n "checking for $ac_word... " >&6; }
12454if test "${ac_cv_path_MSGFMT+set}" = set; then :
12455 $as_echo_n "(cached) " >&6
d7040cdb
SE
12456else
12457 case "$MSGFMT" in
12458 [\\/]* | ?:[\\/]*)
12459 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12460 ;;
12461 *)
12462 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12463 for ac_dir in $PATH; do
12464 IFS="$ac_save_IFS"
12465 test -z "$ac_dir" && ac_dir=.
12466 for ac_exec_ext in '' $ac_executable_extensions; do
12467 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12468 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12469 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12470 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12471 break 2
12472 fi
12473 fi
12474 done
12475 done
12476 IFS="$ac_save_IFS"
12477 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12478 ;;
12479esac
5464f5a1 12480fi
d7040cdb
SE
12481MSGFMT="$ac_cv_path_MSGFMT"
12482if test "$MSGFMT" != ":"; then
81ecdfbb
RW
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12484$as_echo "$MSGFMT" >&6; }
20e95c23 12485else
81ecdfbb
RW
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12487$as_echo "no" >&6; }
252b5132 12488fi
d7040cdb
SE
12489
12490 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12491set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
12492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12493$as_echo_n "checking for $ac_word... " >&6; }
12494if test "${ac_cv_path_GMSGFMT+set}" = set; then :
12495 $as_echo_n "(cached) " >&6
252b5132 12496else
d7040cdb
SE
12497 case $GMSGFMT in
12498 [\\/]* | ?:[\\/]*)
12499 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12500 ;;
12501 *)
12502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12503for as_dir in $PATH
12504do
12505 IFS=$as_save_IFS
12506 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12507 for ac_exec_ext in '' $ac_executable_extensions; do
12508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 12509 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12511 break 2
12512 fi
12513done
81ecdfbb
RW
12514 done
12515IFS=$as_save_IFS
5464f5a1 12516
d7040cdb
SE
12517 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12518 ;;
12519esac
252b5132 12520fi
d7040cdb 12521GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 12522if test -n "$GMSGFMT"; then
81ecdfbb
RW
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12524$as_echo "$GMSGFMT" >&6; }
252b5132 12525else
81ecdfbb
RW
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12527$as_echo "no" >&6; }
252b5132
RH
12528fi
12529
20e95c23
DJ
12530
12531
81ecdfbb 12532
d7040cdb
SE
12533# Prepare PATH_SEPARATOR.
12534# The user is always right.
12535if test "${PATH_SEPARATOR+set}" != set; then
12536 echo "#! /bin/sh" >conf$$.sh
12537 echo "exit 0" >>conf$$.sh
12538 chmod +x conf$$.sh
12539 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12540 PATH_SEPARATOR=';'
12541 else
12542 PATH_SEPARATOR=:
12543 fi
12544 rm -f conf$$.sh
252b5132 12545fi
20e95c23 12546
d7040cdb
SE
12547# Find out how to test for executable files. Don't use a zero-byte file,
12548# as systems may use methods other than mode bits to determine executability.
12549cat >conf$$.file <<_ASEOF
12550#! /bin/sh
12551exit 0
12552_ASEOF
12553chmod +x conf$$.file
12554if test -x conf$$.file >/dev/null 2>&1; then
12555 ac_executable_p="test -x"
12556else
12557 ac_executable_p="test -f"
12558fi
12559rm -f conf$$.file
252b5132 12560
d7040cdb
SE
12561# Extract the first word of "xgettext", so it can be a program name with args.
12562set dummy xgettext; ac_word=$2
81ecdfbb
RW
12563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12564$as_echo_n "checking for $ac_word... " >&6; }
12565if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12566 $as_echo_n "(cached) " >&6
20e95c23 12567else
d7040cdb
SE
12568 case "$XGETTEXT" in
12569 [\\/]* | ?:[\\/]*)
12570 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12571 ;;
12572 *)
12573 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12574 for ac_dir in $PATH; do
12575 IFS="$ac_save_IFS"
12576 test -z "$ac_dir" && ac_dir=.
12577 for ac_exec_ext in '' $ac_executable_extensions; do
12578 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12579 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12580 (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
12581 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12582 break 2
12583 fi
12584 fi
12585 done
12586 done
12587 IFS="$ac_save_IFS"
12588 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12589 ;;
12590esac
12591fi
12592XGETTEXT="$ac_cv_path_XGETTEXT"
12593if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12595$as_echo "$XGETTEXT" >&6; }
252b5132 12596else
81ecdfbb
RW
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12598$as_echo "no" >&6; }
252b5132
RH
12599fi
12600
d7040cdb 12601 rm -f messages.po
5464f5a1 12602
252b5132 12603
d7040cdb
SE
12604# Prepare PATH_SEPARATOR.
12605# The user is always right.
12606if test "${PATH_SEPARATOR+set}" != set; then
12607 echo "#! /bin/sh" >conf$$.sh
12608 echo "exit 0" >>conf$$.sh
12609 chmod +x conf$$.sh
12610 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12611 PATH_SEPARATOR=';'
12612 else
12613 PATH_SEPARATOR=:
12614 fi
12615 rm -f conf$$.sh
252b5132
RH
12616fi
12617
d7040cdb
SE
12618# Find out how to test for executable files. Don't use a zero-byte file,
12619# as systems may use methods other than mode bits to determine executability.
12620cat >conf$$.file <<_ASEOF
12621#! /bin/sh
12622exit 0
12623_ASEOF
12624chmod +x conf$$.file
12625if test -x conf$$.file >/dev/null 2>&1; then
12626 ac_executable_p="test -x"
5464f5a1 12627else
d7040cdb 12628 ac_executable_p="test -f"
20e95c23 12629fi
d7040cdb 12630rm -f conf$$.file
5464f5a1 12631
d7040cdb
SE
12632# Extract the first word of "msgmerge", so it can be a program name with args.
12633set dummy msgmerge; ac_word=$2
81ecdfbb
RW
12634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12635$as_echo_n "checking for $ac_word... " >&6; }
12636if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12637 $as_echo_n "(cached) " >&6
d7040cdb
SE
12638else
12639 case "$MSGMERGE" in
12640 [\\/]* | ?:[\\/]*)
12641 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12642 ;;
12643 *)
12644 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12645 for ac_dir in $PATH; do
12646 IFS="$ac_save_IFS"
12647 test -z "$ac_dir" && ac_dir=.
12648 for ac_exec_ext in '' $ac_executable_extensions; do
12649 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12650 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12651 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12652 break 2
12653 fi
12654 fi
12655 done
12656 done
12657 IFS="$ac_save_IFS"
12658 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12659 ;;
12660esac
5464f5a1 12661fi
d7040cdb
SE
12662MSGMERGE="$ac_cv_path_MSGMERGE"
12663if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12665$as_echo "$MSGMERGE" >&6; }
20e95c23 12666else
81ecdfbb
RW
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12668$as_echo "no" >&6; }
d7040cdb 12669fi
20e95c23 12670
5464f5a1 12671
d7040cdb
SE
12672 if test "$GMSGFMT" != ":"; then
12673 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12674 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12675 : ;
12676 else
12677 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12679$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
12680 GMSGFMT=":"
12681 fi
12682 fi
252b5132 12683
d7040cdb
SE
12684 if test "$XGETTEXT" != ":"; then
12685 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12686 (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
12687 : ;
12688 else
81ecdfbb
RW
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12690$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
12691 XGETTEXT=":"
12692 fi
12693 rm -f messages.po
12694 fi
6be7c12c 12695
81ecdfbb 12696 ac_config_commands="$ac_config_commands default-1"
5464f5a1 12697
252b5132 12698
5464f5a1 12699
d7040cdb
SE
12700# Permit host specific settings.
12701. ${srcdir}/configure.host
12702
12703
252b5132 12704
252b5132 12705
d7040cdb 12706BFD_HOST_64BIT_LONG=0
d2df793a 12707BFD_HOST_64BIT_LONG_LONG=0
d7040cdb
SE
12708BFD_HOST_64_BIT_DEFINED=0
12709BFD_HOST_64_BIT=
12710BFD_HOST_U_64_BIT=
d2df793a 12711BFD_HOSTPTR_T="unsigned long"
6be7c12c 12712
81ecdfbb
RW
12713# The cast to long int works around a bug in the HP C Compiler
12714# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12715# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12716# This bug is HP SR number 8606223364.
12717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12718$as_echo_n "checking size of long long... " >&6; }
12719if test "${ac_cv_sizeof_long_long+set}" = set; then :
12720 $as_echo_n "(cached) " >&6
6726e1ea 12721else
81ecdfbb
RW
12722 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12723
12724else
12725 if test "$ac_cv_type_long_long" = yes; then
12726 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12727$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12728{ as_fn_set_status 77
12729as_fn_error "cannot compute sizeof (long long)
12730See \`config.log' for more details." "$LINENO" 5; }; }
12731 else
12732 ac_cv_sizeof_long_long=0
12733 fi
12734fi
12735
12736fi
12737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12738$as_echo "$ac_cv_sizeof_long_long" >&6; }
12739
12740
12741
12742cat >>confdefs.h <<_ACEOF
12743#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5464f5a1 12744_ACEOF
81ecdfbb
RW
12745
12746
12747# The cast to long int works around a bug in the HP C Compiler
12748# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12749# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12750# This bug is HP SR number 8606223364.
12751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
12752$as_echo_n "checking size of void *... " >&6; }
12753if test "${ac_cv_sizeof_void_p+set}" = set; then :
12754 $as_echo_n "(cached) " >&6
6726e1ea 12755else
81ecdfbb 12756 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5464f5a1 12757
81ecdfbb
RW
12758else
12759 if test "$ac_cv_type_void_p" = yes; then
12760 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12761$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12762{ as_fn_set_status 77
12763as_fn_error "cannot compute sizeof (void *)
12764See \`config.log' for more details." "$LINENO" 5; }; }
12765 else
12766 ac_cv_sizeof_void_p=0
12767 fi
6726e1ea 12768fi
81ecdfbb 12769
6726e1ea 12770fi
81ecdfbb
RW
12771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12772$as_echo "$ac_cv_sizeof_void_p" >&6; }
6726e1ea 12773
6726e1ea 12774
2ba49b59 12775
81ecdfbb
RW
12776cat >>confdefs.h <<_ACEOF
12777#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5464f5a1 12778_ACEOF
81ecdfbb
RW
12779
12780
12781# The cast to long int works around a bug in the HP C Compiler
12782# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12783# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12784# This bug is HP SR number 8606223364.
12785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12786$as_echo_n "checking size of long... " >&6; }
12787if test "${ac_cv_sizeof_long+set}" = set; then :
12788 $as_echo_n "(cached) " >&6
6726e1ea 12789else
81ecdfbb 12790 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5464f5a1 12791
252b5132 12792else
81ecdfbb
RW
12793 if test "$ac_cv_type_long" = yes; then
12794 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12795$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12796{ as_fn_set_status 77
12797as_fn_error "cannot compute sizeof (long)
12798See \`config.log' for more details." "$LINENO" 5; }; }
12799 else
12800 ac_cv_sizeof_long=0
12801 fi
12802fi
5464f5a1 12803
81ecdfbb
RW
12804fi
12805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12806$as_echo "$ac_cv_sizeof_long" >&6; }
2ba49b59 12807
81ecdfbb
RW
12808
12809
12810cat >>confdefs.h <<_ACEOF
12811#define SIZEOF_LONG $ac_cv_sizeof_long
5464f5a1 12812_ACEOF
2ba49b59 12813
2ba49b59 12814
81ecdfbb
RW
12815
12816if test "x${ac_cv_sizeof_void_p}" = "x8"; then
12817 host64=true
252b5132 12818fi
5464f5a1 12819
81ecdfbb
RW
12820if test "x${ac_cv_sizeof_long}" = "x8"; then
12821 BFD_HOST_64BIT_LONG=1
12822 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
12823 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
12824elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
12825 BFD_HOST_64BIT_LONG_LONG=1
12826 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
12827 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
12828 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
12829 BFD_HOSTPTR_T="unsigned long long"
12830 fi
252b5132 12831fi
81ecdfbb
RW
12832
12833if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
12834 BFD_HOST_64_BIT_DEFINED=1
12835 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
12836 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
2ba49b59 12837fi
5464f5a1 12838
5464f5a1 12839
2ba49b59 12840
2ba49b59 12841
5464f5a1 12842
81ecdfbb
RW
12843
12844
12845
12846# Put a plausible default for CC_FOR_BUILD in Makefile.
12847if test -z "$CC_FOR_BUILD"; then
12848 if test "x$cross_compiling" = "xno"; then
12849 CC_FOR_BUILD='$(CC)'
12850 else
12851 CC_FOR_BUILD=gcc
12852 fi
2ba49b59 12853fi
81ecdfbb
RW
12854
12855# Also set EXEEXT_FOR_BUILD.
12856if test "x$cross_compiling" = "xno"; then
12857 EXEEXT_FOR_BUILD='$(EXEEXT)'
12858else
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
12860$as_echo_n "checking for build system executable suffix... " >&6; }
12861if test "${bfd_cv_build_exeext+set}" = set; then :
12862 $as_echo_n "(cached) " >&6
6be7c12c 12863else
81ecdfbb
RW
12864 rm -f conftest*
12865 echo 'int main () { return 0; }' > conftest.c
12866 bfd_cv_build_exeext=
12867 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12868 for file in conftest.*; do
12869 case $file in
12870 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12871 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12872 esac
12873 done
12874 rm -f conftest*
12875 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
5464f5a1 12876fi
81ecdfbb
RW
12877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
12878$as_echo "$bfd_cv_build_exeext" >&6; }
12879 EXEEXT_FOR_BUILD=""
12880 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
5464f5a1 12881fi
5464f5a1 12882
5464f5a1 12883
81ecdfbb
RW
12884for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h
12885do :
12886 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12887ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12888eval as_val=\$$as_ac_Header
12889 if test "x$as_val" = x""yes; then :
12890 cat >>confdefs.h <<_ACEOF
12891#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d2df793a 12892_ACEOF
d2df793a 12893
d2df793a 12894fi
d2df793a 12895
81ecdfbb 12896done
d2df793a 12897
81ecdfbb
RW
12898for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h
12899do :
12900 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12901ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12902eval as_val=\$$as_ac_Header
12903 if test "x$as_val" = x""yes; then :
12904 cat >>confdefs.h <<_ACEOF
12905#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d2df793a 12906_ACEOF
d2df793a 12907
d2df793a 12908fi
d2df793a 12909
81ecdfbb 12910done
d2df793a 12911
81ecdfbb 12912
d2df793a 12913
f3b4f6d0 12914inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
81ecdfbb 12915
f3b4f6d0
PB
12916acx_cv_header_stdint=stddef.h
12917acx_cv_header_stdint_kind="(already complete)"
12918for i in stdint.h $inttype_headers; do
12919 unset ac_cv_type_uintptr_t
12920 unset ac_cv_type_uintmax_t
12921 unset ac_cv_type_int_least32_t
12922 unset ac_cv_type_int_fast32_t
12923 unset ac_cv_type_uint64_t
12924 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
12925 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
12926#include <$i>
12927"
12928if test "x$ac_cv_type_uintmax_t" = x""yes; then :
12929 acx_cv_header_stdint=$i
d2df793a 12930else
f3b4f6d0
PB
12931 continue
12932fi
81ecdfbb 12933
f3b4f6d0
PB
12934 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12935#include <$i>
12936"
12937if test "x$ac_cv_type_uintptr_t" = x""yes; then :
d2df793a 12938
81ecdfbb 12939else
f3b4f6d0 12940 acx_cv_header_stdint_kind="(mostly complete)"
d2df793a 12941fi
81ecdfbb 12942
f3b4f6d0
PB
12943 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
12944#include <$i>
12945"
12946if test "x$ac_cv_type_int_least32_t" = x""yes; then :
12947
d2df793a 12948else
f3b4f6d0 12949 acx_cv_header_stdint_kind="(mostly complete)"
81ecdfbb 12950fi
81ecdfbb 12951
f3b4f6d0
PB
12952 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
12953#include <$i>
12954"
12955if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
81ecdfbb 12956
f3b4f6d0
PB
12957else
12958 acx_cv_header_stdint_kind="(mostly complete)"
12959fi
81ecdfbb 12960
f3b4f6d0
PB
12961 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12962#include <$i>
12963"
12964if test "x$ac_cv_type_uint64_t" = x""yes; then :
d2df793a 12965
07c58694 12966else
f3b4f6d0
PB
12967 acx_cv_header_stdint_kind="(lacks uint64_t)"
12968fi
81ecdfbb 12969
f3b4f6d0
PB
12970 break
12971done
12972if test "$acx_cv_header_stdint" = stddef.h; then
12973 acx_cv_header_stdint_kind="(lacks uintmax_t)"
12974 for i in stdint.h $inttype_headers; do
12975 unset ac_cv_type_uintptr_t
12976 unset ac_cv_type_uint32_t
12977 unset ac_cv_type_uint64_t
12978 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
12979 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
12980#include <$i>
12981"
12982if test "x$ac_cv_type_uint32_t" = x""yes; then :
12983 acx_cv_header_stdint=$i
12984else
12985 continue
d2df793a 12986fi
81ecdfbb 12987
f3b4f6d0
PB
12988 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12989#include <$i>
12990"
12991if test "x$ac_cv_type_uint64_t" = x""yes; then :
81ecdfbb 12992
f3b4f6d0 12993fi
81ecdfbb 12994
f3b4f6d0
PB
12995 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12996#include <$i>
12997"
12998if test "x$ac_cv_type_uintptr_t" = x""yes; then :
81ecdfbb 12999
f3b4f6d0 13000fi
81ecdfbb 13001
f3b4f6d0
PB
13002 break
13003 done
13004fi
13005if test "$acx_cv_header_stdint" = stddef.h; then
13006 acx_cv_header_stdint_kind="(u_intXX_t style)"
13007 for i in sys/types.h $inttype_headers; do
13008 unset ac_cv_type_u_int32_t
13009 unset ac_cv_type_u_int64_t
13010 $as_echo_n "looking for u_intXX_t types in $i, " >&6
13011 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
13012#include <$i>
13013"
13014if test "x$ac_cv_type_u_int32_t" = x""yes; then :
13015 acx_cv_header_stdint=$i
07c58694 13016else
f3b4f6d0
PB
13017 continue
13018fi
81ecdfbb 13019
f3b4f6d0
PB
13020 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
13021#include <$i>
13022"
13023if test "x$ac_cv_type_u_int64_t" = x""yes; then :
81ecdfbb 13024
f3b4f6d0 13025fi
81ecdfbb 13026
f3b4f6d0
PB
13027 break
13028 done
d2df793a 13029fi
f3b4f6d0
PB
13030if test "$acx_cv_header_stdint" = stddef.h; then
13031 acx_cv_header_stdint_kind="(using manual detection)"
d2df793a 13032fi
81ecdfbb 13033
f3b4f6d0
PB
13034test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
13035test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
13036test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
13037test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
13038test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
81ecdfbb 13039
f3b4f6d0 13040# ----------------- Summarize what we found so far
07c58694 13041
f3b4f6d0
PB
13042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in bfd_stdint.h" >&5
13043$as_echo_n "checking what to include in bfd_stdint.h... " >&6; }
81ecdfbb 13044
f3b4f6d0
PB
13045case `$as_basename -- bfd_stdint.h ||
13046$as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
13047 Xbfd_stdint.h : 'X\(//\)$' \| \
13048 Xbfd_stdint.h : 'X\(/\)' \| . 2>/dev/null ||
13049$as_echo X/bfd_stdint.h |
13050 sed '/^.*\/\([^/][^/]*\)\/*$/{
13051 s//\1/
13052 q
13053 }
13054 /^X\/\(\/\/\)$/{
13055 s//\1/
13056 q
13057 }
13058 /^X\/\(\/\).*/{
13059 s//\1/
13060 q
13061 }
13062 s/.*/./; q'` in
13063 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
13064$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13065 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
13066$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13067 *) ;;
13068esac
81ecdfbb 13069
f3b4f6d0
PB
13070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
13071$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
5464f5a1 13072
f3b4f6d0 13073# ----------------- done included file, check C basic types --------
2ba49b59 13074
f3b4f6d0
PB
13075# Lacking an uintptr_t? Test size of void *
13076case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
13077 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
13078# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13079# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13080# This bug is HP SR number 8606223364.
13081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13082$as_echo_n "checking size of void *... " >&6; }
13083if test "${ac_cv_sizeof_void_p+set}" = set; then :
13084 $as_echo_n "(cached) " >&6
13085else
13086 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
2ba49b59 13087
f3b4f6d0
PB
13088else
13089 if test "$ac_cv_type_void_p" = yes; then
13090 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13091$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13092{ as_fn_set_status 77
13093as_fn_error "cannot compute sizeof (void *)
13094See \`config.log' for more details." "$LINENO" 5; }; }
13095 else
13096 ac_cv_sizeof_void_p=0
13097 fi
13098fi
81ecdfbb 13099
f3b4f6d0
PB
13100fi
13101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13102$as_echo "$ac_cv_sizeof_void_p" >&6; }
81ecdfbb 13103
07c58694
PB
13104
13105
13106cat >>confdefs.h <<_ACEOF
f3b4f6d0 13107#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
07c58694 13108_ACEOF
07c58694 13109
f3b4f6d0
PB
13110 ;;
13111esac
07c58694 13112
f3b4f6d0
PB
13113# Lacking an uint64_t? Test size of long
13114case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
13115 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
13116# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13117# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13118# This bug is HP SR number 8606223364.
13119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13120$as_echo_n "checking size of long... " >&6; }
13121if test "${ac_cv_sizeof_long+set}" = set; then :
81ecdfbb 13122 $as_echo_n "(cached) " >&6
5464f5a1 13123else
f3b4f6d0 13124 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
07c58694 13125
2ba49b59 13126else
f3b4f6d0
PB
13127 if test "$ac_cv_type_long" = yes; then
13128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13129$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13130{ as_fn_set_status 77
13131as_fn_error "cannot compute sizeof (long)
13132See \`config.log' for more details." "$LINENO" 5; }; }
13133 else
13134 ac_cv_sizeof_long=0
13135 fi
81ecdfbb 13136fi
2ba49b59 13137
f3b4f6d0
PB
13138fi
13139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13140$as_echo "$ac_cv_sizeof_long" >&6; }
81ecdfbb 13141
5464f5a1 13142
81ecdfbb 13143
f3b4f6d0
PB
13144cat >>confdefs.h <<_ACEOF
13145#define SIZEOF_LONG $ac_cv_sizeof_long
13146_ACEOF
07c58694 13147
f3b4f6d0
PB
13148 ;;
13149esac
2ba49b59 13150
f3b4f6d0
PB
13151if test $acx_cv_header_stdint = stddef.h; then
13152 # Lacking a good header? Test size of everything and deduce all types.
13153 # The cast to long int works around a bug in the HP C Compiler
13154# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13155# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13156# This bug is HP SR number 8606223364.
13157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13158$as_echo_n "checking size of int... " >&6; }
13159if test "${ac_cv_sizeof_int+set}" = set; then :
13160 $as_echo_n "(cached) " >&6
81ecdfbb 13161else
f3b4f6d0 13162 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
81ecdfbb 13163
f3b4f6d0
PB
13164else
13165 if test "$ac_cv_type_int" = yes; then
13166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13167$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13168{ as_fn_set_status 77
13169as_fn_error "cannot compute sizeof (int)
13170See \`config.log' for more details." "$LINENO" 5; }; }
13171 else
13172 ac_cv_sizeof_int=0
13173 fi
2ba49b59 13174fi
81ecdfbb 13175
f3b4f6d0
PB
13176fi
13177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13178$as_echo "$ac_cv_sizeof_int" >&6; }
81ecdfbb
RW
13179
13180
07c58694
PB
13181
13182cat >>confdefs.h <<_ACEOF
f3b4f6d0 13183#define SIZEOF_INT $ac_cv_sizeof_int
07c58694 13184_ACEOF
81ecdfbb 13185
07c58694 13186
f3b4f6d0
PB
13187 # The cast to long int works around a bug in the HP C Compiler
13188# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13189# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13190# This bug is HP SR number 8606223364.
13191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13192$as_echo_n "checking size of short... " >&6; }
13193if test "${ac_cv_sizeof_short+set}" = set; then :
13194 $as_echo_n "(cached) " >&6
13195else
13196 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
07c58694 13197
f3b4f6d0
PB
13198else
13199 if test "$ac_cv_type_short" = yes; then
13200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13201$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13202{ as_fn_set_status 77
13203as_fn_error "cannot compute sizeof (short)
13204See \`config.log' for more details." "$LINENO" 5; }; }
13205 else
13206 ac_cv_sizeof_short=0
13207 fi
13208fi
07c58694 13209
f3b4f6d0
PB
13210fi
13211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13212$as_echo "$ac_cv_sizeof_short" >&6; }
07c58694
PB
13213
13214
13215
f3b4f6d0
PB
13216cat >>confdefs.h <<_ACEOF
13217#define SIZEOF_SHORT $ac_cv_sizeof_short
13218_ACEOF
07c58694
PB
13219
13220
f3b4f6d0
PB
13221 # The cast to long int works around a bug in the HP C Compiler
13222# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13223# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13224# This bug is HP SR number 8606223364.
13225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
13226$as_echo_n "checking size of char... " >&6; }
13227if test "${ac_cv_sizeof_char+set}" = set; then :
13228 $as_echo_n "(cached) " >&6
13229else
13230 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
07c58694 13231
f3b4f6d0
PB
13232else
13233 if test "$ac_cv_type_char" = yes; then
13234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13235$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13236{ as_fn_set_status 77
13237as_fn_error "cannot compute sizeof (char)
13238See \`config.log' for more details." "$LINENO" 5; }; }
13239 else
13240 ac_cv_sizeof_char=0
13241 fi
13242fi
07c58694 13243
f3b4f6d0
PB
13244fi
13245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
13246$as_echo "$ac_cv_sizeof_char" >&6; }
07c58694
PB
13247
13248
07c58694 13249
2ba49b59 13250cat >>confdefs.h <<_ACEOF
f3b4f6d0 13251#define SIZEOF_CHAR $ac_cv_sizeof_char
2ba49b59
KC
13252_ACEOF
13253
13254
2ba49b59 13255
f3b4f6d0
PB
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
13257$as_echo_n "checking for type equivalent to int8_t... " >&6; }
13258 case "$ac_cv_sizeof_char" in
13259 1) acx_cv_type_int8_t=char ;;
13260 *) { as_fn_set_status please report a bug
13261as_fn_error "no 8-bit type" "$LINENO" 5; }
13262 esac
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
13264$as_echo "$acx_cv_type_int8_t" >&6; }
13265
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
13267$as_echo_n "checking for type equivalent to int16_t... " >&6; }
13268 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
13269 2:*) acx_cv_type_int16_t=int ;;
13270 *:2) acx_cv_type_int16_t=short ;;
13271 *) { as_fn_set_status please report a bug
13272as_fn_error "no 16-bit type" "$LINENO" 5; }
13273 esac
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
13275$as_echo "$acx_cv_type_int16_t" >&6; }
13276
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
13278$as_echo_n "checking for type equivalent to int32_t... " >&6; }
13279 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
13280 4:*) acx_cv_type_int32_t=int ;;
13281 *:4) acx_cv_type_int32_t=long ;;
13282 *) { as_fn_set_status please report a bug
13283as_fn_error "no 32-bit type" "$LINENO" 5; }
13284 esac
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
13286$as_echo "$acx_cv_type_int32_t" >&6; }
81ecdfbb 13287fi
2ba49b59 13288
f3b4f6d0 13289# These tests are here to make the output prettier
07c58694 13290
f3b4f6d0
PB
13291if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
13292 case "$ac_cv_sizeof_long" in
13293 8) acx_cv_type_int64_t=long ;;
13294 esac
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
13296$as_echo_n "checking for type equivalent to int64_t... " >&6; }
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
13298$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
13299fi
13300
13301# Now we can use the above types
13302
13303if test "$ac_cv_type_uintptr_t" != yes; then
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
13305$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
13306 case $ac_cv_sizeof_void_p in
13307 2) acx_cv_type_intptr_t=int16_t ;;
13308 4) acx_cv_type_intptr_t=int32_t ;;
13309 8) acx_cv_type_intptr_t=int64_t ;;
13310 *) { as_fn_set_status please report a bug
13311as_fn_error "no equivalent for intptr_t" "$LINENO" 5; }
13312 esac
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
13314$as_echo "$acx_cv_type_intptr_t" >&6; }
13315fi
07c58694 13316
f3b4f6d0 13317# ----------------- done all checks, emit header -------------
81ecdfbb 13318ac_config_commands="$ac_config_commands bfd_stdint.h"
2ba49b59
KC
13319
13320
d2df793a 13321
81ecdfbb
RW
13322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13323$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13324if test "${ac_cv_header_time+set}" = set; then :
13325 $as_echo_n "(cached) " >&6
2ba49b59 13326else
81ecdfbb
RW
13327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13328/* end confdefs.h. */
13329#include <sys/types.h>
13330#include <sys/time.h>
13331#include <time.h>
13332
13333int
13334main ()
13335{
13336if ((struct tm *) 0)
13337return 0;
13338 ;
13339 return 0;
13340}
13341_ACEOF
13342if ac_fn_c_try_compile "$LINENO"; then :
13343 ac_cv_header_time=yes
2ba49b59 13344else
81ecdfbb 13345 ac_cv_header_time=no
2ba49b59 13346fi
81ecdfbb 13347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59 13348fi
81ecdfbb
RW
13349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13350$as_echo "$ac_cv_header_time" >&6; }
13351if test $ac_cv_header_time = yes; then
2ba49b59 13352
81ecdfbb 13353$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
2ba49b59 13354
2ba49b59 13355fi
81ecdfbb
RW
13356
13357ac_header_dirent=no
13358for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13359 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13361$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13362if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
13363 $as_echo_n "(cached) " >&6
2ba49b59 13364else
81ecdfbb 13365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2ba49b59 13366/* end confdefs.h. */
81ecdfbb
RW
13367#include <sys/types.h>
13368#include <$ac_hdr>
13369
13370int
13371main ()
13372{
13373if ((DIR *) 0)
13374return 0;
13375 ;
13376 return 0;
13377}
2ba49b59 13378_ACEOF
81ecdfbb
RW
13379if ac_fn_c_try_compile "$LINENO"; then :
13380 eval "$as_ac_Header=yes"
2ba49b59 13381else
81ecdfbb
RW
13382 eval "$as_ac_Header=no"
13383fi
13384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13385fi
13386eval ac_res=\$$as_ac_Header
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13388$as_echo "$ac_res" >&6; }
13389eval as_val=\$$as_ac_Header
13390 if test "x$as_val" = x""yes; then :
13391 cat >>confdefs.h <<_ACEOF
13392#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13393_ACEOF
2ba49b59 13394
81ecdfbb 13395ac_header_dirent=$ac_hdr; break
2ba49b59 13396fi
2ba49b59 13397
81ecdfbb
RW
13398done
13399# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13400if test $ac_header_dirent = dirent.h; then
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13402$as_echo_n "checking for library containing opendir... " >&6; }
13403if test "${ac_cv_search_opendir+set}" = set; then :
13404 $as_echo_n "(cached) " >&6
13405else
13406 ac_func_search_save_LIBS=$LIBS
13407cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2ba49b59 13408/* end confdefs.h. */
81ecdfbb
RW
13409
13410/* Override any GCC internal prototype to avoid an error.
13411 Use char because int might match the return type of a GCC
13412 builtin and then its argument prototype would still apply. */
13413#ifdef __cplusplus
13414extern "C"
13415#endif
13416char opendir ();
13417int
13418main ()
13419{
13420return opendir ();
13421 ;
13422 return 0;
13423}
2ba49b59 13424_ACEOF
81ecdfbb
RW
13425for ac_lib in '' dir; do
13426 if test -z "$ac_lib"; then
13427 ac_res="none required"
2ba49b59 13428 else
81ecdfbb
RW
13429 ac_res=-l$ac_lib
13430 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2ba49b59 13431 fi
81ecdfbb
RW
13432 if ac_fn_c_try_link "$LINENO"; then :
13433 ac_cv_search_opendir=$ac_res
2ba49b59 13434fi
81ecdfbb
RW
13435rm -f core conftest.err conftest.$ac_objext \
13436 conftest$ac_exeext
13437 if test "${ac_cv_search_opendir+set}" = set; then :
13438 break
2ba49b59 13439fi
81ecdfbb
RW
13440done
13441if test "${ac_cv_search_opendir+set}" = set; then :
2ba49b59 13442
2ba49b59 13443else
81ecdfbb 13444 ac_cv_search_opendir=no
2ba49b59 13445fi
81ecdfbb
RW
13446rm conftest.$ac_ext
13447LIBS=$ac_func_search_save_LIBS
2ba49b59 13448fi
81ecdfbb
RW
13449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13450$as_echo "$ac_cv_search_opendir" >&6; }
13451ac_res=$ac_cv_search_opendir
13452if test "$ac_res" != no; then :
13453 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2ba49b59
KC
13454
13455fi
13456
81ecdfbb
RW
13457else
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13459$as_echo_n "checking for library containing opendir... " >&6; }
13460if test "${ac_cv_search_opendir+set}" = set; then :
13461 $as_echo_n "(cached) " >&6
13462else
13463 ac_func_search_save_LIBS=$LIBS
13464cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13465/* end confdefs.h. */
2ba49b59 13466
81ecdfbb
RW
13467/* Override any GCC internal prototype to avoid an error.
13468 Use char because int might match the return type of a GCC
13469 builtin and then its argument prototype would still apply. */
13470#ifdef __cplusplus
13471extern "C"
13472#endif
13473char opendir ();
13474int
13475main ()
13476{
13477return opendir ();
13478 ;
13479 return 0;
13480}
13481_ACEOF
13482for ac_lib in '' x; do
13483 if test -z "$ac_lib"; then
13484 ac_res="none required"
13485 else
13486 ac_res=-l$ac_lib
13487 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13488 fi
13489 if ac_fn_c_try_link "$LINENO"; then :
13490 ac_cv_search_opendir=$ac_res
13491fi
13492rm -f core conftest.err conftest.$ac_objext \
13493 conftest$ac_exeext
13494 if test "${ac_cv_search_opendir+set}" = set; then :
13495 break
13496fi
13497done
13498if test "${ac_cv_search_opendir+set}" = set; then :
2ba49b59 13499
81ecdfbb
RW
13500else
13501 ac_cv_search_opendir=no
13502fi
13503rm conftest.$ac_ext
13504LIBS=$ac_func_search_save_LIBS
13505fi
13506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13507$as_echo "$ac_cv_search_opendir" >&6; }
13508ac_res=$ac_cv_search_opendir
13509if test "$ac_res" != no; then :
13510 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2ba49b59 13511
81ecdfbb 13512fi
efde2f2c 13513
2ba49b59 13514fi
81ecdfbb
RW
13515
13516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
13517$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
13518if test "${gcc_cv_header_string+set}" = set; then :
13519 $as_echo_n "(cached) " >&6
2ba49b59 13520else
81ecdfbb 13521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2ba49b59 13522/* end confdefs.h. */
81ecdfbb
RW
13523#include <string.h>
13524#include <strings.h>
13525int
13526main ()
13527{
13528
13529 ;
13530 return 0;
13531}
2ba49b59 13532_ACEOF
81ecdfbb
RW
13533if ac_fn_c_try_compile "$LINENO"; then :
13534 gcc_cv_header_string=yes
2ba49b59 13535else
81ecdfbb
RW
13536 gcc_cv_header_string=no
13537fi
13538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13539fi
13540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
13541$as_echo "$gcc_cv_header_string" >&6; }
13542if test $gcc_cv_header_string = yes; then
13543
13544$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
2ba49b59 13545
2ba49b59 13546fi
2ba49b59 13547
81ecdfbb
RW
13548for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno
13549do :
13550 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13551ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13552eval as_val=\$$as_ac_var
13553 if test "x$as_val" = x""yes; then :
13554 cat >>confdefs.h <<_ACEOF
13555#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2ba49b59 13556_ACEOF
81ecdfbb
RW
13557
13558fi
13559done
13560
13561for ac_func in strtoull
13562do :
13563 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
13564if test "x$ac_cv_func_strtoull" = x""yes; then :
13565 cat >>confdefs.h <<_ACEOF
13566#define HAVE_STRTOULL 1
2ba49b59 13567_ACEOF
81ecdfbb
RW
13568
13569fi
13570done
13571
13572
13573ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
13574if test "x$ac_cv_have_decl_basename" = x""yes; then :
13575 ac_have_decl=1
2ba49b59 13576else
81ecdfbb 13577 ac_have_decl=0
2ba49b59 13578fi
81ecdfbb
RW
13579
13580cat >>confdefs.h <<_ACEOF
13581#define HAVE_DECL_BASENAME $ac_have_decl
13582_ACEOF
13583
13584ac_fn_c_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default"
13585if test "x$ac_cv_have_decl_ftello" = x""yes; then :
13586 ac_have_decl=1
2ba49b59 13587else
81ecdfbb
RW
13588 ac_have_decl=0
13589fi
2ba49b59 13590
81ecdfbb
RW
13591cat >>confdefs.h <<_ACEOF
13592#define HAVE_DECL_FTELLO $ac_have_decl
13593_ACEOF
13594
13595ac_fn_c_check_decl "$LINENO" "ftello64" "ac_cv_have_decl_ftello64" "$ac_includes_default"
13596if test "x$ac_cv_have_decl_ftello64" = x""yes; then :
13597 ac_have_decl=1
13598else
13599 ac_have_decl=0
2ba49b59 13600fi
2ba49b59 13601
81ecdfbb
RW
13602cat >>confdefs.h <<_ACEOF
13603#define HAVE_DECL_FTELLO64 $ac_have_decl
13604_ACEOF
13605
13606ac_fn_c_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default"
13607if test "x$ac_cv_have_decl_fseeko" = x""yes; then :
13608 ac_have_decl=1
2ba49b59 13609else
81ecdfbb 13610 ac_have_decl=0
2ba49b59 13611fi
2ba49b59 13612
81ecdfbb
RW
13613cat >>confdefs.h <<_ACEOF
13614#define HAVE_DECL_FSEEKO $ac_have_decl
13615_ACEOF
13616
13617ac_fn_c_check_decl "$LINENO" "fseeko64" "ac_cv_have_decl_fseeko64" "$ac_includes_default"
13618if test "x$ac_cv_have_decl_fseeko64" = x""yes; then :
13619 ac_have_decl=1
13620else
13621 ac_have_decl=0
2ba49b59 13622fi
81ecdfbb
RW
13623
13624cat >>confdefs.h <<_ACEOF
13625#define HAVE_DECL_FSEEKO64 $ac_have_decl
2ba49b59
KC
13626_ACEOF
13627
81ecdfbb
RW
13628
13629
13630case "${host}" in
13631*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13632
13633$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
13634 ;;
13635esac
13636
13637ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
13638if test "x$ac_cv_have_decl_ffs" = x""yes; then :
13639 ac_have_decl=1
13640else
13641 ac_have_decl=0
2ba49b59
KC
13642fi
13643
81ecdfbb
RW
13644cat >>confdefs.h <<_ACEOF
13645#define HAVE_DECL_FFS $ac_have_decl
13646_ACEOF
2ba49b59 13647
81ecdfbb
RW
13648ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
13649if test "x$ac_cv_have_decl_free" = x""yes; then :
13650 ac_have_decl=1
13651else
13652 ac_have_decl=0
13653fi
d5efd9fc 13654
81ecdfbb
RW
13655cat >>confdefs.h <<_ACEOF
13656#define HAVE_DECL_FREE $ac_have_decl
13657_ACEOF
d5efd9fc 13658
81ecdfbb
RW
13659ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
13660if test "x$ac_cv_have_decl_getenv" = x""yes; then :
13661 ac_have_decl=1
13662else
13663 ac_have_decl=0
13664fi
d5efd9fc 13665
81ecdfbb
RW
13666cat >>confdefs.h <<_ACEOF
13667#define HAVE_DECL_GETENV $ac_have_decl
d5efd9fc 13668_ACEOF
d5efd9fc 13669
81ecdfbb
RW
13670ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
13671if test "x$ac_cv_have_decl_malloc" = x""yes; then :
13672 ac_have_decl=1
13673else
13674 ac_have_decl=0
13675fi
13676
13677cat >>confdefs.h <<_ACEOF
13678#define HAVE_DECL_MALLOC $ac_have_decl
d5efd9fc 13679_ACEOF
81ecdfbb
RW
13680
13681ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
13682if test "x$ac_cv_have_decl_realloc" = x""yes; then :
13683 ac_have_decl=1
d5efd9fc 13684else
81ecdfbb
RW
13685 ac_have_decl=0
13686fi
13687
13688cat >>confdefs.h <<_ACEOF
13689#define HAVE_DECL_REALLOC $ac_have_decl
13690_ACEOF
d5efd9fc 13691
81ecdfbb
RW
13692ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
13693if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
13694 ac_have_decl=1
13695else
13696 ac_have_decl=0
d5efd9fc 13697fi
81ecdfbb
RW
13698
13699cat >>confdefs.h <<_ACEOF
13700#define HAVE_DECL_STPCPY $ac_have_decl
13701_ACEOF
13702
13703ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13704if test "x$ac_cv_have_decl_strstr" = x""yes; then :
13705 ac_have_decl=1
13706else
13707 ac_have_decl=0
d5efd9fc 13708fi
81ecdfbb
RW
13709
13710cat >>confdefs.h <<_ACEOF
13711#define HAVE_DECL_STRSTR $ac_have_decl
13712_ACEOF
13713
13714ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
13715if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
13716 ac_have_decl=1
d5efd9fc 13717else
81ecdfbb 13718 ac_have_decl=0
d5efd9fc
AM
13719fi
13720
81ecdfbb
RW
13721cat >>confdefs.h <<_ACEOF
13722#define HAVE_DECL_SNPRINTF $ac_have_decl
13723_ACEOF
13724
13725ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
13726if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
13727 ac_have_decl=1
d5efd9fc 13728else
81ecdfbb
RW
13729 ac_have_decl=0
13730fi
13731
13732cat >>confdefs.h <<_ACEOF
13733#define HAVE_DECL_VSNPRINTF $ac_have_decl
d5efd9fc 13734_ACEOF
81ecdfbb
RW
13735
13736
81ecdfbb
RW
13737# Link in zlib if we can. This allows us to read compressed debug sections.
13738# This is used only by compress.c.
bf993e3c
JB
13739
13740 # See if the user specified whether he wants zlib support or not.
13741
13742# Check whether --with-zlib was given.
13743if test "${with_zlib+set}" = set; then :
13744 withval=$with_zlib;
13745else
13746 with_zlib=auto
13747fi
13748
13749
13750 if test "$with_zlib" != "no"; then
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
81ecdfbb
RW
13752$as_echo_n "checking for library containing zlibVersion... " >&6; }
13753if test "${ac_cv_search_zlibVersion+set}" = set; then :
13754 $as_echo_n "(cached) " >&6
d5efd9fc 13755else
81ecdfbb
RW
13756 ac_func_search_save_LIBS=$LIBS
13757cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 13758/* end confdefs.h. */
d5efd9fc 13759
81ecdfbb
RW
13760/* Override any GCC internal prototype to avoid an error.
13761 Use char because int might match the return type of a GCC
13762 builtin and then its argument prototype would still apply. */
13763#ifdef __cplusplus
13764extern "C"
13765#endif
13766char zlibVersion ();
d5efd9fc
AM
13767int
13768main ()
13769{
81ecdfbb 13770return zlibVersion ();
d5efd9fc
AM
13771 ;
13772 return 0;
13773}
13774_ACEOF
81ecdfbb
RW
13775for ac_lib in '' z; do
13776 if test -z "$ac_lib"; then
13777 ac_res="none required"
13778 else
13779 ac_res=-l$ac_lib
13780 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13781 fi
13782 if ac_fn_c_try_link "$LINENO"; then :
13783 ac_cv_search_zlibVersion=$ac_res
d5efd9fc 13784fi
81ecdfbb
RW
13785rm -f core conftest.err conftest.$ac_objext \
13786 conftest$ac_exeext
13787 if test "${ac_cv_search_zlibVersion+set}" = set; then :
13788 break
d5efd9fc 13789fi
81ecdfbb
RW
13790done
13791if test "${ac_cv_search_zlibVersion+set}" = set; then :
13792
d5efd9fc 13793else
81ecdfbb
RW
13794 ac_cv_search_zlibVersion=no
13795fi
13796rm conftest.$ac_ext
13797LIBS=$ac_func_search_save_LIBS
13798fi
13799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
13800$as_echo "$ac_cv_search_zlibVersion" >&6; }
13801ac_res=$ac_cv_search_zlibVersion
13802if test "$ac_res" != no; then :
13803 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13804 for ac_header in zlib.h
13805do :
13806 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13807if test "x$ac_cv_header_zlib_h" = x""yes; then :
13808 cat >>confdefs.h <<_ACEOF
13809#define HAVE_ZLIB_H 1
13810_ACEOF
13811
d5efd9fc
AM
13812fi
13813
d5efd9fc 13814done
d5efd9fc 13815
d5efd9fc
AM
13816fi
13817
bf993e3c
JB
13818 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
13819 as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
13820 fi
13821 fi
13822
d5efd9fc 13823
81ecdfbb
RW
13824# If we are configured native, pick a core file support file.
13825COREFILE=
13826COREFLAG=
8bc7f138 13827CORE_HEADER=
81ecdfbb
RW
13828TRAD_HEADER=
13829if test "${target}" = "${host}"; then
13830 case "${host}" in
13831 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
13832 COREFILE=''
13833 ;;
13834 alpha*-*-linux-*)
13835 COREFILE=trad-core.lo
13836 TRAD_HEADER='"hosts/alphalinux.h"'
13837 ;;
13838 alpha*-*-netbsd* | alpha*-*-openbsd*)
13839 COREFILE=netbsd-core.lo
13840 ;;
13841 alpha*-*-*) COREFILE=osf-core.lo ;;
13842 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
13843 COREFILE='' ;;
13844 arm-*-netbsd* | arm-*-openbsd*)
13845 COREFILE=netbsd-core.lo
13846 ;;
13847 arm-*-riscix) COREFILE=trad-core.lo ;;
13848 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
13849 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
13850 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
13851 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
13852 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
13853 hppa*-*-netbsd* | hppa*-*-openbsd*)
13854 COREFILE=netbsd-core.lo
13855 ;;
d5efd9fc 13856
81ecdfbb
RW
13857 i370-*-*)
13858 COREFILE=trad-core.lo
13859 TRAD_HEADER='"hosts/i370linux.h"'
13860 ;;
d5efd9fc 13861
81ecdfbb
RW
13862 i[3-7]86-sequent-bsd*)
13863 COREFILE=trad-core.lo
13864 TRAD_HEADER='"hosts/symmetry.h"'
13865 ;;
13866 i[3-7]86-sequent-sysv4*) ;;
13867 i[3-7]86-sequent-sysv*)
13868 COREFILE=trad-core.lo
13869 TRAD_HEADER='"hosts/symmetry.h"'
13870 ;;
13871 i[3-7]86-*-bsdi)
13872 COREFILE=
13873 ;;
13874 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*)
13875 COREFILE=trad-core.lo
13876 TRAD_HEADER='"hosts/i386bsd.h"'
13877 ;;
13878 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
13879 COREFILE=''
13880 TRAD_HEADER='"hosts/i386bsd.h"'
13881 ;;
13882 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
13883 COREFILE=netbsd-core.lo
13884 ;;
13885 i[3-7]86-esix-sysv3*)
13886 COREFILE=trad-core.lo
13887 TRAD_HEADER='"hosts/esix.h"'
13888 ;;
13889 i[3-7]86-*-sco3.2v5*)
13890 COREFILE=sco5-core.lo
13891 ;;
13892 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
13893 COREFILE=trad-core.lo
13894 TRAD_HEADER='"hosts/i386sco.h"'
13895 ;;
13896 i[3-7]86-*-mach3*)
13897 COREFILE=trad-core.lo
13898 TRAD_HEADER='"hosts/i386mach3.h"'
13899 ;;
13900 i[3-7]86-*-linux-*)
13901 COREFILE=trad-core.lo
13902 TRAD_HEADER='"hosts/i386linux.h"'
13903 ;;
13904 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
13905 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
13906 i860-*-mach3* | i860-*-osf1*)
13907 COREFILE=trad-core.lo
13908 TRAD_HEADER='"hosts/i860mach3.h"'
13909 ;;
13910 mips-*-netbsd* | mips*-*-openbsd*)
13911 COREFILE=netbsd-core.lo
13912 ;;
13913 mips-dec-*)
13914 COREFILE=trad-core.lo
13915 TRAD_HEADER='"hosts/decstation.h"'
13916 ;;
13917 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
13918 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
13919 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
13920 mips-*-sysv4*) ;;
13921 mips-*-sysv* | mips-*-riscos*)
13922 COREFILE=trad-core.lo
13923 TRAD_HEADER='"hosts/riscos.h"'
13924 ;;
13925 mips-sony-bsd*)
13926 COREFILE=trad-core.lo
13927 TRAD_HEADER='"hosts/news-mips.h"'
13928 ;;
13929 m68*-bull*-sysv*)
13930 COREFILE=trad-core.lo
13931 TRAD_HEADER='"hosts/dpx2.h"'
13932 ;;
13933 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
13934 m68*-hp-bsd*)
13935 COREFILE=trad-core.lo
13936 TRAD_HEADER='"hosts/hp300bsd.h"'
13937 ;;
13938 m68*-*-linux-*)
13939 COREFILE=trad-core.lo
13940 TRAD_HEADER='"hosts/m68klinux.h"'
13941 ;;
13942 m68*-motorola-sysv*)
13943 COREFILE=trad-core.lo
13944 TRAD_HEADER='"hosts/delta68.h"'
13945 ;;
13946 m68*-sony-*)
13947 COREFILE=trad-core.lo
13948 TRAD_HEADER='"hosts/news.h"'
13949 ;;
13950 m68*-*-netbsd* | m68*-*-openbsd*)
13951 COREFILE=netbsd-core.lo
13952 ;;
13953 m68*-apple-aux*)
13954 COREFILE=trad-core.lo
13955 TRAD_HEADER='"hosts/m68kaux.h"'
13956 ;;
13957 m88*-*-sysv4*)
13958 ;;
13959 m88*-motorola-sysv*)
13960 COREFILE=ptrace-core.lo
13961 ;;
13962 m88*-*-mach3*)
13963 COREFILE=trad-core.lo
13964 TRAD_HEADER='"hosts/m88kmach3.h"'
13965 ;;
13966 m88*-*-openbsd*)
13967 COREFILE=netbsd-core.lo
13968 ;;
13969 ns32k-pc532-mach)
13970 COREFILE=trad-core.lo
13971 TRAD_HEADER='"hosts/pc532mach.h"'
13972 ;;
13973 ns32k-*-netbsd* | ns32k-*-openbsd*)
13974 COREFILE=netbsd-core.lo
13975 ;;
13976 rs6000-*-lynx*)
13977 COREFILE=lynx-core.lo
13978 ;;
13979 rs6000-*-aix[5-9].* | powerpc-*-aix[5-9].*)
13980 COREFILE=rs6000-core.lo
13981 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
13982 ;;
13983 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
13984 COREFILE=rs6000-core.lo
13985 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
13986 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
13987 # have c_impl as a member of struct core_dumpx
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_impl in struct core_dumpx" >&5
13989$as_echo_n "checking for c_impl in struct core_dumpx... " >&6; }
13990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 13991/* end confdefs.h. */
81ecdfbb 13992#include <core.h>
d5efd9fc
AM
13993int
13994main ()
13995{
81ecdfbb 13996struct core_dumpx c; c.c_impl = 0;
d5efd9fc
AM
13997 ;
13998 return 0;
13999}
14000_ACEOF
81ecdfbb 14001if ac_fn_c_try_compile "$LINENO"; then :
d5efd9fc 14002
81ecdfbb 14003$as_echo "#define HAVE_ST_C_IMPL 1" >>confdefs.h
d5efd9fc 14004
81ecdfbb
RW
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14006$as_echo "yes" >&6; }
d5efd9fc 14007else
81ecdfbb
RW
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14009$as_echo "no" >&6; }
d5efd9fc 14010fi
81ecdfbb
RW
14011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14012 ;;
14013 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
14014 rs6000-*-*) COREFILE=rs6000-core.lo ;;
14015 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
14016 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
14017 powerpc-*-beos*) ;;
14018 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
14019 COREFILE='' ;;
14020 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
14021 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
14022 s390*-*-*) COREFILE=trad-core.lo ;;
14023 sh*-*-netbsd* | sh*-*-openbsd*)
14024 COREFILE=netbsd-core.lo
14025 ;;
14026 sparc-*-netbsd* | sparc*-*-openbsd*)
14027 COREFILE=netbsd-core.lo
14028 ;;
14029 tahoe-*-*)
14030 COREFILE=trad-core.lo
14031 TRAD_HEADER='"hosts/tahoe.h"'
14032 ;;
14033 vax-*-netbsd* | vax-*-openbsd*)
14034 COREFILE=netbsd-core.lo
14035 ;;
14036 vax-*-ultrix2*)
14037 COREFILE=trad-core.lo
14038 TRAD_HEADER='"hosts/vaxult2.h"'
14039 ;;
14040 vax-*-ultrix*)
14041 COREFILE=trad-core.lo
14042 TRAD_HEADER='"hosts/vaxult2.h"'
14043 ;;
14044 vax-*-linux-*)
14045 COREFILE=trad-core.lo
14046 TRAD_HEADER='"hosts/vaxlinux.h"'
14047 ;;
14048 vax-*-*)
14049 COREFILE=trad-core.lo
14050 TRAD_HEADER='"hosts/vaxbsd.h"'
14051 ;;
8bc7f138
L
14052 x86_64-*-linux*)
14053 CORE_HEADER='"hosts/x86-64linux.h"'
14054 ;;
81ecdfbb
RW
14055 x86_64-*-netbsd* | x86_64-*-openbsd*)
14056 COREFILE=netbsd-core.lo
14057 ;;
14058 esac
14059
14060 case "$COREFILE" in
14061 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
14062 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
14063 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
14064 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
14065 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
14066 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
14067 osf-core.lo) COREFLAG=-DOSF_CORE ;;
14068 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
14069 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
14070 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
14071 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
14072 esac
14073
14074 # ELF corefile support has several flavors, but all of
14075 # them use something called <sys/procfs.h>
14076 for ac_header in sys/procfs.h
14077do :
14078 ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
14079if test "x$ac_cv_header_sys_procfs_h" = x""yes; then :
14080 cat >>confdefs.h <<_ACEOF
14081#define HAVE_SYS_PROCFS_H 1
14082_ACEOF
14083
d5efd9fc
AM
14084fi
14085
81ecdfbb
RW
14086done
14087
14088 if test "$ac_cv_header_sys_procfs_h" = yes; then
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t in sys/procfs.h" >&5
14090$as_echo_n "checking for prstatus_t in sys/procfs.h... " >&6; }
14091 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then :
14092 $as_echo_n "(cached) " >&6
d5efd9fc 14093else
81ecdfbb 14094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14095/* end confdefs.h. */
d5efd9fc 14096
81ecdfbb 14097#define _SYSCALL32
16231b7b
DG
14098/* Needed for new procfs interface on sparc-solaris. */
14099#define _STRUCTURED_PROC 1
81ecdfbb 14100#include <sys/procfs.h>
d5efd9fc
AM
14101int
14102main ()
14103{
81ecdfbb 14104prstatus_t avar
d5efd9fc
AM
14105 ;
14106 return 0;
14107}
14108_ACEOF
81ecdfbb
RW
14109if ac_fn_c_try_compile "$LINENO"; then :
14110 bfd_cv_have_sys_procfs_type_prstatus_t=yes
d5efd9fc 14111else
81ecdfbb 14112 bfd_cv_have_sys_procfs_type_prstatus_t=no
d5efd9fc 14113
d5efd9fc 14114fi
81ecdfbb 14115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5efd9fc
AM
14116fi
14117
81ecdfbb 14118 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
d5efd9fc 14119
81ecdfbb 14120$as_echo "#define HAVE_PRSTATUS_T 1" >>confdefs.h
d5efd9fc 14121
81ecdfbb
RW
14122 fi
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
14124$as_echo "$bfd_cv_have_sys_procfs_type_prstatus_t" >&6; }
d5efd9fc 14125
81ecdfbb
RW
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t in sys/procfs.h" >&5
14127$as_echo_n "checking for prstatus32_t in sys/procfs.h... " >&6; }
14128 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then :
14129 $as_echo_n "(cached) " >&6
d5efd9fc 14130else
81ecdfbb 14131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14132/* end confdefs.h. */
81ecdfbb
RW
14133
14134#define _SYSCALL32
16231b7b
DG
14135/* Needed for new procfs interface on sparc-solaris. */
14136#define _STRUCTURED_PROC 1
81ecdfbb 14137#include <sys/procfs.h>
d5efd9fc
AM
14138int
14139main ()
14140{
81ecdfbb 14141prstatus32_t avar
d5efd9fc
AM
14142 ;
14143 return 0;
14144}
14145_ACEOF
81ecdfbb
RW
14146if ac_fn_c_try_compile "$LINENO"; then :
14147 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
d5efd9fc 14148else
81ecdfbb 14149 bfd_cv_have_sys_procfs_type_prstatus32_t=no
d5efd9fc 14150
d5efd9fc 14151fi
81ecdfbb 14152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5efd9fc 14153fi
d5efd9fc 14154
81ecdfbb
RW
14155 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
14156
14157$as_echo "#define HAVE_PRSTATUS32_T 1" >>confdefs.h
14158
14159 fi
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
14161$as_echo "$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6; }
14162
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t.pr_who in sys/procfs.h" >&5
14164$as_echo_n "checking for prstatus_t.pr_who in sys/procfs.h... " >&6; }
14165 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then :
14166 $as_echo_n "(cached) " >&6
d5efd9fc 14167else
81ecdfbb 14168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14169/* end confdefs.h. */
81ecdfbb
RW
14170
14171#define _SYSCALL32
16231b7b
DG
14172/* Needed for new procfs interface on sparc-solaris. */
14173#define _STRUCTURED_PROC 1
81ecdfbb 14174#include <sys/procfs.h>
d5efd9fc
AM
14175int
14176main ()
14177{
81ecdfbb 14178prstatus_t avar; void* aref = (void*) &avar.pr_who
d5efd9fc
AM
14179 ;
14180 return 0;
14181}
14182_ACEOF
81ecdfbb
RW
14183if ac_fn_c_try_compile "$LINENO"; then :
14184 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
14185else
14186 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
14187
14188fi
14189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14190fi
14191
14192 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
14193
14194$as_echo "#define HAVE_PRSTATUS_T_PR_WHO 1" >>confdefs.h
14195
14196 fi
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
14198$as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6; }
14199
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
14201$as_echo_n "checking for prstatus32_t.pr_who in sys/procfs.h... " >&6; }
14202 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then :
14203 $as_echo_n "(cached) " >&6
14204else
14205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14206/* end confdefs.h. */
81ecdfbb
RW
14207
14208#define _SYSCALL32
16231b7b
DG
14209/* Needed for new procfs interface on sparc-solaris. */
14210#define _STRUCTURED_PROC 1
81ecdfbb 14211#include <sys/procfs.h>
d5efd9fc
AM
14212int
14213main ()
14214{
81ecdfbb 14215prstatus32_t avar; void* aref = (void*) &avar.pr_who
d5efd9fc
AM
14216 ;
14217 return 0;
14218}
14219_ACEOF
81ecdfbb
RW
14220if ac_fn_c_try_compile "$LINENO"; then :
14221 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
d5efd9fc 14222else
81ecdfbb 14223 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
d5efd9fc 14224
d5efd9fc 14225fi
81ecdfbb
RW
14226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14227fi
d5efd9fc 14228
81ecdfbb
RW
14229 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
14230
14231$as_echo "#define HAVE_PRSTATUS32_T_PR_WHO 1" >>confdefs.h
14232
14233 fi
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
14235$as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6; }
14236
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
14238$as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
14239 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
14240 $as_echo_n "(cached) " >&6
14241else
14242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14243/* end confdefs.h. */
81ecdfbb
RW
14244
14245#define _SYSCALL32
16231b7b
DG
14246/* Needed for new procfs interface on sparc-solaris. */
14247#define _STRUCTURED_PROC 1
81ecdfbb 14248#include <sys/procfs.h>
d5efd9fc
AM
14249int
14250main ()
14251{
81ecdfbb 14252pstatus_t avar
d5efd9fc
AM
14253 ;
14254 return 0;
14255}
14256_ACEOF
81ecdfbb
RW
14257if ac_fn_c_try_compile "$LINENO"; then :
14258 bfd_cv_have_sys_procfs_type_pstatus_t=yes
14259else
14260 bfd_cv_have_sys_procfs_type_pstatus_t=no
14261
14262fi
14263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14264fi
14265
14266 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
14267
14268$as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
14269
14270 fi
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
14272$as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
14273
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pxstatus_t in sys/procfs.h" >&5
14275$as_echo_n "checking for pxstatus_t in sys/procfs.h... " >&6; }
14276 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then :
14277 $as_echo_n "(cached) " >&6
14278else
14279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14280/* end confdefs.h. */
81ecdfbb
RW
14281
14282#define _SYSCALL32
16231b7b
DG
14283/* Needed for new procfs interface on sparc-solaris. */
14284#define _STRUCTURED_PROC 1
81ecdfbb 14285#include <sys/procfs.h>
d5efd9fc
AM
14286int
14287main ()
14288{
81ecdfbb 14289pxstatus_t avar
d5efd9fc
AM
14290 ;
14291 return 0;
14292}
14293_ACEOF
81ecdfbb
RW
14294if ac_fn_c_try_compile "$LINENO"; then :
14295 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
d5efd9fc 14296else
81ecdfbb 14297 bfd_cv_have_sys_procfs_type_pxstatus_t=no
d5efd9fc 14298
d5efd9fc 14299fi
81ecdfbb 14300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5efd9fc 14301fi
81ecdfbb
RW
14302
14303 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
14304
14305$as_echo "#define HAVE_PXSTATUS_T 1" >>confdefs.h
14306
14307 fi
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
14309$as_echo "$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6; }
14310
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus32_t in sys/procfs.h" >&5
14312$as_echo_n "checking for pstatus32_t in sys/procfs.h... " >&6; }
14313 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then :
14314 $as_echo_n "(cached) " >&6
14315else
14316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14317/* end confdefs.h. */
81ecdfbb
RW
14318
14319#define _SYSCALL32
16231b7b
DG
14320/* Needed for new procfs interface on sparc-solaris. */
14321#define _STRUCTURED_PROC 1
81ecdfbb 14322#include <sys/procfs.h>
d5efd9fc
AM
14323int
14324main ()
14325{
81ecdfbb 14326pstatus32_t avar
d5efd9fc
AM
14327 ;
14328 return 0;
14329}
14330_ACEOF
81ecdfbb
RW
14331if ac_fn_c_try_compile "$LINENO"; then :
14332 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
d5efd9fc 14333else
81ecdfbb 14334 bfd_cv_have_sys_procfs_type_pstatus32_t=no
d5efd9fc 14335
d5efd9fc 14336fi
81ecdfbb
RW
14337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14338fi
14339
14340 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
14341
14342$as_echo "#define HAVE_PSTATUS32_T 1" >>confdefs.h
14343
14344 fi
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
14346$as_echo "$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6; }
14347
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo_t in sys/procfs.h" >&5
14349$as_echo_n "checking for prpsinfo_t in sys/procfs.h... " >&6; }
14350 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then :
14351 $as_echo_n "(cached) " >&6
14352else
14353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14354/* end confdefs.h. */
81ecdfbb
RW
14355
14356#define _SYSCALL32
16231b7b
DG
14357/* Needed for new procfs interface on sparc-solaris. */
14358#define _STRUCTURED_PROC 1
81ecdfbb 14359#include <sys/procfs.h>
d5efd9fc
AM
14360int
14361main ()
14362{
81ecdfbb 14363prpsinfo_t avar
d5efd9fc
AM
14364 ;
14365 return 0;
14366}
14367_ACEOF
81ecdfbb
RW
14368if ac_fn_c_try_compile "$LINENO"; then :
14369 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
d5efd9fc 14370else
81ecdfbb 14371 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
d5efd9fc 14372
d5efd9fc 14373fi
81ecdfbb 14374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5efd9fc 14375fi
d5efd9fc 14376
81ecdfbb 14377 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
d5efd9fc 14378
81ecdfbb
RW
14379$as_echo "#define HAVE_PRPSINFO_T 1" >>confdefs.h
14380
14381 fi
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
14383$as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6; }
14384
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo32_t in sys/procfs.h" >&5
14386$as_echo_n "checking for prpsinfo32_t in sys/procfs.h... " >&6; }
14387 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then :
14388 $as_echo_n "(cached) " >&6
d5efd9fc 14389else
81ecdfbb 14390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14391/* end confdefs.h. */
81ecdfbb
RW
14392
14393#define _SYSCALL32
16231b7b
DG
14394/* Needed for new procfs interface on sparc-solaris. */
14395#define _STRUCTURED_PROC 1
81ecdfbb 14396#include <sys/procfs.h>
d5efd9fc
AM
14397int
14398main ()
14399{
81ecdfbb 14400prpsinfo32_t avar
d5efd9fc
AM
14401 ;
14402 return 0;
14403}
14404_ACEOF
81ecdfbb
RW
14405if ac_fn_c_try_compile "$LINENO"; then :
14406 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
d5efd9fc 14407else
81ecdfbb 14408 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
d5efd9fc 14409
d5efd9fc 14410fi
81ecdfbb 14411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5efd9fc 14412fi
d5efd9fc 14413
81ecdfbb
RW
14414 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
14415
14416$as_echo "#define HAVE_PRPSINFO32_T 1" >>confdefs.h
14417
14418 fi
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
14420$as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6; }
14421
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo_t in sys/procfs.h" >&5
14423$as_echo_n "checking for psinfo_t in sys/procfs.h... " >&6; }
14424 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then :
14425 $as_echo_n "(cached) " >&6
d5efd9fc 14426else
81ecdfbb 14427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14428/* end confdefs.h. */
d5efd9fc 14429
81ecdfbb 14430#define _SYSCALL32
16231b7b
DG
14431/* Needed for new procfs interface on sparc-solaris. */
14432#define _STRUCTURED_PROC 1
81ecdfbb 14433#include <sys/procfs.h>
d5efd9fc
AM
14434int
14435main ()
14436{
81ecdfbb 14437psinfo_t avar
d5efd9fc
AM
14438 ;
14439 return 0;
14440}
14441_ACEOF
81ecdfbb
RW
14442if ac_fn_c_try_compile "$LINENO"; then :
14443 bfd_cv_have_sys_procfs_type_psinfo_t=yes
d5efd9fc 14444else
81ecdfbb 14445 bfd_cv_have_sys_procfs_type_psinfo_t=no
d5efd9fc 14446
d5efd9fc 14447fi
81ecdfbb
RW
14448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14449fi
d5efd9fc 14450
81ecdfbb
RW
14451 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
14452
14453$as_echo "#define HAVE_PSINFO_T 1" >>confdefs.h
14454
14455 fi
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
14457$as_echo "$bfd_cv_have_sys_procfs_type_psinfo_t" >&6; }
14458
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo32_t in sys/procfs.h" >&5
14460$as_echo_n "checking for psinfo32_t in sys/procfs.h... " >&6; }
14461 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then :
14462 $as_echo_n "(cached) " >&6
14463else
14464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14465/* end confdefs.h. */
81ecdfbb
RW
14466
14467#define _SYSCALL32
16231b7b
DG
14468/* Needed for new procfs interface on sparc-solaris. */
14469#define _STRUCTURED_PROC 1
81ecdfbb 14470#include <sys/procfs.h>
d5efd9fc
AM
14471int
14472main ()
14473{
81ecdfbb 14474psinfo32_t avar
d5efd9fc
AM
14475 ;
14476 return 0;
14477}
14478_ACEOF
81ecdfbb
RW
14479if ac_fn_c_try_compile "$LINENO"; then :
14480 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
14481else
14482 bfd_cv_have_sys_procfs_type_psinfo32_t=no
14483
14484fi
14485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14486fi
14487
14488 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
14489
14490$as_echo "#define HAVE_PSINFO32_T 1" >>confdefs.h
14491
14492 fi
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
14494$as_echo "$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6; }
14495
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t in sys/procfs.h" >&5
14497$as_echo_n "checking for lwpstatus_t in sys/procfs.h... " >&6; }
14498 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then :
14499 $as_echo_n "(cached) " >&6
14500else
14501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14502/* end confdefs.h. */
81ecdfbb
RW
14503
14504#define _SYSCALL32
16231b7b
DG
14505/* Needed for new procfs interface on sparc-solaris. */
14506#define _STRUCTURED_PROC 1
81ecdfbb 14507#include <sys/procfs.h>
d5efd9fc
AM
14508int
14509main ()
14510{
81ecdfbb 14511lwpstatus_t avar
d5efd9fc
AM
14512 ;
14513 return 0;
14514}
14515_ACEOF
81ecdfbb
RW
14516if ac_fn_c_try_compile "$LINENO"; then :
14517 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
d5efd9fc 14518else
81ecdfbb 14519 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
d5efd9fc 14520
d5efd9fc 14521fi
81ecdfbb 14522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5efd9fc 14523fi
81ecdfbb
RW
14524
14525 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
14526
14527$as_echo "#define HAVE_LWPSTATUS_T 1" >>confdefs.h
14528
14529 fi
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
14531$as_echo "$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6; }
14532
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpxstatus_t in sys/procfs.h" >&5
14534$as_echo_n "checking for lwpxstatus_t in sys/procfs.h... " >&6; }
14535 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then :
14536 $as_echo_n "(cached) " >&6
14537else
14538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14539/* end confdefs.h. */
81ecdfbb
RW
14540
14541#define _SYSCALL32
16231b7b
DG
14542/* Needed for new procfs interface on sparc-solaris. */
14543#define _STRUCTURED_PROC 1
81ecdfbb 14544#include <sys/procfs.h>
d5efd9fc
AM
14545int
14546main ()
14547{
81ecdfbb 14548lwpxstatus_t avar
d5efd9fc
AM
14549 ;
14550 return 0;
14551}
14552_ACEOF
81ecdfbb
RW
14553if ac_fn_c_try_compile "$LINENO"; then :
14554 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
d5efd9fc 14555else
81ecdfbb 14556 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
d5efd9fc 14557
d5efd9fc 14558fi
81ecdfbb
RW
14559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14560fi
14561
14562 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
14563
14564$as_echo "#define HAVE_LWPXSTATUS_T 1" >>confdefs.h
14565
14566 fi
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
14568$as_echo "$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6; }
14569
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
14571$as_echo_n "checking for lwpstatus_t.pr_context in sys/procfs.h... " >&6; }
14572 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then :
14573 $as_echo_n "(cached) " >&6
d5efd9fc 14574else
81ecdfbb 14575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14576/* end confdefs.h. */
81ecdfbb
RW
14577
14578#define _SYSCALL32
16231b7b
DG
14579/* Needed for new procfs interface on sparc-solaris. */
14580#define _STRUCTURED_PROC 1
81ecdfbb 14581#include <sys/procfs.h>
d5efd9fc
AM
14582int
14583main ()
14584{
81ecdfbb 14585lwpstatus_t avar; void* aref = (void*) &avar.pr_context
d5efd9fc
AM
14586 ;
14587 return 0;
14588}
14589_ACEOF
81ecdfbb
RW
14590if ac_fn_c_try_compile "$LINENO"; then :
14591 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
d5efd9fc 14592else
81ecdfbb 14593 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
d5efd9fc 14594
d5efd9fc 14595fi
81ecdfbb 14596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5efd9fc 14597fi
d5efd9fc 14598
81ecdfbb 14599 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
d5efd9fc 14600
81ecdfbb
RW
14601$as_echo "#define HAVE_LWPSTATUS_T_PR_CONTEXT 1" >>confdefs.h
14602
14603 fi
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
14605$as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6; }
14606
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
14608$as_echo_n "checking for lwpstatus_t.pr_reg in sys/procfs.h... " >&6; }
14609 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then :
14610 $as_echo_n "(cached) " >&6
d5efd9fc 14611else
81ecdfbb 14612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14613/* end confdefs.h. */
81ecdfbb
RW
14614
14615#define _SYSCALL32
16231b7b
DG
14616/* Needed for new procfs interface on sparc-solaris. */
14617#define _STRUCTURED_PROC 1
81ecdfbb 14618#include <sys/procfs.h>
d5efd9fc
AM
14619int
14620main ()
14621{
81ecdfbb 14622lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
d5efd9fc
AM
14623 ;
14624 return 0;
14625}
14626_ACEOF
81ecdfbb
RW
14627if ac_fn_c_try_compile "$LINENO"; then :
14628 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
d5efd9fc 14629else
81ecdfbb 14630 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
d5efd9fc 14631
d5efd9fc 14632fi
81ecdfbb 14633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5efd9fc 14634fi
d5efd9fc 14635
81ecdfbb
RW
14636 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
14637
14638$as_echo "#define HAVE_LWPSTATUS_T_PR_REG 1" >>confdefs.h
14639
14640 fi
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
14642$as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6; }
14643
16231b7b
DG
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_fpreg in sys/procfs.h" >&5
14645$as_echo_n "checking for lwpstatus_t.pr_fpreg in sys/procfs.h... " >&6; }
14646 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg+set}" = set; then :
14647 $as_echo_n "(cached) " >&6
14648else
14649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14650/* end confdefs.h. */
14651
14652#define _SYSCALL32
14653/* Needed for new procfs interface on sparc-solaris. */
14654#define _STRUCTURED_PROC 1
14655#include <sys/procfs.h>
14656int
14657main ()
14658{
14659lwpstatus_t avar; void* aref = (void*) &avar.pr_fpreg
14660 ;
14661 return 0;
14662}
14663_ACEOF
14664if ac_fn_c_try_compile "$LINENO"; then :
14665 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg=yes
14666else
14667 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg=no
14668
14669fi
14670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14671fi
14672
14673 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg = yes; then
14674
14675$as_echo "#define HAVE_LWPSTATUS_T_PR_FPREG 1" >>confdefs.h
14676
14677 fi
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg" >&5
14679$as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg" >&6; }
14680
81ecdfbb
RW
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for win32_pstatus_t in sys/procfs.h" >&5
14682$as_echo_n "checking for win32_pstatus_t in sys/procfs.h... " >&6; }
14683 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then :
14684 $as_echo_n "(cached) " >&6
d5efd9fc 14685else
81ecdfbb 14686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14687/* end confdefs.h. */
81ecdfbb
RW
14688
14689#define _SYSCALL32
16231b7b
DG
14690/* Needed for new procfs interface on sparc-solaris. */
14691#define _STRUCTURED_PROC 1
81ecdfbb 14692#include <sys/procfs.h>
d5efd9fc
AM
14693int
14694main ()
14695{
81ecdfbb 14696win32_pstatus_t avar
d5efd9fc
AM
14697 ;
14698 return 0;
14699}
14700_ACEOF
81ecdfbb
RW
14701if ac_fn_c_try_compile "$LINENO"; then :
14702 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
d5efd9fc 14703else
81ecdfbb 14704 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
d5efd9fc 14705
d5efd9fc 14706fi
81ecdfbb
RW
14707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14708fi
d5efd9fc 14709
81ecdfbb 14710 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
d5efd9fc 14711
81ecdfbb 14712$as_echo "#define HAVE_WIN32_PSTATUS_T 1" >>confdefs.h
d5efd9fc 14713
81ecdfbb
RW
14714 fi
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
14716$as_echo "$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6; }
d5efd9fc 14717
81ecdfbb 14718 fi
d5efd9fc 14719fi
d5efd9fc 14720
d5efd9fc 14721
8bc7f138
L
14722if test -n "$CORE_HEADER"; then
14723
14724cat >>confdefs.h <<_ACEOF
14725#define CORE_HEADER $CORE_HEADER
14726_ACEOF
14727
14728fi
81ecdfbb 14729if test -n "$TRAD_HEADER"; then
d5efd9fc 14730
81ecdfbb
RW
14731cat >>confdefs.h <<_ACEOF
14732#define TRAD_HEADER $TRAD_HEADER
d5efd9fc 14733_ACEOF
d5efd9fc 14734
81ecdfbb 14735fi
d5efd9fc 14736
81ecdfbb
RW
14737# Check if linker supports --as-needed and --no-as-needed options
14738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
14739$as_echo_n "checking linker --as-needed support... " >&6; }
14740if test "${bfd_cv_ld_as_needed+set}" = set; then :
14741 $as_echo_n "(cached) " >&6
d5efd9fc 14742else
81ecdfbb
RW
14743 bfd_cv_ld_as_needed=no
14744 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
14745 bfd_cv_ld_as_needed=yes
14746 fi
d5efd9fc 14747
d5efd9fc 14748fi
81ecdfbb
RW
14749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5
14750$as_echo "$bfd_cv_ld_as_needed" >&6; }
d5efd9fc 14751
81ecdfbb
RW
14752LIBM=
14753case $host in
3725885a 14754*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
81ecdfbb
RW
14755 # These system don't have libm, or don't need it
14756 ;;
14757*-ncr-sysv4.3*)
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
14759$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
14760if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
14761 $as_echo_n "(cached) " >&6
d5efd9fc 14762else
81ecdfbb
RW
14763 ac_check_lib_save_LIBS=$LIBS
14764LIBS="-lmw $LIBS"
14765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14766/* end confdefs.h. */
81ecdfbb
RW
14767
14768/* Override any GCC internal prototype to avoid an error.
14769 Use char because int might match the return type of a GCC
14770 builtin and then its argument prototype would still apply. */
14771#ifdef __cplusplus
14772extern "C"
14773#endif
14774char _mwvalidcheckl ();
d5efd9fc
AM
14775int
14776main ()
14777{
81ecdfbb 14778return _mwvalidcheckl ();
d5efd9fc
AM
14779 ;
14780 return 0;
14781}
14782_ACEOF
81ecdfbb
RW
14783if ac_fn_c_try_link "$LINENO"; then :
14784 ac_cv_lib_mw__mwvalidcheckl=yes
d5efd9fc 14785else
81ecdfbb
RW
14786 ac_cv_lib_mw__mwvalidcheckl=no
14787fi
14788rm -f core conftest.err conftest.$ac_objext \
14789 conftest$ac_exeext conftest.$ac_ext
14790LIBS=$ac_check_lib_save_LIBS
d5efd9fc 14791fi
81ecdfbb
RW
14792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
14793$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
14794if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
14795 LIBM="-lmw"
d5efd9fc 14796fi
d5efd9fc 14797
81ecdfbb
RW
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14799$as_echo_n "checking for cos in -lm... " >&6; }
14800if test "${ac_cv_lib_m_cos+set}" = set; then :
14801 $as_echo_n "(cached) " >&6
d5efd9fc 14802else
81ecdfbb
RW
14803 ac_check_lib_save_LIBS=$LIBS
14804LIBS="-lm $LIBS"
14805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14806/* end confdefs.h. */
d5efd9fc 14807
81ecdfbb
RW
14808/* Override any GCC internal prototype to avoid an error.
14809 Use char because int might match the return type of a GCC
14810 builtin and then its argument prototype would still apply. */
14811#ifdef __cplusplus
14812extern "C"
14813#endif
14814char cos ();
d5efd9fc
AM
14815int
14816main ()
14817{
81ecdfbb 14818return cos ();
d5efd9fc
AM
14819 ;
14820 return 0;
14821}
14822_ACEOF
81ecdfbb
RW
14823if ac_fn_c_try_link "$LINENO"; then :
14824 ac_cv_lib_m_cos=yes
d5efd9fc 14825else
81ecdfbb
RW
14826 ac_cv_lib_m_cos=no
14827fi
14828rm -f core conftest.err conftest.$ac_objext \
14829 conftest$ac_exeext conftest.$ac_ext
14830LIBS=$ac_check_lib_save_LIBS
14831fi
14832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14833$as_echo "$ac_cv_lib_m_cos" >&6; }
14834if test "x$ac_cv_lib_m_cos" = x""yes; then :
14835 LIBM="$LIBM -lm"
d5efd9fc 14836fi
d5efd9fc 14837
81ecdfbb
RW
14838 ;;
14839*)
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14841$as_echo_n "checking for cos in -lm... " >&6; }
14842if test "${ac_cv_lib_m_cos+set}" = set; then :
14843 $as_echo_n "(cached) " >&6
14844else
14845 ac_check_lib_save_LIBS=$LIBS
14846LIBS="-lm $LIBS"
14847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14848/* end confdefs.h. */
d5efd9fc 14849
81ecdfbb
RW
14850/* Override any GCC internal prototype to avoid an error.
14851 Use char because int might match the return type of a GCC
14852 builtin and then its argument prototype would still apply. */
14853#ifdef __cplusplus
14854extern "C"
14855#endif
14856char cos ();
d5efd9fc
AM
14857int
14858main ()
14859{
81ecdfbb 14860return cos ();
d5efd9fc
AM
14861 ;
14862 return 0;
14863}
14864_ACEOF
81ecdfbb
RW
14865if ac_fn_c_try_link "$LINENO"; then :
14866 ac_cv_lib_m_cos=yes
d5efd9fc 14867else
81ecdfbb 14868 ac_cv_lib_m_cos=no
d5efd9fc 14869fi
81ecdfbb
RW
14870rm -f core conftest.err conftest.$ac_objext \
14871 conftest$ac_exeext conftest.$ac_ext
14872LIBS=$ac_check_lib_save_LIBS
d5efd9fc 14873fi
81ecdfbb
RW
14874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14875$as_echo "$ac_cv_lib_m_cos" >&6; }
14876if test "x$ac_cv_lib_m_cos" = x""yes; then :
14877 LIBM="-lm"
d5efd9fc 14878fi
d5efd9fc 14879
81ecdfbb 14880 ;;
d5efd9fc 14881esac
d5efd9fc 14882
d5efd9fc 14883
d5efd9fc 14884
81ecdfbb
RW
14885# When building a shared libbfd, link against the pic version of libiberty
14886# so that apps that use libbfd won't need libiberty just to satisfy any
14887# libbfd references.
14888# We can't do that if a pic libiberty is unavailable since including non-pic
14889# code would insert text relocations into libbfd.
14890SHARED_LIBADD=
14891SHARED_LDFLAGS=
14892if test "$enable_shared" = "yes"; then
14893 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
14894 if test -n "$x"; then
14895 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
14896 fi
d5efd9fc 14897
81ecdfbb
RW
14898# More hacks to build DLLs on Windows.
14899 case "${host}" in
14900 *-*-cygwin*)
14901 SHARED_LDFLAGS="-no-undefined"
14902 SHARED_LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
14903 ;;
14904 esac
d5efd9fc 14905
81ecdfbb
RW
14906 if test -n "$SHARED_LIBADD"; then
14907 if test -n "$LIBM"; then
14908 if test x"$bfd_cv_ld_as_needed" = xyes; then
14909 # Link against libm only when needed. Put -lc, -lm inside -Wl
14910 # to stop libtool reordering these options.
14911 SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
14912 else
14913 SHARED_LIBADD="$SHARED_LIBADD $LIBM"
14914 fi
14915 fi
14916 fi
d5efd9fc 14917fi
d5efd9fc 14918
d5efd9fc 14919
d5efd9fc 14920
81ecdfbb 14921# target stuff:
d5efd9fc 14922
81ecdfbb
RW
14923# Canonicalize the secondary target names.
14924if test -n "$enable_targets" ; then
14925 for targ in `echo $enable_targets | sed 's/,/ /g'`
14926 do
14927 result=`$ac_config_sub $targ 2>/dev/null`
14928 if test -n "$result" ; then
14929 canon_targets="$canon_targets $result"
14930 else
14931 # Allow targets that config.sub doesn't recognize, like "all".
14932 canon_targets="$canon_targets $targ"
14933 fi
14934 done
d5efd9fc 14935fi
d5efd9fc 14936
81ecdfbb
RW
14937all_targets=false
14938defvec=
14939selvecs=
14940assocvecs=
14941selarchs=
14942TDEFINES=
14943for targ in $target $canon_targets
14944do
14945 if test "x$targ" = "xall"; then
14946 all_targets=true
14947 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
14948 else
14949 . $srcdir/config.bfd
14950 if test "x$targ" = "x$target"; then
14951 defvec=$targ_defvec
14952 fi
14953 selvecs="$selvecs $targ_defvec $targ_selvecs"
14954 selarchs="$selarchs $targ_archs"
14955 TDEFINES="$TDEFINES $targ_cflags"
14956 fi
14957done
d5efd9fc 14958
d5efd9fc 14959
81ecdfbb
RW
14960# This processing still needs to be done if we're to decide properly whether
14961# 64-bit support needs to be compiled in. Currently, it will be included if
14962# the default or any other explicitly requested target requires it; it
14963# will not be included on a 32-bit host if no 64-bit target is requested, and
14964# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
14965# used.
d5efd9fc 14966
81ecdfbb
RW
14967# uniq the default and selected vectors in all the configured targets.
14968f=""
14969for i in $selvecs ; do
14970 case " $f " in
14971 *" $i "*) ;;
14972 *) f="$f $i" ;;
14973 esac
14974done
14975selvecs="$f"
d5efd9fc 14976
d5efd9fc 14977
81ecdfbb
RW
14978# uniq the associated vectors in all the configured targets.
14979f=""
14980for i in $assocvecs ; do
14981 case " $f " in
14982 *" $i "*) ;;
14983 *) f="$f $i" ;;
14984 esac
d5efd9fc 14985done
81ecdfbb 14986assocvecs="$f"
2ba49b59 14987
2ba49b59 14988
81ecdfbb
RW
14989# uniq the architectures in all the configured targets.
14990f=""
14991for i in $selarchs ; do
14992 case " $f " in
14993 *" $i "*) ;;
14994 *) f="$f $i" ;;
14995 esac
2ba49b59 14996done
81ecdfbb 14997selarchs="$f"
2ba49b59 14998
81ecdfbb
RW
14999# Target backend .o files.
15000tb=
2ba49b59 15001
81ecdfbb
RW
15002elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo
15003 elf-eh-frame.lo dwarf1.lo"
2ba49b59 15004
81ecdfbb 15005for vec in $selvecs
49c97a80 15006do
81ecdfbb
RW
15007 target_size=32
15008 case "$vec" in
15009 # This list is alphabetized to make it easy to compare
15010 # with the two vector lists in targets.c. For the same reason,
15011 # use one entry per line, even though this leads to long lines.
15012 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
15013 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
15014 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
15015 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
15016 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
15017 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
15018 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
15019 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
15020 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
15021 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
15022 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
15023 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
15024 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
15025 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
15026 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
15027 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
15028 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
15029 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
15030 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
15031 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
15032 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
15033 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
15034 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
15035 bfd_pei_ia64_vec) tb="$tb pei-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
15036 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
15037 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
15038 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
15039 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
15040 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
15041 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
15042 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
15043 bfd_elf32_bigarm_symbian_vec)
15044 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
15045 bfd_elf32_bigarm_vxworks_vec)
15046 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
15047 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
15048 bfd_elf32_bigmips_vxworks_vec)
15049 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
15050 bfd_elf32_cr16_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
15051 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
15052 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
15053 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
15054 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
15055 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
15056 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
15057 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
15058 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
15059 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
15060 bfd_elf32_moxie_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
15061 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
15062 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
15063 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
15064 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
15065 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
15066 bfd_elf32_i386_dragonfly_vec)
15067 tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
a6cc6b3b 15068 bfd_elf32_i386_sol2_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
81ecdfbb
RW
15069 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
15070 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
15071 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
15072 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
15073 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
15074 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
15075 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
15076 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
15077 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
15078 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
15079 bfd_elf32_lm32_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
15080 bfd_elf32_lm32fdpic_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
15081 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
15082 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
15083 bfd_elf32_littlearm_symbian_vec)
15084 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
15085 bfd_elf32_littlearm_vxworks_vec)
15086 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
15087 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
15088 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
15089 bfd_elf32_littlemips_vxworks_vec)
15090 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
15091 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
15092 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
15093 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
15094 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
15095 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
15096 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
15097 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
15098 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
15099 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
15100 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
15101 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
15102 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
15103 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
15104 bfd_elf32_microblaze_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
15105 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
15106 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
15107 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
15108 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
15109 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
15110 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
15111 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
15112 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
15113 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
15114 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
15115 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
15116 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
15117 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
15118 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
15119 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
c7927a3c
NC
15120 bfd_elf32_rx_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
15121 bfd_elf32_rx_be_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
81ecdfbb
RW
15122 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
15123 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64;;
15124 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64;;
15125 # FIXME: We include cofflink.lo not because it's needed for
15126 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
15127 # which needs it but does not list it. Should be fixed in right place.
15128 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
15129 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
15130 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
15131 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
15132 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
15133 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
15134 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
15135 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
15136 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
15137 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
15138 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
15139 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
15140 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
15141 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
15142 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
15143 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
15144 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
15145 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
40b36596
JM
15146 bfd_elf32_tic6x_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
15147 bfd_elf32_tic6x_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
81ecdfbb
RW
15148 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
15149 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
15150 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
15151 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
15152 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
15153 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
15154 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
15155 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
15156 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
15157 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
15158 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
15159 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
15160 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
15161 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
15162 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
15163 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
15164 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
15165 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
b11d79f2 15166 bfd_elf64_ia64_vms_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
81ecdfbb
RW
15167 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
15168 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
15169 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
15170 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
15171 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
15172 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
15173 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
15174 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
15175 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
15176 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
15177 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
15178 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
15179 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
15180 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
15181 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
15182 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
15183 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
a6cc6b3b 15184 bfd_elf64_x86_64_sol2_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
81ecdfbb
RW
15185 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
15186 bfd_elf64_l1om_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
15187 bfd_elf64_l1om_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
15188 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
15189 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
15190 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
15191 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
15192 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
15193 cris_aout_vec) tb="$tb aout-cris.lo" ;;
15194 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
15195 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
15196 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
15197 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
15198 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
15199 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
15200 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
15201 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
15202 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
15203 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
15204 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
15205 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
15206 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
15207 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
15208 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
15209 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
15210 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
15211 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
15212 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
15213 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
15214 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
15215 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
15216 i386msdos_vec) tb="$tb i386msdos.lo" ;;
15217 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
15218 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
15219 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
15220 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
15221 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
15222 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
15223 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
15224 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
15225 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
15226 ieee_vec) tb="$tb ieee.lo" ;;
15227 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
15228 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
15229 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
15230 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
15231 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
15232 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
15233 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
15234 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
15235 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
15236 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
15237 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
15238 mach_o_be_vec) tb="$tb mach-o.lo" ;;
15239 mach_o_le_vec) tb="$tb mach-o.lo" ;;
15240 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
15241 mach_o_i386_vec) tb="$tb mach-o-i386.lo" ;;
618b7301 15242 mach_o_x86_64_vec) tb="$tb mach-o-x86-64.lo" ;;
81ecdfbb
RW
15243 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
15244 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
15245 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
15246 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
15247 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
15248 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
15249 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
15250 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
15251 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
15252 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
15253 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
15254 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
15255 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
15256 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
15257 pef_vec) tb="$tb pef.lo" ;;
15258 pef_xlib_vec) tb="$tb pef.lo" ;;
15259 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
15260 plugin_vec) tb="$tb plugin.lo" ;;
15261 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
15262 ppcboot_vec) tb="$tb ppcboot.lo" ;;
15263 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
15264 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
15265 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
15266 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
15267 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
15268 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
15269 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
15270 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
15271 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
15272 som_vec) tb="$tb som.lo" ;;
15273 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
15274 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
15275 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
15276 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
15277 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
15278 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
15279 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
15280 sym_vec) tb="$tb xsym.lo" ;;
15281 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
15282 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
15283 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
15284 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
15285 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
15286 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
15287 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
15288 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
15289 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
15290 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
15291 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
15292 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
15293 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
15294 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
15295 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
15296 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
15297 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
15298 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
15299 versados_vec) tb="$tb versados.lo" ;;
95e34ef7 15300 vms_alpha_vec) tb="$tb vms-alpha.lo vms-misc.lo vms-lib.lo"; target_size=64 ;;
4b544b64 15301 vms_lib_txt_vec) tb="$tb vms-lib.lo vms-misc.lo" ;;
81ecdfbb
RW
15302 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
15303 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
15304 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
15305 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
2ba49b59 15306
81ecdfbb
RW
15307 # These appear out of order in targets.c
15308 srec_vec) tb="$tb srec.lo" ;;
15309 symbolsrec_vec) tb="$tb srec.lo" ;;
15310 tekhex_vec) tb="$tb tekhex.lo" ;;
15311 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
15312 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
5464f5a1 15313
81ecdfbb
RW
15314 "") ;;
15315 *) as_fn_error "*** unknown target vector $vec" "$LINENO" 5 ;;
15316 esac
1012372a 15317
81ecdfbb
RW
15318 if test ${target_size} = 64; then
15319 target64=true
15320 fi
15321 if test x"${vec}" = x"${defvec}"; then
15322 bfd_default_target_size=${target_size}
15323 fi
15324done
2ba49b59 15325
81ecdfbb
RW
15326# Target architecture .o files.
15327# A couple of CPUs use shorter file names to avoid problems on DOS
15328# filesystems.
15329ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
5464f5a1 15330
81ecdfbb
RW
15331# Weed out duplicate .o files.
15332f=""
15333for i in $tb ; do
15334 case " $f " in
15335 *" $i "*) ;;
15336 *) f="$f $i" ;;
15337 esac
1012372a 15338done
81ecdfbb 15339tb="$f"
1012372a 15340
81ecdfbb
RW
15341f=""
15342for i in $ta ; do
15343 case " $f " in
15344 *" $i "*) ;;
15345 *) f="$f $i" ;;
15346 esac
15347done
15348ta="$f"
2ba49b59 15349
81ecdfbb
RW
15350bfd_backends="$tb"
15351bfd_machines="$ta"
1012372a 15352
81ecdfbb
RW
15353if test x${all_targets} = xtrue ; then
15354 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
15355 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
15356 selvecs=
15357 havevecs=
15358 selarchs=
15359 test -n "$assocvecs" &&
15360 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
15361else # all_targets is true
15362 # Only set these if they will be nonempty, for the clever echo.
15363 havevecs=
15364 assocvecs=
15365 test -n "$selvecs" &&
15366 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
15367 test -n "$selvecs" &&
15368 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
15369 test -n "$selarchs" &&
15370 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
15371fi # all_targets is true
15372
15373case ${host64}-${target64}-${want64} in
15374 *true*)
15375 wordsize=64
15376 bfd64_libs='$(BFD64_LIBS)'
15377 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
15378 if test $BFD_HOST_64_BIT_DEFINED = 0; then
15379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have requested a 64 bit BFD configuration, but" >&5
15380$as_echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your compiler may not have a 64 bit integral type" >&5
15382$as_echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
15383 fi
15384 if test -n "$GCC" ; then
15385 bad_64bit_gcc=no;
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc version with buggy 64-bit support" >&5
15387$as_echo_n "checking for gcc version with buggy 64-bit support... " >&6; }
15388 # Add more tests for gcc versions with non-working 64-bit support here.
15389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15390/* end confdefs.h. */
15391:__GNUC__:__GNUC_MINOR__:__i386__:
15392_ACEOF
15393if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15394 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then :
15395 bad_64bit_gcc=yes;
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes: egcs-1.1.2 on ix86 spotted" >&5
15397$as_echo "yes: egcs-1.1.2 on ix86 spotted" >&6; }
2ba49b59 15398else
81ecdfbb
RW
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15400$as_echo "no" >&6; }
2ba49b59 15401fi
81ecdfbb 15402rm -f conftest*
1012372a 15403
81ecdfbb
RW
15404 if test $bad_64bit_gcc = yes ; then
15405 as_fn_error "A newer version of gcc is needed for the requested 64-bit BFD configuration" "$LINENO" 5
15406 fi
15407 fi
15408 ;;
15409 false-false-false)
15410 wordsize=32
15411 all_backends='$(BFD32_BACKENDS)'
15412 ;;
15413esac
1012372a
AC
15414
15415
15416
15417
252b5132 15418
6be7c12c 15419
5464f5a1
NN
15420
15421
81ecdfbb
RW
15422if test "$plugins" = "yes"; then
15423 supports_plugins=1
5464f5a1 15424else
81ecdfbb 15425 supports_plugins=0
5464f5a1 15426fi
5464f5a1 15427
81ecdfbb
RW
15428
15429# Determine the host dependant file_ptr a.k.a. off_t type. In order
15430# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
15431# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
15432# Hopefully a reasonable assumption since fseeko et.al. should be
15433# upward compatible.
15434for ac_func in ftello ftello64 fseeko fseeko64 fopen64
15435do :
15436 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15437ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15438eval as_val=\$$as_ac_var
15439 if test "x$as_val" = x""yes; then :
15440 cat >>confdefs.h <<_ACEOF
15441#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5464f5a1 15442_ACEOF
5464f5a1 15443
252b5132 15444fi
81ecdfbb 15445done
5464f5a1 15446
81ecdfbb
RW
15447if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
15448 # The cast to long int works around a bug in the HP C Compiler
15449# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15450# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15451# This bug is HP SR number 8606223364.
15452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
15453$as_echo_n "checking size of off_t... " >&6; }
15454if test "${ac_cv_sizeof_off_t+set}" = set; then :
15455 $as_echo_n "(cached) " >&6
6be7c12c 15456else
81ecdfbb 15457 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
5464f5a1 15458
81ecdfbb
RW
15459else
15460 if test "$ac_cv_type_off_t" = yes; then
15461 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15462$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15463{ as_fn_set_status 77
15464as_fn_error "cannot compute sizeof (off_t)
15465See \`config.log' for more details." "$LINENO" 5; }; }
15466 else
15467 ac_cv_sizeof_off_t=0
15468 fi
5464f5a1 15469fi
5464f5a1 15470
252b5132 15471fi
81ecdfbb
RW
15472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
15473$as_echo "$ac_cv_sizeof_off_t" >&6; }
5464f5a1 15474
252b5132 15475
5464f5a1 15476
81ecdfbb
RW
15477cat >>confdefs.h <<_ACEOF
15478#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
5464f5a1 15479_ACEOF
5464f5a1 15480
5464f5a1 15481
81ecdfbb
RW
15482fi
15483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking file_ptr type" >&5
15484$as_echo_n "checking file_ptr type... " >&6; }
15485bfd_file_ptr="long"
15486bfd_ufile_ptr="unsigned long"
15487if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
15488 -o x"${ac_cv_sizeof_off_t}" = x8; then
15489 bfd_file_ptr=BFD_HOST_64_BIT
15490 bfd_ufile_ptr=BFD_HOST_U_64_BIT
15491fi
15492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_file_ptr" >&5
15493$as_echo "$bfd_file_ptr" >&6; }
15494
6be7c12c 15495
252b5132 15496
252b5132 15497
81ecdfbb
RW
15498tdefaults=""
15499test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
15500test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
15501test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
15502test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
15503test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
15504
15505
15506for ac_header in stdlib.h unistd.h
15507do :
15508 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15509ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15510eval as_val=\$$as_ac_Header
15511 if test "x$as_val" = x""yes; then :
15512 cat >>confdefs.h <<_ACEOF
15513#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5464f5a1 15514_ACEOF
5464f5a1 15515
5464f5a1 15516fi
81ecdfbb
RW
15517
15518done
15519
15520for ac_func in getpagesize
15521do :
15522 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
15523if test "x$ac_cv_func_getpagesize" = x""yes; then :
5464f5a1 15524 cat >>confdefs.h <<_ACEOF
81ecdfbb 15525#define HAVE_GETPAGESIZE 1
5464f5a1 15526_ACEOF
252b5132 15527
252b5132
RH
15528fi
15529done
15530
81ecdfbb
RW
15531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
15532$as_echo_n "checking for working mmap... " >&6; }
15533if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
15534 $as_echo_n "(cached) " >&6
252b5132 15535else
81ecdfbb 15536 if test "$cross_compiling" = yes; then :
252b5132
RH
15537 ac_cv_func_mmap_fixed_mapped=no
15538else
81ecdfbb 15539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464f5a1
NN
15540/* end confdefs.h. */
15541$ac_includes_default
15542/* malloc might have been renamed as rpl_malloc. */
15543#undef malloc
6be7c12c 15544
252b5132
RH
15545/* Thanks to Mike Haertel and Jim Avera for this test.
15546 Here is a matrix of mmap possibilities:
15547 mmap private not fixed
15548 mmap private fixed at somewhere currently unmapped
15549 mmap private fixed at somewhere already mapped
15550 mmap shared not fixed
15551 mmap shared fixed at somewhere currently unmapped
15552 mmap shared fixed at somewhere already mapped
15553 For private mappings, we should verify that changes cannot be read()
15554 back from the file, nor mmap's back from the file at a different
15555 address. (There have been systems where private was not correctly
15556 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 15557 VM page cache was not coherent with the file system buffer cache
252b5132
RH
15558 like early versions of FreeBSD and possibly contemporary NetBSD.)
15559 For shared mappings, we should conversely verify that changes get
5464f5a1 15560 propagated back to all the places they're supposed to be.
252b5132
RH
15561
15562 Grep wants private fixed already mapped.
15563 The main things grep needs to know about mmap are:
15564 * does it exist and is it safe to write into the mmap'd area
15565 * how to use it (BSD variants) */
5464f5a1 15566
252b5132
RH
15567#include <fcntl.h>
15568#include <sys/mman.h>
15569
81ecdfbb 15570#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
5464f5a1
NN
15571char *malloc ();
15572#endif
6be7c12c 15573
5464f5a1 15574/* This mess was copied from the GNU getpagesize.h. */
81ecdfbb 15575#ifndef HAVE_GETPAGESIZE
252b5132 15576/* Assume that all systems that can run configure have sys/param.h. */
81ecdfbb 15577# ifndef HAVE_SYS_PARAM_H
252b5132
RH
15578# define HAVE_SYS_PARAM_H 1
15579# endif
15580
15581# ifdef _SC_PAGESIZE
15582# define getpagesize() sysconf(_SC_PAGESIZE)
15583# else /* no _SC_PAGESIZE */
81ecdfbb 15584# ifdef HAVE_SYS_PARAM_H
252b5132
RH
15585# include <sys/param.h>
15586# ifdef EXEC_PAGESIZE
15587# define getpagesize() EXEC_PAGESIZE
15588# else /* no EXEC_PAGESIZE */
15589# ifdef NBPG
15590# define getpagesize() NBPG * CLSIZE
15591# ifndef CLSIZE
15592# define CLSIZE 1
15593# endif /* no CLSIZE */
15594# else /* no NBPG */
15595# ifdef NBPC
15596# define getpagesize() NBPC
15597# else /* no NBPC */
15598# ifdef PAGESIZE
15599# define getpagesize() PAGESIZE
15600# endif /* PAGESIZE */
15601# endif /* no NBPC */
15602# endif /* no NBPG */
15603# endif /* no EXEC_PAGESIZE */
15604# else /* no HAVE_SYS_PARAM_H */
15605# define getpagesize() 8192 /* punt totally */
15606# endif /* no HAVE_SYS_PARAM_H */
15607# endif /* no _SC_PAGESIZE */
15608
5464f5a1
NN
15609#endif /* no HAVE_GETPAGESIZE */
15610
15611int
15612main ()
15613{
15614 char *data, *data2, *data3;
15615 int i, pagesize;
15616 int fd;
15617
15618 pagesize = getpagesize ();
15619
15620 /* First, make a file with some known garbage in it. */
15621 data = (char *) malloc (pagesize);
15622 if (!data)
81ecdfbb 15623 return 1;
5464f5a1
NN
15624 for (i = 0; i < pagesize; ++i)
15625 *(data + i) = rand ();
15626 umask (0);
15627 fd = creat ("conftest.mmap", 0600);
15628 if (fd < 0)
81ecdfbb 15629 return 1;
5464f5a1 15630 if (write (fd, data, pagesize) != pagesize)
81ecdfbb 15631 return 1;
5464f5a1
NN
15632 close (fd);
15633
15634 /* Next, try to mmap the file at a fixed address which already has
15635 something else allocated at it. If we can, also make sure that
15636 we see the same garbage. */
15637 fd = open ("conftest.mmap", O_RDWR);
15638 if (fd < 0)
81ecdfbb 15639 return 1;
5464f5a1
NN
15640 data2 = (char *) malloc (2 * pagesize);
15641 if (!data2)
81ecdfbb
RW
15642 return 1;
15643 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
5464f5a1
NN
15644 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15645 MAP_PRIVATE | MAP_FIXED, fd, 0L))
81ecdfbb 15646 return 1;
5464f5a1
NN
15647 for (i = 0; i < pagesize; ++i)
15648 if (*(data + i) != *(data2 + i))
81ecdfbb 15649 return 1;
5464f5a1
NN
15650
15651 /* Finally, make sure that changes to the mapped area do not
15652 percolate back to the file as seen by read(). (This is a bug on
15653 some variants of i386 svr4.0.) */
15654 for (i = 0; i < pagesize; ++i)
15655 *(data2 + i) = *(data2 + i) + 1;
15656 data3 = (char *) malloc (pagesize);
15657 if (!data3)
81ecdfbb 15658 return 1;
5464f5a1 15659 if (read (fd, data3, pagesize) != pagesize)
81ecdfbb 15660 return 1;
5464f5a1
NN
15661 for (i = 0; i < pagesize; ++i)
15662 if (*(data + i) != *(data3 + i))
81ecdfbb 15663 return 1;
5464f5a1 15664 close (fd);
81ecdfbb 15665 return 0;
5464f5a1
NN
15666}
15667_ACEOF
81ecdfbb 15668if ac_fn_c_try_run "$LINENO"; then :
5464f5a1
NN
15669 ac_cv_func_mmap_fixed_mapped=yes
15670else
81ecdfbb 15671 ac_cv_func_mmap_fixed_mapped=no
5464f5a1 15672fi
81ecdfbb
RW
15673rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15674 conftest.$ac_objext conftest.beam conftest.$ac_ext
5464f5a1 15675fi
81ecdfbb 15676
5464f5a1 15677fi
81ecdfbb
RW
15678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
15679$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
5464f5a1
NN
15680if test $ac_cv_func_mmap_fixed_mapped = yes; then
15681
81ecdfbb 15682$as_echo "#define HAVE_MMAP 1" >>confdefs.h
5464f5a1
NN
15683
15684fi
15685rm -f conftest.mmap
15686
5464f5a1 15687for ac_func in madvise mprotect
81ecdfbb
RW
15688do :
15689 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15690ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15691eval as_val=\$$as_ac_var
15692 if test "x$as_val" = x""yes; then :
5464f5a1 15693 cat >>confdefs.h <<_ACEOF
81ecdfbb 15694#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5464f5a1
NN
15695_ACEOF
15696
15697fi
15698done
15699
15700case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
15701 true+yes )
81ecdfbb 15702$as_echo "#define USE_MMAP 1" >>confdefs.h
5464f5a1
NN
15703 ;;
15704esac
15705
15706rm -f doc/config.status
81ecdfbb 15707ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
5464f5a1 15708
20e95c23 15709
81ecdfbb 15710ac_config_commands="$ac_config_commands default"
5464f5a1 15711
108a6f8e
CD
15712
15713
15714
15715
15716
31dd3154 15717
5464f5a1
NN
15718cat >confcache <<\_ACEOF
15719# This file is a shell script that caches the results of configure
15720# tests run on this system so they can be shared between configure
15721# scripts and configure runs, see configure's option --config-cache.
15722# It is not useful on other systems. If it contains results you don't
15723# want to keep, you may remove or edit it.
15724#
15725# config.status only pays attention to the cache file if you give it
15726# the --recheck option to rerun configure.
15727#
15728# `ac_cv_env_foo' variables (set or unset) will be overridden when
15729# loading this file, other *unset* `ac_cv_foo' will be assigned the
15730# following values.
15731
15732_ACEOF
15733
15734# The following way of writing the cache mishandles newlines in values,
15735# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 15736# So, we kill variables containing newlines.
5464f5a1
NN
15737# Ultrix sh set writes to stderr and can't be redirected directly,
15738# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
15739(
15740 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15741 eval ac_val=\$$ac_var
15742 case $ac_val in #(
15743 *${as_nl}*)
15744 case $ac_var in #(
15745 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15746$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15747 esac
15748 case $ac_var in #(
15749 _ | IFS | as_nl) ;; #(
15750 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15751 *) { eval $ac_var=; unset $ac_var;} ;;
15752 esac ;;
15753 esac
15754 done
15755
5464f5a1 15756 (set) 2>&1 |
81ecdfbb
RW
15757 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15758 *${as_nl}ac_space=\ *)
15759 # `set' does not quote correctly, so add quotes: double-quote
15760 # substitution turns \\\\ into \\, and sed turns \\ into \.
5464f5a1
NN
15761 sed -n \
15762 "s/'/'\\\\''/g;
15763 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 15764 ;; #(
5464f5a1
NN
15765 *)
15766 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 15767 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5464f5a1 15768 ;;
81ecdfbb
RW
15769 esac |
15770 sort
15771) |
5464f5a1 15772 sed '
81ecdfbb 15773 /^ac_cv_env_/b end
5464f5a1 15774 t clear
81ecdfbb 15775 :clear
5464f5a1
NN
15776 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15777 t end
81ecdfbb
RW
15778 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15779 :end' >>confcache
15780if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15781 if test -w "$cache_file"; then
15782 test "x$cache_file" != "x/dev/null" &&
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15784$as_echo "$as_me: updating cache $cache_file" >&6;}
5464f5a1
NN
15785 cat confcache >$cache_file
15786 else
81ecdfbb
RW
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15788$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5464f5a1
NN
15789 fi
15790fi
15791rm -f confcache
15792
15793test "x$prefix" = xNONE && prefix=$ac_default_prefix
15794# Let make expand exec_prefix.
15795test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15796
5464f5a1
NN
15797DEFS=-DHAVE_CONFIG_H
15798
15799ac_libobjs=
15800ac_ltlibobjs=
15801for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15802 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
15803 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15804 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15805 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15806 # will be set to the directory where LIBOBJS objects are built.
15807 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15808 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5464f5a1
NN
15809done
15810LIBOBJS=$ac_libobjs
15811
15812LTLIBOBJS=$ac_ltlibobjs
15813
15814
f5385ebf 15815if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
81ecdfbb
RW
15816 as_fn_error "conditional \"AMDEP\" was never defined.
15817Usually this means the macro was only invoked conditionally." "$LINENO" 5
f5385ebf
AM
15818fi
15819if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
81ecdfbb
RW
15820 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15821Usually this means the macro was only invoked conditionally." "$LINENO" 5
15822fi
15823 if test -n "$EXEEXT"; then
15824 am__EXEEXT_TRUE=
15825 am__EXEEXT_FALSE='#'
15826else
15827 am__EXEEXT_TRUE='#'
15828 am__EXEEXT_FALSE=
f5385ebf 15829fi
81ecdfbb 15830
ce3c775b 15831if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
81ecdfbb
RW
15832 as_fn_error "conditional \"PLUGINS\" was never defined.
15833Usually this means the macro was only invoked conditionally." "$LINENO" 5
ce3c775b 15834fi
f5385ebf 15835if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
81ecdfbb
RW
15836 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15837Usually this means the macro was only invoked conditionally." "$LINENO" 5
f5385ebf 15838fi
d5fbea21 15839if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
81ecdfbb
RW
15840 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
15841Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 15842fi
f5385ebf 15843if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
81ecdfbb
RW
15844 as_fn_error "conditional \"INSTALL_LIBBFD\" was never defined.
15845Usually this means the macro was only invoked conditionally." "$LINENO" 5
f5385ebf 15846fi
5464f5a1
NN
15847
15848: ${CONFIG_STATUS=./config.status}
81ecdfbb 15849ac_write_fail=0
5464f5a1
NN
15850ac_clean_files_save=$ac_clean_files
15851ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
15852{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15853$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15854as_write_fail=0
15855cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5464f5a1
NN
15856#! $SHELL
15857# Generated by $as_me.
15858# Run this file to recreate the current configuration.
15859# Compiler output produced by configure, useful for debugging
15860# configure, is in config.log if it exists.
15861
15862debug=false
15863ac_cs_recheck=false
15864ac_cs_silent=false
5464f5a1 15865
81ecdfbb
RW
15866SHELL=\${CONFIG_SHELL-$SHELL}
15867export SHELL
15868_ASEOF
15869cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15870## -------------------- ##
15871## M4sh Initialization. ##
15872## -------------------- ##
5464f5a1 15873
81ecdfbb
RW
15874# Be more Bourne compatible
15875DUALCASE=1; export DUALCASE # for MKS sh
15876if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5464f5a1
NN
15877 emulate sh
15878 NULLCMD=:
81ecdfbb 15879 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5464f5a1
NN
15880 # is contrary to our usage. Disable this feature.
15881 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
15882 setopt NO_GLOB_SUBST
15883else
15884 case `(set -o) 2>/dev/null` in #(
15885 *posix*) :
15886 set -o posix ;; #(
15887 *) :
15888 ;;
15889esac
5464f5a1 15890fi
5464f5a1 15891
81ecdfbb
RW
15892
15893as_nl='
15894'
15895export as_nl
15896# Printing a long string crashes Solaris 7 /usr/bin/printf.
15897as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15898as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15899as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15900# Prefer a ksh shell builtin over an external printf program on Solaris,
15901# but without wasting forks for bash or zsh.
15902if test -z "$BASH_VERSION$ZSH_VERSION" \
15903 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15904 as_echo='print -r --'
15905 as_echo_n='print -rn --'
15906elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15907 as_echo='printf %s\n'
15908 as_echo_n='printf %s'
15909else
15910 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15911 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15912 as_echo_n='/usr/ucb/echo -n'
15913 else
15914 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15915 as_echo_n_body='eval
15916 arg=$1;
15917 case $arg in #(
15918 *"$as_nl"*)
15919 expr "X$arg" : "X\\(.*\\)$as_nl";
15920 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15921 esac;
15922 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15923 '
15924 export as_echo_n_body
15925 as_echo_n='sh -c $as_echo_n_body as_echo'
15926 fi
15927 export as_echo_body
15928 as_echo='sh -c $as_echo_body as_echo'
15929fi
15930
15931# The user is always right.
15932if test "${PATH_SEPARATOR+set}" != set; then
15933 PATH_SEPARATOR=:
15934 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15935 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15936 PATH_SEPARATOR=';'
15937 }
5464f5a1
NN
15938fi
15939
15940
81ecdfbb
RW
15941# IFS
15942# We need space, tab and new line, in precisely that order. Quoting is
15943# there to prevent editors from complaining about space-tab.
15944# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15945# splitting by setting IFS to empty value.)
15946IFS=" "" $as_nl"
15947
15948# Find who we are. Look in the path if we contain no directory separator.
15949case $0 in #((
15950 *[\\/]* ) as_myself=$0 ;;
15951 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15952for as_dir in $PATH
15953do
15954 IFS=$as_save_IFS
15955 test -z "$as_dir" && as_dir=.
15956 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15957 done
15958IFS=$as_save_IFS
15959
15960 ;;
15961esac
15962# We did not find ourselves, most probably we were run as `sh COMMAND'
15963# in which case we are not to be found in the path.
15964if test "x$as_myself" = x; then
15965 as_myself=$0
15966fi
15967if test ! -f "$as_myself"; then
15968 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15969 exit 1
15970fi
15971
15972# Unset variables that we do not need and which cause bugs (e.g. in
15973# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15974# suppresses any "Segmentation fault" message there. '((' could
15975# trigger a bug in pdksh 5.2.14.
15976for as_var in BASH_ENV ENV MAIL MAILPATH
15977do eval test x\${$as_var+set} = xset \
15978 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15979done
5464f5a1
NN
15980PS1='$ '
15981PS2='> '
15982PS4='+ '
15983
15984# NLS nuisances.
81ecdfbb
RW
15985LC_ALL=C
15986export LC_ALL
15987LANGUAGE=C
15988export LANGUAGE
15989
15990# CDPATH.
15991(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15992
15993
15994# as_fn_error ERROR [LINENO LOG_FD]
15995# ---------------------------------
15996# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15997# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15998# script with status $?, using 1 if that was 0.
15999as_fn_error ()
16000{
16001 as_status=$?; test $as_status -eq 0 && as_status=1
16002 if test "$3"; then
16003 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16004 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
5464f5a1 16005 fi
81ecdfbb
RW
16006 $as_echo "$as_me: error: $1" >&2
16007 as_fn_exit $as_status
16008} # as_fn_error
16009
16010
16011# as_fn_set_status STATUS
16012# -----------------------
16013# Set $? to STATUS, without forking.
16014as_fn_set_status ()
16015{
16016 return $1
16017} # as_fn_set_status
16018
16019# as_fn_exit STATUS
16020# -----------------
16021# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16022as_fn_exit ()
16023{
16024 set +e
16025 as_fn_set_status $1
16026 exit $1
16027} # as_fn_exit
16028
16029# as_fn_unset VAR
16030# ---------------
16031# Portably unset VAR.
16032as_fn_unset ()
16033{
16034 { eval $1=; unset $1;}
16035}
16036as_unset=as_fn_unset
16037# as_fn_append VAR VALUE
16038# ----------------------
16039# Append the text in VALUE to the end of the definition contained in VAR. Take
16040# advantage of any shell optimizations that allow amortized linear growth over
16041# repeated appends, instead of the typical quadratic growth present in naive
16042# implementations.
16043if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16044 eval 'as_fn_append ()
16045 {
16046 eval $1+=\$2
16047 }'
16048else
16049 as_fn_append ()
16050 {
16051 eval $1=\$$1\$2
16052 }
16053fi # as_fn_append
16054
16055# as_fn_arith ARG...
16056# ------------------
16057# Perform arithmetic evaluation on the ARGs, and store the result in the
16058# global $as_val. Take advantage of shells that can avoid forks. The arguments
16059# must be portable across $(()) and expr.
16060if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16061 eval 'as_fn_arith ()
16062 {
16063 as_val=$(( $* ))
16064 }'
16065else
16066 as_fn_arith ()
16067 {
16068 as_val=`expr "$@" || test $? -eq 1`
16069 }
16070fi # as_fn_arith
16071
5464f5a1 16072
81ecdfbb
RW
16073if expr a : '\(a\)' >/dev/null 2>&1 &&
16074 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5464f5a1
NN
16075 as_expr=expr
16076else
16077 as_expr=false
16078fi
16079
81ecdfbb 16080if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5464f5a1
NN
16081 as_basename=basename
16082else
16083 as_basename=false
16084fi
252b5132 16085
81ecdfbb
RW
16086if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16087 as_dirname=dirname
16088else
16089 as_dirname=false
16090fi
6be7c12c 16091
81ecdfbb 16092as_me=`$as_basename -- "$0" ||
5464f5a1
NN
16093$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16094 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
16095 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16096$as_echo X/"$0" |
16097 sed '/^.*\/\([^/][^/]*\)\/*$/{
16098 s//\1/
16099 q
16100 }
16101 /^X\/\(\/\/\)$/{
16102 s//\1/
16103 q
16104 }
16105 /^X\/\(\/\).*/{
16106 s//\1/
16107 q
16108 }
16109 s/.*/./; q'`
5464f5a1 16110
5464f5a1
NN
16111# Avoid depending upon Character Ranges.
16112as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16113as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16114as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16115as_cr_digits='0123456789'
16116as_cr_alnum=$as_cr_Letters$as_cr_digits
16117
81ecdfbb
RW
16118ECHO_C= ECHO_N= ECHO_T=
16119case `echo -n x` in #(((((
16120-n*)
16121 case `echo 'xy\c'` in
16122 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16123 xy) ECHO_C='\c';;
16124 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16125 ECHO_T=' ';;
16126 esac;;
16127*)
16128 ECHO_N='-n';;
5464f5a1
NN
16129esac
16130
81ecdfbb
RW
16131rm -f conf$$ conf$$.exe conf$$.file
16132if test -d conf$$.dir; then
16133 rm -f conf$$.dir/conf$$.file
252b5132 16134else
81ecdfbb
RW
16135 rm -f conf$$.dir
16136 mkdir conf$$.dir 2>/dev/null
252b5132 16137fi
81ecdfbb
RW
16138if (echo >conf$$.file) 2>/dev/null; then
16139 if ln -s conf$$.file conf$$ 2>/dev/null; then
5464f5a1 16140 as_ln_s='ln -s'
81ecdfbb
RW
16141 # ... but there are two gotchas:
16142 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16143 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16144 # In both cases, we have to default to `cp -p'.
16145 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16146 as_ln_s='cp -p'
16147 elif ln conf$$.file conf$$ 2>/dev/null; then
16148 as_ln_s=ln
16149 else
16150 as_ln_s='cp -p'
5464f5a1 16151 fi
5464f5a1
NN
16152else
16153 as_ln_s='cp -p'
252b5132 16154fi
81ecdfbb
RW
16155rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16156rmdir conf$$.dir 2>/dev/null
16157
16158
16159# as_fn_mkdir_p
16160# -------------
16161# Create "$as_dir" as a directory, including parents if necessary.
16162as_fn_mkdir_p ()
16163{
16164
16165 case $as_dir in #(
16166 -*) as_dir=./$as_dir;;
16167 esac
16168 test -d "$as_dir" || eval $as_mkdir_p || {
16169 as_dirs=
16170 while :; do
16171 case $as_dir in #(
16172 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16173 *) as_qdir=$as_dir;;
16174 esac
16175 as_dirs="'$as_qdir' $as_dirs"
16176 as_dir=`$as_dirname -- "$as_dir" ||
16177$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16178 X"$as_dir" : 'X\(//\)[^/]' \| \
16179 X"$as_dir" : 'X\(//\)$' \| \
16180 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16181$as_echo X"$as_dir" |
16182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16183 s//\1/
16184 q
16185 }
16186 /^X\(\/\/\)[^/].*/{
16187 s//\1/
16188 q
16189 }
16190 /^X\(\/\/\)$/{
16191 s//\1/
16192 q
16193 }
16194 /^X\(\/\).*/{
16195 s//\1/
16196 q
16197 }
16198 s/.*/./; q'`
16199 test -d "$as_dir" && break
16200 done
16201 test -z "$as_dirs" || eval "mkdir $as_dirs"
16202 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16203
6be7c12c 16204
81ecdfbb 16205} # as_fn_mkdir_p
5464f5a1 16206if mkdir -p . 2>/dev/null; then
81ecdfbb 16207 as_mkdir_p='mkdir -p "$as_dir"'
5464f5a1
NN
16208else
16209 test -d ./-p && rmdir ./-p
16210 as_mkdir_p=false
252b5132 16211fi
81ecdfbb
RW
16212
16213if test -x / >/dev/null 2>&1; then
16214 as_test_x='test -x'
16215else
16216 if ls -dL / >/dev/null 2>&1; then
16217 as_ls_L_option=L
16218 else
16219 as_ls_L_option=
16220 fi
16221 as_test_x='
16222 eval sh -c '\''
16223 if test -d "$1"; then
16224 test -d "$1/.";
16225 else
16226 case $1 in #(
16227 -*)set "./$1";;
16228 esac;
16229 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16230 ???[sx]*):;;*)false;;esac;fi
16231 '\'' sh
16232 '
16233fi
16234as_executable_p=$as_test_x
252b5132 16235
5464f5a1
NN
16236# Sed expression to map a string onto a valid CPP name.
16237as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 16238
5464f5a1
NN
16239# Sed expression to map a string onto a valid variable name.
16240as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6be7c12c 16241
252b5132 16242
5464f5a1 16243exec 6>&1
81ecdfbb
RW
16244## ----------------------------------- ##
16245## Main body of $CONFIG_STATUS script. ##
16246## ----------------------------------- ##
16247_ASEOF
16248test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5464f5a1 16249
81ecdfbb
RW
16250cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16251# Save the log message, to keep $0 and so on meaningful, and to
5464f5a1 16252# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
16253# values after options handling.
16254ac_log="
5464f5a1 16255This file was extended by $as_me, which was
81ecdfbb 16256generated by GNU Autoconf 2.64. Invocation command line was
5464f5a1
NN
16257
16258 CONFIG_FILES = $CONFIG_FILES
16259 CONFIG_HEADERS = $CONFIG_HEADERS
16260 CONFIG_LINKS = $CONFIG_LINKS
16261 CONFIG_COMMANDS = $CONFIG_COMMANDS
16262 $ $0 $@
16263
81ecdfbb
RW
16264on `(hostname || uname -n) 2>/dev/null | sed 1q`
16265"
16266
5464f5a1
NN
16267_ACEOF
16268
81ecdfbb
RW
16269case $ac_config_files in *"
16270"*) set x $ac_config_files; shift; ac_config_files=$*;;
16271esac
5464f5a1 16272
81ecdfbb
RW
16273case $ac_config_headers in *"
16274"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16275esac
252b5132 16276
252b5132 16277
81ecdfbb
RW
16278cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16279# Files that config.status was made for.
16280config_files="$ac_config_files"
16281config_headers="$ac_config_headers"
16282config_commands="$ac_config_commands"
252b5132 16283
81ecdfbb 16284_ACEOF
5464f5a1 16285
81ecdfbb 16286cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5464f5a1 16287ac_cs_usage="\
81ecdfbb
RW
16288\`$as_me' instantiates files and other configuration actions
16289from templates according to the current configuration. Unless the files
16290and actions are specified as TAGs, all are instantiated by default.
5464f5a1 16291
81ecdfbb 16292Usage: $0 [OPTION]... [TAG]...
5464f5a1
NN
16293
16294 -h, --help print this help, then exit
81ecdfbb
RW
16295 -V, --version print version number and configuration settings, then exit
16296 -q, --quiet, --silent
16297 do not print progress messages
5464f5a1
NN
16298 -d, --debug don't remove temporary files
16299 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
16300 --file=FILE[:TEMPLATE]
16301 instantiate the configuration file FILE
16302 --header=FILE[:TEMPLATE]
16303 instantiate the configuration header FILE
5464f5a1
NN
16304
16305Configuration files:
16306$config_files
16307
16308Configuration headers:
16309$config_headers
16310
16311Configuration commands:
16312$config_commands
16313
81ecdfbb 16314Report bugs to the package provider."
5464f5a1 16315
81ecdfbb
RW
16316_ACEOF
16317cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5464f5a1
NN
16318ac_cs_version="\\
16319config.status
81ecdfbb
RW
16320configured by $0, generated by GNU Autoconf 2.64,
16321 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5464f5a1 16322
81ecdfbb 16323Copyright (C) 2009 Free Software Foundation, Inc.
5464f5a1
NN
16324This config.status script is free software; the Free Software Foundation
16325gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
16326
16327ac_pwd='$ac_pwd'
16328srcdir='$srcdir'
16329INSTALL='$INSTALL'
16330MKDIR_P='$MKDIR_P'
16331AWK='$AWK'
16332test -n "\$AWK" || AWK=awk
5464f5a1
NN
16333_ACEOF
16334
81ecdfbb
RW
16335cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16336# The default lists apply if the user does not specify any file.
5464f5a1
NN
16337ac_need_defaults=:
16338while test $# != 0
16339do
16340 case $1 in
16341 --*=*)
81ecdfbb
RW
16342 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16343 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5464f5a1 16344 ac_shift=:
6be7c12c 16345 ;;
81ecdfbb 16346 *)
5464f5a1
NN
16347 ac_option=$1
16348 ac_optarg=$2
16349 ac_shift=shift
6be7c12c 16350 ;;
5464f5a1 16351 esac
252b5132 16352
5464f5a1
NN
16353 case $ac_option in
16354 # Handling of the options.
5464f5a1
NN
16355 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16356 ac_cs_recheck=: ;;
81ecdfbb
RW
16357 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16358 $as_echo "$ac_cs_version"; exit ;;
16359 --debug | --debu | --deb | --de | --d | -d )
5464f5a1
NN
16360 debug=: ;;
16361 --file | --fil | --fi | --f )
16362 $ac_shift
81ecdfbb
RW
16363 case $ac_optarg in
16364 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16365 esac
16366 as_fn_append CONFIG_FILES " '$ac_optarg'"
5464f5a1
NN
16367 ac_need_defaults=false;;
16368 --header | --heade | --head | --hea )
16369 $ac_shift
81ecdfbb
RW
16370 case $ac_optarg in
16371 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16372 esac
16373 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5464f5a1 16374 ac_need_defaults=false;;
81ecdfbb
RW
16375 --he | --h)
16376 # Conflict between --help and --header
16377 as_fn_error "ambiguous option: \`$1'
16378Try \`$0 --help' for more information.";;
16379 --help | --hel | -h )
16380 $as_echo "$ac_cs_usage"; exit ;;
5464f5a1
NN
16381 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16382 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16383 ac_cs_silent=: ;;
6be7c12c 16384
5464f5a1 16385 # This is an error.
81ecdfbb
RW
16386 -*) as_fn_error "unrecognized option: \`$1'
16387Try \`$0 --help' for more information." ;;
252b5132 16388
81ecdfbb
RW
16389 *) as_fn_append ac_config_targets " $1"
16390 ac_need_defaults=false ;;
252b5132 16391
5464f5a1
NN
16392 esac
16393 shift
16394done
6be7c12c 16395
5464f5a1 16396ac_configure_extra_args=
252b5132 16397
5464f5a1
NN
16398if $ac_cs_silent; then
16399 exec 6>/dev/null
16400 ac_configure_extra_args="$ac_configure_extra_args --silent"
16401fi
6be7c12c 16402
5464f5a1 16403_ACEOF
81ecdfbb 16404cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5464f5a1 16405if \$ac_cs_recheck; then
81ecdfbb
RW
16406 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16407 shift
16408 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16409 CONFIG_SHELL='$SHELL'
16410 export CONFIG_SHELL
16411 exec "\$@"
5464f5a1
NN
16412fi
16413
16414_ACEOF
81ecdfbb
RW
16415cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16416exec 5>>config.log
16417{
16418 echo
16419 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16420## Running $as_me. ##
16421_ASBOX
16422 $as_echo "$ac_log"
16423} >&5
5464f5a1 16424
81ecdfbb
RW
16425_ACEOF
16426cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6be7c12c 16427#
81ecdfbb 16428# INIT-COMMANDS
6be7c12c 16429#
f5385ebf 16430AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
16431
16432
16433# The HP-UX ksh and POSIX shell print the target directory to stdout
16434# if CDPATH is set.
16435(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16436
16437sed_quote_subst='$sed_quote_subst'
16438double_quote_subst='$double_quote_subst'
16439delay_variable_subst='$delay_variable_subst'
3725885a
RW
16440enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16441macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16442macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16443enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16444pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16445enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16446SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16447ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16448host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16449host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16450host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16451build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16452build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16453build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16454SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16455Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16456GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16457EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16458FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16459LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16460NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16461LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16462max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16463ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16464exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16465lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16466lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16467lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16468reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16469reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16470OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16471deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16472file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16473AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16474AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16475STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16476RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16477old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16478old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16479old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16480lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16481CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16482CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16483compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16484GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16485lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16486lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16487lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16488lt_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"`'
16489objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16490MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16491lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16492lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16493lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16494lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16495lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16496need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16497DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16498NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16499LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16500OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16501OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16502libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16503shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16504extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16505archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16506enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16507export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16508whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16509compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16510old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16511old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16512archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16513archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16514module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16515module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16516with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16517allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16518no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16519hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16520hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16521hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16522hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16523hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16524hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16525hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16526hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16527inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16528link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16529fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16530always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16531export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16532exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16533include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16534prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16535file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16536variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16537need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16538need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16539version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16540runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16541shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16542shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16543libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16544library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16545soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16546install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16547postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16548postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16549finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16550finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16551hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16552sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16553sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16554hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16555enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16556enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16557enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16558old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16559striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
16560
16561LTCC='$LTCC'
16562LTCFLAGS='$LTCFLAGS'
16563compiler='$compiler_DEFAULT'
16564
3725885a
RW
16565# A function that is used when there is no print builtin or printf.
16566func_fallback_echo ()
16567{
16568 eval 'cat <<_LTECHO_EOF
16569\$1
16570_LTECHO_EOF'
16571}
16572
d7040cdb 16573# Quote evaled strings.
3725885a
RW
16574for var in SHELL \
16575ECHO \
16576SED \
d7040cdb
SE
16577GREP \
16578EGREP \
16579FGREP \
16580LD \
16581NM \
16582LN_S \
16583lt_SP2NL \
16584lt_NL2SP \
16585reload_flag \
718a6fd8 16586OBJDUMP \
d7040cdb
SE
16587deplibs_check_method \
16588file_magic_cmd \
16589AR \
16590AR_FLAGS \
16591STRIP \
16592RANLIB \
16593CC \
16594CFLAGS \
16595compiler \
16596lt_cv_sys_global_symbol_pipe \
16597lt_cv_sys_global_symbol_to_cdecl \
16598lt_cv_sys_global_symbol_to_c_name_address \
718a6fd8 16599lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
16600lt_prog_compiler_no_builtin_flag \
16601lt_prog_compiler_wl \
16602lt_prog_compiler_pic \
16603lt_prog_compiler_static \
16604lt_cv_prog_compiler_c_o \
16605need_locks \
718a6fd8
SE
16606DSYMUTIL \
16607NMEDIT \
16608LIPO \
16609OTOOL \
16610OTOOL64 \
d7040cdb
SE
16611shrext_cmds \
16612export_dynamic_flag_spec \
16613whole_archive_flag_spec \
16614compiler_needs_object \
16615with_gnu_ld \
16616allow_undefined_flag \
16617no_undefined_flag \
16618hardcode_libdir_flag_spec \
16619hardcode_libdir_flag_spec_ld \
16620hardcode_libdir_separator \
16621fix_srcfile_path \
16622exclude_expsyms \
16623include_expsyms \
16624file_list_spec \
16625variables_saved_for_relink \
16626libname_spec \
16627library_names_spec \
16628soname_spec \
3725885a 16629install_override_mode \
d7040cdb
SE
16630finish_eval \
16631old_striplib \
16632striplib; do
3725885a 16633 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 16634 *[\\\\\\\`\\"\\\$]*)
3725885a 16635 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
16636 ;;
16637 *)
16638 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16639 ;;
16640 esac
16641done
16642
16643# Double-quote double-evaled strings.
16644for var in reload_cmds \
16645old_postinstall_cmds \
16646old_postuninstall_cmds \
16647old_archive_cmds \
16648extract_expsyms_cmds \
16649old_archive_from_new_cmds \
16650old_archive_from_expsyms_cmds \
16651archive_cmds \
16652archive_expsym_cmds \
16653module_cmds \
16654module_expsym_cmds \
16655export_symbols_cmds \
16656prelink_cmds \
16657postinstall_cmds \
16658postuninstall_cmds \
16659finish_cmds \
16660sys_lib_search_path_spec \
16661sys_lib_dlsearch_path_spec; do
3725885a 16662 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 16663 *[\\\\\\\`\\"\\\$]*)
3725885a 16664 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
16665 ;;
16666 *)
16667 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16668 ;;
16669 esac
16670done
16671
d7040cdb
SE
16672ac_aux_dir='$ac_aux_dir'
16673xsi_shell='$xsi_shell'
16674lt_shell_append='$lt_shell_append'
16675
16676# See if we are running on zsh, and set the options which allow our
16677# commands through without removal of \ escapes INIT.
16678if test -n "\${ZSH_VERSION+set}" ; then
16679 setopt NO_GLOB_SUBST
16680fi
16681
16682
16683 PACKAGE='$PACKAGE'
16684 VERSION='$VERSION'
16685 TIMESTAMP='$TIMESTAMP'
16686 RM='$RM'
16687 ofile='$ofile'
16688
16689
16690
20e95c23
DJ
16691# Capture the value of obsolete ALL_LINGUAS because we need it to compute
16692 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
16693 # from automake.
16694 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16695 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16696 LINGUAS="${LINGUAS-%UNSET%}"
16697
5464f5a1 16698
f3b4f6d0
PB
16699GCC="$GCC"
16700CC="$CC"
16701acx_cv_header_stdint="$acx_cv_header_stdint"
16702acx_cv_type_int8_t="$acx_cv_type_int8_t"
16703acx_cv_type_int16_t="$acx_cv_type_int16_t"
16704acx_cv_type_int32_t="$acx_cv_type_int32_t"
16705acx_cv_type_int64_t="$acx_cv_type_int64_t"
16706acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
16707ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
16708ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
16709ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
16710ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
16711ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
d5efd9fc
AM
16712ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
16713ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
f3b4f6d0 16714ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
d5efd9fc
AM
16715
16716
5464f5a1
NN
16717
16718_ACEOF
16719
81ecdfbb 16720cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5464f5a1 16721
81ecdfbb 16722# Handling of arguments.
5464f5a1 16723for ac_config_target in $ac_config_targets
252b5132 16724do
81ecdfbb
RW
16725 case $ac_config_target in
16726 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16727 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16728 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16729 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16730 "bfd_stdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
16731 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16732 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16733 "bfd-in3.h") CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
16734 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
16735 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16736
16737 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
252b5132
RH
16738 esac
16739done
16740
81ecdfbb 16741
5464f5a1
NN
16742# If the user did not use the arguments to specify the items to instantiate,
16743# then the envvar interface is used. Set only those that are not.
16744# We use the long form for the default assignment because of an extremely
16745# bizarre bug on SunOS 4.1.3.
16746if $ac_need_defaults; then
16747 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16748 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16749 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16750fi
16751
16752# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 16753# simply because there is no reason against having it here, and in addition,
5464f5a1 16754# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
16755# Hook for its removal unless debugging.
16756# Note that there is a small window in which the directory will not be cleaned:
16757# after its creation but before its name has been assigned to `$tmp'.
5464f5a1
NN
16758$debug ||
16759{
81ecdfbb
RW
16760 tmp=
16761 trap 'exit_status=$?
16762 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16763' 0
16764 trap 'as_fn_exit 1' 1 2 13 15
5464f5a1 16765}
5464f5a1 16766# Create a (secure) tmp directory for tmp files.
b3baf5d0 16767
5464f5a1 16768{
81ecdfbb 16769 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5464f5a1
NN
16770 test -n "$tmp" && test -d "$tmp"
16771} ||
16772{
81ecdfbb
RW
16773 tmp=./conf$$-$RANDOM
16774 (umask 077 && mkdir "$tmp")
16775} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16776
16777# Set up the scripts for CONFIG_FILES section.
16778# No need to generate them if there are no CONFIG_FILES.
16779# This happens for instance with `./config.status config.h'.
16780if test -n "$CONFIG_FILES"; then
16781
16782
16783ac_cr=`echo X | tr X '\015'`
16784# On cygwin, bash can eat \r inside `` if the user requested igncr.
16785# But we know of no other shell where ac_cr would be empty at this
16786# point, so we can use a bashism as a fallback.
16787if test "x$ac_cr" = x; then
16788 eval ac_cr=\$\'\\r\'
16789fi
16790ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16791if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16792 ac_cs_awk_cr='\r'
16793else
16794 ac_cs_awk_cr=$ac_cr
16795fi
16796
16797echo 'BEGIN {' >"$tmp/subs1.awk" &&
16798_ACEOF
16799
16800
16801{
16802 echo "cat >conf$$subs.awk <<_ACEOF" &&
16803 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16804 echo "_ACEOF"
16805} >conf$$subs.sh ||
16806 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16807ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16808ac_delim='%!_!# '
16809for ac_last_try in false false false false false :; do
16810 . ./conf$$subs.sh ||
16811 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16812
16813 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16814 if test $ac_delim_n = $ac_delim_num; then
16815 break
16816 elif $ac_last_try; then
16817 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16818 else
16819 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16820 fi
16821done
16822rm -f conf$$subs.sh
16823
16824cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16825cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16826_ACEOF
16827sed -n '
16828h
16829s/^/S["/; s/!.*/"]=/
16830p
16831g
16832s/^[^!]*!//
16833:repl
16834t repl
16835s/'"$ac_delim"'$//
16836t delim
16837:nl
16838h
16839s/\(.\{148\}\).*/\1/
16840t more1
16841s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16842p
16843n
16844b repl
16845:more1
16846s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16847p
16848g
16849s/.\{148\}//
16850t nl
16851:delim
16852h
16853s/\(.\{148\}\).*/\1/
16854t more2
16855s/["\\]/\\&/g; s/^/"/; s/$/"/
16856p
16857b
16858:more2
16859s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16860p
16861g
16862s/.\{148\}//
16863t delim
16864' <conf$$subs.awk | sed '
16865/^[^""]/{
16866 N
16867 s/\n//
16868}
16869' >>$CONFIG_STATUS || ac_write_fail=1
16870rm -f conf$$subs.awk
16871cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16872_ACAWK
16873cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16874 for (key in S) S_is_set[key] = 1
16875 FS = "\a"
16876
16877}
5464f5a1 16878{
81ecdfbb
RW
16879 line = $ 0
16880 nfields = split(line, field, "@")
16881 substed = 0
16882 len = length(field[1])
16883 for (i = 2; i < nfields; i++) {
16884 key = field[i]
16885 keylen = length(key)
16886 if (S_is_set[key]) {
16887 value = S[key]
16888 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16889 len += length(value) + length(field[++i])
16890 substed = 1
16891 } else
16892 len += 1 + keylen
16893 }
16894
16895 print line
5464f5a1
NN
16896}
16897
81ecdfbb
RW
16898_ACAWK
16899_ACEOF
16900cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16901if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16902 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16903else
16904 cat
16905fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16906 || as_fn_error "could not setup config files machinery" "$LINENO" 5
5464f5a1
NN
16907_ACEOF
16908
81ecdfbb
RW
16909# VPATH may cause trouble with some makes, so we remove $(srcdir),
16910# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16911# trailing colons and then remove the whole line if VPATH becomes empty
16912# (actually we leave an empty line to preserve line numbers).
16913if test "x$srcdir" = x.; then
16914 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16915s/:*\$(srcdir):*/:/
16916s/:*\${srcdir}:*/:/
16917s/:*@srcdir@:*/:/
16918s/^\([^=]*=[ ]*\):*/\1/
16919s/:*$//
16920s/^[^=]*=[ ]*$//
16921}'
16922fi
b3baf5d0 16923
81ecdfbb
RW
16924cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16925fi # test -n "$CONFIG_FILES"
252b5132 16926
81ecdfbb
RW
16927# Set up the scripts for CONFIG_HEADERS section.
16928# No need to generate them if there are no CONFIG_HEADERS.
16929# This happens for instance with `./config.status Makefile'.
16930if test -n "$CONFIG_HEADERS"; then
16931cat >"$tmp/defines.awk" <<\_ACAWK ||
16932BEGIN {
5464f5a1
NN
16933_ACEOF
16934
81ecdfbb
RW
16935# Transform confdefs.h into an awk script `defines.awk', embedded as
16936# here-document in config.status, that substitutes the proper values into
16937# config.h.in to produce config.h.
16938
16939# Create a delimiter string that does not exist in confdefs.h, to ease
16940# handling of long lines.
16941ac_delim='%!_!# '
16942for ac_last_try in false false :; do
16943 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16944 if test -z "$ac_t"; then
16945 break
16946 elif $ac_last_try; then
16947 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16948 else
16949 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
252b5132 16950 fi
81ecdfbb 16951done
6be7c12c 16952
81ecdfbb
RW
16953# For the awk script, D is an array of macro values keyed by name,
16954# likewise P contains macro parameters if any. Preserve backslash
16955# newline sequences.
16956
16957ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16958sed -n '
16959s/.\{148\}/&'"$ac_delim"'/g
16960t rset
16961:rset
16962s/^[ ]*#[ ]*define[ ][ ]*/ /
16963t def
16964d
16965:def
16966s/\\$//
16967t bsnl
16968s/["\\]/\\&/g
16969s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16970D["\1"]=" \3"/p
16971s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16972d
16973:bsnl
16974s/["\\]/\\&/g
16975s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16976D["\1"]=" \3\\\\\\n"\\/p
16977t cont
16978s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16979t cont
16980d
16981:cont
16982n
16983s/.\{148\}/&'"$ac_delim"'/g
16984t clear
16985:clear
16986s/\\$//
16987t bsnlc
16988s/["\\]/\\&/g; s/^/"/; s/$/"/p
16989d
16990:bsnlc
16991s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16992b cont
16993' <confdefs.h | sed '
16994s/'"$ac_delim"'/"\\\
16995"/g' >>$CONFIG_STATUS || ac_write_fail=1
16996
16997cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16998 for (key in D) D_is_set[key] = 1
16999 FS = "\a"
17000}
17001/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17002 line = \$ 0
17003 split(line, arg, " ")
17004 if (arg[1] == "#") {
17005 defundef = arg[2]
17006 mac1 = arg[3]
17007 } else {
17008 defundef = substr(arg[1], 2)
17009 mac1 = arg[2]
17010 }
17011 split(mac1, mac2, "(") #)
17012 macro = mac2[1]
17013 prefix = substr(line, 1, index(line, defundef) - 1)
17014 if (D_is_set[macro]) {
17015 # Preserve the white space surrounding the "#".
17016 print prefix "define", macro P[macro] D[macro]
17017 next
17018 } else {
17019 # Replace #undef with comments. This is necessary, for example,
17020 # in the case of _POSIX_SOURCE, which is predefined and required
17021 # on some systems where configure will not decide to define it.
17022 if (defundef == "undef") {
17023 print "/*", prefix defundef, macro, "*/"
17024 next
17025 }
17026 }
17027}
17028{ print }
17029_ACAWK
5464f5a1 17030_ACEOF
81ecdfbb
RW
17031cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17032 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17033fi # test -n "$CONFIG_HEADERS"
17034
17035
17036eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17037shift
17038for ac_tag
17039do
17040 case $ac_tag in
17041 :[FHLC]) ac_mode=$ac_tag; continue;;
17042 esac
17043 case $ac_mode$ac_tag in
17044 :[FHL]*:*);;
17045 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17046 :[FH]-) ac_tag=-:-;;
17047 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17048 esac
17049 ac_save_IFS=$IFS
17050 IFS=:
17051 set x $ac_tag
17052 IFS=$ac_save_IFS
17053 shift
17054 ac_file=$1
17055 shift
17056
17057 case $ac_mode in
17058 :L) ac_source=$1;;
17059 :[FH])
17060 ac_file_inputs=
17061 for ac_f
17062 do
17063 case $ac_f in
17064 -) ac_f="$tmp/stdin";;
17065 *) # Look for the file first in the build tree, then in the source tree
17066 # (if the path is not absolute). The absolute path cannot be DOS-style,
17067 # because $ac_f cannot contain `:'.
17068 test -f "$ac_f" ||
17069 case $ac_f in
17070 [\\/$]*) false;;
17071 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17072 esac ||
17073 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17074 esac
17075 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17076 as_fn_append ac_file_inputs " '$ac_f'"
17077 done
17078
17079 # Let's still pretend it is `configure' which instantiates (i.e., don't
17080 # use $as_me), people would be surprised to read:
17081 # /* config.h. Generated by config.status. */
17082 configure_input='Generated from '`
17083 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17084 `' by configure.'
17085 if test x"$ac_file" != x-; then
17086 configure_input="$ac_file. $configure_input"
17087 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17088$as_echo "$as_me: creating $ac_file" >&6;}
17089 fi
17090 # Neutralize special characters interpreted by sed in replacement strings.
17091 case $configure_input in #(
17092 *\&* | *\|* | *\\* )
17093 ac_sed_conf_input=`$as_echo "$configure_input" |
17094 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17095 *) ac_sed_conf_input=$configure_input;;
17096 esac
17097
17098 case $ac_tag in
17099 *:-:* | *:-) cat >"$tmp/stdin" \
17100 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17101 esac
17102 ;;
252b5132
RH
17103 esac
17104
81ecdfbb 17105 ac_dir=`$as_dirname -- "$ac_file" ||
5464f5a1
NN
17106$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17107 X"$ac_file" : 'X\(//\)[^/]' \| \
17108 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
17109 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17110$as_echo X"$ac_file" |
17111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17112 s//\1/
17113 q
17114 }
17115 /^X\(\/\/\)[^/].*/{
17116 s//\1/
17117 q
17118 }
17119 /^X\(\/\/\)$/{
17120 s//\1/
17121 q
17122 }
17123 /^X\(\/\).*/{
17124 s//\1/
17125 q
17126 }
17127 s/.*/./; q'`
17128 as_dir="$ac_dir"; as_fn_mkdir_p
5464f5a1
NN
17129 ac_builddir=.
17130
81ecdfbb
RW
17131case "$ac_dir" in
17132.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17133*)
17134 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17135 # A ".." for each directory in $ac_dir_suffix.
17136 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17137 case $ac_top_builddir_sub in
17138 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17139 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17140 esac ;;
17141esac
17142ac_abs_top_builddir=$ac_pwd
17143ac_abs_builddir=$ac_pwd$ac_dir_suffix
17144# for backward compatibility:
17145ac_top_builddir=$ac_top_build_prefix
252b5132 17146
5464f5a1 17147case $srcdir in
81ecdfbb 17148 .) # We are building in place.
5464f5a1 17149 ac_srcdir=.
81ecdfbb
RW
17150 ac_top_srcdir=$ac_top_builddir_sub
17151 ac_abs_top_srcdir=$ac_pwd ;;
17152 [\\/]* | ?:[\\/]* ) # Absolute name.
5464f5a1 17153 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
17154 ac_top_srcdir=$srcdir
17155 ac_abs_top_srcdir=$srcdir ;;
17156 *) # Relative name.
17157 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17158 ac_top_srcdir=$ac_top_build_prefix$srcdir
17159 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5464f5a1 17160esac
81ecdfbb 17161ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 17162
252b5132 17163
81ecdfbb
RW
17164 case $ac_mode in
17165 :F)
17166 #
17167 # CONFIG_FILE
17168 #
5464f5a1
NN
17169
17170 case $INSTALL in
17171 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
17172 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17173 esac
17174 ac_MKDIR_P=$MKDIR_P
17175 case $MKDIR_P in
17176 [\\/$]* | ?:[\\/]* ) ;;
17177 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6be7c12c 17178 esac
81ecdfbb 17179_ACEOF
252b5132 17180
81ecdfbb
RW
17181cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17182# If the template does not know about datarootdir, expand it.
17183# FIXME: This hack should be removed a few years after 2.60.
17184ac_datarootdir_hack=; ac_datarootdir_seen=
17185ac_sed_dataroot='
17186/datarootdir/ {
17187 p
17188 q
17189}
17190/@datadir@/p
17191/@docdir@/p
17192/@infodir@/p
17193/@localedir@/p
17194/@mandir@/p'
17195case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17196*datarootdir*) ac_datarootdir_seen=yes;;
17197*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17199$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17200_ACEOF
17201cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17202 ac_datarootdir_hack='
17203 s&@datadir@&$datadir&g
17204 s&@docdir@&$docdir&g
17205 s&@infodir@&$infodir&g
17206 s&@localedir@&$localedir&g
17207 s&@mandir@&$mandir&g
17208 s&\\\${datarootdir}&$datarootdir&g' ;;
17209esac
5464f5a1 17210_ACEOF
81ecdfbb
RW
17211
17212# Neutralize VPATH when `$srcdir' = `.'.
17213# Shell code in configure.ac might set extrasub.
17214# FIXME: do we really want to maintain this feature?
17215cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17216ac_sed_extra="$ac_vpsub
5464f5a1
NN
17217$extrasub
17218_ACEOF
81ecdfbb 17219cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5464f5a1
NN
17220:t
17221/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
17222s|@configure_input@|$ac_sed_conf_input|;t t
17223s&@top_builddir@&$ac_top_builddir_sub&;t t
17224s&@top_build_prefix@&$ac_top_build_prefix&;t t
17225s&@srcdir@&$ac_srcdir&;t t
17226s&@abs_srcdir@&$ac_abs_srcdir&;t t
17227s&@top_srcdir@&$ac_top_srcdir&;t t
17228s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17229s&@builddir@&$ac_builddir&;t t
17230s&@abs_builddir@&$ac_abs_builddir&;t t
17231s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17232s&@INSTALL@&$ac_INSTALL&;t t
17233s&@MKDIR_P@&$ac_MKDIR_P&;t t
17234$ac_datarootdir_hack
17235"
17236eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17237 || as_fn_error "could not create $ac_file" "$LINENO" 5
17238
17239test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17240 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17241 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17243which seems to be undefined. Please make sure it is defined." >&5
17244$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17245which seems to be undefined. Please make sure it is defined." >&2;}
17246
17247 rm -f "$tmp/stdin"
5464f5a1 17248 case $ac_file in
81ecdfbb
RW
17249 -) cat "$tmp/out" && rm -f "$tmp/out";;
17250 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17251 esac \
17252 || as_fn_error "could not create $ac_file" "$LINENO" 5
17253 ;;
17254 :H)
17255 #
17256 # CONFIG_HEADER
17257 #
5464f5a1 17258 if test x"$ac_file" != x-; then
81ecdfbb
RW
17259 {
17260 $as_echo "/* $configure_input */" \
17261 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17262 } >"$tmp/config.h" \
17263 || as_fn_error "could not create $ac_file" "$LINENO" 5
17264 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17266$as_echo "$as_me: $ac_file is unchanged" >&6;}
5464f5a1 17267 else
81ecdfbb
RW
17268 rm -f "$ac_file"
17269 mv "$tmp/config.h" "$ac_file" \
17270 || as_fn_error "could not create $ac_file" "$LINENO" 5
252b5132 17271 fi
5464f5a1 17272 else
81ecdfbb
RW
17273 $as_echo "/* $configure_input */" \
17274 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17275 || as_fn_error "could not create -" "$LINENO" 5
252b5132 17276 fi
81ecdfbb
RW
17277# Compute "$ac_file"'s index in $config_headers.
17278_am_arg="$ac_file"
f5385ebf
AM
17279_am_stamp_count=1
17280for _am_header in $config_headers :; do
17281 case $_am_header in
81ecdfbb 17282 $_am_arg | $_am_arg:* )
f5385ebf
AM
17283 break ;;
17284 * )
17285 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17286 esac
17287done
81ecdfbb
RW
17288echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17289$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17290 X"$_am_arg" : 'X\(//\)[^/]' \| \
17291 X"$_am_arg" : 'X\(//\)$' \| \
17292 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17293$as_echo X"$_am_arg" |
17294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17295 s//\1/
17296 q
17297 }
17298 /^X\(\/\/\)[^/].*/{
17299 s//\1/
17300 q
17301 }
17302 /^X\(\/\/\)$/{
17303 s//\1/
17304 q
17305 }
17306 /^X\(\/\).*/{
17307 s//\1/
17308 q
17309 }
17310 s/.*/./; q'`/stamp-h$_am_stamp_count
17311 ;;
5464f5a1 17312
81ecdfbb
RW
17313 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17314$as_echo "$as_me: executing $ac_file commands" >&6;}
17315 ;;
17316 esac
5464f5a1
NN
17317
17318
81ecdfbb
RW
17319 case $ac_file$ac_mode in
17320 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17321 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17322 # are listed without --file. Let's play safe and only enable the eval
17323 # if we detect the quoting.
17324 case $CONFIG_FILES in
17325 *\'*) eval set x "$CONFIG_FILES" ;;
17326 *) set x $CONFIG_FILES ;;
17327 esac
17328 shift
17329 for mf
17330 do
17331 # Strip MF so we end up with the name of the file.
17332 mf=`echo "$mf" | sed -e 's/:.*$//'`
17333 # Check whether this is an Automake generated Makefile or not.
17334 # We used to match only the files named `Makefile.in', but
17335 # some people rename them; so instead we look at the file content.
17336 # Grep'ing the first line is not enough: some people post-process
17337 # each Makefile.in and add a new line on top of each file to say so.
17338 # Grep'ing the whole file is not good either: AIX grep has a line
17339 # limit of 2048, but all sed's we know have understand at least 4000.
17340 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17341 dirpart=`$as_dirname -- "$mf" ||
f5385ebf
AM
17342$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17343 X"$mf" : 'X\(//\)[^/]' \| \
17344 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
17345 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17346$as_echo X"$mf" |
17347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17348 s//\1/
17349 q
17350 }
17351 /^X\(\/\/\)[^/].*/{
17352 s//\1/
17353 q
17354 }
17355 /^X\(\/\/\)$/{
17356 s//\1/
17357 q
17358 }
17359 /^X\(\/\).*/{
17360 s//\1/
17361 q
17362 }
17363 s/.*/./; q'`
17364 else
17365 continue
17366 fi
17367 # Extract the definition of DEPDIR, am__include, and am__quote
17368 # from the Makefile without running `make'.
17369 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17370 test -z "$DEPDIR" && continue
17371 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17372 test -z "am__include" && continue
17373 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17374 # When using ansi2knr, U may be empty or an underscore; expand it
17375 U=`sed -n 's/^U = //p' < "$mf"`
17376 # Find all dependency output files, they are included files with
17377 # $(DEPDIR) in their names. We invoke sed twice because it is the
17378 # simplest approach to changing $(DEPDIR) to its actual value in the
17379 # expansion.
17380 for file in `sed -n "
17381 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17382 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17383 # Make sure the directory exists.
17384 test -f "$dirpart/$file" && continue
17385 fdir=`$as_dirname -- "$file" ||
f5385ebf
AM
17386$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17387 X"$file" : 'X\(//\)[^/]' \| \
17388 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
17389 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17390$as_echo X"$file" |
17391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17392 s//\1/
17393 q
17394 }
17395 /^X\(\/\/\)[^/].*/{
17396 s//\1/
17397 q
17398 }
17399 /^X\(\/\/\)$/{
17400 s//\1/
17401 q
17402 }
17403 /^X\(\/\).*/{
17404 s//\1/
17405 q
17406 }
17407 s/.*/./; q'`
17408 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17409 # echo "creating $dirpart/$file"
17410 echo '# dummy' > "$dirpart/$file"
f5385ebf 17411 done
f5385ebf 17412 done
81ecdfbb 17413}
d7040cdb 17414 ;;
81ecdfbb 17415 "libtool":C)
d7040cdb
SE
17416
17417 # See if we are running on zsh, and set the options which allow our
17418 # commands through without removal of \ escapes.
17419 if test -n "${ZSH_VERSION+set}" ; then
17420 setopt NO_GLOB_SUBST
17421 fi
17422
17423 cfgfile="${ofile}T"
17424 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17425 $RM "$cfgfile"
17426
17427 cat <<_LT_EOF >> "$cfgfile"
17428#! $SHELL
17429
17430# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
718a6fd8 17431# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
17432# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17433# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17434#
718a6fd8 17435# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3725885a 17436# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
718a6fd8 17437# Written by Gordon Matzigkeit, 1996
d7040cdb 17438#
718a6fd8 17439# This file is part of GNU Libtool.
d7040cdb 17440#
718a6fd8
SE
17441# GNU Libtool is free software; you can redistribute it and/or
17442# modify it under the terms of the GNU General Public License as
17443# published by the Free Software Foundation; either version 2 of
17444# the License, or (at your option) any later version.
d7040cdb 17445#
718a6fd8
SE
17446# As a special exception to the GNU General Public License,
17447# if you distribute this file as part of a program or library that
17448# is built using GNU Libtool, you may include this file under the
17449# same distribution terms that you use for the rest of that program.
d7040cdb 17450#
718a6fd8
SE
17451# GNU Libtool is distributed in the hope that it will be useful,
17452# but WITHOUT ANY WARRANTY; without even the implied warranty of
17453# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17454# GNU General Public License for more details.
d7040cdb 17455#
718a6fd8
SE
17456# You should have received a copy of the GNU General Public License
17457# along with GNU Libtool; see the file COPYING. If not, a copy
17458# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17459# obtained by writing to the Free Software Foundation, Inc.,
17460# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
17461
17462
17463# The names of the tagged configurations supported by this script.
17464available_tags=""
17465
17466# ### BEGIN LIBTOOL CONFIG
17467
17468# Whether or not to build shared libraries.
17469build_libtool_libs=$enable_shared
17470
17471# Which release of libtool.m4 was used?
17472macro_version=$macro_version
17473macro_revision=$macro_revision
17474
17475# Whether or not to build static libraries.
17476build_old_libs=$enable_static
17477
17478# What type of objects to build.
17479pic_mode=$pic_mode
17480
17481# Whether or not to optimize for fast installation.
17482fast_install=$enable_fast_install
17483
3725885a
RW
17484# Shell to use when invoking shell scripts.
17485SHELL=$lt_SHELL
17486
17487# An echo program that protects backslashes.
17488ECHO=$lt_ECHO
17489
d7040cdb
SE
17490# The host system.
17491host_alias=$host_alias
17492host=$host
17493host_os=$host_os
17494
17495# The build system.
17496build_alias=$build_alias
17497build=$build
17498build_os=$build_os
17499
17500# A sed program that does not truncate output.
17501SED=$lt_SED
17502
17503# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17504Xsed="\$SED -e 1s/^X//"
17505
17506# A grep program that handles long lines.
17507GREP=$lt_GREP
17508
17509# An ERE matcher.
17510EGREP=$lt_EGREP
17511
17512# A literal string matcher.
17513FGREP=$lt_FGREP
17514
17515# A BSD- or MS-compatible name lister.
17516NM=$lt_NM
17517
17518# Whether we need soft or hard links.
17519LN_S=$lt_LN_S
17520
17521# What is the maximum length of a command?
17522max_cmd_len=$max_cmd_len
17523
17524# Object file suffix (normally "o").
17525objext=$ac_objext
17526
17527# Executable file suffix (normally "").
17528exeext=$exeext
17529
17530# whether the shell understands "unset".
17531lt_unset=$lt_unset
17532
17533# turn spaces into newlines.
17534SP2NL=$lt_lt_SP2NL
17535
17536# turn newlines into spaces.
17537NL2SP=$lt_lt_NL2SP
17538
718a6fd8
SE
17539# An object symbol dumper.
17540OBJDUMP=$lt_OBJDUMP
17541
d7040cdb
SE
17542# Method to check whether dependent libraries are shared objects.
17543deplibs_check_method=$lt_deplibs_check_method
17544
17545# Command to use when deplibs_check_method == "file_magic".
17546file_magic_cmd=$lt_file_magic_cmd
17547
17548# The archiver.
17549AR=$lt_AR
17550AR_FLAGS=$lt_AR_FLAGS
17551
17552# A symbol stripping program.
17553STRIP=$lt_STRIP
17554
17555# Commands used to install an old-style archive.
17556RANLIB=$lt_RANLIB
17557old_postinstall_cmds=$lt_old_postinstall_cmds
17558old_postuninstall_cmds=$lt_old_postuninstall_cmds
17559
3725885a
RW
17560# Whether to use a lock for old archive extraction.
17561lock_old_archive_extraction=$lock_old_archive_extraction
17562
d7040cdb
SE
17563# A C compiler.
17564LTCC=$lt_CC
17565
17566# LTCC compiler flags.
17567LTCFLAGS=$lt_CFLAGS
17568
17569# Take the output of nm and produce a listing of raw symbols and C names.
17570global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17571
17572# Transform the output of nm in a proper C declaration.
17573global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17574
17575# Transform the output of nm in a C name address pair.
17576global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17577
718a6fd8
SE
17578# Transform the output of nm in a C name address pair when lib prefix is needed.
17579global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17580
d7040cdb
SE
17581# The name of the directory that contains temporary libtool files.
17582objdir=$objdir
17583
d7040cdb
SE
17584# Used to examine libraries when file_magic_cmd begins with "file".
17585MAGIC_CMD=$MAGIC_CMD
17586
17587# Must we lock files when doing compilation?
17588need_locks=$lt_need_locks
17589
718a6fd8
SE
17590# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17591DSYMUTIL=$lt_DSYMUTIL
17592
17593# Tool to change global to local symbols on Mac OS X.
17594NMEDIT=$lt_NMEDIT
17595
17596# Tool to manipulate fat objects and archives on Mac OS X.
17597LIPO=$lt_LIPO
17598
17599# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17600OTOOL=$lt_OTOOL
17601
17602# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17603OTOOL64=$lt_OTOOL64
17604
d7040cdb
SE
17605# Old archive suffix (normally "a").
17606libext=$libext
17607
17608# Shared library suffix (normally ".so").
17609shrext_cmds=$lt_shrext_cmds
17610
17611# The commands to extract the exported symbol list from a shared archive.
17612extract_expsyms_cmds=$lt_extract_expsyms_cmds
17613
17614# Variables whose values should be saved in libtool wrapper scripts and
17615# restored at link time.
17616variables_saved_for_relink=$lt_variables_saved_for_relink
17617
17618# Do we need the "lib" prefix for modules?
17619need_lib_prefix=$need_lib_prefix
17620
17621# Do we need a version for libraries?
17622need_version=$need_version
17623
17624# Library versioning type.
17625version_type=$version_type
17626
17627# Shared library runtime path variable.
17628runpath_var=$runpath_var
17629
17630# Shared library path variable.
17631shlibpath_var=$shlibpath_var
17632
17633# Is shlibpath searched before the hard-coded library search path?
17634shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17635
17636# Format of library name prefix.
17637libname_spec=$lt_libname_spec
17638
17639# List of archive names. First name is the real one, the rest are links.
17640# The last name is the one that the linker finds with -lNAME
17641library_names_spec=$lt_library_names_spec
17642
17643# The coded name of the library, if different from the real name.
17644soname_spec=$lt_soname_spec
17645
3725885a
RW
17646# Permission mode override for installation of shared libraries.
17647install_override_mode=$lt_install_override_mode
17648
d7040cdb
SE
17649# Command to use after installation of a shared archive.
17650postinstall_cmds=$lt_postinstall_cmds
17651
17652# Command to use after uninstallation of a shared archive.
17653postuninstall_cmds=$lt_postuninstall_cmds
17654
17655# Commands used to finish a libtool library installation in a directory.
17656finish_cmds=$lt_finish_cmds
17657
17658# As "finish_cmds", except a single script fragment to be evaled but
17659# not shown.
17660finish_eval=$lt_finish_eval
17661
17662# Whether we should hardcode library paths into libraries.
17663hardcode_into_libs=$hardcode_into_libs
17664
17665# Compile-time system search path for libraries.
17666sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17667
17668# Run-time system search path for libraries.
17669sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17670
17671# Whether dlopen is supported.
17672dlopen_support=$enable_dlopen
17673
17674# Whether dlopen of programs is supported.
17675dlopen_self=$enable_dlopen_self
17676
17677# Whether dlopen of statically linked programs is supported.
17678dlopen_self_static=$enable_dlopen_self_static
17679
17680# Commands to strip libraries.
17681old_striplib=$lt_old_striplib
17682striplib=$lt_striplib
17683
17684
17685# The linker used to build libraries.
17686LD=$lt_LD
17687
3725885a
RW
17688# How to create reloadable object files.
17689reload_flag=$lt_reload_flag
17690reload_cmds=$lt_reload_cmds
17691
d7040cdb
SE
17692# Commands used to build an old-style archive.
17693old_archive_cmds=$lt_old_archive_cmds
17694
17695# A language specific compiler.
17696CC=$lt_compiler
17697
17698# Is the compiler the GNU compiler?
17699with_gcc=$GCC
17700
17701# Compiler flag to turn off builtin functions.
17702no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17703
17704# How to pass a linker flag through the compiler.
17705wl=$lt_lt_prog_compiler_wl
17706
17707# Additional compiler flags for building library objects.
17708pic_flag=$lt_lt_prog_compiler_pic
17709
17710# Compiler flag to prevent dynamic linking.
17711link_static_flag=$lt_lt_prog_compiler_static
17712
17713# Does compiler simultaneously support -c and -o options?
17714compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17715
17716# Whether or not to add -lc for building shared libraries.
17717build_libtool_need_lc=$archive_cmds_need_lc
17718
17719# Whether or not to disallow shared libs when runtime libs are static.
17720allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17721
17722# Compiler flag to allow reflexive dlopens.
17723export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17724
17725# Compiler flag to generate shared objects directly from archives.
17726whole_archive_flag_spec=$lt_whole_archive_flag_spec
17727
17728# Whether the compiler copes with passing no objects directly.
17729compiler_needs_object=$lt_compiler_needs_object
17730
17731# Create an old-style archive from a shared archive.
17732old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17733
17734# Create a temporary old-style archive to link instead of a shared archive.
17735old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17736
17737# Commands used to build a shared archive.
17738archive_cmds=$lt_archive_cmds
17739archive_expsym_cmds=$lt_archive_expsym_cmds
17740
17741# Commands used to build a loadable module if different from building
17742# a shared archive.
17743module_cmds=$lt_module_cmds
17744module_expsym_cmds=$lt_module_expsym_cmds
17745
17746# Whether we are building with GNU ld or not.
17747with_gnu_ld=$lt_with_gnu_ld
17748
17749# Flag that allows shared libraries with undefined symbols to be built.
17750allow_undefined_flag=$lt_allow_undefined_flag
17751
17752# Flag that enforces no undefined symbols.
17753no_undefined_flag=$lt_no_undefined_flag
17754
17755# Flag to hardcode \$libdir into a binary during linking.
17756# This must work even if \$libdir does not exist
17757hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17758
17759# If ld is used when linking, flag to hardcode \$libdir into a binary
17760# during linking. This must work even if \$libdir does not exist.
17761hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17762
17763# Whether we need a single "-rpath" flag with a separated argument.
17764hardcode_libdir_separator=$lt_hardcode_libdir_separator
17765
17766# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17767# DIR into the resulting binary.
17768hardcode_direct=$hardcode_direct
17769
17770# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17771# DIR into the resulting binary and the resulting library dependency is
17772# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17773# library is relocated.
17774hardcode_direct_absolute=$hardcode_direct_absolute
17775
17776# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17777# into the resulting binary.
17778hardcode_minus_L=$hardcode_minus_L
17779
17780# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17781# into the resulting binary.
17782hardcode_shlibpath_var=$hardcode_shlibpath_var
17783
17784# Set to "yes" if building a shared library automatically hardcodes DIR
17785# into the library and all subsequent libraries and executables linked
17786# against it.
17787hardcode_automatic=$hardcode_automatic
17788
17789# Set to yes if linker adds runtime paths of dependent libraries
17790# to runtime path list.
17791inherit_rpath=$inherit_rpath
17792
17793# Whether libtool must link a program against all its dependency libraries.
17794link_all_deplibs=$link_all_deplibs
17795
17796# Fix the shell variable \$srcfile for the compiler.
17797fix_srcfile_path=$lt_fix_srcfile_path
17798
17799# Set to "yes" if exported symbols are required.
17800always_export_symbols=$always_export_symbols
17801
17802# The commands to list exported symbols.
17803export_symbols_cmds=$lt_export_symbols_cmds
17804
17805# Symbols that should not be listed in the preloaded symbols.
17806exclude_expsyms=$lt_exclude_expsyms
17807
17808# Symbols that must always be exported.
17809include_expsyms=$lt_include_expsyms
17810
17811# Commands necessary for linking programs (against libraries) with templates.
17812prelink_cmds=$lt_prelink_cmds
17813
17814# Specify filename containing input files.
17815file_list_spec=$lt_file_list_spec
17816
17817# How to hardcode a shared library path into an executable.
17818hardcode_action=$hardcode_action
17819
17820# ### END LIBTOOL CONFIG
17821
17822_LT_EOF
17823
17824 case $host_os in
17825 aix3*)
17826 cat <<\_LT_EOF >> "$cfgfile"
17827# AIX sometimes has problems with the GCC collect2 program. For some
17828# reason, if we set the COLLECT_NAMES environment variable, the problems
17829# vanish in a puff of smoke.
17830if test "X${COLLECT_NAMES+set}" != Xset; then
17831 COLLECT_NAMES=
17832 export COLLECT_NAMES
17833fi
17834_LT_EOF
17835 ;;
17836 esac
17837
17838
17839ltmain="$ac_aux_dir/ltmain.sh"
17840
17841
17842 # We use sed instead of cat because bash on DJGPP gets confused if
17843 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17844 # text mode, it properly converts lines to CR/LF. This bash problem
17845 # is reportedly fixed, but why not run on old versions too?
17846 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17847 || (rm -f "$cfgfile"; exit 1)
17848
17849 case $xsi_shell in
17850 yes)
17851 cat << \_LT_EOF >> "$cfgfile"
718a6fd8 17852
d7040cdb
SE
17853# func_dirname file append nondir_replacement
17854# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17855# otherwise set result to NONDIR_REPLACEMENT.
17856func_dirname ()
17857{
17858 case ${1} in
17859 */*) func_dirname_result="${1%/*}${2}" ;;
17860 * ) func_dirname_result="${3}" ;;
17861 esac
17862}
17863
17864# func_basename file
17865func_basename ()
17866{
17867 func_basename_result="${1##*/}"
17868}
17869
718a6fd8
SE
17870# func_dirname_and_basename file append nondir_replacement
17871# perform func_basename and func_dirname in a single function
17872# call:
17873# dirname: Compute the dirname of FILE. If nonempty,
17874# add APPEND to the result, otherwise set result
17875# to NONDIR_REPLACEMENT.
17876# value returned in "$func_dirname_result"
17877# basename: Compute filename of FILE.
17878# value retuned in "$func_basename_result"
17879# Implementation must be kept synchronized with func_dirname
17880# and func_basename. For efficiency, we do not delegate to
17881# those functions but instead duplicate the functionality here.
17882func_dirname_and_basename ()
17883{
17884 case ${1} in
17885 */*) func_dirname_result="${1%/*}${2}" ;;
17886 * ) func_dirname_result="${3}" ;;
17887 esac
17888 func_basename_result="${1##*/}"
17889}
17890
d7040cdb
SE
17891# func_stripname prefix suffix name
17892# strip PREFIX and SUFFIX off of NAME.
17893# PREFIX and SUFFIX must not contain globbing or regex special
17894# characters, hashes, percent signs, but SUFFIX may contain a leading
17895# dot (in which case that matches only a dot).
17896func_stripname ()
17897{
17898 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17899 # positional parameters, so assign one to ordinary parameter first.
17900 func_stripname_result=${3}
17901 func_stripname_result=${func_stripname_result#"${1}"}
17902 func_stripname_result=${func_stripname_result%"${2}"}
17903}
17904
17905# func_opt_split
17906func_opt_split ()
17907{
17908 func_opt_split_opt=${1%%=*}
17909 func_opt_split_arg=${1#*=}
17910}
17911
17912# func_lo2o object
17913func_lo2o ()
17914{
17915 case ${1} in
17916 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17917 *) func_lo2o_result=${1} ;;
17918 esac
17919}
718a6fd8
SE
17920
17921# func_xform libobj-or-source
17922func_xform ()
17923{
17924 func_xform_result=${1%.*}.lo
17925}
17926
17927# func_arith arithmetic-term...
17928func_arith ()
17929{
17930 func_arith_result=$(( $* ))
17931}
17932
17933# func_len string
17934# STRING may not start with a hyphen.
17935func_len ()
17936{
17937 func_len_result=${#1}
17938}
17939
d7040cdb
SE
17940_LT_EOF
17941 ;;
17942 *) # Bourne compatible functions.
17943 cat << \_LT_EOF >> "$cfgfile"
718a6fd8 17944
d7040cdb
SE
17945# func_dirname file append nondir_replacement
17946# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17947# otherwise set result to NONDIR_REPLACEMENT.
17948func_dirname ()
17949{
17950 # Extract subdirectory from the argument.
3725885a 17951 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
d7040cdb
SE
17952 if test "X$func_dirname_result" = "X${1}"; then
17953 func_dirname_result="${3}"
17954 else
17955 func_dirname_result="$func_dirname_result${2}"
17956 fi
17957}
17958
17959# func_basename file
17960func_basename ()
17961{
3725885a 17962 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
d7040cdb
SE
17963}
17964
718a6fd8 17965
d7040cdb
SE
17966# func_stripname prefix suffix name
17967# strip PREFIX and SUFFIX off of NAME.
17968# PREFIX and SUFFIX must not contain globbing or regex special
17969# characters, hashes, percent signs, but SUFFIX may contain a leading
17970# dot (in which case that matches only a dot).
17971# func_strip_suffix prefix name
17972func_stripname ()
17973{
17974 case ${2} in
3725885a
RW
17975 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17976 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
d7040cdb
SE
17977 esac
17978}
17979
17980# sed scripts:
17981my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17982my_sed_long_arg='1s/^-[^=]*=//'
17983
17984# func_opt_split
17985func_opt_split ()
17986{
3725885a
RW
17987 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17988 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
d7040cdb
SE
17989}
17990
17991# func_lo2o object
17992func_lo2o ()
17993{
3725885a 17994 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
d7040cdb 17995}
718a6fd8
SE
17996
17997# func_xform libobj-or-source
17998func_xform ()
17999{
3725885a 18000 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
718a6fd8
SE
18001}
18002
18003# func_arith arithmetic-term...
18004func_arith ()
18005{
18006 func_arith_result=`expr "$@"`
18007}
18008
18009# func_len string
18010# STRING may not start with a hyphen.
18011func_len ()
18012{
18013 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18014}
18015
d7040cdb
SE
18016_LT_EOF
18017esac
18018
18019case $lt_shell_append in
18020 yes)
18021 cat << \_LT_EOF >> "$cfgfile"
18022
18023# func_append var value
18024# Append VALUE to the end of shell variable VAR.
18025func_append ()
18026{
18027 eval "$1+=\$2"
18028}
18029_LT_EOF
18030 ;;
18031 *)
18032 cat << \_LT_EOF >> "$cfgfile"
18033
18034# func_append var value
18035# Append VALUE to the end of shell variable VAR.
18036func_append ()
18037{
18038 eval "$1=\$$1\$2"
18039}
718a6fd8 18040
d7040cdb
SE
18041_LT_EOF
18042 ;;
18043 esac
18044
18045
18046 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18047 || (rm -f "$cfgfile"; exit 1)
18048
18049 mv -f "$cfgfile" "$ofile" ||
18050 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18051 chmod +x "$ofile"
18052
f5385ebf 18053 ;;
81ecdfbb 18054 "default-1":C)
20e95c23
DJ
18055 for ac_file in $CONFIG_FILES; do
18056 # Support "outfile[:infile[:infile...]]"
18057 case "$ac_file" in
18058 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18059 esac
18060 # PO directories have a Makefile.in generated from Makefile.in.in.
18061 case "$ac_file" in */Makefile.in)
18062 # Adjust a relative srcdir.
18063 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18064 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18065 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18066 # In autoconf-2.13 it is called $ac_given_srcdir.
18067 # In autoconf-2.50 it is called $srcdir.
18068 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18069 case "$ac_given_srcdir" in
18070 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18071 /*) top_srcdir="$ac_given_srcdir" ;;
18072 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
18073 esac
18074 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18075 rm -f "$ac_dir/POTFILES"
18076 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18077 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18078 POMAKEFILEDEPS="POTFILES.in"
18079 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
18080 # on $ac_dir but don't depend on user-specified configuration
18081 # parameters.
18082 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18083 # The LINGUAS file contains the set of available languages.
18084 if test -n "$OBSOLETE_ALL_LINGUAS"; then
18085 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18086 fi
18087 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18088 # Hide the ALL_LINGUAS assigment from automake.
18089 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18090 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18091 else
18092 # The set of available languages was given in configure.in.
18093 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18094 fi
18095 case "$ac_given_srcdir" in
18096 .) srcdirpre= ;;
18097 *) srcdirpre='$(srcdir)/' ;;
18098 esac
18099 POFILES=
18100 GMOFILES=
18101 UPDATEPOFILES=
18102 DUMMYPOFILES=
18103 for lang in $ALL_LINGUAS; do
18104 POFILES="$POFILES $srcdirpre$lang.po"
18105 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18106 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18107 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18108 done
18109 # CATALOGS depends on both $ac_dir and the user's LINGUAS
18110 # environment variable.
18111 INST_LINGUAS=
18112 if test -n "$ALL_LINGUAS"; then
18113 for presentlang in $ALL_LINGUAS; do
18114 useit=no
18115 if test "%UNSET%" != "$LINGUAS"; then
18116 desiredlanguages="$LINGUAS"
18117 else
18118 desiredlanguages="$ALL_LINGUAS"
18119 fi
18120 for desiredlang in $desiredlanguages; do
18121 # Use the presentlang catalog if desiredlang is
18122 # a. equal to presentlang, or
18123 # b. a variant of presentlang (because in this case,
18124 # presentlang can be used as a fallback for messages
18125 # which are not translated in the desiredlang catalog).
18126 case "$desiredlang" in
18127 "$presentlang"*) useit=yes;;
18128 esac
18129 done
18130 if test $useit = yes; then
18131 INST_LINGUAS="$INST_LINGUAS $presentlang"
18132 fi
18133 done
18134 fi
18135 CATALOGS=
18136 if test -n "$INST_LINGUAS"; then
18137 for lang in $INST_LINGUAS; do
18138 CATALOGS="$CATALOGS $lang.gmo"
18139 done
18140 fi
18141 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18142 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"
18143 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18144 if test -f "$f"; then
18145 case "$f" in
18146 *.orig | *.bak | *~) ;;
18147 *) cat "$f" >> "$ac_dir/Makefile" ;;
18148 esac
18149 fi
18150 done
18151 fi
18152 ;;
18153 esac
18154 done ;;
81ecdfbb 18155 "bfd_stdint.h":C)
f3b4f6d0
PB
18156if test "$GCC" = yes; then
18157 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
18158else
18159 echo "/* generated for $CC */" > tmp-stdint.h
18160fi
d5efd9fc 18161
f3b4f6d0
PB
18162sed 's/^ *//' >> tmp-stdint.h <<EOF
18163
18164 #ifndef GCC_GENERATED_STDINT_H
18165 #define GCC_GENERATED_STDINT_H 1
18166
18167 #include <sys/types.h>
18168EOF
18169
18170if test "$acx_cv_header_stdint" != stdint.h; then
18171 echo "#include <stddef.h>" >> tmp-stdint.h
18172fi
18173if test "$acx_cv_header_stdint" != stddef.h; then
18174 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
18175fi
18176
18177sed 's/^ *//' >> tmp-stdint.h <<EOF
18178 /* glibc uses these symbols as guards to prevent redefinitions. */
18179 #ifdef __int8_t_defined
18180 #define _INT8_T
18181 #define _INT16_T
18182 #define _INT32_T
18183 #endif
18184 #ifdef __uint32_t_defined
18185 #define _UINT32_T
18186 #endif
18187
18188EOF
18189
18190# ----------------- done header, emit basic int types -------------
18191if test "$acx_cv_header_stdint" = stddef.h; then
18192 sed 's/^ *//' >> tmp-stdint.h <<EOF
18193
18194 #ifndef _UINT8_T
18195 #define _UINT8_T
18196 #ifndef __uint8_t_defined
18197 #define __uint8_t_defined
18198 typedef unsigned $acx_cv_type_int8_t uint8_t;
18199 #endif
18200 #endif
18201
18202 #ifndef _UINT16_T
18203 #define _UINT16_T
18204 #ifndef __uint16_t_defined
18205 #define __uint16_t_defined
18206 typedef unsigned $acx_cv_type_int16_t uint16_t;
18207 #endif
18208 #endif
18209
18210 #ifndef _UINT32_T
18211 #define _UINT32_T
18212 #ifndef __uint32_t_defined
18213 #define __uint32_t_defined
18214 typedef unsigned $acx_cv_type_int32_t uint32_t;
18215 #endif
18216 #endif
18217
18218 #ifndef _INT8_T
18219 #define _INT8_T
18220 #ifndef __int8_t_defined
18221 #define __int8_t_defined
18222 typedef $acx_cv_type_int8_t int8_t;
18223 #endif
18224 #endif
18225
18226 #ifndef _INT16_T
18227 #define _INT16_T
18228 #ifndef __int16_t_defined
18229 #define __int16_t_defined
18230 typedef $acx_cv_type_int16_t int16_t;
18231 #endif
18232 #endif
18233
18234 #ifndef _INT32_T
18235 #define _INT32_T
18236 #ifndef __int32_t_defined
18237 #define __int32_t_defined
18238 typedef $acx_cv_type_int32_t int32_t;
18239 #endif
18240 #endif
18241EOF
18242elif test "$ac_cv_type_u_int32_t" = yes; then
18243 sed 's/^ *//' >> tmp-stdint.h <<EOF
18244
18245 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
18246 #ifndef _INT8_T
18247 #define _INT8_T
18248 #endif
18249 #ifndef _INT16_T
18250 #define _INT16_T
18251 #endif
18252 #ifndef _INT32_T
18253 #define _INT32_T
18254 #endif
18255
18256 #ifndef _UINT8_T
18257 #define _UINT8_T
18258 #ifndef __uint8_t_defined
18259 #define __uint8_t_defined
18260 typedef u_int8_t uint8_t;
18261 #endif
18262 #endif
18263
18264 #ifndef _UINT16_T
18265 #define _UINT16_T
18266 #ifndef __uint16_t_defined
18267 #define __uint16_t_defined
18268 typedef u_int16_t uint16_t;
18269 #endif
18270 #endif
18271
18272 #ifndef _UINT32_T
18273 #define _UINT32_T
18274 #ifndef __uint32_t_defined
18275 #define __uint32_t_defined
18276 typedef u_int32_t uint32_t;
18277 #endif
18278 #endif
d5efd9fc 18279EOF
f3b4f6d0
PB
18280else
18281 sed 's/^ *//' >> tmp-stdint.h <<EOF
18282
18283 /* Some systems have guard macros to prevent redefinitions, define them. */
18284 #ifndef _INT8_T
18285 #define _INT8_T
18286 #endif
18287 #ifndef _INT16_T
18288 #define _INT16_T
18289 #endif
18290 #ifndef _INT32_T
18291 #define _INT32_T
18292 #endif
18293 #ifndef _UINT8_T
18294 #define _UINT8_T
18295 #endif
18296 #ifndef _UINT16_T
18297 #define _UINT16_T
18298 #endif
18299 #ifndef _UINT32_T
18300 #define _UINT32_T
18301 #endif
18302EOF
18303fi
18304
18305# ------------- done basic int types, emit int64_t types ------------
18306if test "$ac_cv_type_uint64_t" = yes; then
18307 sed 's/^ *//' >> tmp-stdint.h <<EOF
d5efd9fc 18308
f3b4f6d0
PB
18309 /* system headers have good uint64_t and int64_t */
18310 #ifndef _INT64_T
18311 #define _INT64_T
18312 #endif
18313 #ifndef _UINT64_T
18314 #define _UINT64_T
18315 #endif
18316EOF
18317elif test "$ac_cv_type_u_int64_t" = yes; then
18318 sed 's/^ *//' >> tmp-stdint.h <<EOF
18319
18320 /* system headers have an u_int64_t (and int64_t) */
18321 #ifndef _INT64_T
18322 #define _INT64_T
18323 #endif
18324 #ifndef _UINT64_T
18325 #define _UINT64_T
18326 #ifndef __uint64_t_defined
18327 #define __uint64_t_defined
18328 typedef u_int64_t uint64_t;
18329 #endif
18330 #endif
18331EOF
18332elif test -n "$acx_cv_type_int64_t"; then
18333 sed 's/^ *//' >> tmp-stdint.h <<EOF
18334
18335 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
18336 #ifndef _INT64_T
18337 #define _INT64_T
18338 typedef $acx_cv_type_int64_t int64_t;
18339 #endif
18340 #ifndef _UINT64_T
18341 #define _UINT64_T
18342 #ifndef __uint64_t_defined
18343 #define __uint64_t_defined
18344 typedef unsigned $acx_cv_type_int64_t uint64_t;
18345 #endif
18346 #endif
18347EOF
18348else
18349 sed 's/^ *//' >> tmp-stdint.h <<EOF
18350
18351 /* some common heuristics for int64_t, using compiler-specific tests */
18352 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
18353 #ifndef _INT64_T
18354 #define _INT64_T
18355 #ifndef __int64_t_defined
18356 typedef long long int64_t;
18357 #endif
18358 #endif
18359 #ifndef _UINT64_T
18360 #define _UINT64_T
18361 typedef unsigned long long uint64_t;
18362 #endif
18363
18364 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
18365 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
18366 does not implement __extension__. But that compiler doesn't define
18367 __GNUC_MINOR__. */
18368 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
18369 # define __extension__
18370 # endif
18371
18372 # ifndef _INT64_T
18373 # define _INT64_T
18374 __extension__ typedef long long int64_t;
18375 # endif
18376 # ifndef _UINT64_T
18377 # define _UINT64_T
18378 __extension__ typedef unsigned long long uint64_t;
18379 # endif
18380
18381 #elif !defined __STRICT_ANSI__
18382 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
18383
18384 # ifndef _INT64_T
18385 # define _INT64_T
18386 typedef __int64 int64_t;
18387 # endif
18388 # ifndef _UINT64_T
18389 # define _UINT64_T
18390 typedef unsigned __int64 uint64_t;
18391 # endif
18392 # endif /* compiler */
18393
18394 #endif /* ANSI version */
18395EOF
18396fi
18397
18398# ------------- done int64_t types, emit intptr types ------------
18399if test "$ac_cv_type_uintptr_t" != yes; then
18400 sed 's/^ *//' >> tmp-stdint.h <<EOF
18401
18402 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
18403 #ifndef __uintptr_t_defined
18404 typedef u$acx_cv_type_intptr_t uintptr_t;
18405 #endif
18406 #ifndef __intptr_t_defined
18407 typedef $acx_cv_type_intptr_t intptr_t;
18408 #endif
18409EOF
18410fi
18411
18412# ------------- done intptr types, emit int_least types ------------
d5efd9fc 18413if test "$ac_cv_type_int_least32_t" != yes; then
f3b4f6d0 18414 sed 's/^ *//' >> tmp-stdint.h <<EOF
d5efd9fc
AM
18415
18416 /* Define int_least types */
18417 typedef int8_t int_least8_t;
18418 typedef int16_t int_least16_t;
18419 typedef int32_t int_least32_t;
f3b4f6d0 18420 #ifdef _INT64_T
d5efd9fc 18421 typedef int64_t int_least64_t;
f3b4f6d0 18422 #endif
d5efd9fc
AM
18423
18424 typedef uint8_t uint_least8_t;
18425 typedef uint16_t uint_least16_t;
18426 typedef uint32_t uint_least32_t;
f3b4f6d0 18427 #ifdef _UINT64_T
d5efd9fc 18428 typedef uint64_t uint_least64_t;
f3b4f6d0 18429 #endif
d5efd9fc
AM
18430EOF
18431fi
18432
f3b4f6d0 18433# ------------- done intptr types, emit int_fast types ------------
d5efd9fc 18434if test "$ac_cv_type_int_fast32_t" != yes; then
f3b4f6d0 18435 sed 's/^ *//' >> tmp-stdint.h <<EOF
d5efd9fc
AM
18436
18437 /* Define int_fast types. short is often slow */
18438 typedef int8_t int_fast8_t;
18439 typedef int int_fast16_t;
18440 typedef int32_t int_fast32_t;
f3b4f6d0 18441 #ifdef _INT64_T
d5efd9fc 18442 typedef int64_t int_fast64_t;
f3b4f6d0 18443 #endif
d5efd9fc
AM
18444
18445 typedef uint8_t uint_fast8_t;
18446 typedef unsigned int uint_fast16_t;
18447 typedef uint32_t uint_fast32_t;
f3b4f6d0 18448 #ifdef _UINT64_T
d5efd9fc 18449 typedef uint64_t uint_fast64_t;
f3b4f6d0
PB
18450 #endif
18451EOF
18452fi
18453
18454if test "$ac_cv_type_uintmax_t" != yes; then
18455 sed 's/^ *//' >> tmp-stdint.h <<EOF
18456
18457 /* Define intmax based on what we found */
18458 #ifdef _INT64_T
18459 typedef int64_t intmax_t;
18460 #else
18461 typedef long intmax_t;
18462 #endif
18463 #ifdef _UINT64_T
18464 typedef uint64_t uintmax_t;
18465 #else
18466 typedef unsigned long uintmax_t;
18467 #endif
d5efd9fc
AM
18468EOF
18469fi
18470
f3b4f6d0
PB
18471sed 's/^ *//' >> tmp-stdint.h <<EOF
18472
18473 #endif /* GCC_GENERATED_STDINT_H */
18474EOF
d5efd9fc 18475
f3b4f6d0
PB
18476if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
18477 rm -f tmp-stdint.h
d5efd9fc 18478else
f3b4f6d0 18479 mv -f tmp-stdint.h bfd_stdint.h
d5efd9fc
AM
18480fi
18481
18482 ;;
81ecdfbb 18483 "default":C)
20e95c23
DJ
18484case "$srcdir" in
18485 .) srcdirpre= ;;
18486 *) srcdirpre='$(srcdir)/' ;;
18487esac
18488POFILES=
18489GMOFILES=
18490for lang in dummy $OBSOLETE_ALL_LINGUAS; do
18491 if test $lang != dummy; then
18492 POFILES="$POFILES $srcdirpre$lang.po"
18493 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18494 fi
18495done
18496sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
18497 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
18498 -e "s,@POFILES@,$POFILES," \
18499 -e "s,@GMOFILES@,$GMOFILES," \
18500 po/Makefile.in > po/Makefile ;;
81ecdfbb 18501
5464f5a1 18502 esac
81ecdfbb 18503done # for ac_tag
5464f5a1 18504
5464f5a1 18505
81ecdfbb 18506as_fn_exit 0
5464f5a1 18507_ACEOF
5464f5a1
NN
18508ac_clean_files=$ac_clean_files_save
18509
81ecdfbb
RW
18510test $ac_write_fail = 0 ||
18511 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18512
5464f5a1
NN
18513
18514# configure is writing to config.log, and then calls config.status.
18515# config.status does its own redirection, appending to config.log.
18516# Unfortunately, on DOS this fails, as config.log is still kept open
18517# by configure, so config.status won't be able to write to it; its
18518# output is simply discarded. So we exec the FD to /dev/null,
18519# effectively closing config.log, so it can be properly (re)opened and
18520# appended to by config.status. When coming back to configure, we
18521# need to make the FD available again.
18522if test "$no_create" != yes; then
18523 ac_cs_success=:
18524 ac_config_status_args=
18525 test "$silent" = yes &&
18526 ac_config_status_args="$ac_config_status_args --quiet"
18527 exec 5>/dev/null
18528 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18529 exec 5>>config.log
18530 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18531 # would make configure fail if this is the last instruction.
81ecdfbb
RW
18532 $ac_cs_success || as_fn_exit $?
18533fi
18534if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18536$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5464f5a1 18537fi
252b5132 18538
55c80943 18539
This page took 1.834406 seconds and 4 git commands to generate.